b42601d5034fbbefb8965a4e0f086c27d644e290.svn-base 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. /**
  2. * output package name
  3. */
  4. package com.kingdee.eas.custom.bd.param.client;
  5. import org.apache.log4j.*;
  6. import java.awt.*;
  7. import java.awt.event.*;
  8. import java.util.*;
  9. import javax.swing.border.*;
  10. import javax.swing.BorderFactory;
  11. import javax.swing.event.*;
  12. import javax.swing.KeyStroke;
  13. import com.kingdee.bos.ctrl.swing.*;
  14. import com.kingdee.bos.ctrl.kdf.table.*;
  15. import com.kingdee.bos.ctrl.kdf.data.event.*;
  16. import com.kingdee.bos.dao.*;
  17. import com.kingdee.bos.dao.query.*;
  18. import com.kingdee.bos.metadata.*;
  19. import com.kingdee.bos.metadata.entity.*;
  20. import com.kingdee.bos.ui.face.*;
  21. import com.kingdee.bos.ui.util.ResourceBundleHelper;
  22. import com.kingdee.bos.util.BOSUuid;
  23. import com.kingdee.bos.service.ServiceContext;
  24. import com.kingdee.jdbc.rowset.IRowSet;
  25. import com.kingdee.util.enums.EnumUtils;
  26. import com.kingdee.bos.ui.face.UIRuleUtil;
  27. import com.kingdee.bos.ctrl.swing.event.*;
  28. import com.kingdee.bos.ctrl.kdf.table.event.*;
  29. import com.kingdee.bos.ctrl.extendcontrols.*;
  30. import com.kingdee.bos.ctrl.kdf.util.render.*;
  31. import com.kingdee.bos.ui.face.IItemAction;
  32. import com.kingdee.eas.framework.batchHandler.RequestContext;
  33. import com.kingdee.bos.ui.util.IUIActionPostman;
  34. import com.kingdee.bos.appframework.client.servicebinding.ActionProxyFactory;
  35. import com.kingdee.bos.appframework.uistatemanage.ActionStateConst;
  36. import com.kingdee.bos.appframework.validator.ValidateHelper;
  37. import com.kingdee.bos.appframework.uip.UINavigator;
  38. /**
  39. * output class name
  40. */
  41. public abstract class AbstractParamEditUI extends com.kingdee.eas.framework.client.EditUI
  42. {
  43. private static final Logger logger = CoreUIObject.getLogger(AbstractParamEditUI.class);
  44. protected KDLabelContainer contId;
  45. protected KDLabelContainer contCreator;
  46. protected KDLabelContainer contCreateTime;
  47. protected KDLabelContainer contLastUpdateUser;
  48. protected KDLabelContainer contLastUpdateTime;
  49. protected KDLabelContainer contCU;
  50. protected KDLabelContainer contBaseInfoId;
  51. protected KDCheckBox chkIsComUse;
  52. protected KDLabelContainer contIndex;
  53. protected KDLabelContainer contHrOrgUse;
  54. protected KDLabelContainer contState;
  55. protected KDLabelContainer contChangeType;
  56. protected KDTextField txtId;
  57. protected KDBizPromptBox prmtCreator;
  58. protected KDTimePicker pkCreateTime;
  59. protected KDBizPromptBox prmtLastUpdateUser;
  60. protected KDTimePicker pkLastUpdateTime;
  61. protected KDBizPromptBox prmtCU;
  62. protected KDTextField txtBaseInfoId;
  63. protected KDTextField txtIndex;
  64. protected KDBizPromptBox prmtHrOrgUse;
  65. protected KDComboBox comboState;
  66. protected KDComboBox comboChangeType;
  67. protected com.kingdee.eas.framework.CoreBaseInfo editData = null;
  68. protected com.kingdee.eas.custom.bd.param.ParamInfo entityBaseItemCustom = null;
  69. /**
  70. * output class constructor
  71. */
  72. public AbstractParamEditUI() throws Exception
  73. {
  74. super();
  75. this.defaultObjectName = "editData";
  76. jbInit();
  77. initUIP();
  78. }
  79. /**
  80. * output jbInit method
  81. */
  82. private void jbInit() throws Exception
  83. {
  84. this.resHelper = new ResourceBundleHelper(AbstractParamEditUI.class.getName());
  85. this.setUITitle(resHelper.getString("this.title"));
  86. this.contId = new KDLabelContainer();
  87. this.contCreator = new KDLabelContainer();
  88. this.contCreateTime = new KDLabelContainer();
  89. this.contLastUpdateUser = new KDLabelContainer();
  90. this.contLastUpdateTime = new KDLabelContainer();
  91. this.contCU = new KDLabelContainer();
  92. this.contBaseInfoId = new KDLabelContainer();
  93. this.chkIsComUse = new KDCheckBox();
  94. this.contIndex = new KDLabelContainer();
  95. this.contHrOrgUse = new KDLabelContainer();
  96. this.contState = new KDLabelContainer();
  97. this.contChangeType = new KDLabelContainer();
  98. this.txtId = new KDTextField();
  99. this.prmtCreator = new KDBizPromptBox();
  100. this.pkCreateTime = new KDTimePicker();
  101. this.prmtLastUpdateUser = new KDBizPromptBox();
  102. this.pkLastUpdateTime = new KDTimePicker();
  103. this.prmtCU = new KDBizPromptBox();
  104. this.txtBaseInfoId = new KDTextField();
  105. this.txtIndex = new KDTextField();
  106. this.prmtHrOrgUse = new KDBizPromptBox();
  107. this.comboState = new KDComboBox();
  108. this.comboChangeType = new KDComboBox();
  109. this.contId.setName("contId");
  110. this.contCreator.setName("contCreator");
  111. this.contCreateTime.setName("contCreateTime");
  112. this.contLastUpdateUser.setName("contLastUpdateUser");
  113. this.contLastUpdateTime.setName("contLastUpdateTime");
  114. this.contCU.setName("contCU");
  115. this.contBaseInfoId.setName("contBaseInfoId");
  116. this.chkIsComUse.setName("chkIsComUse");
  117. this.contIndex.setName("contIndex");
  118. this.contHrOrgUse.setName("contHrOrgUse");
  119. this.contState.setName("contState");
  120. this.contChangeType.setName("contChangeType");
  121. this.txtId.setName("txtId");
  122. this.prmtCreator.setName("prmtCreator");
  123. this.pkCreateTime.setName("pkCreateTime");
  124. this.prmtLastUpdateUser.setName("prmtLastUpdateUser");
  125. this.pkLastUpdateTime.setName("pkLastUpdateTime");
  126. this.prmtCU.setName("prmtCU");
  127. this.txtBaseInfoId.setName("txtBaseInfoId");
  128. this.txtIndex.setName("txtIndex");
  129. this.prmtHrOrgUse.setName("prmtHrOrgUse");
  130. this.comboState.setName("comboState");
  131. this.comboChangeType.setName("comboChangeType");
  132. // CoreUI
  133. this.btnPageSetup.setVisible(false);
  134. this.btnCloud.setVisible(false);
  135. this.btnXunTong.setVisible(false);
  136. this.kDSeparatorCloud.setVisible(false);
  137. this.menuItemPageSetup.setVisible(false);
  138. this.menuItemCloudFeed.setVisible(false);
  139. this.menuItemCloudScreen.setEnabled(false);
  140. this.menuItemCloudScreen.setVisible(false);
  141. this.menuItemCloudShare.setVisible(false);
  142. this.kdSeparatorFWFile1.setVisible(false);
  143. this.kDSeparator2.setVisible(false);
  144. this.menuItemPrint.setVisible(false);
  145. this.menuItemPrintPreview.setVisible(false);
  146. this.kDSeparator4.setVisible(false);
  147. this.kDSeparator4.setEnabled(false);
  148. this.rMenuItemSubmit.setVisible(false);
  149. this.rMenuItemSubmit.setEnabled(false);
  150. this.rMenuItemSubmitAndAddNew.setVisible(false);
  151. this.rMenuItemSubmitAndAddNew.setEnabled(false);
  152. this.rMenuItemSubmitAndPrint.setVisible(false);
  153. this.rMenuItemSubmitAndPrint.setEnabled(false);
  154. this.btnReset.setEnabled(false);
  155. this.btnReset.setVisible(false);
  156. this.menuItemReset.setEnabled(false);
  157. this.menuItemReset.setVisible(false);
  158. // contId
  159. this.contId.setBoundLabelText(resHelper.getString("contId.boundLabelText"));
  160. this.contId.setBoundLabelLength(100);
  161. this.contId.setBoundLabelUnderline(true);
  162. // contCreator
  163. this.contCreator.setBoundLabelText(resHelper.getString("contCreator.boundLabelText"));
  164. this.contCreator.setBoundLabelLength(100);
  165. this.contCreator.setBoundLabelUnderline(true);
  166. // contCreateTime
  167. this.contCreateTime.setBoundLabelText(resHelper.getString("contCreateTime.boundLabelText"));
  168. this.contCreateTime.setBoundLabelLength(100);
  169. this.contCreateTime.setBoundLabelUnderline(true);
  170. // contLastUpdateUser
  171. this.contLastUpdateUser.setBoundLabelText(resHelper.getString("contLastUpdateUser.boundLabelText"));
  172. this.contLastUpdateUser.setBoundLabelLength(100);
  173. this.contLastUpdateUser.setBoundLabelUnderline(true);
  174. // contLastUpdateTime
  175. this.contLastUpdateTime.setBoundLabelText(resHelper.getString("contLastUpdateTime.boundLabelText"));
  176. this.contLastUpdateTime.setBoundLabelLength(100);
  177. this.contLastUpdateTime.setBoundLabelUnderline(true);
  178. // contCU
  179. this.contCU.setBoundLabelText(resHelper.getString("contCU.boundLabelText"));
  180. this.contCU.setBoundLabelLength(100);
  181. this.contCU.setBoundLabelUnderline(true);
  182. // contBaseInfoId
  183. this.contBaseInfoId.setBoundLabelText(resHelper.getString("contBaseInfoId.boundLabelText"));
  184. this.contBaseInfoId.setBoundLabelLength(100);
  185. this.contBaseInfoId.setBoundLabelUnderline(true);
  186. // chkIsComUse
  187. this.chkIsComUse.setText(resHelper.getString("chkIsComUse.text"));
  188. // contIndex
  189. this.contIndex.setBoundLabelText(resHelper.getString("contIndex.boundLabelText"));
  190. this.contIndex.setBoundLabelLength(100);
  191. this.contIndex.setBoundLabelUnderline(true);
  192. // contHrOrgUse
  193. this.contHrOrgUse.setBoundLabelText(resHelper.getString("contHrOrgUse.boundLabelText"));
  194. this.contHrOrgUse.setBoundLabelLength(100);
  195. this.contHrOrgUse.setBoundLabelUnderline(true);
  196. // contState
  197. this.contState.setBoundLabelText(resHelper.getString("contState.boundLabelText"));
  198. this.contState.setBoundLabelLength(100);
  199. this.contState.setBoundLabelUnderline(true);
  200. // contChangeType
  201. this.contChangeType.setBoundLabelText(resHelper.getString("contChangeType.boundLabelText"));
  202. this.contChangeType.setBoundLabelLength(100);
  203. this.contChangeType.setBoundLabelUnderline(true);
  204. // txtId
  205. this.txtId.setMaxLength(44);
  206. // prmtCreator
  207. // pkCreateTime
  208. // prmtLastUpdateUser
  209. // pkLastUpdateTime
  210. // prmtCU
  211. // txtBaseInfoId
  212. this.txtBaseInfoId.setMaxLength(44);
  213. // txtIndex
  214. this.txtIndex.setMaxLength(44);
  215. // prmtHrOrgUse
  216. // comboState
  217. this.comboState.addItems(EnumUtils.getEnumList("com.kingdee.shr.base.syssetting.DisatributeState").toArray());
  218. // comboChangeType
  219. this.comboChangeType.addItems(EnumUtils.getEnumList("com.kingdee.shr.base.syssetting.BaseDataChangeType").toArray());
  220. //Register control's property binding
  221. registerBindings();
  222. registerUIState();
  223. }
  224. public KDToolBar[] getUIMultiToolBar(){
  225. java.util.List list = new ArrayList();
  226. KDToolBar[] bars = super.getUIMultiToolBar();
  227. if (bars != null) {
  228. list.addAll(Arrays.asList(bars));
  229. }
  230. return (KDToolBar[])list.toArray(new KDToolBar[list.size()]);
  231. }
  232. /**
  233. * output initUIContentLayout method
  234. */
  235. public void initUIContentLayout()
  236. {
  237. this.setBounds(new Rectangle(10, 10, 1013, 629));
  238. this.setLayout(null);
  239. contId.setBounds(new Rectangle(10, 10, 270, 19));
  240. this.add(contId, null);
  241. contCreator.setBounds(new Rectangle(300, 10, 270, 19));
  242. this.add(contCreator, null);
  243. contCreateTime.setBounds(new Rectangle(10, 40, 270, 19));
  244. this.add(contCreateTime, null);
  245. contLastUpdateUser.setBounds(new Rectangle(300, 40, 270, 19));
  246. this.add(contLastUpdateUser, null);
  247. contLastUpdateTime.setBounds(new Rectangle(10, 70, 270, 19));
  248. this.add(contLastUpdateTime, null);
  249. contCU.setBounds(new Rectangle(300, 70, 270, 19));
  250. this.add(contCU, null);
  251. contBaseInfoId.setBounds(new Rectangle(10, 100, 270, 19));
  252. this.add(contBaseInfoId, null);
  253. chkIsComUse.setBounds(new Rectangle(300, 100, 140, 19));
  254. this.add(chkIsComUse, null);
  255. contIndex.setBounds(new Rectangle(10, 130, 270, 19));
  256. this.add(contIndex, null);
  257. contHrOrgUse.setBounds(new Rectangle(300, 130, 270, 19));
  258. this.add(contHrOrgUse, null);
  259. contState.setBounds(new Rectangle(10, 160, 270, 19));
  260. this.add(contState, null);
  261. contChangeType.setBounds(new Rectangle(300, 160, 270, 19));
  262. this.add(contChangeType, null);
  263. //contId
  264. contId.setBoundEditor(txtId);
  265. //contCreator
  266. contCreator.setBoundEditor(prmtCreator);
  267. //contCreateTime
  268. contCreateTime.setBoundEditor(pkCreateTime);
  269. //contLastUpdateUser
  270. contLastUpdateUser.setBoundEditor(prmtLastUpdateUser);
  271. //contLastUpdateTime
  272. contLastUpdateTime.setBoundEditor(pkLastUpdateTime);
  273. //contCU
  274. contCU.setBoundEditor(prmtCU);
  275. //contBaseInfoId
  276. contBaseInfoId.setBoundEditor(txtBaseInfoId);
  277. //contIndex
  278. contIndex.setBoundEditor(txtIndex);
  279. //contHrOrgUse
  280. contHrOrgUse.setBoundEditor(prmtHrOrgUse);
  281. //contState
  282. contState.setBoundEditor(comboState);
  283. //contChangeType
  284. contChangeType.setBoundEditor(comboChangeType);
  285. }
  286. /**
  287. * output initUIMenuBarLayout method
  288. */
  289. public void initUIMenuBarLayout()
  290. {
  291. this.menuBar.add(menuFile);
  292. this.menuBar.add(menuEdit);
  293. this.menuBar.add(MenuService);
  294. this.menuBar.add(menuView);
  295. this.menuBar.add(menuBiz);
  296. this.menuBar.add(menuTool);
  297. this.menuBar.add(menuHelp);
  298. //menuFile
  299. menuFile.add(menuItemAddNew);
  300. menuFile.add(kDSeparator1);
  301. menuFile.add(menuItemCloudFeed);
  302. menuFile.add(menuItemSave);
  303. menuFile.add(menuItemCloudScreen);
  304. menuFile.add(menuItemSubmit);
  305. menuFile.add(menuItemCloudShare);
  306. menuFile.add(menuSubmitOption);
  307. menuFile.add(kdSeparatorFWFile1);
  308. menuFile.add(rMenuItemSubmit);
  309. menuFile.add(rMenuItemSubmitAndAddNew);
  310. menuFile.add(rMenuItemSubmitAndPrint);
  311. menuFile.add(separatorFile1);
  312. menuFile.add(MenuItemAttachment);
  313. menuFile.add(kDSeparator2);
  314. menuFile.add(menuItemPageSetup);
  315. menuFile.add(menuItemPrint);
  316. menuFile.add(menuItemPrintPreview);
  317. menuFile.add(kDSeparator3);
  318. menuFile.add(menuItemExitCurrent);
  319. //menuSubmitOption
  320. menuSubmitOption.add(chkMenuItemSubmitAndAddNew);
  321. menuSubmitOption.add(chkMenuItemSubmitAndPrint);
  322. //menuEdit
  323. menuEdit.add(menuItemCopy);
  324. menuEdit.add(menuItemEdit);
  325. menuEdit.add(menuItemRemove);
  326. menuEdit.add(kDSeparator4);
  327. menuEdit.add(menuItemReset);
  328. //MenuService
  329. MenuService.add(MenuItemKnowStore);
  330. MenuService.add(MenuItemAnwser);
  331. MenuService.add(SepratorService);
  332. MenuService.add(MenuItemRemoteAssist);
  333. //menuView
  334. menuView.add(menuItemFirst);
  335. menuView.add(menuItemPre);
  336. menuView.add(menuItemNext);
  337. menuView.add(menuItemLast);
  338. //menuBiz
  339. menuBiz.add(menuItemCancelCancel);
  340. menuBiz.add(menuItemCancel);
  341. //menuTool
  342. menuTool.add(menuItemMsgFormat);
  343. menuTool.add(menuItemSendMessage);
  344. menuTool.add(menuItemCalculator);
  345. menuTool.add(menuItemToolBarCustom);
  346. //menuHelp
  347. menuHelp.add(menuItemHelp);
  348. menuHelp.add(kDSeparator12);
  349. menuHelp.add(menuItemRegPro);
  350. menuHelp.add(menuItemPersonalSite);
  351. menuHelp.add(helpseparatorDiv);
  352. menuHelp.add(menuitemProductval);
  353. menuHelp.add(kDSeparatorProduct);
  354. menuHelp.add(menuItemAbout);
  355. }
  356. /**
  357. * output initUIToolBarLayout method
  358. */
  359. public void initUIToolBarLayout()
  360. {
  361. this.toolBar.add(btnAddNew);
  362. this.toolBar.add(btnCloud);
  363. this.toolBar.add(btnEdit);
  364. this.toolBar.add(btnXunTong);
  365. this.toolBar.add(btnReset);
  366. this.toolBar.add(kDSeparatorCloud);
  367. this.toolBar.add(btnSave);
  368. this.toolBar.add(btnSubmit);
  369. this.toolBar.add(btnCopy);
  370. this.toolBar.add(btnRemove);
  371. this.toolBar.add(btnAttachment);
  372. this.toolBar.add(separatorFW1);
  373. this.toolBar.add(btnPageSetup);
  374. this.toolBar.add(btnPrint);
  375. this.toolBar.add(btnPrintPreview);
  376. this.toolBar.add(separatorFW2);
  377. this.toolBar.add(btnFirst);
  378. this.toolBar.add(btnPre);
  379. this.toolBar.add(btnNext);
  380. this.toolBar.add(btnLast);
  381. this.toolBar.add(separatorFW3);
  382. this.toolBar.add(btnCancelCancel);
  383. this.toolBar.add(btnCancel);
  384. }
  385. //Regiester control's property binding.
  386. private void registerBindings(){
  387. dataBinder.registerBinding("isComUse", boolean.class, this.chkIsComUse, "selected");
  388. dataBinder.registerBinding("id", BOSUuid.class, this.txtId, "text");
  389. dataBinder.registerBinding("creator", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, "data");
  390. dataBinder.registerBinding("createTime", java.sql.Timestamp.class, this.pkCreateTime, "value");
  391. dataBinder.registerBinding("lastUpdateUser", com.kingdee.eas.base.permission.UserInfo.class, this.prmtLastUpdateUser, "data");
  392. dataBinder.registerBinding("lastUpdateTime", java.sql.Timestamp.class, this.pkLastUpdateTime, "value");
  393. dataBinder.registerBinding("CU", com.kingdee.eas.basedata.org.CtrlUnitInfo.class, this.prmtCU, "data");
  394. dataBinder.registerBinding("baseInfoId", String.class, this.txtBaseInfoId, "text");
  395. dataBinder.registerBinding("index", String.class, this.txtIndex, "text");
  396. dataBinder.registerBinding("hrOrgUse", com.kingdee.eas.basedata.org.HROrgUnitInfo.class, this.prmtHrOrgUse, "data");
  397. dataBinder.registerBinding("state", com.kingdee.shr.base.syssetting.DisatributeState.class, this.comboState, "selectedItem");
  398. dataBinder.registerBinding("changeType", com.kingdee.shr.base.syssetting.BaseDataChangeType.class, this.comboChangeType, "selectedItem");
  399. }
  400. //Regiester UI State
  401. private void registerUIState(){
  402. }
  403. public String getUIHandlerClassName() {
  404. return "com.kingdee.eas.custom.bd.param.app.ParamEditUIHandler";
  405. }
  406. public IUIActionPostman prepareInit() {
  407. IUIActionPostman clientHanlder = super.prepareInit();
  408. if (clientHanlder != null) {
  409. RequestContext request = new RequestContext();
  410. request.setClassName(getUIHandlerClassName());
  411. clientHanlder.setRequestContext(request);
  412. }
  413. return clientHanlder;
  414. }
  415. public boolean isPrepareInit() {
  416. return false;
  417. }
  418. protected void initUIP() {
  419. super.initUIP();
  420. }
  421. /**
  422. * output setDataObject method
  423. */
  424. public void setDataObject(IObjectValue dataObject)
  425. {
  426. IObjectValue ov = dataObject;
  427. super.setDataObject(ov);
  428. this.editData = (com.kingdee.eas.framework.CoreBaseInfo)ov;
  429. }
  430. /**
  431. * output setDataObject method
  432. */
  433. public void setDataObject(String key, IObjectValue dataObject)
  434. {
  435. super.setDataObject(key, dataObject);
  436. }
  437. protected com.kingdee.eas.basedata.org.OrgType getMainBizOrgType() {
  438. return com.kingdee.eas.basedata.org.OrgType.getEnum("HRO");
  439. }
  440. /**
  441. * output loadFields method
  442. */
  443. public void loadFields()
  444. {
  445. dataBinder.loadFields();
  446. }
  447. protected void setOrgF7(KDBizPromptBox f7,com.kingdee.eas.basedata.org.OrgType orgType) throws Exception
  448. {
  449. com.kingdee.eas.basedata.org.client.f7.NewOrgUnitFilterInfoProducer oufip = new com.kingdee.eas.basedata.org.client.f7.NewOrgUnitFilterInfoProducer(orgType);
  450. oufip.getModel().setIsCUFilter(true);
  451. f7.setFilterInfoProducer(oufip);
  452. }
  453. /**
  454. * output storeFields method
  455. */
  456. public void storeFields()
  457. {
  458. dataBinder.storeFields();
  459. }
  460. /**
  461. * ????????§µ??
  462. */
  463. protected void registerValidator() {
  464. getValidateHelper().setCustomValidator( getValidator() );
  465. getValidateHelper().registerBindProperty("isComUse", ValidateHelper.ON_SAVE);
  466. getValidateHelper().registerBindProperty("id", ValidateHelper.ON_SAVE);
  467. getValidateHelper().registerBindProperty("creator", ValidateHelper.ON_SAVE);
  468. getValidateHelper().registerBindProperty("createTime", ValidateHelper.ON_SAVE);
  469. getValidateHelper().registerBindProperty("lastUpdateUser", ValidateHelper.ON_SAVE);
  470. getValidateHelper().registerBindProperty("lastUpdateTime", ValidateHelper.ON_SAVE);
  471. getValidateHelper().registerBindProperty("CU", ValidateHelper.ON_SAVE);
  472. getValidateHelper().registerBindProperty("baseInfoId", ValidateHelper.ON_SAVE);
  473. getValidateHelper().registerBindProperty("index", ValidateHelper.ON_SAVE);
  474. getValidateHelper().registerBindProperty("hrOrgUse", ValidateHelper.ON_SAVE);
  475. getValidateHelper().registerBindProperty("state", ValidateHelper.ON_SAVE);
  476. getValidateHelper().registerBindProperty("changeType", ValidateHelper.ON_SAVE);
  477. }
  478. /**
  479. * output setOprtState method
  480. */
  481. public void setOprtState(String oprtType)
  482. {
  483. super.setOprtState(oprtType);
  484. if (STATUS_ADDNEW.equals(this.oprtState)) {
  485. } else if (STATUS_EDIT.equals(this.oprtState)) {
  486. } else if (STATUS_VIEW.equals(this.oprtState)) {
  487. }
  488. }
  489. /**
  490. * output getSelectors method
  491. */
  492. public SelectorItemCollection getSelectors()
  493. {
  494. SelectorItemCollection sic = new SelectorItemCollection();
  495. String selectorAll = System.getProperty("selector.all");
  496. if(StringUtils.isEmpty(selectorAll)){
  497. selectorAll = "true";
  498. }
  499. sic.add(new SelectorItemInfo("isComUse"));
  500. sic.add(new SelectorItemInfo("id"));
  501. sic.add(new SelectorItemInfo("creator"));
  502. sic.add(new SelectorItemInfo("createTime"));
  503. sic.add(new SelectorItemInfo("lastUpdateUser"));
  504. sic.add(new SelectorItemInfo("lastUpdateTime"));
  505. sic.add(new SelectorItemInfo("CU"));
  506. sic.add(new SelectorItemInfo("baseInfoId"));
  507. sic.add(new SelectorItemInfo("index"));
  508. sic.add(new SelectorItemInfo("hrOrgUse"));
  509. sic.add(new SelectorItemInfo("state"));
  510. sic.add(new SelectorItemInfo("changeType"));
  511. return sic;
  512. }
  513. /**
  514. * output getMetaDataPK method
  515. */
  516. public IMetaDataPK getMetaDataPK()
  517. {
  518. return new MetaDataPK("com.kingdee.eas.custom.bd.param.client", "ParamEditUI");
  519. }
  520. /**
  521. * output getEditUIName method
  522. */
  523. protected String getEditUIName()
  524. {
  525. return ParamEditUI.class.getName();
  526. }
  527. /**
  528. * output getBizInterface method
  529. */
  530. protected com.kingdee.eas.framework.ICoreBase getBizInterface() throws Exception
  531. {
  532. return com.kingdee.eas.custom.bd.param.ParamFactory.getRemoteInstance();
  533. }
  534. /**
  535. * output createNewData method
  536. */
  537. protected IObjectValue createNewData()
  538. {
  539. com.kingdee.eas.custom.bd.param.ParamInfo objectValue = new com.kingdee.eas.custom.bd.param.ParamInfo();
  540. objectValue.setCreator((com.kingdee.eas.base.permission.UserInfo)(com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentUser()));
  541. return objectValue;
  542. }
  543. /**
  544. * output getDetailTable method
  545. */
  546. protected KDTable getDetailTable() {
  547. return null;
  548. }
  549. /**
  550. * output applyDefaultValue method
  551. */
  552. protected void applyDefaultValue(IObjectValue vo) {
  553. }
  554. protected void setFieldsNull(AbstractObjectValue arg0) {
  555. super.setFieldsNull(arg0);
  556. arg0.put("number",null);
  557. }
  558. }