123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766 |
- /**
- * output package name
- */
- package com.kingdee.eas.custom.bill.salary.client;
- import org.apache.log4j.*;
- import java.awt.*;
- import java.awt.event.*;
- import java.util.*;
- import javax.swing.border.*;
- import javax.swing.BorderFactory;
- import javax.swing.event.*;
- import javax.swing.KeyStroke;
- import com.kingdee.bos.ctrl.swing.*;
- import com.kingdee.bos.ctrl.kdf.table.*;
- import com.kingdee.bos.ctrl.kdf.data.event.*;
- import com.kingdee.bos.dao.*;
- import com.kingdee.bos.dao.query.*;
- import com.kingdee.bos.metadata.*;
- import com.kingdee.bos.metadata.entity.*;
- import com.kingdee.bos.ui.face.*;
- import com.kingdee.bos.ui.util.ResourceBundleHelper;
- import com.kingdee.bos.util.BOSUuid;
- import com.kingdee.bos.service.ServiceContext;
- import com.kingdee.jdbc.rowset.IRowSet;
- import com.kingdee.util.enums.EnumUtils;
- import com.kingdee.bos.ui.face.UIRuleUtil;
- import com.kingdee.bos.ctrl.swing.event.*;
- import com.kingdee.bos.ctrl.kdf.table.event.*;
- import com.kingdee.bos.ctrl.extendcontrols.*;
- import com.kingdee.bos.ctrl.kdf.util.render.*;
- import com.kingdee.bos.ui.face.IItemAction;
- import com.kingdee.eas.framework.batchHandler.RequestContext;
- import com.kingdee.bos.ui.util.IUIActionPostman;
- import com.kingdee.bos.appframework.client.servicebinding.ActionProxyFactory;
- import com.kingdee.bos.appframework.uistatemanage.ActionStateConst;
- import com.kingdee.bos.appframework.validator.ValidateHelper;
- import com.kingdee.bos.appframework.uip.UINavigator;
- /**
- * output class name
- */
- public abstract class AbstractSalaryBagListUI extends com.kingdee.eas.hr.base.client.HRBillListUI
- {
- private static final Logger logger = CoreUIObject.getLogger(AbstractSalaryBagListUI.class);
- protected ActionTDPrint actionTDPrint = null;
- protected ActionTDPrintPreview actionTDPrintPreview = null;
- public final static String STATUS_VIEW = "VIEW";
- /**
- * output class constructor
- */
- public AbstractSalaryBagListUI() throws Exception
- {
- super();
- this.defaultObjectName = "mainQuery";
- jbInit();
-
- initUIP();
- }
- /**
- * output jbInit method
- */
- private void jbInit() throws Exception
- {
- this.resHelper = new ResourceBundleHelper(AbstractSalaryBagListUI.class.getName());
- this.setUITitle(resHelper.getString("this.title"));
- mainQueryPK = new MetaDataPK("com.kingdee.eas.custom.bill.salary.app", "SalaryBagQuery");
- //actionRemove
- String _tempStr = null;
- actionRemove.setEnabled(true);
- actionRemove.setDaemonRun(false);
- actionRemove.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl D"));
- _tempStr = resHelper.getString("ActionRemove.SHORT_DESCRIPTION");
- actionRemove.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionRemove.LONG_DESCRIPTION");
- actionRemove.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionRemove.NAME");
- actionRemove.putValue(ItemAction.NAME, _tempStr);
- this.actionRemove.setBindWorkFlow(true);
- this.actionRemove.addService(new com.kingdee.eas.framework.client.service.PermissionService());
- this.actionRemove.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
- this.actionRemove.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
- //actionAudit
- actionAudit.setEnabled(true);
- actionAudit.setDaemonRun(false);
- actionAudit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl A"));
- _tempStr = resHelper.getString("ActionAudit.SHORT_DESCRIPTION");
- actionAudit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionAudit.LONG_DESCRIPTION");
- actionAudit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionAudit.NAME");
- actionAudit.putValue(ItemAction.NAME, _tempStr);
- this.actionAudit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
- //actionUnaudit
- actionUnaudit.setEnabled(true);
- actionUnaudit.setDaemonRun(false);
- actionUnaudit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl U"));
- _tempStr = resHelper.getString("ActionUnaudit.SHORT_DESCRIPTION");
- actionUnaudit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionUnaudit.LONG_DESCRIPTION");
- actionUnaudit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionUnaudit.NAME");
- actionUnaudit.putValue(ItemAction.NAME, _tempStr);
- this.actionUnaudit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
- //actionTDPrint
- this.actionTDPrint = new ActionTDPrint(this);
- getActionManager().registerAction("actionTDPrint", actionTDPrint);
- this.actionTDPrint.addService(new com.kingdee.eas.framework.client.service.PermissionService());
- //actionTDPrintPreview
- this.actionTDPrintPreview = new ActionTDPrintPreview(this);
- getActionManager().registerAction("actionTDPrintPreview", actionTDPrintPreview);
- this.actionTDPrintPreview.addService(new com.kingdee.eas.framework.client.service.PermissionService());
- // CoreUI
- String tblMainStrXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><DocRoot xmlns:c=\"http://www.kingdee.com/Common\" xmlns:f=\"http://www.kingdee.com/Form\" xmlns:t=\"http://www.kingdee.com/Table\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.kingdee.com/KDF KDFSchema.xsd\" version=\"0.0\"><Styles><c:Style id=\"sCol0\"><c:Protection hidden=\"true\" /></c:Style><c:Style id=\"sCol2\"><c:Protection hidden=\"true\" /></c:Style><c:Style id=\"sCol9\"><c:Protection hidden=\"true\" /></c:Style><c:Style id=\"sCol12\"><c:Protection hidden=\"true\" /></c:Style><c:Style id=\"sCol13\"><c:Protection hidden=\"true\" /></c:Style><c:Style id=\"sCol14\"><c:NumberFormat>&date</c:NumberFormat></c:Style><c:Style id=\"sCol15\"><c:NumberFormat>&double</c:NumberFormat></c:Style><c:Style id=\"sCol16\"><c:NumberFormat>&double</c:NumberFormat></c:Style><c:Style id=\"sCol17\"><c:NumberFormat>&double</c:NumberFormat></c:Style><c:Style id=\"sCol18\"><c:NumberFormat>&double</c:NumberFormat></c:Style><c:Style id=\"sCol20\"><c:NumberFormat>&double</c:NumberFormat></c:Style><c:Style id=\"sCol21\"><c:NumberFormat>&date</c:NumberFormat></c:Style><c:Style id=\"sCol22\"><c:NumberFormat>&date</c:NumberFormat></c:Style><c:Style id=\"sCol23\"><c:NumberFormat>&date</c:NumberFormat></c:Style></Styles><Table id=\"KDTable\"><t:Sheet name=\"sheet1\"><t:Table t:selectMode=\"15\" t:mergeMode=\"0\" t:dataRequestMode=\"0\" t:pageRowCount=\"100\"><t:ColumnGroup><t:Column t:key=\"id\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol0\" /><t:Column t:key=\"number\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" /><t:Column t:key=\"applier.id\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"2\" t:styleID=\"sCol2\" /><t:Column t:key=\"applier.name\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"3\" /><t:Column t:key=\"adminOrgUnit.id\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"4\" /><t:Column t:key=\"adminOrgUnit.displayName\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"5\" /><t:Column t:key=\"applyDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"6\" /><t:Column t:key=\"billState\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"7\" /><t:Column t:key=\"bizDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"8\" /><t:Column t:key=\"hrOrgUnit.id\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"9\" t:styleID=\"sCol9\" /><t:Column t:key=\"hrOrgUnit.name\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"10\" /><t:Column t:key=\"description\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"11\" /><t:Column t:key=\"approveType\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol12\" /><t:Column t:key=\"adminOrgUnit.name\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol13\" /><t:Column t:key=\"entrys.months\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol14\" /><t:Column t:key=\"entrys.moneys\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol15\" /><t:Column t:key=\"entrys.beforeAmount\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol16\" /><t:Column t:key=\"entrys.reissueAmount\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol17\" /><t:Column t:key=\"entrys.amountPayable\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol18\" /><t:Column t:key=\"person.name\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" /><t:Column t:key=\"money\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol20\" /><t:Column t:key=\"startDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol21\" /><t:Column t:key=\"endDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol22\" /><t:Column t:key=\"reissueDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol23\" /><t:Column t:key=\"status\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" /></t:ColumnGroup><t:Head><t:Row t:name=\"head\" t:height=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\"><t:Cell>$Resource{id}</t:Cell><t:Cell>$Resource{number}</t:Cell><t:Cell>$Resource{applier.id}</t:Cell><t:Cell>$Resource{applier.name}</t:Cell><t:Cell>$Resource{adminOrgUnit.id}</t:Cell><t:Cell>$Resource{adminOrgUnit.displayName}</t:Cell><t:Cell>$Resource{applyDate}</t:Cell><t:Cell>$Resource{billState}</t:Cell><t:Cell>$Resource{bizDate}</t:Cell><t:Cell>$Resource{hrOrgUnit.id}</t:Cell><t:Cell>$Resource{hrOrgUnit.name}</t:Cell><t:Cell>$Resource{description}</t:Cell><t:Cell>$Resource{approveType}</t:Cell><t:Cell>$Resource{adminOrgUnit.name}</t:Cell><t:Cell>$Resource{entrys.months}</t:Cell><t:Cell>$Resource{entrys.moneys}</t:Cell><t:Cell>$Resource{entrys.beforeAmount}</t:Cell><t:Cell>$Resource{entrys.reissueAmount}</t:Cell><t:Cell>$Resource{entrys.amountPayable}</t:Cell><t:Cell>$Resource{person.name}</t:Cell><t:Cell>$Resource{money}</t:Cell><t:Cell>$Resource{startDate}</t:Cell><t:Cell>$Resource{endDate}</t:Cell><t:Cell>$Resource{reissueDate}</t:Cell><t:Cell>$Resource{status}</t:Cell></t:Row></t:Head></t:Table><t:SheetOptions><t:MergeBlocks><t:Head /></t:MergeBlocks></t:SheetOptions></t:Sheet></Table></DocRoot>";
-
- this.tblMain.setFormatXml(resHelper.translateString("tblMain",tblMainStrXML));
- this.tblMain.putBindContents("mainQuery",new String[] {"id","number","applier.id","applier.name","adminOrg.id","adminOrg.displayName","applyDate","billState","bizDate","hrOrgUnit.id","hrOrgUnit.name","description","approveType","adminOrgUnit.name","entrys.months","entrys.moneys","entrys.beforeAmount","entrys.reissueAmount","entrys.amountPayable","person.name","money","startDate","endDate","reissueDate","status"});
- this.tblMain.checkParsed();
- this.tblMain.getGroupManager().setGroup(true);
- this.separatorFW2.setVisible(true);
- this.btnCreateTo.setVisible(false);
- this.btnTraceUp.setVisible(false);
- this.btnTraceDown.setVisible(false);
- this.btnVoucher.setVisible(false);
- this.btnDelVoucher.setVisible(false);
- this.btnAuditResult.setVisible(false);
- this.menuItemCreateTo.setVisible(false);
- this.menuItemCopyTo.setVisible(false);
- this.kDSeparator4.setVisible(false);
- this.menuItemTraceUp.setVisible(false);
- this.menuItemTraceDown.setVisible(false);
- this.kDSeparator6.setVisible(false);
- this.menuItemVoucher.setVisible(false);
- this.menuItemDelVoucher.setVisible(false);
- this.menuItemViewDoProccess.setVisible(false);
- this.menuItemAuditResult.setVisible(false);
- this.btnAudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionAudit, new Class[] { IItemAction.class }, getServiceContext()));
- this.btnAudit.setText(resHelper.getString("btnAudit.text"));
- this.btnAudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_audit"));
- this.btnAudit.setToolTipText(resHelper.getString("btnAudit.toolTipText"));
- this.btnUnaudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionUnaudit, new Class[] { IItemAction.class }, getServiceContext()));
- this.btnUnaudit.setText(resHelper.getString("btnUnaudit.text"));
- this.btnUnaudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_unaudit"));
- this.btnUnaudit.setToolTipText(resHelper.getString("btnUnaudit.toolTipText"));
- this.btnUnaudit.setVisible(false);
- this.btnUnaudit.setMnemonic(85);
- this.menuItemAudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionAudit, new Class[] { IItemAction.class }, getServiceContext()));
- this.menuItemAudit.setText(resHelper.getString("menuItemAudit.text"));
- this.menuItemAudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_audit"));
- this.menuItemAudit.setToolTipText(resHelper.getString("menuItemAudit.toolTipText"));
- this.menuItemAudit.setMnemonic(65);
- this.menuItemUnaudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionUnaudit, new Class[] { IItemAction.class }, getServiceContext()));
- this.menuItemUnaudit.setText(resHelper.getString("menuItemUnaudit.text"));
- this.menuItemUnaudit.setMnemonic(85);
- this.menuItemUnaudit.setToolTipText(resHelper.getString("menuItemUnaudit.toolTipText"));
- this.menuItemUnaudit.setVisible(false);
- this.menuItemUnaudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_unaudit"));
- //Register control's property binding
- registerBindings();
- registerUIState();
- }
- public com.kingdee.bos.ctrl.swing.KDToolBar[] getUIMultiToolBar(){
- java.util.List list = new java.util.ArrayList();
- com.kingdee.bos.ctrl.swing.KDToolBar[] bars = super.getUIMultiToolBar();
- if (bars != null) {
- list.addAll(java.util.Arrays.asList(bars));
- }
- return (com.kingdee.bos.ctrl.swing.KDToolBar[])list.toArray(new com.kingdee.bos.ctrl.swing.KDToolBar[list.size()]);
- }
- /**
- * output initUIContentLayout method
- */
- public void initUIContentLayout()
- {
- this.setBounds(new Rectangle(10, 10, 1013, 629));
- this.setLayout(new KDLayout());
- this.putClientProperty("OriginalBounds", new Rectangle(10, 10, 1013, 629));
- tblMain.setBounds(new Rectangle(10, 10, 996, 580));
- this.add(tblMain, new KDLayout.Constraints(10, 10, 996, 580, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_BOTTOM | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT));
- }
- /**
- * output initUIMenuBarLayout method
- */
- public void initUIMenuBarLayout()
- {
- this.menuBar.add(menuFile);
- this.menuBar.add(menuEdit);
- this.menuBar.add(MenuService);
- this.menuBar.add(menuView);
- this.menuBar.add(menuBiz);
- this.menuBar.add(menuWorkFlow);
- this.menuBar.add(menuTools);
- this.menuBar.add(menuHelp);
- //menuFile
- menuFile.add(menuItemAddNew);
- menuFile.add(menuItemImportData);
- menuFile.add(menuItemCloudFeed);
- menuFile.add(menuItemExportData);
- menuFile.add(menuItemCloudScreen);
- menuFile.add(separatorFile1);
- menuFile.add(menuItemCloudShare);
- menuFile.add(MenuItemAttachment);
- menuFile.add(kDSeparator1);
- menuFile.add(kdSeparatorFWFile1);
- menuFile.add(menuItemPageSetup);
- menuFile.add(menuItemPrint);
- menuFile.add(menuItemPrintPreview);
- menuFile.add(menuItemBatchPrint);
- menuFile.add(menuItemBatchPrintView);
- menuFile.add(kDSeparator2);
- menuFile.add(menuItemExitCurrent);
- //menuEdit
- menuEdit.add(menuItemEdit);
- menuEdit.add(menuItemRemove);
- menuEdit.add(kDSeparator3);
- menuEdit.add(menuItemCreateTo);
- menuEdit.add(menuItemCopyTo);
- menuEdit.add(kDSeparator4);
- //MenuService
- MenuService.add(MenuItemKnowStore);
- MenuService.add(MenuItemAnwser);
- MenuService.add(SepratorService);
- MenuService.add(MenuItemRemoteAssist);
- //menuView
- menuView.add(menuItemView);
- menuView.add(menuItemLocate);
- menuView.add(kDSeparator5);
- menuView.add(menuItemQuery);
- menuView.add(menuItemRefresh);
- menuView.add(menuItemSwitchView);
- menuView.add(separatorView1);
- menuView.add(menuItemTraceUp);
- menuView.add(menuItemTraceDown);
- menuView.add(menuItemQueryScheme);
- menuView.add(kDSeparator6);
- //menuBiz
- menuBiz.add(menuItemCancelCancel);
- menuBiz.add(menuItemCancel);
- menuBiz.add(menuItemVoucher);
- menuBiz.add(menuItemDelVoucher);
- menuBiz.add(menuTool);
- menuBiz.add(menuItemPCVoucher);
- menuBiz.add(menuItemAudit);
- menuBiz.add(menuItemDelPCVoucher);
- menuBiz.add(menuItemUnaudit);
- menuBiz.add(menuItemAbort);
- menuBiz.add(menuItemAbandon);
- //menuTool
- menuTool.add(menuItemSendMessage);
- menuTool.add(menuItemCalculator);
- menuTool.add(menuItemToolBarCustom);
- //menuWorkFlow
- menuWorkFlow.add(menuItemViewDoProccess);
- menuWorkFlow.add(menuItemMultiapprove);
- menuWorkFlow.add(menuItemWorkFlowG);
- menuWorkFlow.add(menuItemWorkFlowList);
- menuWorkFlow.add(separatorWF1);
- menuWorkFlow.add(menuItemNextPerson);
- menuWorkFlow.add(menuItemAuditResult);
- menuWorkFlow.add(kDSeparator7);
- menuWorkFlow.add(menuItemSendSmsMessage);
- //menuTools
- menuTools.add(menuMail);
- menuTools.add(menuItemStartWorkFlow);
- menuTools.add(menuItemPublishReport);
- //menuMail
- menuMail.add(menuItemToHTML);
- menuMail.add(menuItemCopyScreen);
- menuMail.add(menuItemToExcel);
- //menuHelp
- menuHelp.add(menuItemHelp);
- menuHelp.add(kDSeparator12);
- menuHelp.add(menuItemRegPro);
- menuHelp.add(menuItemPersonalSite);
- menuHelp.add(helpseparatorDiv);
- menuHelp.add(menuitemProductval);
- menuHelp.add(kDSeparatorProduct);
- menuHelp.add(menuItemAbout);
- }
- /**
- * output initUIToolBarLayout method
- */
- public void initUIToolBarLayout()
- {
- this.toolBar.add(btnAddNew);
- this.toolBar.add(btnCloud);
- this.toolBar.add(btnView);
- this.toolBar.add(btnEdit);
- this.toolBar.add(btnXunTong);
- this.toolBar.add(btnRemove);
- this.toolBar.add(btnRefresh);
- this.toolBar.add(kDSeparatorCloud);
- this.toolBar.add(btnQuery);
- this.toolBar.add(btnLocate);
- this.toolBar.add(btnAttachment);
- this.toolBar.add(separatorFW1);
- this.toolBar.add(btnPageSetup);
- this.toolBar.add(btnPrint);
- this.toolBar.add(btnPrintPreview);
- this.toolBar.add(btnBatchPrint);
- this.toolBar.add(btnBatchPrintPreview);
- this.toolBar.add(separatorFW2);
- this.toolBar.add(btnCreateTo);
- this.toolBar.add(btnCopyTo);
- this.toolBar.add(btnQueryScheme);
- this.toolBar.add(separatorFW3);
- this.toolBar.add(btnTraceUp);
- this.toolBar.add(btnTraceDown);
- this.toolBar.add(btnWorkFlowG);
- this.toolBar.add(btnWorkFlowList);
- this.toolBar.add(btnSignature);
- this.toolBar.add(btnViewSignature);
- this.toolBar.add(separatorFW4);
- this.toolBar.add(btnVoucher);
- this.toolBar.add(btnNumberSign);
- this.toolBar.add(btnDelVoucher);
- this.toolBar.add(btnMultiapprove);
- this.toolBar.add(btnNextPerson);
- this.toolBar.add(btnPCVoucher);
- this.toolBar.add(btnAuditResult);
- this.toolBar.add(btnCancel);
- this.toolBar.add(btnDelPCVoucher);
- this.toolBar.add(btnCancelCancel);
- this.toolBar.add(btnWFViewdoProccess);
- this.toolBar.add(btnAudit);
- this.toolBar.add(btnUnaudit);
- this.toolBar.add(btnAbort);
- }
- //Regiester control's property binding.
- private void registerBindings(){
- }
- //Regiester UI State
- private void registerUIState(){
- }
- public String getUIHandlerClassName() {
- return "com.kingdee.eas.custom.bill.salary.app.SalaryBagListUIHandler";
- }
- public IUIActionPostman prepareInit() {
- IUIActionPostman clientHanlder = super.prepareInit();
- if (clientHanlder != null) {
- RequestContext request = new RequestContext();
- request.setClassName(getUIHandlerClassName());
- clientHanlder.setRequestContext(request);
- }
- return clientHanlder;
- }
-
- public boolean isPrepareInit() {
- return false;
- }
- protected void initUIP() {
- super.initUIP();
- }
-
-
- /**
- * output setDataObject method
- */
- public void setDataObject(IObjectValue dataObject)
- {
- IObjectValue ov = dataObject;
- super.setDataObject(ov);
- }
- protected void Remove() throws Exception {
- IObjectValue editData = getBizInterface().getValue(new com.kingdee.bos.dao.ormapping.ObjectUuidPK(BOSUuid.read(getSelectedKeyValue())));
- super.Remove();
- recycleNumberByOrg(editData,"",editData.getString("number"));
- }
- protected void recycleNumberByOrg(IObjectValue editData,String orgType,String number) {
- if (!StringUtils.isEmpty(number))
- {
- try {
- String companyID = null;
- com.kingdee.eas.base.codingrule.ICodingRuleManager iCodingRuleManager = com.kingdee.eas.base.codingrule.CodingRuleManagerFactory.getRemoteInstance();
- if(!com.kingdee.util.StringUtils.isEmpty(orgType) && !"NONE".equalsIgnoreCase(orgType) && com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum(orgType))!=null) {
- companyID =com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum(orgType)).getString("id");
- }
- else if (com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit() != null) {
- companyID = ((com.kingdee.eas.basedata.org.OrgUnitInfo)com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit()).getString("id");
- }
- if (!StringUtils.isEmpty(companyID) && iCodingRuleManager.isExist(editData, companyID) && iCodingRuleManager.isUseIntermitNumber(editData, companyID)) {
- iCodingRuleManager.recycleNumber(editData,companyID,number);
- }
- }
- catch (Exception e)
- {
- handUIException(e);
- }
- }
- }
- protected com.kingdee.eas.basedata.org.OrgType getMainBizOrgType() {
- return com.kingdee.eas.basedata.org.OrgType.getEnum("Admin");
- }
- /**
- * output loadFields method
- */
- public void loadFields()
- {
- dataBinder.loadFields();
- }
- /**
- * output storeFields method
- */
- public void storeFields()
- {
- dataBinder.storeFields();
- }
- /**
- * ????????§µ??
- */
- protected void registerValidator() {
- getValidateHelper().setCustomValidator( getValidator() );
- }
- /**
- * output setOprtState method
- */
- public void setOprtState(String oprtType)
- {
- super.setOprtState(oprtType);
- }
- public SelectorItemCollection getBOTPSelectors() {
- SelectorItemCollection sic = new SelectorItemCollection();
- return sic;
- }
- protected FilterInfo getDefaultFilterForQuery() {
- FilterInfo filter = super.getDefaultFilterForQuery();
- if (filter == null)
- filter = new FilterInfo();
- FilterInfo otherFilter = com.kingdee.eas.framework.FrameWorkUtils.getF7FilterInfoByAuthorizedOrg(com.kingdee.eas.basedata.org.OrgType.getEnum("Admin"),"adminOrgUnit.id",true);
- if (otherFilter != null) {
- for(int i=0,n=otherFilter.getFilterItems().size();i<n;i++){
- FilterItemInfo curFilterItem =otherFilter.getFilterItems().get(i);
- if(curFilterItem.getCompareValue()!=null && (curFilterItem.getCompareValue() instanceof String)){
- if("*".equalsIgnoreCase((String)(curFilterItem.getCompareValue()))){
- BOSUuid nullUuid=BOSUuid.create("nullnull");
- curFilterItem.setCompareValue(nullUuid.toString());
- }
- }
- }
- try {
- if (com.kingdee.eas.framework.util.FilterUtility.hasFilterItem(filter))
- filter.mergeFilter(otherFilter, "AND");
- else
- filter = otherFilter;
- } catch (Exception e) {
- this.handUIException(e);
- }
- }
- return filter;
- }
- /**
- * output getSelectors method
- */
- public SelectorItemCollection getSelectors()
- {
- SelectorItemCollection sic = new SelectorItemCollection();
- String selectorAll = System.getProperty("selector.all");
- if(StringUtils.isEmpty(selectorAll)){
- selectorAll = "true";
- }
- sic.add(new SelectorItemInfo("id"));
- sic.add(new SelectorItemInfo("number"));
- sic.add(new SelectorItemInfo("bizDate"));
- sic.add(new SelectorItemInfo("description"));
- sic.add(new SelectorItemInfo("applier.id"));
- sic.add(new SelectorItemInfo("applier.name"));
- sic.add(new SelectorItemInfo("adminOrg.id"));
- sic.add(new SelectorItemInfo("adminOrg.displayName"));
- sic.add(new SelectorItemInfo("applyDate"));
- sic.add(new SelectorItemInfo("hrOrgUnit.id"));
- sic.add(new SelectorItemInfo("hrOrgUnit.name"));
- sic.add(new SelectorItemInfo("billState"));
- sic.add(new SelectorItemInfo("approveType"));
- sic.add(new SelectorItemInfo("adminOrgUnit.name"));
- sic.add(new SelectorItemInfo("entrys.months"));
- sic.add(new SelectorItemInfo("entrys.moneys"));
- sic.add(new SelectorItemInfo("entrys.beforeAmount"));
- sic.add(new SelectorItemInfo("entrys.reissueAmount"));
- sic.add(new SelectorItemInfo("entrys.amountPayable"));
- sic.add(new SelectorItemInfo("person.name"));
- sic.add(new SelectorItemInfo("money"));
- sic.add(new SelectorItemInfo("startDate"));
- sic.add(new SelectorItemInfo("endDate"));
- sic.add(new SelectorItemInfo("reissueDate"));
- sic.add(new SelectorItemInfo("status"));
- return sic;
- }
protected java.util.List getQuerySorterFields()
- {
- java.util.List sorterFieldList = new ArrayList();
- sorterFieldList.add("number");
- return sorterFieldList;
- }
-
protected java.util.List getQueryPKFields()
- {
- java.util.List pkList = new ArrayList();
- pkList.add("id");
- return pkList;
- }
-
- /**
- * output actionRemove_actionPerformed method
- */
- public void actionRemove_actionPerformed(ActionEvent e) throws Exception
- {
- super.actionRemove_actionPerformed(e);
- }
-
- /**
- * output actionAudit_actionPerformed method
- */
- public void actionAudit_actionPerformed(ActionEvent e) throws Exception
- {
- super.actionAudit_actionPerformed(e);
- }
-
- /**
- * output actionUnaudit_actionPerformed method
- */
- public void actionUnaudit_actionPerformed(ActionEvent e) throws Exception
- {
- super.actionUnaudit_actionPerformed(e);
- }
-
- /**
- * output actionTDPrint_actionPerformed method
- */
- public void actionTDPrint_actionPerformed(ActionEvent e) throws Exception
- {
- checkSelected();
- ArrayList idList =super.getSelectedIdValues();
- if (idList == null || idList.size() == 0 || getTDQueryPK() == null || getTDFileName() == null)
- return;
- com.kingdee.bos.ctrl.kdf.data.impl.BOSQueryDelegate data = new com.kingdee.eas.framework.util.CommonDataProvider(idList,getTDQueryPK());
- com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper appHlp = new com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper();
- appHlp.print(getTDFileName(), data, javax.swing.SwingUtilities.getWindowAncestor(this));
- }
-
- /**
- * output actionTDPrintPreview_actionPerformed method
- */
- public void actionTDPrintPreview_actionPerformed(ActionEvent e) throws Exception
- {
- checkSelected();
- ArrayList idList =super.getSelectedIdValues();
- if (idList == null || idList.size() == 0 || getTDQueryPK() == null || getTDFileName() == null)
- return;
- com.kingdee.bos.ctrl.kdf.data.impl.BOSQueryDelegate data = new com.kingdee.eas.framework.util.CommonDataProvider(idList,getTDQueryPK());
- com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper appHlp = new com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper();
- appHlp.printPreview(getTDFileName(), data, javax.swing.SwingUtilities.getWindowAncestor(this));
- }
- public RequestContext prepareActionRemove(IItemAction itemAction) throws Exception {
- RequestContext request = super.prepareActionRemove(itemAction);
- if (request != null) {
- request.setClassName(getUIHandlerClassName());
- }
- return request;
- }
-
- public boolean isPrepareActionRemove() {
- return false;
- }
- public RequestContext prepareActionAudit(IItemAction itemAction) throws Exception {
- RequestContext request = super.prepareActionAudit(itemAction);
- if (request != null) {
- request.setClassName(getUIHandlerClassName());
- }
- return request;
- }
-
- public boolean isPrepareActionAudit() {
- return false;
- }
- public RequestContext prepareActionUnaudit(IItemAction itemAction) throws Exception {
- RequestContext request = super.prepareActionUnaudit(itemAction);
- if (request != null) {
- request.setClassName(getUIHandlerClassName());
- }
- return request;
- }
-
- public boolean isPrepareActionUnaudit() {
- return false;
- }
- public RequestContext prepareActionTDPrint(IItemAction itemAction) throws Exception {
- RequestContext request = new RequestContext();
- if (request != null) {
- request.setClassName(getUIHandlerClassName());
- }
- return request;
- }
-
- public boolean isPrepareActionTDPrint() {
- return false;
- }
- public RequestContext prepareActionTDPrintPreview(IItemAction itemAction) throws Exception {
- RequestContext request = new RequestContext();
- if (request != null) {
- request.setClassName(getUIHandlerClassName());
- }
- return request;
- }
-
- public boolean isPrepareActionTDPrintPreview() {
- return false;
- }
- /**
- * output ActionTDPrint class
- */
- protected class ActionTDPrint extends ItemAction {
-
- public ActionTDPrint()
- {
- this(null);
- }
- public ActionTDPrint(IUIObject uiObject)
- {
- super(uiObject);
-
- String _tempStr = null;
- _tempStr = resHelper.getString("ActionTDPrint.SHORT_DESCRIPTION");
- this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionTDPrint.LONG_DESCRIPTION");
- this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionTDPrint.NAME");
- this.putValue(ItemAction.NAME, _tempStr);
- }
- public void actionPerformed(ActionEvent e)
- {
- getUIContext().put("ORG.PK", getOrgPK(this));
- innerActionPerformed("eas", AbstractSalaryBagListUI.this, "ActionTDPrint", "actionTDPrint_actionPerformed", e);
- }
- }
- /**
- * output ActionTDPrintPreview class
- */
- protected class ActionTDPrintPreview extends ItemAction {
-
- public ActionTDPrintPreview()
- {
- this(null);
- }
- public ActionTDPrintPreview(IUIObject uiObject)
- {
- super(uiObject);
-
- String _tempStr = null;
- _tempStr = resHelper.getString("ActionTDPrintPreview.SHORT_DESCRIPTION");
- this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionTDPrintPreview.LONG_DESCRIPTION");
- this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
- _tempStr = resHelper.getString("ActionTDPrintPreview.NAME");
- this.putValue(ItemAction.NAME, _tempStr);
- }
- public void actionPerformed(ActionEvent e)
- {
- getUIContext().put("ORG.PK", getOrgPK(this));
- innerActionPerformed("eas", AbstractSalaryBagListUI.this, "ActionTDPrintPreview", "actionTDPrintPreview_actionPerformed", e);
- }
- }
- /**
- * output getMetaDataPK method
- */
- public IMetaDataPK getMetaDataPK()
- {
- return new MetaDataPK("com.kingdee.eas.custom.bill.salary.client", "SalaryBagListUI");
- }
- /**
- * output isBindWorkFlow method
- */
- public boolean isBindWorkFlow()
- {
- return true;
- }
- /**
- * output getEditUIName method
- */
- protected String getEditUIName()
- {
- return com.kingdee.eas.custom.bill.salary.client.SalaryBagEditUI.class.getName();
- }
- /**
- * output getBizInterface method
- */
- protected com.kingdee.eas.framework.ICoreBase getBizInterface() throws Exception
- {
- return com.kingdee.eas.custom.bill.salary.SalaryBagFactory.getRemoteInstance();
- }
- /**
- * output createNewData method
- */
- protected IObjectValue createNewData()
- {
- com.kingdee.eas.custom.bill.salary.SalaryBagInfo objectValue = new com.kingdee.eas.custom.bill.salary.SalaryBagInfo();
- return objectValue;
- }
- /**
- * output getMergeColumnKeys method
- */
- public String[] getMergeColumnKeys()
- {
- return new String[] {"id","number","applier.id","applier.name","adminOrgUnit.id","adminOrgUnit.displayName","applyDate","billState","bizDate","hrOrgUnit.id","hrOrgUnit.name","description","approveType","adminOrgUnit.name","person.name","money","startDate","endDate","reissueDate","status"};
- }
- protected String getTDFileName() {
- return "/bim/custom/bill/salary/SalaryBag";
- }
- protected IMetaDataPK getTDQueryPK() {
- return new MetaDataPK("com.kingdee.eas.custom.bill.salary.app.SalaryBagQuery");
- }
- }
|