@Override public String[] getTableActionIds() { if (loginInfo.hasAuth(Auth.SubFunction_OnlineReturn_Approval)) { return new String[] {Action.Approval.name()}; } return null; }
@Override protected String[] getElementActionIds(Object element) { if (loginInfo.hasAuth(Auth.SubFunction_OnlineReturn_Approval)) { return new String[] {Action.Approval.name()}; } return null; }
@Override public String[] getTableActionIds() { LoginInfo login = getContext().find(LoginInfo.class); if (login.hasAuth(Auth.SubFunction_GoodsSplitManage_Approval)) return new String[] {Action.Approval.name()}; else return null; }
@Override public void actionPerformed(String rowId, String actionName, String actionValue) { if (Action.Detail.name().equals(actionName) || Action.Approval.name().equals(actionName)) { PageController pc = new PageController( OnlineReturnSheetDetailProcessor.class, OnlineReturnSheetDetailRender.class); PageControllerInstance pci = new PageControllerInstance( pc, GUID.tryValueOf(rowId), OnlineReturnSheetDetailProcessor.Type.Detail); MsgRequest request = new MsgRequest(pci, "ÍøÉÏÍË»õµ¥ÏêÇé"); request.setResponseHandler( new ResponseHandler() { public void handle( Object returnValue, Object returnValue2, Object returnValue3, Object returnValue4) { table.render(); } }); getContext().bubbleMessage(request); } }