0a52123dfeed702b35d2a110836929252db868b3.svn-base 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268
  1. /**
  2. * output package name
  3. */
  4. package com.kingdee.eas.custom.bill.salary.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 AbstractSalaryBagEditUI extends com.kingdee.eas.hr.base.client.HRBillEditUI
  42. {
  43. private static final Logger logger = CoreUIObject.getLogger(AbstractSalaryBagEditUI.class);
  44. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contNumber;
  45. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contDescription;
  46. protected com.kingdee.bos.ctrl.kdf.table.KDTable kdtEntrys;
  47. protected com.kingdee.eas.framework.client.multiDetail.DetailPanel kdtEntrys_detailPanel = null;
  48. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contApplier;
  49. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contAdminOrg;
  50. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contApplyDate;
  51. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contBillState;
  52. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contadminOrgUnit;
  53. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contperson;
  54. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contmoney;
  55. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstartDate;
  56. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contendDate;
  57. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contreissueDate;
  58. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstatus;
  59. protected com.kingdee.bos.ctrl.swing.KDTextField txtNumber;
  60. protected com.kingdee.bos.ctrl.swing.KDTextField txtDescription;
  61. protected com.kingdee.bos.ctrl.swing.KDTextField txtApplier;
  62. protected com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox prmtAdminOrg;
  63. protected com.kingdee.bos.ctrl.swing.KDDatePicker dpApplyDate;
  64. protected com.kingdee.bos.ctrl.swing.KDComboBox cbBillState;
  65. protected com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox prmtadminOrgUnit;
  66. protected com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox prmtperson;
  67. protected com.kingdee.bos.ctrl.swing.KDFormattedTextField txtmoney;
  68. protected com.kingdee.bos.ctrl.swing.KDDatePicker pkstartDate;
  69. protected com.kingdee.bos.ctrl.swing.KDDatePicker pkendDate;
  70. protected com.kingdee.bos.ctrl.swing.KDDatePicker pkreissueDate;
  71. protected com.kingdee.bos.ctrl.swing.KDComboBox status;
  72. protected com.kingdee.eas.custom.bill.salary.SalaryBagInfo editData = null;
  73. /**
  74. * output class constructor
  75. */
  76. public AbstractSalaryBagEditUI() throws Exception
  77. {
  78. super();
  79. this.defaultObjectName = "editData";
  80. jbInit();
  81. initUIP();
  82. }
  83. /**
  84. * output jbInit method
  85. */
  86. private void jbInit() throws Exception
  87. {
  88. this.resHelper = new ResourceBundleHelper(AbstractSalaryBagEditUI.class.getName());
  89. this.setUITitle(resHelper.getString("this.title"));
  90. //actionSubmit
  91. String _tempStr = null;
  92. actionSubmit.setEnabled(true);
  93. actionSubmit.setDaemonRun(false);
  94. actionSubmit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl S"));
  95. _tempStr = resHelper.getString("ActionSubmit.SHORT_DESCRIPTION");
  96. actionSubmit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  97. _tempStr = resHelper.getString("ActionSubmit.LONG_DESCRIPTION");
  98. actionSubmit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  99. _tempStr = resHelper.getString("ActionSubmit.NAME");
  100. actionSubmit.putValue(ItemAction.NAME, _tempStr);
  101. this.actionSubmit.setBindWorkFlow(true);
  102. this.actionSubmit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  103. this.actionSubmit.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
  104. this.actionSubmit.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
  105. //actionPrint
  106. actionPrint.setEnabled(true);
  107. actionPrint.setDaemonRun(false);
  108. actionPrint.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl P"));
  109. _tempStr = resHelper.getString("ActionPrint.SHORT_DESCRIPTION");
  110. actionPrint.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  111. _tempStr = resHelper.getString("ActionPrint.LONG_DESCRIPTION");
  112. actionPrint.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  113. _tempStr = resHelper.getString("ActionPrint.NAME");
  114. actionPrint.putValue(ItemAction.NAME, _tempStr);
  115. this.actionPrint.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  116. this.actionPrint.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
  117. this.actionPrint.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
  118. //actionPrintPreview
  119. actionPrintPreview.setEnabled(true);
  120. actionPrintPreview.setDaemonRun(false);
  121. actionPrintPreview.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("shift ctrl P"));
  122. _tempStr = resHelper.getString("ActionPrintPreview.SHORT_DESCRIPTION");
  123. actionPrintPreview.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  124. _tempStr = resHelper.getString("ActionPrintPreview.LONG_DESCRIPTION");
  125. actionPrintPreview.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  126. _tempStr = resHelper.getString("ActionPrintPreview.NAME");
  127. actionPrintPreview.putValue(ItemAction.NAME, _tempStr);
  128. this.actionPrintPreview.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  129. this.actionPrintPreview.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
  130. this.actionPrintPreview.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
  131. //actionAudit
  132. actionAudit.setEnabled(true);
  133. actionAudit.setDaemonRun(false);
  134. actionAudit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl A"));
  135. _tempStr = resHelper.getString("ActionAudit.SHORT_DESCRIPTION");
  136. actionAudit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  137. _tempStr = resHelper.getString("ActionAudit.LONG_DESCRIPTION");
  138. actionAudit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  139. _tempStr = resHelper.getString("ActionAudit.NAME");
  140. actionAudit.putValue(ItemAction.NAME, _tempStr);
  141. this.actionAudit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  142. //actionUnaudit
  143. actionUnaudit.setEnabled(true);
  144. actionUnaudit.setDaemonRun(false);
  145. actionUnaudit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl U"));
  146. _tempStr = resHelper.getString("ActionUnaudit.SHORT_DESCRIPTION");
  147. actionUnaudit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  148. _tempStr = resHelper.getString("ActionUnaudit.LONG_DESCRIPTION");
  149. actionUnaudit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  150. _tempStr = resHelper.getString("ActionUnaudit.NAME");
  151. actionUnaudit.putValue(ItemAction.NAME, _tempStr);
  152. this.actionUnaudit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  153. this.contNumber = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  154. this.contDescription = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  155. this.kdtEntrys = new com.kingdee.bos.ctrl.kdf.table.KDTable();
  156. this.contApplier = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  157. this.contAdminOrg = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  158. this.contApplyDate = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  159. this.contBillState = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  160. this.contadminOrgUnit = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  161. this.contperson = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  162. this.contmoney = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  163. this.contstartDate = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  164. this.contendDate = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  165. this.contreissueDate = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  166. this.contstatus = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  167. this.txtNumber = new com.kingdee.bos.ctrl.swing.KDTextField();
  168. this.txtDescription = new com.kingdee.bos.ctrl.swing.KDTextField();
  169. this.txtApplier = new com.kingdee.bos.ctrl.swing.KDTextField();
  170. this.prmtAdminOrg = new com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox();
  171. this.dpApplyDate = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  172. this.cbBillState = new com.kingdee.bos.ctrl.swing.KDComboBox();
  173. this.prmtadminOrgUnit = new com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox();
  174. this.prmtperson = new com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox();
  175. this.txtmoney = new com.kingdee.bos.ctrl.swing.KDFormattedTextField();
  176. this.pkstartDate = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  177. this.pkendDate = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  178. this.pkreissueDate = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  179. this.status = new com.kingdee.bos.ctrl.swing.KDComboBox();
  180. this.contNumber.setName("contNumber");
  181. this.contDescription.setName("contDescription");
  182. this.kdtEntrys.setName("kdtEntrys");
  183. this.contApplier.setName("contApplier");
  184. this.contAdminOrg.setName("contAdminOrg");
  185. this.contApplyDate.setName("contApplyDate");
  186. this.contBillState.setName("contBillState");
  187. this.contadminOrgUnit.setName("contadminOrgUnit");
  188. this.contperson.setName("contperson");
  189. this.contmoney.setName("contmoney");
  190. this.contstartDate.setName("contstartDate");
  191. this.contendDate.setName("contendDate");
  192. this.contreissueDate.setName("contreissueDate");
  193. this.contstatus.setName("contstatus");
  194. this.txtNumber.setName("txtNumber");
  195. this.txtDescription.setName("txtDescription");
  196. this.txtApplier.setName("txtApplier");
  197. this.prmtAdminOrg.setName("prmtAdminOrg");
  198. this.dpApplyDate.setName("dpApplyDate");
  199. this.cbBillState.setName("cbBillState");
  200. this.prmtadminOrgUnit.setName("prmtadminOrgUnit");
  201. this.prmtperson.setName("prmtperson");
  202. this.txtmoney.setName("txtmoney");
  203. this.pkstartDate.setName("pkstartDate");
  204. this.pkendDate.setName("pkendDate");
  205. this.pkreissueDate.setName("pkreissueDate");
  206. this.status.setName("status");
  207. // CoreUI
  208. this.btnPrint.setVisible(false);
  209. this.btnPrintPreview.setVisible(false);
  210. this.menuItemPrint.setVisible(false);
  211. this.menuItemPrintPreview.setVisible(false);
  212. this.btnTraceUp.setVisible(false);
  213. this.btnTraceDown.setVisible(false);
  214. this.btnCreateFrom.setVisible(false);
  215. this.btnAddLine.setVisible(false);
  216. this.btnInsertLine.setVisible(false);
  217. this.btnRemoveLine.setVisible(false);
  218. this.btnAuditResult.setVisible(false);
  219. this.separator1.setVisible(false);
  220. this.menuItemCreateFrom.setVisible(false);
  221. this.menuItemCopyFrom.setVisible(false);
  222. this.separator3.setVisible(false);
  223. this.menuItemTraceUp.setVisible(false);
  224. this.menuItemTraceDown.setVisible(false);
  225. this.menuItemAddLine.setVisible(false);
  226. this.menuItemInsertLine.setVisible(false);
  227. this.menuItemRemoveLine.setVisible(false);
  228. this.menuItemViewSubmitProccess.setVisible(false);
  229. this.menuItemViewDoProccess.setVisible(false);
  230. this.menuItemAuditResult.setVisible(false);
  231. this.contHROrg.setBoundLabelText(resHelper.getString("contHROrg.boundLabelText"));
  232. this.contHROrg.setBoundLabelLength(90);
  233. this.contHROrg.setBoundLabelUnderline(true);
  234. this.contHROrg.setBoundLabelAlignment(7);
  235. this.contHROrg.setVisible(true);
  236. this.contApproveType.setBoundLabelText(resHelper.getString("contApproveType.boundLabelText"));
  237. this.contApproveType.setBoundLabelLength(90);
  238. this.contApproveType.setBoundLabelUnderline(true);
  239. this.contApproveType.setBoundLabelAlignment(7);
  240. this.contApproveType.setVisible(true);
  241. this.prmtHROrg.setRequired(true);
  242. this.prmtHROrg.setVisible(true);
  243. this.prmtHROrg.setEnabled(true);
  244. this.cbApproveType.setRequired(true);
  245. this.cbApproveType.setVisible(true);
  246. this.cbApproveType.setEnabled(true);
  247. this.btnAudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionAudit, new Class[] { IItemAction.class }, getServiceContext()));
  248. this.btnAudit.setText(resHelper.getString("btnAudit.text"));
  249. this.btnAudit.setToolTipText(resHelper.getString("btnAudit.toolTipText"));
  250. this.btnAudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_audit"));
  251. this.btnUnaudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionUnaudit, new Class[] { IItemAction.class }, getServiceContext()));
  252. this.btnUnaudit.setText(resHelper.getString("btnUnaudit.text"));
  253. this.btnUnaudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_unaudit"));
  254. this.btnUnaudit.setToolTipText(resHelper.getString("btnUnaudit.toolTipText"));
  255. this.btnUnaudit.setVisible(false);
  256. this.menuItemAudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionAudit, new Class[] { IItemAction.class }, getServiceContext()));
  257. this.menuItemAudit.setText(resHelper.getString("menuItemAudit.text"));
  258. this.menuItemAudit.setToolTipText(resHelper.getString("menuItemAudit.toolTipText"));
  259. this.menuItemAudit.setMnemonic(65);
  260. this.menuItemAudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_audit"));
  261. this.menuItemUnaudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionUnaudit, new Class[] { IItemAction.class }, getServiceContext()));
  262. this.menuItemUnaudit.setText(resHelper.getString("menuItemUnaudit.text"));
  263. this.menuItemUnaudit.setToolTipText(resHelper.getString("menuItemUnaudit.toolTipText"));
  264. this.menuItemUnaudit.setMnemonic(85);
  265. this.menuItemUnaudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_unaudit"));
  266. this.menuItemUnaudit.setVisible(false);
  267. // contNumber
  268. this.contNumber.setBoundLabelText(resHelper.getString("contNumber.boundLabelText"));
  269. this.contNumber.setBoundLabelLength(90);
  270. this.contNumber.setBoundLabelUnderline(true);
  271. this.contNumber.setBoundLabelAlignment(7);
  272. this.contNumber.setVisible(true);
  273. // contDescription
  274. this.contDescription.setBoundLabelText(resHelper.getString("contDescription.boundLabelText"));
  275. this.contDescription.setBoundLabelLength(90);
  276. this.contDescription.setBoundLabelUnderline(true);
  277. this.contDescription.setBoundLabelAlignment(7);
  278. this.contDescription.setVisible(true);
  279. // kdtEntrys
  280. String kdtEntrysStrXML = "<?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=\"sCol1\"><c:NumberFormat>yyyy-mm-dd</c:NumberFormat></c:Style><c:Style id=\"sCol3\"><c:NumberFormat>&amp;date</c:NumberFormat></c:Style><c:Style id=\"sCol4\"><c:NumberFormat>&amp;double</c:NumberFormat></c:Style><c:Style id=\"sCol5\"><c:NumberFormat>&amp;double</c:NumberFormat></c:Style><c:Style id=\"sCol6\"><c:NumberFormat>&amp;double</c:NumberFormat></c:Style><c:Style id=\"sCol7\"><c:NumberFormat>&amp;double</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=\"bizDate\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"true\" t:index=\"14\" t:styleID=\"sCol1\" /><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=\"15\" /><t:Column t:key=\"months\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol3\" /><t:Column t:key=\"moneys\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol4\" /><t:Column t:key=\"beforeAmount\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol5\" /><t:Column t:key=\"reissueAmount\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol6\" /><t:Column t:key=\"amountPayable\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol7\" /></t:ColumnGroup><t:Head><t:Row t:name=\"header\" t:height=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\"><t:Cell>$Resource{id}</t:Cell><t:Cell>$Resource{bizDate}</t:Cell><t:Cell>$Resource{description}</t:Cell><t:Cell>$Resource{months}</t:Cell><t:Cell>$Resource{moneys}</t:Cell><t:Cell>$Resource{beforeAmount}</t:Cell><t:Cell>$Resource{reissueAmount}</t:Cell><t:Cell>$Resource{amountPayable}</t:Cell></t:Row></t:Head></t:Table><t:SheetOptions><t:MergeBlocks><t:Head /></t:MergeBlocks></t:SheetOptions></t:Sheet></Table></DocRoot>";
  281. this.kdtEntrys.setFormatXml(resHelper.translateString("kdtEntrys",kdtEntrysStrXML));
  282. this.kdtEntrys.addKDTEditListener(new com.kingdee.bos.ctrl.kdf.table.event.KDTEditAdapter() {
  283. public void editStopping(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) {
  284. try {
  285. kdtEntrys_editStopping(e);
  286. } catch(Exception exc) {
  287. handUIException(exc);
  288. }
  289. }
  290. public void editStopped(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) {
  291. try {
  292. kdtEntrys_editStopped(e);
  293. } catch(Exception exc) {
  294. handUIException(exc);
  295. }
  296. }
  297. });
  298. this.kdtEntrys.putBindContents("editData",new String[] {"id","bizDate","description","months","moneys","beforeAmount","reissueAmount","amountPayable"});
  299. this.kdtEntrys.checkParsed();
  300. KDDatePicker kdtEntrys_bizDate_DatePicker = new KDDatePicker();
  301. kdtEntrys_bizDate_DatePicker.setName("kdtEntrys_bizDate_DatePicker");
  302. kdtEntrys_bizDate_DatePicker.setVisible(true);
  303. kdtEntrys_bizDate_DatePicker.setEditable(true);
  304. KDTDefaultCellEditor kdtEntrys_bizDate_CellEditor = new KDTDefaultCellEditor(kdtEntrys_bizDate_DatePicker);
  305. this.kdtEntrys.getColumn("bizDate").setEditor(kdtEntrys_bizDate_CellEditor);
  306. KDTextField kdtEntrys_description_TextField = new KDTextField();
  307. kdtEntrys_description_TextField.setName("kdtEntrys_description_TextField");
  308. kdtEntrys_description_TextField.setMaxLength(200);
  309. KDTDefaultCellEditor kdtEntrys_description_CellEditor = new KDTDefaultCellEditor(kdtEntrys_description_TextField);
  310. this.kdtEntrys.getColumn("description").setEditor(kdtEntrys_description_CellEditor);
  311. KDDatePicker kdtEntrys_months_DatePicker = new KDDatePicker();
  312. kdtEntrys_months_DatePicker.setName("kdtEntrys_months_DatePicker");
  313. kdtEntrys_months_DatePicker.setVisible(true);
  314. kdtEntrys_months_DatePicker.setEditable(true);
  315. KDTDefaultCellEditor kdtEntrys_months_CellEditor = new KDTDefaultCellEditor(kdtEntrys_months_DatePicker);
  316. this.kdtEntrys.getColumn("months").setEditor(kdtEntrys_months_CellEditor);
  317. KDFormattedTextField kdtEntrys_moneys_TextField = new KDFormattedTextField();
  318. kdtEntrys_moneys_TextField.setName("kdtEntrys_moneys_TextField");
  319. kdtEntrys_moneys_TextField.setVisible(true);
  320. kdtEntrys_moneys_TextField.setEditable(true);
  321. kdtEntrys_moneys_TextField.setHorizontalAlignment(2);
  322. kdtEntrys_moneys_TextField.setDataType(1);
  323. kdtEntrys_moneys_TextField.setMinimumValue(new java.math.BigDecimal("-1.0E18"));
  324. kdtEntrys_moneys_TextField.setMaximumValue(new java.math.BigDecimal("1.0E18"));
  325. kdtEntrys_moneys_TextField.setPrecision(10);
  326. KDTDefaultCellEditor kdtEntrys_moneys_CellEditor = new KDTDefaultCellEditor(kdtEntrys_moneys_TextField);
  327. this.kdtEntrys.getColumn("moneys").setEditor(kdtEntrys_moneys_CellEditor);
  328. KDFormattedTextField kdtEntrys_beforeAmount_TextField = new KDFormattedTextField();
  329. kdtEntrys_beforeAmount_TextField.setName("kdtEntrys_beforeAmount_TextField");
  330. kdtEntrys_beforeAmount_TextField.setVisible(true);
  331. kdtEntrys_beforeAmount_TextField.setEditable(true);
  332. kdtEntrys_beforeAmount_TextField.setHorizontalAlignment(2);
  333. kdtEntrys_beforeAmount_TextField.setDataType(1);
  334. kdtEntrys_beforeAmount_TextField.setMinimumValue(new java.math.BigDecimal("-1.0E18"));
  335. kdtEntrys_beforeAmount_TextField.setMaximumValue(new java.math.BigDecimal("1.0E18"));
  336. kdtEntrys_beforeAmount_TextField.setPrecision(10);
  337. KDTDefaultCellEditor kdtEntrys_beforeAmount_CellEditor = new KDTDefaultCellEditor(kdtEntrys_beforeAmount_TextField);
  338. this.kdtEntrys.getColumn("beforeAmount").setEditor(kdtEntrys_beforeAmount_CellEditor);
  339. KDFormattedTextField kdtEntrys_reissueAmount_TextField = new KDFormattedTextField();
  340. kdtEntrys_reissueAmount_TextField.setName("kdtEntrys_reissueAmount_TextField");
  341. kdtEntrys_reissueAmount_TextField.setVisible(true);
  342. kdtEntrys_reissueAmount_TextField.setEditable(true);
  343. kdtEntrys_reissueAmount_TextField.setHorizontalAlignment(2);
  344. kdtEntrys_reissueAmount_TextField.setDataType(1);
  345. kdtEntrys_reissueAmount_TextField.setMinimumValue(new java.math.BigDecimal("-1.0E18"));
  346. kdtEntrys_reissueAmount_TextField.setMaximumValue(new java.math.BigDecimal("1.0E18"));
  347. kdtEntrys_reissueAmount_TextField.setPrecision(10);
  348. KDTDefaultCellEditor kdtEntrys_reissueAmount_CellEditor = new KDTDefaultCellEditor(kdtEntrys_reissueAmount_TextField);
  349. this.kdtEntrys.getColumn("reissueAmount").setEditor(kdtEntrys_reissueAmount_CellEditor);
  350. KDFormattedTextField kdtEntrys_amountPayable_TextField = new KDFormattedTextField();
  351. kdtEntrys_amountPayable_TextField.setName("kdtEntrys_amountPayable_TextField");
  352. kdtEntrys_amountPayable_TextField.setVisible(true);
  353. kdtEntrys_amountPayable_TextField.setEditable(true);
  354. kdtEntrys_amountPayable_TextField.setHorizontalAlignment(2);
  355. kdtEntrys_amountPayable_TextField.setDataType(1);
  356. kdtEntrys_amountPayable_TextField.setMinimumValue(new java.math.BigDecimal("-1.0E18"));
  357. kdtEntrys_amountPayable_TextField.setMaximumValue(new java.math.BigDecimal("1.0E18"));
  358. kdtEntrys_amountPayable_TextField.setPrecision(10);
  359. KDTDefaultCellEditor kdtEntrys_amountPayable_CellEditor = new KDTDefaultCellEditor(kdtEntrys_amountPayable_TextField);
  360. this.kdtEntrys.getColumn("amountPayable").setEditor(kdtEntrys_amountPayable_CellEditor);
  361. // contApplier
  362. this.contApplier.setBoundLabelText(resHelper.getString("contApplier.boundLabelText"));
  363. this.contApplier.setBoundLabelLength(90);
  364. this.contApplier.setBoundLabelUnderline(true);
  365. this.contApplier.setBoundLabelAlignment(7);
  366. this.contApplier.setVisible(true);
  367. // contAdminOrg
  368. this.contAdminOrg.setBoundLabelText(resHelper.getString("contAdminOrg.boundLabelText"));
  369. this.contAdminOrg.setBoundLabelLength(90);
  370. this.contAdminOrg.setBoundLabelUnderline(true);
  371. this.contAdminOrg.setBoundLabelAlignment(7);
  372. this.contAdminOrg.setVisible(true);
  373. // contApplyDate
  374. this.contApplyDate.setBoundLabelText(resHelper.getString("contApplyDate.boundLabelText"));
  375. this.contApplyDate.setBoundLabelLength(90);
  376. this.contApplyDate.setBoundLabelUnderline(true);
  377. this.contApplyDate.setBoundLabelAlignment(7);
  378. this.contApplyDate.setVisible(true);
  379. // contBillState
  380. this.contBillState.setBoundLabelText(resHelper.getString("contBillState.boundLabelText"));
  381. this.contBillState.setBoundLabelLength(90);
  382. this.contBillState.setBoundLabelUnderline(true);
  383. this.contBillState.setBoundLabelAlignment(7);
  384. this.contBillState.setVisible(false);
  385. // contadminOrgUnit
  386. this.contadminOrgUnit.setBoundLabelText(resHelper.getString("contadminOrgUnit.boundLabelText"));
  387. this.contadminOrgUnit.setBoundLabelLength(100);
  388. this.contadminOrgUnit.setBoundLabelUnderline(true);
  389. this.contadminOrgUnit.setVisible(true);
  390. // contperson
  391. this.contperson.setBoundLabelText(resHelper.getString("contperson.boundLabelText"));
  392. this.contperson.setBoundLabelLength(100);
  393. this.contperson.setBoundLabelUnderline(true);
  394. this.contperson.setVisible(true);
  395. // contmoney
  396. this.contmoney.setBoundLabelText(resHelper.getString("contmoney.boundLabelText"));
  397. this.contmoney.setBoundLabelLength(100);
  398. this.contmoney.setBoundLabelUnderline(true);
  399. this.contmoney.setVisible(true);
  400. // contstartDate
  401. this.contstartDate.setBoundLabelText(resHelper.getString("contstartDate.boundLabelText"));
  402. this.contstartDate.setBoundLabelLength(100);
  403. this.contstartDate.setBoundLabelUnderline(true);
  404. this.contstartDate.setVisible(true);
  405. // contendDate
  406. this.contendDate.setBoundLabelText(resHelper.getString("contendDate.boundLabelText"));
  407. this.contendDate.setBoundLabelLength(100);
  408. this.contendDate.setBoundLabelUnderline(true);
  409. this.contendDate.setVisible(true);
  410. // contreissueDate
  411. this.contreissueDate.setBoundLabelText(resHelper.getString("contreissueDate.boundLabelText"));
  412. this.contreissueDate.setBoundLabelLength(100);
  413. this.contreissueDate.setBoundLabelUnderline(true);
  414. this.contreissueDate.setVisible(true);
  415. // contstatus
  416. this.contstatus.setBoundLabelText(resHelper.getString("contstatus.boundLabelText"));
  417. this.contstatus.setBoundLabelLength(100);
  418. this.contstatus.setBoundLabelUnderline(true);
  419. this.contstatus.setVisible(true);
  420. // txtNumber
  421. this.txtNumber.setMaxLength(80);
  422. this.txtNumber.setRequired(true);
  423. this.txtNumber.setVisible(true);
  424. this.txtNumber.setEnabled(true);
  425. this.txtNumber.setHorizontalAlignment(2);
  426. // txtDescription
  427. this.txtDescription.setMaxLength(200);
  428. this.txtDescription.setVisible(true);
  429. this.txtDescription.setEnabled(true);
  430. this.txtDescription.setHorizontalAlignment(2);
  431. this.txtDescription.setRequired(false);
  432. // txtApplier
  433. this.txtApplier.setEnabled(false);
  434. this.txtApplier.setMaxLength(80);
  435. this.txtApplier.setVisible(true);
  436. this.txtApplier.setHorizontalAlignment(2);
  437. this.txtApplier.setRequired(false);
  438. // prmtAdminOrg
  439. this.prmtAdminOrg.setRequired(true);
  440. this.prmtAdminOrg.setVisible(true);
  441. this.prmtAdminOrg.setEnabled(true);
  442. // dpApplyDate
  443. this.dpApplyDate.setEnabled(false);
  444. this.dpApplyDate.setVisible(true);
  445. this.dpApplyDate.setRequired(false);
  446. // cbBillState
  447. this.cbBillState.addItems(EnumUtils.getEnumList("com.kingdee.eas.hr.base.HRBillStateEnum").toArray());
  448. this.cbBillState.setEnabled(false);
  449. this.cbBillState.setVisible(false);
  450. this.cbBillState.setRequired(false);
  451. // prmtadminOrgUnit
  452. this.prmtadminOrgUnit.setQueryInfo("com.kingdee.eas.basedata.org.app.AdminItemQuery");
  453. this.prmtadminOrgUnit.setVisible(true);
  454. this.prmtadminOrgUnit.setEditable(true);
  455. this.prmtadminOrgUnit.setDisplayFormat("$name$");
  456. this.prmtadminOrgUnit.setEditFormat("$number$");
  457. this.prmtadminOrgUnit.setCommitFormat("$number$");
  458. this.prmtadminOrgUnit.setRequired(true);
  459. setOrgF7(prmtadminOrgUnit,com.kingdee.eas.basedata.org.OrgType.getEnum("Admin"));
  460. // prmtperson
  461. this.prmtperson.setQueryInfo("com.kingdee.eas.basedata.person.app.PersonFilterQuery");
  462. this.prmtperson.setVisible(true);
  463. this.prmtperson.setEditable(true);
  464. this.prmtperson.setDisplayFormat("$name$");
  465. this.prmtperson.setEditFormat("$number$");
  466. this.prmtperson.setCommitFormat("$number$");
  467. this.prmtperson.setRequired(false);
  468. // txtmoney
  469. this.txtmoney.setVisible(true);
  470. this.txtmoney.setHorizontalAlignment(2);
  471. this.txtmoney.setDataType(1);
  472. this.txtmoney.setSupportedEmpty(true);
  473. this.txtmoney.setMinimumValue( new java.math.BigDecimal("-1.0E18"));
  474. this.txtmoney.setMaximumValue( new java.math.BigDecimal("1.0E18"));
  475. this.txtmoney.setPrecision(2);
  476. this.txtmoney.setRequired(false);
  477. // pkstartDate
  478. this.pkstartDate.setVisible(true);
  479. this.pkstartDate.setRequired(false);
  480. // pkendDate
  481. this.pkendDate.setVisible(true);
  482. this.pkendDate.setRequired(false);
  483. // pkreissueDate
  484. this.pkreissueDate.setVisible(true);
  485. this.pkreissueDate.setRequired(false);
  486. // status
  487. this.status.setVisible(true);
  488. this.status.addItems(EnumUtils.getEnumList("com.kingdee.eas.custom.enums.billStatusEnum").toArray());
  489. this.status.setRequired(false);
  490. this.setFocusTraversalPolicy(new com.kingdee.bos.ui.UIFocusTraversalPolicy(new java.awt.Component[] {txtApplier,txtDescription,txtNumber,cbBillState,prmtAdminOrg,dpApplyDate,kdtEntrys,prmtperson,txtmoney,pkstartDate,pkendDate,pkreissueDate,status}));
  491. this.setFocusCycleRoot(true);
  492. //Register control's property binding
  493. registerBindings();
  494. registerUIState();
  495. }
  496. public com.kingdee.bos.ctrl.swing.KDToolBar[] getUIMultiToolBar(){
  497. java.util.List list = new java.util.ArrayList();
  498. com.kingdee.bos.ctrl.swing.KDToolBar[] bars = super.getUIMultiToolBar();
  499. if (bars != null) {
  500. list.addAll(java.util.Arrays.asList(bars));
  501. }
  502. return (com.kingdee.bos.ctrl.swing.KDToolBar[])list.toArray(new com.kingdee.bos.ctrl.swing.KDToolBar[list.size()]);
  503. }
  504. /**
  505. * output initUIContentLayout method
  506. */
  507. public void initUIContentLayout()
  508. {
  509. this.setBounds(new Rectangle(0, 0, 1013, 629));
  510. this.setLayout(new KDLayout());
  511. this.putClientProperty("OriginalBounds", new Rectangle(0, 0, 1013, 629));
  512. contHROrg.setBounds(new Rectangle(10, 10, 270, 19));
  513. this.add(contHROrg, new KDLayout.Constraints(10, 10, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  514. contApproveType.setBounds(new Rectangle(732, 54, 270, 19));
  515. this.add(contApproveType, new KDLayout.Constraints(732, 54, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT));
  516. contNumber.setBounds(new Rectangle(10, 32, 270, 19));
  517. this.add(contNumber, new KDLayout.Constraints(10, 32, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  518. contDescription.setBounds(new Rectangle(376, 54, 270, 19));
  519. this.add(contDescription, new KDLayout.Constraints(376, 54, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  520. kdtEntrys.setBounds(new Rectangle(10, 76, 993, 543));
  521. kdtEntrys_detailPanel = (com.kingdee.eas.framework.client.multiDetail.DetailPanel)com.kingdee.eas.framework.client.multiDetail.HMDUtils.buildDetail(this,dataBinder,kdtEntrys,new com.kingdee.eas.custom.bill.salary.SalaryBagEntryInfo(),null,false);
  522. this.add(kdtEntrys_detailPanel, new KDLayout.Constraints(10, 76, 993, 543, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_BOTTOM | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT));
  523. contApplier.setBounds(new Rectangle(10, 54, 270, 19));
  524. this.add(contApplier, new KDLayout.Constraints(10, 54, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  525. contAdminOrg.setBounds(new Rectangle(376, 32, 270, 19));
  526. this.add(contAdminOrg, new KDLayout.Constraints(376, 32, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  527. contApplyDate.setBounds(new Rectangle(732, 32, 270, 19));
  528. this.add(contApplyDate, new KDLayout.Constraints(732, 32, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT));
  529. contBillState.setBounds(new Rectangle(732, 10, 270, 19));
  530. this.add(contBillState, new KDLayout.Constraints(732, 10, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT));
  531. contadminOrgUnit.setBounds(new Rectangle(0, 0, 270, 19));
  532. this.add(contadminOrgUnit, new KDLayout.Constraints(0, 0, 270, 19, 0));
  533. contperson.setBounds(new Rectangle(0, 0, 270, 19));
  534. this.add(contperson, new KDLayout.Constraints(0, 0, 270, 19, 0));
  535. contmoney.setBounds(new Rectangle(0, 0, 270, 19));
  536. this.add(contmoney, new KDLayout.Constraints(0, 0, 270, 19, 0));
  537. contstartDate.setBounds(new Rectangle(0, 0, 270, 19));
  538. this.add(contstartDate, new KDLayout.Constraints(0, 0, 270, 19, 0));
  539. contendDate.setBounds(new Rectangle(0, 0, 270, 19));
  540. this.add(contendDate, new KDLayout.Constraints(0, 0, 270, 19, 0));
  541. contreissueDate.setBounds(new Rectangle(0, 0, 270, 19));
  542. this.add(contreissueDate, new KDLayout.Constraints(0, 0, 270, 19, 0));
  543. contstatus.setBounds(new Rectangle(0, 0, 270, 19));
  544. this.add(contstatus, new KDLayout.Constraints(0, 0, 270, 19, 0));
  545. //contHROrg
  546. contHROrg.setBoundEditor(prmtHROrg);
  547. //contApproveType
  548. contApproveType.setBoundEditor(cbApproveType);
  549. //contNumber
  550. contNumber.setBoundEditor(txtNumber);
  551. //contDescription
  552. contDescription.setBoundEditor(txtDescription);
  553. //contApplier
  554. contApplier.setBoundEditor(txtApplier);
  555. //contAdminOrg
  556. contAdminOrg.setBoundEditor(prmtAdminOrg);
  557. //contApplyDate
  558. contApplyDate.setBoundEditor(dpApplyDate);
  559. //contBillState
  560. contBillState.setBoundEditor(cbBillState);
  561. //contadminOrgUnit
  562. contadminOrgUnit.setBoundEditor(prmtadminOrgUnit);
  563. //contperson
  564. contperson.setBoundEditor(prmtperson);
  565. //contmoney
  566. contmoney.setBoundEditor(txtmoney);
  567. //contstartDate
  568. contstartDate.setBoundEditor(pkstartDate);
  569. //contendDate
  570. contendDate.setBoundEditor(pkendDate);
  571. //contreissueDate
  572. contreissueDate.setBoundEditor(pkreissueDate);
  573. //contstatus
  574. contstatus.setBoundEditor(status);
  575. }
  576. /**
  577. * output initUIMenuBarLayout method
  578. */
  579. public void initUIMenuBarLayout()
  580. {
  581. this.menuBar.add(menuFile);
  582. this.menuBar.add(menuEdit);
  583. this.menuBar.add(MenuService);
  584. this.menuBar.add(menuView);
  585. this.menuBar.add(menuBiz);
  586. this.menuBar.add(menuTable1);
  587. this.menuBar.add(menuTool);
  588. this.menuBar.add(menuWorkflow);
  589. this.menuBar.add(menuHelp);
  590. //menuFile
  591. menuFile.add(menuItemAddNew);
  592. menuFile.add(kDSeparator1);
  593. menuFile.add(menuItemCloudFeed);
  594. menuFile.add(menuItemSave);
  595. menuFile.add(menuItemCloudScreen);
  596. menuFile.add(menuItemSubmit);
  597. menuFile.add(menuItemCloudShare);
  598. menuFile.add(menuSubmitOption);
  599. menuFile.add(kdSeparatorFWFile1);
  600. menuFile.add(rMenuItemSubmit);
  601. menuFile.add(rMenuItemSubmitAndAddNew);
  602. menuFile.add(rMenuItemSubmitAndPrint);
  603. menuFile.add(separatorFile1);
  604. menuFile.add(menuItemMapping);
  605. menuFile.add(MenuItemAttachment);
  606. menuFile.add(kDSeparator2);
  607. menuFile.add(menuItemPageSetup);
  608. menuFile.add(menuItemPrint);
  609. menuFile.add(menuItemPrintPreview);
  610. menuFile.add(kDSeparator6);
  611. menuFile.add(kDSeparator3);
  612. menuFile.add(menuItemSendMail);
  613. menuFile.add(menuItemExitCurrent);
  614. //menuSubmitOption
  615. menuSubmitOption.add(chkMenuItemSubmitAndAddNew);
  616. menuSubmitOption.add(chkMenuItemSubmitAndPrint);
  617. //menuEdit
  618. menuEdit.add(menuItemCopy);
  619. menuEdit.add(menuItemEdit);
  620. menuEdit.add(menuItemRemove);
  621. menuEdit.add(kDSeparator4);
  622. menuEdit.add(menuItemReset);
  623. menuEdit.add(separator1);
  624. menuEdit.add(menuItemCreateFrom);
  625. menuEdit.add(menuItemCreateTo);
  626. menuEdit.add(menuItemCopyFrom);
  627. menuEdit.add(menuItemColumnCopyAll);
  628. menuEdit.add(menuItemEnterToNextRow);
  629. menuEdit.add(menuItemColumnCopySelect);
  630. menuEdit.add(separatorEdit1);
  631. menuEdit.add(separator2);
  632. //MenuService
  633. MenuService.add(MenuItemKnowStore);
  634. MenuService.add(MenuItemAnwser);
  635. MenuService.add(SepratorService);
  636. MenuService.add(MenuItemRemoteAssist);
  637. //menuView
  638. menuView.add(menuItemFirst);
  639. menuView.add(menuItemPre);
  640. menuView.add(menuItemNext);
  641. menuView.add(menuItemLast);
  642. menuView.add(separator3);
  643. menuView.add(menuItemTraceUp);
  644. menuView.add(menuItemTraceDown);
  645. menuView.add(kDSeparator7);
  646. menuView.add(menuItemLocate);
  647. //menuBiz
  648. menuBiz.add(menuItemCancelCancel);
  649. menuBiz.add(menuItemCancel);
  650. menuBiz.add(MenuItemVoucher);
  651. menuBiz.add(menuItemDelVoucher);
  652. menuBiz.add(MenuItemPCVoucher);
  653. menuBiz.add(menuItemAudit);
  654. menuBiz.add(menuItemDelPCVoucher);
  655. menuBiz.add(menuItemUnaudit);
  656. menuBiz.add(menuItemPerson);
  657. //menuTable1
  658. menuTable1.add(menuItemAddLine);
  659. menuTable1.add(menuItemCopyLine);
  660. menuTable1.add(menuItemInsertLine);
  661. menuTable1.add(menuItemRemoveLine);
  662. //menuTool
  663. menuTool.add(menuItemSendMessage);
  664. menuTool.add(menuItemMsgFormat);
  665. menuTool.add(menuItemCalculator);
  666. menuTool.add(menuItemToolBarCustom);
  667. //menuWorkflow
  668. menuWorkflow.add(menuItemStartWorkFlow);
  669. menuWorkflow.add(separatorWF1);
  670. menuWorkflow.add(menuItemViewSubmitProccess);
  671. menuWorkflow.add(menuItemViewDoProccess);
  672. menuWorkflow.add(MenuItemWFG);
  673. menuWorkflow.add(menuItemWorkFlowList);
  674. menuWorkflow.add(separatorWF2);
  675. menuWorkflow.add(menuItemMultiapprove);
  676. menuWorkflow.add(menuItemNextPerson);
  677. menuWorkflow.add(menuItemAuditResult);
  678. menuWorkflow.add(kDSeparator5);
  679. menuWorkflow.add(kDMenuItemSendMessage);
  680. //menuHelp
  681. menuHelp.add(menuItemHelp);
  682. menuHelp.add(kDSeparator12);
  683. menuHelp.add(menuItemRegPro);
  684. menuHelp.add(menuItemPersonalSite);
  685. menuHelp.add(helpseparatorDiv);
  686. menuHelp.add(menuitemProductval);
  687. menuHelp.add(kDSeparatorProduct);
  688. menuHelp.add(menuItemAbout);
  689. }
  690. /**
  691. * output initUIToolBarLayout method
  692. */
  693. public void initUIToolBarLayout()
  694. {
  695. this.toolBar.add(btnAddNew);
  696. this.toolBar.add(btnCloud);
  697. this.toolBar.add(btnEdit);
  698. this.toolBar.add(btnSave);
  699. this.toolBar.add(btnXunTong);
  700. this.toolBar.add(btnReset);
  701. this.toolBar.add(btnSubmit);
  702. this.toolBar.add(kDSeparatorCloud);
  703. this.toolBar.add(btnCopy);
  704. this.toolBar.add(btnRemove);
  705. this.toolBar.add(btnCancelCancel);
  706. this.toolBar.add(btnCancel);
  707. this.toolBar.add(btnAttachment);
  708. this.toolBar.add(separatorFW1);
  709. this.toolBar.add(btnPageSetup);
  710. this.toolBar.add(btnColumnCopyAll);
  711. this.toolBar.add(btnPrint);
  712. this.toolBar.add(btnColumnCopySelect);
  713. this.toolBar.add(btnPrintPreview);
  714. this.toolBar.add(separatorFW2);
  715. this.toolBar.add(btnFirst);
  716. this.toolBar.add(btnPre);
  717. this.toolBar.add(btnNext);
  718. this.toolBar.add(btnLast);
  719. this.toolBar.add(separatorFW3);
  720. this.toolBar.add(btnTraceUp);
  721. this.toolBar.add(btnTraceDown);
  722. this.toolBar.add(btnWorkFlowG);
  723. this.toolBar.add(btnSignature);
  724. this.toolBar.add(btnViewSignature);
  725. this.toolBar.add(separatorFW4);
  726. this.toolBar.add(separatorFW7);
  727. this.toolBar.add(btnCreateFrom);
  728. this.toolBar.add(btnCopyFrom);
  729. this.toolBar.add(btnNumberSign);
  730. this.toolBar.add(btnCreateTo);
  731. this.toolBar.add(separatorFW5);
  732. this.toolBar.add(separatorFW8);
  733. this.toolBar.add(btnAddLine);
  734. this.toolBar.add(btnInsertLine);
  735. this.toolBar.add(btnRemoveLine);
  736. this.toolBar.add(separatorFW6);
  737. this.toolBar.add(separatorFW9);
  738. this.toolBar.add(btnCopyLine);
  739. this.toolBar.add(btnVoucher);
  740. this.toolBar.add(btnDelVoucher);
  741. this.toolBar.add(btnAuditResult);
  742. this.toolBar.add(btnMultiapprove);
  743. this.toolBar.add(btnWFViewdoProccess);
  744. this.toolBar.add(btnWFViewSubmitProccess);
  745. this.toolBar.add(btnNextPerson);
  746. this.toolBar.add(btnPCVoucher);
  747. this.toolBar.add(btnAudit);
  748. this.toolBar.add(btnDelPCVoucher);
  749. this.toolBar.add(btnUnaudit);
  750. this.toolBar.add(btnPerson);
  751. }
  752. //Regiester control's property binding.
  753. private void registerBindings(){
  754. dataBinder.registerBinding("hrOrgUnit", com.kingdee.eas.basedata.org.HROrgUnitInfo.class, this.prmtHROrg, "data");
  755. dataBinder.registerBinding("approveType", com.kingdee.eas.hr.base.ApproveTypeEnum.class, this.cbApproveType, "selectedItem");
  756. dataBinder.registerBinding("entrys.id", com.kingdee.bos.util.BOSUuid.class, this.kdtEntrys, "id.text");
  757. dataBinder.registerBinding("entrys", com.kingdee.eas.custom.bill.salary.SalaryBagEntryInfo.class, this.kdtEntrys, "userObject");
  758. dataBinder.registerBinding("entrys.bizDate", java.util.Date.class, this.kdtEntrys, "bizDate.text");
  759. dataBinder.registerBinding("entrys.description", String.class, this.kdtEntrys, "description.text");
  760. dataBinder.registerBinding("entrys.months", java.util.Date.class, this.kdtEntrys, "months.text");
  761. dataBinder.registerBinding("entrys.moneys", java.math.BigDecimal.class, this.kdtEntrys, "moneys.text");
  762. dataBinder.registerBinding("entrys.beforeAmount", java.math.BigDecimal.class, this.kdtEntrys, "beforeAmount.text");
  763. dataBinder.registerBinding("entrys.reissueAmount", java.math.BigDecimal.class, this.kdtEntrys, "reissueAmount.text");
  764. dataBinder.registerBinding("entrys.amountPayable", java.math.BigDecimal.class, this.kdtEntrys, "amountPayable.text");
  765. dataBinder.registerBinding("number", String.class, this.txtNumber, "text");
  766. dataBinder.registerBinding("description", String.class, this.txtDescription, "text");
  767. dataBinder.registerBinding("applier.name", String.class, this.txtApplier, "text");
  768. dataBinder.registerBinding("adminOrg", com.kingdee.eas.basedata.org.AdminOrgUnitInfo.class, this.prmtAdminOrg, "data");
  769. dataBinder.registerBinding("applyDate", java.util.Date.class, this.dpApplyDate, "value");
  770. dataBinder.registerBinding("billState", com.kingdee.eas.hr.base.HRBillStateEnum.class, this.cbBillState, "selectedItem");
  771. dataBinder.registerBinding("adminOrgUnit", com.kingdee.eas.basedata.org.AdminOrgUnitInfo.class, this.prmtadminOrgUnit, "data");
  772. dataBinder.registerBinding("person", com.kingdee.eas.basedata.person.PersonInfo.class, this.prmtperson, "data");
  773. dataBinder.registerBinding("money", java.math.BigDecimal.class, this.txtmoney, "value");
  774. dataBinder.registerBinding("startDate", java.util.Date.class, this.pkstartDate, "value");
  775. dataBinder.registerBinding("endDate", java.util.Date.class, this.pkendDate, "value");
  776. dataBinder.registerBinding("reissueDate", java.util.Date.class, this.pkreissueDate, "value");
  777. dataBinder.registerBinding("status", com.kingdee.eas.custom.enums.billStatusEnum.class, this.status, "selectedItem");
  778. }
  779. //Regiester UI State
  780. private void registerUIState(){
  781. }
  782. public String getUIHandlerClassName() {
  783. return "com.kingdee.eas.custom.bill.salary.app.SalaryBagEditUIHandler";
  784. }
  785. public IUIActionPostman prepareInit() {
  786. IUIActionPostman clientHanlder = super.prepareInit();
  787. if (clientHanlder != null) {
  788. RequestContext request = new RequestContext();
  789. request.setClassName(getUIHandlerClassName());
  790. clientHanlder.setRequestContext(request);
  791. }
  792. return clientHanlder;
  793. }
  794. public boolean isPrepareInit() {
  795. return false;
  796. }
  797. protected void initUIP() {
  798. super.initUIP();
  799. }
  800. /**
  801. * output onShow method
  802. */
  803. public void onShow() throws Exception
  804. {
  805. super.onShow();
  806. this.txtApplier.requestFocusInWindow();
  807. }
  808. /**
  809. * output setDataObject method
  810. */
  811. public void setDataObject(IObjectValue dataObject)
  812. {
  813. IObjectValue ov = dataObject;
  814. super.setDataObject(ov);
  815. this.editData = (com.kingdee.eas.custom.bill.salary.SalaryBagInfo)ov;
  816. }
  817. protected void removeByPK(IObjectPK pk) throws Exception {
  818. IObjectValue editData = this.editData;
  819. super.removeByPK(pk);
  820. recycleNumberByOrg(editData,"Admin",editData.getString("number"));
  821. }
  822. protected void recycleNumberByOrg(IObjectValue editData,String orgType,String number) {
  823. if (!StringUtils.isEmpty(number))
  824. {
  825. try {
  826. String companyID = null;
  827. com.kingdee.eas.base.codingrule.ICodingRuleManager iCodingRuleManager = com.kingdee.eas.base.codingrule.CodingRuleManagerFactory.getRemoteInstance();
  828. 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) {
  829. companyID =com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum(orgType)).getString("id");
  830. }
  831. else if (com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit() != null) {
  832. companyID = ((com.kingdee.eas.basedata.org.OrgUnitInfo)com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit()).getString("id");
  833. }
  834. if (!StringUtils.isEmpty(companyID) && iCodingRuleManager.isExist(editData, companyID) && iCodingRuleManager.isUseIntermitNumber(editData, companyID)) {
  835. iCodingRuleManager.recycleNumber(editData,companyID,number);
  836. }
  837. }
  838. catch (Exception e)
  839. {
  840. handUIException(e);
  841. }
  842. }
  843. }
  844. protected void setAutoNumberByOrg(String orgType) {
  845. if (editData == null) return;
  846. if (editData.getNumber() == null) {
  847. try {
  848. String companyID = null;
  849. 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) {
  850. companyID = com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum(orgType)).getString("id");
  851. }
  852. else if (com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit() != null) {
  853. companyID = ((com.kingdee.eas.basedata.org.OrgUnitInfo)com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit()).getString("id");
  854. }
  855. com.kingdee.eas.base.codingrule.ICodingRuleManager iCodingRuleManager = com.kingdee.eas.base.codingrule.CodingRuleManagerFactory.getRemoteInstance();
  856. if (iCodingRuleManager.isExist(editData, companyID)) {
  857. if (iCodingRuleManager.isAddView(editData, companyID)) {
  858. editData.setNumber(iCodingRuleManager.getNumber(editData,companyID));
  859. }
  860. txtNumber.setEnabled(false);
  861. }
  862. }
  863. catch (Exception e) {
  864. handUIException(e);
  865. this.oldData = editData;
  866. com.kingdee.eas.util.SysUtil.abort();
  867. }
  868. }
  869. else {
  870. if (editData.getNumber().trim().length() > 0) {
  871. txtNumber.setText(editData.getNumber());
  872. }
  873. }
  874. }
  875. protected com.kingdee.eas.basedata.org.OrgType getMainBizOrgType() {
  876. return com.kingdee.eas.basedata.org.OrgType.getEnum("Admin");
  877. }
  878. protected KDBizPromptBox getMainBizOrg() {
  879. return prmtadminOrgUnit;
  880. }
  881. /**
  882. * output loadFields method
  883. */
  884. public void loadFields()
  885. {
  886. setAutoNumberByOrg("Admin");
  887. dataBinder.loadFields();
  888. }
  889. protected void setOrgF7(KDBizPromptBox f7,com.kingdee.eas.basedata.org.OrgType orgType) throws Exception
  890. {
  891. com.kingdee.eas.basedata.org.client.f7.NewOrgUnitFilterInfoProducer oufip = new com.kingdee.eas.basedata.org.client.f7.NewOrgUnitFilterInfoProducer(orgType);
  892. oufip.getModel().setIsCUFilter(true);
  893. f7.setFilterInfoProducer(oufip);
  894. }
  895. /**
  896. * output storeFields method
  897. */
  898. public void storeFields()
  899. {
  900. dataBinder.storeFields();
  901. }
  902. /**
  903. * ????????§µ??
  904. */
  905. protected void registerValidator() {
  906. getValidateHelper().setCustomValidator( getValidator() );
  907. getValidateHelper().registerBindProperty("hrOrgUnit", ValidateHelper.ON_SAVE);
  908. getValidateHelper().registerBindProperty("approveType", ValidateHelper.ON_SAVE);
  909. getValidateHelper().registerBindProperty("entrys.id", ValidateHelper.ON_SAVE);
  910. getValidateHelper().registerBindProperty("entrys", ValidateHelper.ON_SAVE);
  911. getValidateHelper().registerBindProperty("entrys.bizDate", ValidateHelper.ON_SAVE);
  912. getValidateHelper().registerBindProperty("entrys.description", ValidateHelper.ON_SAVE);
  913. getValidateHelper().registerBindProperty("entrys.months", ValidateHelper.ON_SAVE);
  914. getValidateHelper().registerBindProperty("entrys.moneys", ValidateHelper.ON_SAVE);
  915. getValidateHelper().registerBindProperty("entrys.beforeAmount", ValidateHelper.ON_SAVE);
  916. getValidateHelper().registerBindProperty("entrys.reissueAmount", ValidateHelper.ON_SAVE);
  917. getValidateHelper().registerBindProperty("entrys.amountPayable", ValidateHelper.ON_SAVE);
  918. getValidateHelper().registerBindProperty("number", ValidateHelper.ON_SAVE);
  919. getValidateHelper().registerBindProperty("description", ValidateHelper.ON_SAVE);
  920. getValidateHelper().registerBindProperty("applier.name", ValidateHelper.ON_SAVE);
  921. getValidateHelper().registerBindProperty("adminOrg", ValidateHelper.ON_SAVE);
  922. getValidateHelper().registerBindProperty("applyDate", ValidateHelper.ON_SAVE);
  923. getValidateHelper().registerBindProperty("billState", ValidateHelper.ON_SAVE);
  924. getValidateHelper().registerBindProperty("adminOrgUnit", ValidateHelper.ON_SAVE);
  925. getValidateHelper().registerBindProperty("person", ValidateHelper.ON_SAVE);
  926. getValidateHelper().registerBindProperty("money", ValidateHelper.ON_SAVE);
  927. getValidateHelper().registerBindProperty("startDate", ValidateHelper.ON_SAVE);
  928. getValidateHelper().registerBindProperty("endDate", ValidateHelper.ON_SAVE);
  929. getValidateHelper().registerBindProperty("reissueDate", ValidateHelper.ON_SAVE);
  930. getValidateHelper().registerBindProperty("status", ValidateHelper.ON_SAVE);
  931. }
  932. /**
  933. * output setOprtState method
  934. */
  935. public void setOprtState(String oprtType)
  936. {
  937. super.setOprtState(oprtType);
  938. if (STATUS_ADDNEW.equals(this.oprtState)) {
  939. } else if (STATUS_EDIT.equals(this.oprtState)) {
  940. } else if (STATUS_VIEW.equals(this.oprtState)) {
  941. } else if (STATUS_FINDVIEW.equals(this.oprtState)) {
  942. }
  943. }
  944. /**
  945. * output kdtEntrys_editStopping method
  946. */
  947. protected void kdtEntrys_editStopping(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) throws Exception
  948. {
  949. }
  950. /**
  951. * output kdtEntrys_editStopped method
  952. */
  953. protected void kdtEntrys_editStopped(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) throws Exception
  954. {
  955. }
  956. /**
  957. * output getSelectors method
  958. */
  959. public SelectorItemCollection getSelectors()
  960. {
  961. SelectorItemCollection sic = new SelectorItemCollection();
  962. String selectorAll = System.getProperty("selector.all");
  963. if(StringUtils.isEmpty(selectorAll)){
  964. selectorAll = "true";
  965. }
  966. if(selectorAll.equalsIgnoreCase("true"))
  967. {
  968. sic.add(new SelectorItemInfo("hrOrgUnit.*"));
  969. }
  970. else{
  971. sic.add(new SelectorItemInfo("hrOrgUnit.id"));
  972. sic.add(new SelectorItemInfo("hrOrgUnit.number"));
  973. sic.add(new SelectorItemInfo("hrOrgUnit.name"));
  974. }
  975. sic.add(new SelectorItemInfo("approveType"));
  976. sic.add(new SelectorItemInfo("entrys.id"));
  977. if(selectorAll.equalsIgnoreCase("true"))
  978. {
  979. sic.add(new SelectorItemInfo("entrys.*"));
  980. }
  981. else{
  982. }
  983. sic.add(new SelectorItemInfo("entrys.bizDate"));
  984. sic.add(new SelectorItemInfo("entrys.description"));
  985. sic.add(new SelectorItemInfo("entrys.months"));
  986. sic.add(new SelectorItemInfo("entrys.moneys"));
  987. sic.add(new SelectorItemInfo("entrys.beforeAmount"));
  988. sic.add(new SelectorItemInfo("entrys.reissueAmount"));
  989. sic.add(new SelectorItemInfo("entrys.amountPayable"));
  990. sic.add(new SelectorItemInfo("number"));
  991. sic.add(new SelectorItemInfo("description"));
  992. sic.add(new SelectorItemInfo("applier.name"));
  993. if(selectorAll.equalsIgnoreCase("true"))
  994. {
  995. sic.add(new SelectorItemInfo("adminOrg.*"));
  996. }
  997. else{
  998. sic.add(new SelectorItemInfo("adminOrg.id"));
  999. sic.add(new SelectorItemInfo("adminOrg.number"));
  1000. sic.add(new SelectorItemInfo("adminOrg.name"));
  1001. }
  1002. sic.add(new SelectorItemInfo("applyDate"));
  1003. sic.add(new SelectorItemInfo("billState"));
  1004. if(selectorAll.equalsIgnoreCase("true"))
  1005. {
  1006. sic.add(new SelectorItemInfo("adminOrgUnit.*"));
  1007. }
  1008. else{
  1009. sic.add(new SelectorItemInfo("adminOrgUnit.id"));
  1010. sic.add(new SelectorItemInfo("adminOrgUnit.number"));
  1011. sic.add(new SelectorItemInfo("adminOrgUnit.name"));
  1012. }
  1013. if(selectorAll.equalsIgnoreCase("true"))
  1014. {
  1015. sic.add(new SelectorItemInfo("person.*"));
  1016. }
  1017. else{
  1018. sic.add(new SelectorItemInfo("person.id"));
  1019. sic.add(new SelectorItemInfo("person.number"));
  1020. sic.add(new SelectorItemInfo("person.name"));
  1021. }
  1022. sic.add(new SelectorItemInfo("money"));
  1023. sic.add(new SelectorItemInfo("startDate"));
  1024. sic.add(new SelectorItemInfo("endDate"));
  1025. sic.add(new SelectorItemInfo("reissueDate"));
  1026. sic.add(new SelectorItemInfo("status"));
  1027. return sic;
  1028. }
  1029. /**
  1030. * output actionSubmit_actionPerformed method
  1031. */
  1032. public void actionSubmit_actionPerformed(ActionEvent e) throws Exception
  1033. {
  1034. super.actionSubmit_actionPerformed(e);
  1035. }
  1036. /**
  1037. * output actionPrint_actionPerformed method
  1038. */
  1039. public void actionPrint_actionPerformed(ActionEvent e) throws Exception
  1040. {
  1041. ArrayList idList = new ArrayList();
  1042. if (editData != null && !StringUtils.isEmpty(editData.getString("id"))) {
  1043. idList.add(editData.getString("id"));
  1044. }
  1045. if (idList == null || idList.size() == 0 || getTDQueryPK() == null || getTDFileName() == null)
  1046. return;
  1047. com.kingdee.bos.ctrl.kdf.data.impl.BOSQueryDelegate data = new com.kingdee.eas.framework.util.CommonDataProvider(idList,getTDQueryPK());
  1048. com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper appHlp = new com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper();
  1049. appHlp.print(getTDFileName(), data, javax.swing.SwingUtilities.getWindowAncestor(this));
  1050. }
  1051. /**
  1052. * output actionPrintPreview_actionPerformed method
  1053. */
  1054. public void actionPrintPreview_actionPerformed(ActionEvent e) throws Exception
  1055. {
  1056. ArrayList idList = new ArrayList();
  1057. if (editData != null && !StringUtils.isEmpty(editData.getString("id"))) {
  1058. idList.add(editData.getString("id"));
  1059. }
  1060. if (idList == null || idList.size() == 0 || getTDQueryPK() == null || getTDFileName() == null)
  1061. return;
  1062. com.kingdee.bos.ctrl.kdf.data.impl.BOSQueryDelegate data = new com.kingdee.eas.framework.util.CommonDataProvider(idList,getTDQueryPK());
  1063. com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper appHlp = new com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper();
  1064. appHlp.printPreview(getTDFileName(), data, javax.swing.SwingUtilities.getWindowAncestor(this));
  1065. }
  1066. /**
  1067. * output actionAudit_actionPerformed method
  1068. */
  1069. public void actionAudit_actionPerformed(ActionEvent e) throws Exception
  1070. {
  1071. super.actionAudit_actionPerformed(e);
  1072. }
  1073. /**
  1074. * output actionUnaudit_actionPerformed method
  1075. */
  1076. public void actionUnaudit_actionPerformed(ActionEvent e) throws Exception
  1077. {
  1078. super.actionUnaudit_actionPerformed(e);
  1079. }
  1080. public RequestContext prepareActionSubmit(IItemAction itemAction) throws Exception {
  1081. RequestContext request = super.prepareActionSubmit(itemAction);
  1082. if (request != null) {
  1083. request.setClassName(getUIHandlerClassName());
  1084. }
  1085. return request;
  1086. }
  1087. public boolean isPrepareActionSubmit() {
  1088. return false;
  1089. }
  1090. public RequestContext prepareActionPrint(IItemAction itemAction) throws Exception {
  1091. RequestContext request = super.prepareActionPrint(itemAction);
  1092. if (request != null) {
  1093. request.setClassName(getUIHandlerClassName());
  1094. }
  1095. return request;
  1096. }
  1097. public boolean isPrepareActionPrint() {
  1098. return false;
  1099. }
  1100. public RequestContext prepareActionPrintPreview(IItemAction itemAction) throws Exception {
  1101. RequestContext request = super.prepareActionPrintPreview(itemAction);
  1102. if (request != null) {
  1103. request.setClassName(getUIHandlerClassName());
  1104. }
  1105. return request;
  1106. }
  1107. public boolean isPrepareActionPrintPreview() {
  1108. return false;
  1109. }
  1110. public RequestContext prepareActionAudit(IItemAction itemAction) throws Exception {
  1111. RequestContext request = super.prepareActionAudit(itemAction);
  1112. if (request != null) {
  1113. request.setClassName(getUIHandlerClassName());
  1114. }
  1115. return request;
  1116. }
  1117. public boolean isPrepareActionAudit() {
  1118. return false;
  1119. }
  1120. public RequestContext prepareActionUnaudit(IItemAction itemAction) throws Exception {
  1121. RequestContext request = super.prepareActionUnaudit(itemAction);
  1122. if (request != null) {
  1123. request.setClassName(getUIHandlerClassName());
  1124. }
  1125. return request;
  1126. }
  1127. public boolean isPrepareActionUnaudit() {
  1128. return false;
  1129. }
  1130. /**
  1131. * output getMetaDataPK method
  1132. */
  1133. public IMetaDataPK getMetaDataPK()
  1134. {
  1135. return new MetaDataPK("com.kingdee.eas.custom.bill.salary.client", "SalaryBagEditUI");
  1136. }
  1137. /**
  1138. * output isBindWorkFlow method
  1139. */
  1140. public boolean isBindWorkFlow()
  1141. {
  1142. return true;
  1143. }
  1144. /**
  1145. * output getEditUIName method
  1146. */
  1147. protected String getEditUIName()
  1148. {
  1149. return com.kingdee.eas.custom.bill.salary.client.SalaryBagEditUI.class.getName();
  1150. }
  1151. /**
  1152. * output getBizInterface method
  1153. */
  1154. protected com.kingdee.eas.framework.ICoreBase getBizInterface() throws Exception
  1155. {
  1156. return com.kingdee.eas.custom.bill.salary.SalaryBagFactory.getRemoteInstance();
  1157. }
  1158. /**
  1159. * output createNewData method
  1160. */
  1161. protected IObjectValue createNewData()
  1162. {
  1163. com.kingdee.eas.custom.bill.salary.SalaryBagInfo objectValue = new com.kingdee.eas.custom.bill.salary.SalaryBagInfo();
  1164. if (com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum("Admin")) != null)
  1165. objectValue.put("adminOrgUnit",com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum("Admin")));
  1166. objectValue.setCreator((com.kingdee.eas.base.permission.UserInfo)(com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentUser()));
  1167. return objectValue;
  1168. }
  1169. protected String getTDFileName() {
  1170. return "/bim/custom/bill/salary/SalaryBag";
  1171. }
  1172. protected IMetaDataPK getTDQueryPK() {
  1173. return new MetaDataPK("com.kingdee.eas.custom.bill.salary.app.SalaryBagQuery");
  1174. }
  1175. /**
  1176. * output getDetailTable method
  1177. */
  1178. protected KDTable getDetailTable() {
  1179. return kdtEntrys;
  1180. }
  1181. /**
  1182. * output applyDefaultValue method
  1183. */
  1184. protected void applyDefaultValue(IObjectValue vo) {
  1185. vo.put("status","1");
  1186. }
  1187. protected void setFieldsNull(com.kingdee.bos.dao.AbstractObjectValue arg0) {
  1188. super.setFieldsNull(arg0);
  1189. arg0.put("number",null);
  1190. }
  1191. }