df821291c7cca7ed2ef564bcc68e0d8f4f184bb7.svn-base 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697
  1. /**
  2. * output package name
  3. */
  4. package com.kingdee.eas.custom.salarytemplate.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 AbstractWagesChromatographyEditUI extends com.kingdee.eas.hr.base.client.HRBillEditUI
  42. {
  43. private static final Logger logger = CoreUIObject.getLogger(AbstractWagesChromatographyEditUI.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 contaccountingstatus;
  53. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contAccountingfrequency;
  54. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstatisticalyear;
  55. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstatisticalmonth;
  56. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contcorporatename;
  57. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstarttime;
  58. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contendtime;
  59. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contisitlocked;
  60. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contcalculationNumber;
  61. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contcalculationName;
  62. protected com.kingdee.bos.ctrl.swing.KDLabelContainer conttaxpayingcode;
  63. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contwithholdingcode;
  64. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contWithholdingName;
  65. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstatus;
  66. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contbankName;
  67. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contbankcode;
  68. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contbankcardcode;
  69. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contexchangerate;
  70. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contOpeningProvince;
  71. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contopeningcity;
  72. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contnameofaccount;
  73. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contSalaryitemid;
  74. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contprojcetamount;
  75. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contpersonname;
  76. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contstaffno;
  77. protected com.kingdee.bos.ctrl.swing.KDLabelContainer contidcardno;
  78. protected com.kingdee.bos.ctrl.swing.KDTextField txtNumber;
  79. protected com.kingdee.bos.ctrl.swing.KDTextField txtDescription;
  80. protected com.kingdee.bos.ctrl.swing.KDTextField txtApplier;
  81. protected com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox prmtAdminOrg;
  82. protected com.kingdee.bos.ctrl.swing.KDDatePicker dpApplyDate;
  83. protected com.kingdee.bos.ctrl.swing.KDComboBox cbBillState;
  84. protected com.kingdee.bos.ctrl.swing.KDTextField txtaccountingstatus;
  85. protected com.kingdee.bos.ctrl.swing.KDTextField txtAccountingfrequency;
  86. protected com.kingdee.bos.ctrl.swing.KDTextField txtstatisticalyear;
  87. protected com.kingdee.bos.ctrl.swing.KDTextField txtstatisticalmonth;
  88. protected com.kingdee.bos.ctrl.swing.KDTextField txtcorporatename;
  89. protected com.kingdee.bos.ctrl.swing.KDDatePicker pkstarttime;
  90. protected com.kingdee.bos.ctrl.swing.KDDatePicker pkendtime;
  91. protected com.kingdee.bos.ctrl.swing.KDTextField txtisitlocked;
  92. protected com.kingdee.bos.ctrl.swing.KDTextField txtcalculationNumber;
  93. protected com.kingdee.bos.ctrl.swing.KDTextField txtcalculationName;
  94. protected com.kingdee.bos.ctrl.swing.KDTextField txttaxpayingcode;
  95. protected com.kingdee.bos.ctrl.swing.KDTextField txtwithholdingcode;
  96. protected com.kingdee.bos.ctrl.swing.KDTextField txtWithholdingName;
  97. protected com.kingdee.bos.ctrl.swing.KDTextField txtstatus;
  98. protected com.kingdee.bos.ctrl.swing.KDTextField txtbankName;
  99. protected com.kingdee.bos.ctrl.swing.KDTextField txtbankcode;
  100. protected com.kingdee.bos.ctrl.swing.KDTextField txtbankcardcode;
  101. protected com.kingdee.bos.ctrl.swing.KDTextField txtexchangerate;
  102. protected com.kingdee.bos.ctrl.swing.KDTextField txtOpeningProvince;
  103. protected com.kingdee.bos.ctrl.swing.KDTextField txtopeningcity;
  104. protected com.kingdee.bos.ctrl.swing.KDTextField txtnameofaccount;
  105. protected com.kingdee.bos.ctrl.swing.KDTextField txtSalaryitemid;
  106. protected com.kingdee.bos.ctrl.swing.KDTextField txtprojcetamount;
  107. protected com.kingdee.bos.ctrl.swing.KDTextField txtpersonname;
  108. protected com.kingdee.bos.ctrl.swing.KDTextField txtstaffno;
  109. protected com.kingdee.bos.ctrl.swing.KDTextField txtidcardno;
  110. protected com.kingdee.eas.custom.salarytemplate.WagesChromatographyInfo editData = null;
  111. /**
  112. * output class constructor
  113. */
  114. public AbstractWagesChromatographyEditUI() throws Exception
  115. {
  116. super();
  117. this.defaultObjectName = "editData";
  118. jbInit();
  119. initUIP();
  120. }
  121. /**
  122. * output jbInit method
  123. */
  124. private void jbInit() throws Exception
  125. {
  126. this.resHelper = new ResourceBundleHelper(AbstractWagesChromatographyEditUI.class.getName());
  127. this.setUITitle(resHelper.getString("this.title"));
  128. //actionSubmit
  129. String _tempStr = null;
  130. actionSubmit.setEnabled(true);
  131. actionSubmit.setDaemonRun(false);
  132. actionSubmit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl S"));
  133. _tempStr = resHelper.getString("ActionSubmit.SHORT_DESCRIPTION");
  134. actionSubmit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  135. _tempStr = resHelper.getString("ActionSubmit.LONG_DESCRIPTION");
  136. actionSubmit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  137. _tempStr = resHelper.getString("ActionSubmit.NAME");
  138. actionSubmit.putValue(ItemAction.NAME, _tempStr);
  139. this.actionSubmit.setBindWorkFlow(true);
  140. this.actionSubmit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  141. this.actionSubmit.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
  142. this.actionSubmit.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
  143. //actionPrint
  144. actionPrint.setEnabled(true);
  145. actionPrint.setDaemonRun(false);
  146. actionPrint.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl P"));
  147. _tempStr = resHelper.getString("ActionPrint.SHORT_DESCRIPTION");
  148. actionPrint.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  149. _tempStr = resHelper.getString("ActionPrint.LONG_DESCRIPTION");
  150. actionPrint.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  151. _tempStr = resHelper.getString("ActionPrint.NAME");
  152. actionPrint.putValue(ItemAction.NAME, _tempStr);
  153. this.actionPrint.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  154. this.actionPrint.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
  155. this.actionPrint.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
  156. //actionPrintPreview
  157. actionPrintPreview.setEnabled(true);
  158. actionPrintPreview.setDaemonRun(false);
  159. actionPrintPreview.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("shift ctrl P"));
  160. _tempStr = resHelper.getString("ActionPrintPreview.SHORT_DESCRIPTION");
  161. actionPrintPreview.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  162. _tempStr = resHelper.getString("ActionPrintPreview.LONG_DESCRIPTION");
  163. actionPrintPreview.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  164. _tempStr = resHelper.getString("ActionPrintPreview.NAME");
  165. actionPrintPreview.putValue(ItemAction.NAME, _tempStr);
  166. this.actionPrintPreview.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  167. this.actionPrintPreview.addService(new com.kingdee.eas.framework.client.service.NetFunctionService());
  168. this.actionPrintPreview.addService(new com.kingdee.eas.framework.client.service.UserMonitorService());
  169. //actionAudit
  170. actionAudit.setEnabled(true);
  171. actionAudit.setDaemonRun(false);
  172. actionAudit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl A"));
  173. _tempStr = resHelper.getString("ActionAudit.SHORT_DESCRIPTION");
  174. actionAudit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  175. _tempStr = resHelper.getString("ActionAudit.LONG_DESCRIPTION");
  176. actionAudit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  177. _tempStr = resHelper.getString("ActionAudit.NAME");
  178. actionAudit.putValue(ItemAction.NAME, _tempStr);
  179. this.actionAudit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  180. //actionUnaudit
  181. actionUnaudit.setEnabled(true);
  182. actionUnaudit.setDaemonRun(false);
  183. actionUnaudit.putValue(ItemAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke("ctrl U"));
  184. _tempStr = resHelper.getString("ActionUnaudit.SHORT_DESCRIPTION");
  185. actionUnaudit.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);
  186. _tempStr = resHelper.getString("ActionUnaudit.LONG_DESCRIPTION");
  187. actionUnaudit.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);
  188. _tempStr = resHelper.getString("ActionUnaudit.NAME");
  189. actionUnaudit.putValue(ItemAction.NAME, _tempStr);
  190. this.actionUnaudit.addService(new com.kingdee.eas.framework.client.service.PermissionService());
  191. this.contNumber = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  192. this.contDescription = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  193. this.kdtEntrys = new com.kingdee.bos.ctrl.kdf.table.KDTable();
  194. this.contApplier = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  195. this.contAdminOrg = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  196. this.contApplyDate = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  197. this.contBillState = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  198. this.contaccountingstatus = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  199. this.contAccountingfrequency = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  200. this.contstatisticalyear = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  201. this.contstatisticalmonth = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  202. this.contcorporatename = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  203. this.contstarttime = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  204. this.contendtime = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  205. this.contisitlocked = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  206. this.contcalculationNumber = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  207. this.contcalculationName = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  208. this.conttaxpayingcode = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  209. this.contwithholdingcode = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  210. this.contWithholdingName = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  211. this.contstatus = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  212. this.contbankName = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  213. this.contbankcode = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  214. this.contbankcardcode = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  215. this.contexchangerate = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  216. this.contOpeningProvince = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  217. this.contopeningcity = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  218. this.contnameofaccount = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  219. this.contSalaryitemid = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  220. this.contprojcetamount = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  221. this.contpersonname = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  222. this.contstaffno = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  223. this.contidcardno = new com.kingdee.bos.ctrl.swing.KDLabelContainer();
  224. this.txtNumber = new com.kingdee.bos.ctrl.swing.KDTextField();
  225. this.txtDescription = new com.kingdee.bos.ctrl.swing.KDTextField();
  226. this.txtApplier = new com.kingdee.bos.ctrl.swing.KDTextField();
  227. this.prmtAdminOrg = new com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox();
  228. this.dpApplyDate = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  229. this.cbBillState = new com.kingdee.bos.ctrl.swing.KDComboBox();
  230. this.txtaccountingstatus = new com.kingdee.bos.ctrl.swing.KDTextField();
  231. this.txtAccountingfrequency = new com.kingdee.bos.ctrl.swing.KDTextField();
  232. this.txtstatisticalyear = new com.kingdee.bos.ctrl.swing.KDTextField();
  233. this.txtstatisticalmonth = new com.kingdee.bos.ctrl.swing.KDTextField();
  234. this.txtcorporatename = new com.kingdee.bos.ctrl.swing.KDTextField();
  235. this.pkstarttime = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  236. this.pkendtime = new com.kingdee.bos.ctrl.swing.KDDatePicker();
  237. this.txtisitlocked = new com.kingdee.bos.ctrl.swing.KDTextField();
  238. this.txtcalculationNumber = new com.kingdee.bos.ctrl.swing.KDTextField();
  239. this.txtcalculationName = new com.kingdee.bos.ctrl.swing.KDTextField();
  240. this.txttaxpayingcode = new com.kingdee.bos.ctrl.swing.KDTextField();
  241. this.txtwithholdingcode = new com.kingdee.bos.ctrl.swing.KDTextField();
  242. this.txtWithholdingName = new com.kingdee.bos.ctrl.swing.KDTextField();
  243. this.txtstatus = new com.kingdee.bos.ctrl.swing.KDTextField();
  244. this.txtbankName = new com.kingdee.bos.ctrl.swing.KDTextField();
  245. this.txtbankcode = new com.kingdee.bos.ctrl.swing.KDTextField();
  246. this.txtbankcardcode = new com.kingdee.bos.ctrl.swing.KDTextField();
  247. this.txtexchangerate = new com.kingdee.bos.ctrl.swing.KDTextField();
  248. this.txtOpeningProvince = new com.kingdee.bos.ctrl.swing.KDTextField();
  249. this.txtopeningcity = new com.kingdee.bos.ctrl.swing.KDTextField();
  250. this.txtnameofaccount = new com.kingdee.bos.ctrl.swing.KDTextField();
  251. this.txtSalaryitemid = new com.kingdee.bos.ctrl.swing.KDTextField();
  252. this.txtprojcetamount = new com.kingdee.bos.ctrl.swing.KDTextField();
  253. this.txtpersonname = new com.kingdee.bos.ctrl.swing.KDTextField();
  254. this.txtstaffno = new com.kingdee.bos.ctrl.swing.KDTextField();
  255. this.txtidcardno = new com.kingdee.bos.ctrl.swing.KDTextField();
  256. this.contNumber.setName("contNumber");
  257. this.contDescription.setName("contDescription");
  258. this.kdtEntrys.setName("kdtEntrys");
  259. this.contApplier.setName("contApplier");
  260. this.contAdminOrg.setName("contAdminOrg");
  261. this.contApplyDate.setName("contApplyDate");
  262. this.contBillState.setName("contBillState");
  263. this.contaccountingstatus.setName("contaccountingstatus");
  264. this.contAccountingfrequency.setName("contAccountingfrequency");
  265. this.contstatisticalyear.setName("contstatisticalyear");
  266. this.contstatisticalmonth.setName("contstatisticalmonth");
  267. this.contcorporatename.setName("contcorporatename");
  268. this.contstarttime.setName("contstarttime");
  269. this.contendtime.setName("contendtime");
  270. this.contisitlocked.setName("contisitlocked");
  271. this.contcalculationNumber.setName("contcalculationNumber");
  272. this.contcalculationName.setName("contcalculationName");
  273. this.conttaxpayingcode.setName("conttaxpayingcode");
  274. this.contwithholdingcode.setName("contwithholdingcode");
  275. this.contWithholdingName.setName("contWithholdingName");
  276. this.contstatus.setName("contstatus");
  277. this.contbankName.setName("contbankName");
  278. this.contbankcode.setName("contbankcode");
  279. this.contbankcardcode.setName("contbankcardcode");
  280. this.contexchangerate.setName("contexchangerate");
  281. this.contOpeningProvince.setName("contOpeningProvince");
  282. this.contopeningcity.setName("contopeningcity");
  283. this.contnameofaccount.setName("contnameofaccount");
  284. this.contSalaryitemid.setName("contSalaryitemid");
  285. this.contprojcetamount.setName("contprojcetamount");
  286. this.contpersonname.setName("contpersonname");
  287. this.contstaffno.setName("contstaffno");
  288. this.contidcardno.setName("contidcardno");
  289. this.txtNumber.setName("txtNumber");
  290. this.txtDescription.setName("txtDescription");
  291. this.txtApplier.setName("txtApplier");
  292. this.prmtAdminOrg.setName("prmtAdminOrg");
  293. this.dpApplyDate.setName("dpApplyDate");
  294. this.cbBillState.setName("cbBillState");
  295. this.txtaccountingstatus.setName("txtaccountingstatus");
  296. this.txtAccountingfrequency.setName("txtAccountingfrequency");
  297. this.txtstatisticalyear.setName("txtstatisticalyear");
  298. this.txtstatisticalmonth.setName("txtstatisticalmonth");
  299. this.txtcorporatename.setName("txtcorporatename");
  300. this.pkstarttime.setName("pkstarttime");
  301. this.pkendtime.setName("pkendtime");
  302. this.txtisitlocked.setName("txtisitlocked");
  303. this.txtcalculationNumber.setName("txtcalculationNumber");
  304. this.txtcalculationName.setName("txtcalculationName");
  305. this.txttaxpayingcode.setName("txttaxpayingcode");
  306. this.txtwithholdingcode.setName("txtwithholdingcode");
  307. this.txtWithholdingName.setName("txtWithholdingName");
  308. this.txtstatus.setName("txtstatus");
  309. this.txtbankName.setName("txtbankName");
  310. this.txtbankcode.setName("txtbankcode");
  311. this.txtbankcardcode.setName("txtbankcardcode");
  312. this.txtexchangerate.setName("txtexchangerate");
  313. this.txtOpeningProvince.setName("txtOpeningProvince");
  314. this.txtopeningcity.setName("txtopeningcity");
  315. this.txtnameofaccount.setName("txtnameofaccount");
  316. this.txtSalaryitemid.setName("txtSalaryitemid");
  317. this.txtprojcetamount.setName("txtprojcetamount");
  318. this.txtpersonname.setName("txtpersonname");
  319. this.txtstaffno.setName("txtstaffno");
  320. this.txtidcardno.setName("txtidcardno");
  321. // CoreUI
  322. this.btnPrint.setVisible(false);
  323. this.btnPrintPreview.setVisible(false);
  324. this.menuItemPrint.setVisible(false);
  325. this.menuItemPrintPreview.setVisible(false);
  326. this.btnTraceUp.setVisible(false);
  327. this.btnTraceDown.setVisible(false);
  328. this.btnCreateFrom.setVisible(false);
  329. this.btnAddLine.setVisible(false);
  330. this.btnInsertLine.setVisible(false);
  331. this.btnRemoveLine.setVisible(false);
  332. this.btnAuditResult.setVisible(false);
  333. this.separator1.setVisible(false);
  334. this.menuItemCreateFrom.setVisible(false);
  335. this.menuItemCopyFrom.setVisible(false);
  336. this.separator3.setVisible(false);
  337. this.menuItemTraceUp.setVisible(false);
  338. this.menuItemTraceDown.setVisible(false);
  339. this.menuItemAddLine.setVisible(false);
  340. this.menuItemInsertLine.setVisible(false);
  341. this.menuItemRemoveLine.setVisible(false);
  342. this.menuItemViewSubmitProccess.setVisible(false);
  343. this.menuItemViewDoProccess.setVisible(false);
  344. this.menuItemAuditResult.setVisible(false);
  345. this.contHROrg.setBoundLabelText(resHelper.getString("contHROrg.boundLabelText"));
  346. this.contHROrg.setBoundLabelLength(90);
  347. this.contHROrg.setBoundLabelUnderline(true);
  348. this.contHROrg.setBoundLabelAlignment(7);
  349. this.contHROrg.setVisible(true);
  350. this.contApproveType.setBoundLabelText(resHelper.getString("contApproveType.boundLabelText"));
  351. this.contApproveType.setBoundLabelLength(90);
  352. this.contApproveType.setBoundLabelUnderline(true);
  353. this.contApproveType.setBoundLabelAlignment(7);
  354. this.contApproveType.setVisible(true);
  355. this.prmtHROrg.setRequired(true);
  356. this.prmtHROrg.setVisible(true);
  357. this.prmtHROrg.setEnabled(true);
  358. this.cbApproveType.setRequired(true);
  359. this.cbApproveType.setVisible(true);
  360. this.cbApproveType.setEnabled(true);
  361. this.btnAudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionAudit, new Class[] { IItemAction.class }, getServiceContext()));
  362. this.btnAudit.setText(resHelper.getString("btnAudit.text"));
  363. this.btnAudit.setToolTipText(resHelper.getString("btnAudit.toolTipText"));
  364. this.btnAudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_audit"));
  365. this.btnUnaudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionUnaudit, new Class[] { IItemAction.class }, getServiceContext()));
  366. this.btnUnaudit.setText(resHelper.getString("btnUnaudit.text"));
  367. this.btnUnaudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_unaudit"));
  368. this.btnUnaudit.setToolTipText(resHelper.getString("btnUnaudit.toolTipText"));
  369. this.btnUnaudit.setVisible(false);
  370. this.menuItemAudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionAudit, new Class[] { IItemAction.class }, getServiceContext()));
  371. this.menuItemAudit.setText(resHelper.getString("menuItemAudit.text"));
  372. this.menuItemAudit.setToolTipText(resHelper.getString("menuItemAudit.toolTipText"));
  373. this.menuItemAudit.setMnemonic(65);
  374. this.menuItemAudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_audit"));
  375. this.menuItemUnaudit.setAction((IItemAction)ActionProxyFactory.getProxy(actionUnaudit, new Class[] { IItemAction.class }, getServiceContext()));
  376. this.menuItemUnaudit.setText(resHelper.getString("menuItemUnaudit.text"));
  377. this.menuItemUnaudit.setToolTipText(resHelper.getString("menuItemUnaudit.toolTipText"));
  378. this.menuItemUnaudit.setMnemonic(85);
  379. this.menuItemUnaudit.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTbtn_unaudit"));
  380. this.menuItemUnaudit.setVisible(false);
  381. // contNumber
  382. this.contNumber.setBoundLabelText(resHelper.getString("contNumber.boundLabelText"));
  383. this.contNumber.setBoundLabelLength(90);
  384. this.contNumber.setBoundLabelUnderline(true);
  385. this.contNumber.setBoundLabelAlignment(7);
  386. this.contNumber.setVisible(true);
  387. // contDescription
  388. this.contDescription.setBoundLabelText(resHelper.getString("contDescription.boundLabelText"));
  389. this.contDescription.setBoundLabelLength(90);
  390. this.contDescription.setBoundLabelUnderline(true);
  391. this.contDescription.setBoundLabelAlignment(7);
  392. this.contDescription.setVisible(true);
  393. // kdtEntrys
  394. 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:Protection locked=\"true\" hidden=\"true\" /></c:Style><c:Style id=\"sCol2\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol3\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol4\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol5\"><c:Protection locked=\"true\" /></c:Style><c:Style id=\"sCol6\"><c:NumberFormat>yyyy-mm-dd</c:NumberFormat></c:Style><c:Style id=\"sCol9\"><c:NumberFormat>&amp;date</c:NumberFormat></c:Style></Styles><Table id=\"KDTable\"><t:Sheet name=\"sheet1\"><t:Table t:selectMode=\"15\" t:mergeMode=\"0\" t:dataRequestMode=\"0\" t:pageRowCount=\"100\"><t:ColumnGroup><t:Column t:key=\"id\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol0\" /><t:Column t:key=\"person\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"2\" t:styleID=\"sCol1\" /><t:Column t:key=\"empNumber\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"3\" t:styleID=\"sCol2\" /><t:Column t:key=\"empName\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"4\" t:styleID=\"sCol3\" /><t:Column t:key=\"position\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"9\" t:styleID=\"sCol4\" /><t:Column t:key=\"adminOrg\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"10\" t:styleID=\"sCol5\" /><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=\"sCol6\" /><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=\"personID\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" /><t:Column t:key=\"checkoutcycle\" t:width=\"-1\" t:mergeable=\"true\" t:resizeable=\"true\" t:moveable=\"true\" t:group=\"false\" t:required=\"false\" t:index=\"-1\" t:styleID=\"sCol9\" /></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{person}</t:Cell><t:Cell>$Resource{empNumber}</t:Cell><t:Cell>$Resource{empName}</t:Cell><t:Cell>$Resource{position}</t:Cell><t:Cell>$Resource{adminOrg}</t:Cell><t:Cell>$Resource{bizDate}</t:Cell><t:Cell>$Resource{description}</t:Cell><t:Cell>$Resource{personID}</t:Cell><t:Cell>$Resource{checkoutcycle}</t:Cell></t:Row></t:Head></t:Table><t:SheetOptions><t:MergeBlocks><t:Head /></t:MergeBlocks></t:SheetOptions></t:Sheet></Table></DocRoot>";
  395. this.kdtEntrys.setFormatXml(resHelper.translateString("kdtEntrys",kdtEntrysStrXML));
  396. this.kdtEntrys.addKDTEditListener(new com.kingdee.bos.ctrl.kdf.table.event.KDTEditAdapter() {
  397. public void editStopping(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) {
  398. try {
  399. kdtEntrys_editStopping(e);
  400. } catch(Exception exc) {
  401. handUIException(exc);
  402. }
  403. }
  404. public void editStopped(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) {
  405. try {
  406. kdtEntrys_editStopped(e);
  407. } catch(Exception exc) {
  408. handUIException(exc);
  409. }
  410. }
  411. });
  412. this.kdtEntrys.putBindContents("editData",new String[] {"id","person","person.number","person.name","position","adminOrg","bizDate","description","personID","checkoutcycle"});
  413. this.kdtEntrys.checkParsed();
  414. final KDBizPromptBox kdtEntrys_person_PromptBox = new KDBizPromptBox();
  415. kdtEntrys_person_PromptBox.setQueryInfo("com.kingdee.eas.basedata.person.app.PersonQuery");
  416. kdtEntrys_person_PromptBox.setVisible(true);
  417. kdtEntrys_person_PromptBox.setEditable(true);
  418. kdtEntrys_person_PromptBox.setDisplayFormat("$number$");
  419. kdtEntrys_person_PromptBox.setEditFormat("$number$");
  420. kdtEntrys_person_PromptBox.setCommitFormat("$number$");
  421. KDTDefaultCellEditor kdtEntrys_person_CellEditor = new KDTDefaultCellEditor(kdtEntrys_person_PromptBox);
  422. this.kdtEntrys.getColumn("person").setEditor(kdtEntrys_person_CellEditor);
  423. ObjectValueRender kdtEntrys_person_OVR = new ObjectValueRender();
  424. kdtEntrys_person_OVR.setFormat(new BizDataFormat("$name$"));
  425. this.kdtEntrys.getColumn("person").setRenderer(kdtEntrys_person_OVR);
  426. KDTextField kdtEntrys_empName_TextField = new KDTextField();
  427. kdtEntrys_empName_TextField.setName("kdtEntrys_empName_TextField");
  428. kdtEntrys_empName_TextField.setMaxLength(80);
  429. KDTDefaultCellEditor kdtEntrys_empName_CellEditor = new KDTDefaultCellEditor(kdtEntrys_empName_TextField);
  430. this.kdtEntrys.getColumn("empName").setEditor(kdtEntrys_empName_CellEditor);
  431. final KDBizPromptBox kdtEntrys_position_PromptBox = new KDBizPromptBox();
  432. kdtEntrys_position_PromptBox.setQueryInfo("com.kingdee.eas.basedata.org.app.PositionQuery");
  433. kdtEntrys_position_PromptBox.setVisible(true);
  434. kdtEntrys_position_PromptBox.setEditable(true);
  435. kdtEntrys_position_PromptBox.setDisplayFormat("$number$");
  436. kdtEntrys_position_PromptBox.setEditFormat("$number$");
  437. kdtEntrys_position_PromptBox.setCommitFormat("$number$");
  438. KDTDefaultCellEditor kdtEntrys_position_CellEditor = new KDTDefaultCellEditor(kdtEntrys_position_PromptBox);
  439. this.kdtEntrys.getColumn("position").setEditor(kdtEntrys_position_CellEditor);
  440. ObjectValueRender kdtEntrys_position_OVR = new ObjectValueRender();
  441. kdtEntrys_position_OVR.setFormat(new BizDataFormat("$name$"));
  442. this.kdtEntrys.getColumn("position").setRenderer(kdtEntrys_position_OVR);
  443. final KDBizPromptBox kdtEntrys_adminOrg_PromptBox = new KDBizPromptBox();
  444. kdtEntrys_adminOrg_PromptBox.setQueryInfo("com.kingdee.eas.basedata.org.app.AdminItemQuery");
  445. kdtEntrys_adminOrg_PromptBox.setVisible(true);
  446. kdtEntrys_adminOrg_PromptBox.setEditable(true);
  447. kdtEntrys_adminOrg_PromptBox.setDisplayFormat("$number$");
  448. kdtEntrys_adminOrg_PromptBox.setEditFormat("$number$");
  449. kdtEntrys_adminOrg_PromptBox.setCommitFormat("$number$");
  450. KDTDefaultCellEditor kdtEntrys_adminOrg_CellEditor = new KDTDefaultCellEditor(kdtEntrys_adminOrg_PromptBox);
  451. this.kdtEntrys.getColumn("adminOrg").setEditor(kdtEntrys_adminOrg_CellEditor);
  452. ObjectValueRender kdtEntrys_adminOrg_OVR = new ObjectValueRender();
  453. kdtEntrys_adminOrg_OVR.setFormat(new BizDataFormat("$name$"));
  454. this.kdtEntrys.getColumn("adminOrg").setRenderer(kdtEntrys_adminOrg_OVR);
  455. KDDatePicker kdtEntrys_bizDate_DatePicker = new KDDatePicker();
  456. kdtEntrys_bizDate_DatePicker.setName("kdtEntrys_bizDate_DatePicker");
  457. kdtEntrys_bizDate_DatePicker.setVisible(true);
  458. kdtEntrys_bizDate_DatePicker.setEditable(true);
  459. KDTDefaultCellEditor kdtEntrys_bizDate_CellEditor = new KDTDefaultCellEditor(kdtEntrys_bizDate_DatePicker);
  460. this.kdtEntrys.getColumn("bizDate").setEditor(kdtEntrys_bizDate_CellEditor);
  461. KDTextField kdtEntrys_description_TextField = new KDTextField();
  462. kdtEntrys_description_TextField.setName("kdtEntrys_description_TextField");
  463. kdtEntrys_description_TextField.setMaxLength(200);
  464. KDTDefaultCellEditor kdtEntrys_description_CellEditor = new KDTDefaultCellEditor(kdtEntrys_description_TextField);
  465. this.kdtEntrys.getColumn("description").setEditor(kdtEntrys_description_CellEditor);
  466. KDTextField kdtEntrys_personID_TextField = new KDTextField();
  467. kdtEntrys_personID_TextField.setName("kdtEntrys_personID_TextField");
  468. kdtEntrys_personID_TextField.setMaxLength(100);
  469. KDTDefaultCellEditor kdtEntrys_personID_CellEditor = new KDTDefaultCellEditor(kdtEntrys_personID_TextField);
  470. this.kdtEntrys.getColumn("personID").setEditor(kdtEntrys_personID_CellEditor);
  471. KDDatePicker kdtEntrys_checkoutcycle_DatePicker = new KDDatePicker();
  472. kdtEntrys_checkoutcycle_DatePicker.setName("kdtEntrys_checkoutcycle_DatePicker");
  473. kdtEntrys_checkoutcycle_DatePicker.setVisible(true);
  474. kdtEntrys_checkoutcycle_DatePicker.setEditable(true);
  475. KDTDefaultCellEditor kdtEntrys_checkoutcycle_CellEditor = new KDTDefaultCellEditor(kdtEntrys_checkoutcycle_DatePicker);
  476. this.kdtEntrys.getColumn("checkoutcycle").setEditor(kdtEntrys_checkoutcycle_CellEditor);
  477. // contApplier
  478. this.contApplier.setBoundLabelText(resHelper.getString("contApplier.boundLabelText"));
  479. this.contApplier.setBoundLabelLength(90);
  480. this.contApplier.setBoundLabelUnderline(true);
  481. this.contApplier.setBoundLabelAlignment(7);
  482. this.contApplier.setVisible(true);
  483. // contAdminOrg
  484. this.contAdminOrg.setBoundLabelText(resHelper.getString("contAdminOrg.boundLabelText"));
  485. this.contAdminOrg.setBoundLabelLength(90);
  486. this.contAdminOrg.setBoundLabelUnderline(true);
  487. this.contAdminOrg.setBoundLabelAlignment(7);
  488. this.contAdminOrg.setVisible(true);
  489. // contApplyDate
  490. this.contApplyDate.setBoundLabelText(resHelper.getString("contApplyDate.boundLabelText"));
  491. this.contApplyDate.setBoundLabelLength(90);
  492. this.contApplyDate.setBoundLabelUnderline(true);
  493. this.contApplyDate.setBoundLabelAlignment(7);
  494. this.contApplyDate.setVisible(true);
  495. // contBillState
  496. this.contBillState.setBoundLabelText(resHelper.getString("contBillState.boundLabelText"));
  497. this.contBillState.setBoundLabelLength(90);
  498. this.contBillState.setBoundLabelUnderline(true);
  499. this.contBillState.setBoundLabelAlignment(7);
  500. this.contBillState.setVisible(false);
  501. // contaccountingstatus
  502. this.contaccountingstatus.setBoundLabelText(resHelper.getString("contaccountingstatus.boundLabelText"));
  503. this.contaccountingstatus.setBoundLabelLength(100);
  504. this.contaccountingstatus.setBoundLabelUnderline(true);
  505. this.contaccountingstatus.setVisible(true);
  506. // contAccountingfrequency
  507. this.contAccountingfrequency.setBoundLabelText(resHelper.getString("contAccountingfrequency.boundLabelText"));
  508. this.contAccountingfrequency.setBoundLabelLength(100);
  509. this.contAccountingfrequency.setBoundLabelUnderline(true);
  510. this.contAccountingfrequency.setVisible(true);
  511. // contstatisticalyear
  512. this.contstatisticalyear.setBoundLabelText(resHelper.getString("contstatisticalyear.boundLabelText"));
  513. this.contstatisticalyear.setBoundLabelLength(100);
  514. this.contstatisticalyear.setBoundLabelUnderline(true);
  515. this.contstatisticalyear.setVisible(true);
  516. // contstatisticalmonth
  517. this.contstatisticalmonth.setBoundLabelText(resHelper.getString("contstatisticalmonth.boundLabelText"));
  518. this.contstatisticalmonth.setBoundLabelLength(100);
  519. this.contstatisticalmonth.setBoundLabelUnderline(true);
  520. this.contstatisticalmonth.setVisible(true);
  521. // contcorporatename
  522. this.contcorporatename.setBoundLabelText(resHelper.getString("contcorporatename.boundLabelText"));
  523. this.contcorporatename.setBoundLabelLength(100);
  524. this.contcorporatename.setBoundLabelUnderline(true);
  525. this.contcorporatename.setVisible(true);
  526. // contstarttime
  527. this.contstarttime.setBoundLabelText(resHelper.getString("contstarttime.boundLabelText"));
  528. this.contstarttime.setBoundLabelLength(100);
  529. this.contstarttime.setBoundLabelUnderline(true);
  530. this.contstarttime.setVisible(true);
  531. // contendtime
  532. this.contendtime.setBoundLabelText(resHelper.getString("contendtime.boundLabelText"));
  533. this.contendtime.setBoundLabelLength(100);
  534. this.contendtime.setBoundLabelUnderline(true);
  535. this.contendtime.setVisible(true);
  536. // contisitlocked
  537. this.contisitlocked.setBoundLabelText(resHelper.getString("contisitlocked.boundLabelText"));
  538. this.contisitlocked.setBoundLabelLength(100);
  539. this.contisitlocked.setBoundLabelUnderline(true);
  540. this.contisitlocked.setVisible(true);
  541. // contcalculationNumber
  542. this.contcalculationNumber.setBoundLabelText(resHelper.getString("contcalculationNumber.boundLabelText"));
  543. this.contcalculationNumber.setBoundLabelLength(100);
  544. this.contcalculationNumber.setBoundLabelUnderline(true);
  545. this.contcalculationNumber.setVisible(true);
  546. // contcalculationName
  547. this.contcalculationName.setBoundLabelText(resHelper.getString("contcalculationName.boundLabelText"));
  548. this.contcalculationName.setBoundLabelLength(100);
  549. this.contcalculationName.setBoundLabelUnderline(true);
  550. this.contcalculationName.setVisible(true);
  551. // conttaxpayingcode
  552. this.conttaxpayingcode.setBoundLabelText(resHelper.getString("conttaxpayingcode.boundLabelText"));
  553. this.conttaxpayingcode.setBoundLabelLength(100);
  554. this.conttaxpayingcode.setBoundLabelUnderline(true);
  555. this.conttaxpayingcode.setVisible(true);
  556. // contwithholdingcode
  557. this.contwithholdingcode.setBoundLabelText(resHelper.getString("contwithholdingcode.boundLabelText"));
  558. this.contwithholdingcode.setBoundLabelLength(100);
  559. this.contwithholdingcode.setBoundLabelUnderline(true);
  560. this.contwithholdingcode.setVisible(true);
  561. // contWithholdingName
  562. this.contWithholdingName.setBoundLabelText(resHelper.getString("contWithholdingName.boundLabelText"));
  563. this.contWithholdingName.setBoundLabelLength(100);
  564. this.contWithholdingName.setBoundLabelUnderline(true);
  565. this.contWithholdingName.setVisible(true);
  566. // contstatus
  567. this.contstatus.setBoundLabelText(resHelper.getString("contstatus.boundLabelText"));
  568. this.contstatus.setBoundLabelLength(100);
  569. this.contstatus.setBoundLabelUnderline(true);
  570. this.contstatus.setVisible(true);
  571. // contbankName
  572. this.contbankName.setBoundLabelText(resHelper.getString("contbankName.boundLabelText"));
  573. this.contbankName.setBoundLabelLength(100);
  574. this.contbankName.setBoundLabelUnderline(true);
  575. this.contbankName.setVisible(true);
  576. // contbankcode
  577. this.contbankcode.setBoundLabelText(resHelper.getString("contbankcode.boundLabelText"));
  578. this.contbankcode.setBoundLabelLength(100);
  579. this.contbankcode.setBoundLabelUnderline(true);
  580. this.contbankcode.setVisible(true);
  581. // contbankcardcode
  582. this.contbankcardcode.setBoundLabelText(resHelper.getString("contbankcardcode.boundLabelText"));
  583. this.contbankcardcode.setBoundLabelLength(100);
  584. this.contbankcardcode.setBoundLabelUnderline(true);
  585. this.contbankcardcode.setVisible(true);
  586. // contexchangerate
  587. this.contexchangerate.setBoundLabelText(resHelper.getString("contexchangerate.boundLabelText"));
  588. this.contexchangerate.setBoundLabelLength(100);
  589. this.contexchangerate.setBoundLabelUnderline(true);
  590. this.contexchangerate.setVisible(true);
  591. // contOpeningProvince
  592. this.contOpeningProvince.setBoundLabelText(resHelper.getString("contOpeningProvince.boundLabelText"));
  593. this.contOpeningProvince.setBoundLabelLength(100);
  594. this.contOpeningProvince.setBoundLabelUnderline(true);
  595. this.contOpeningProvince.setVisible(true);
  596. // contopeningcity
  597. this.contopeningcity.setBoundLabelText(resHelper.getString("contopeningcity.boundLabelText"));
  598. this.contopeningcity.setBoundLabelLength(100);
  599. this.contopeningcity.setBoundLabelUnderline(true);
  600. this.contopeningcity.setVisible(true);
  601. // contnameofaccount
  602. this.contnameofaccount.setBoundLabelText(resHelper.getString("contnameofaccount.boundLabelText"));
  603. this.contnameofaccount.setBoundLabelLength(100);
  604. this.contnameofaccount.setBoundLabelUnderline(true);
  605. this.contnameofaccount.setVisible(true);
  606. // contSalaryitemid
  607. this.contSalaryitemid.setBoundLabelText(resHelper.getString("contSalaryitemid.boundLabelText"));
  608. this.contSalaryitemid.setBoundLabelLength(100);
  609. this.contSalaryitemid.setBoundLabelUnderline(true);
  610. this.contSalaryitemid.setVisible(true);
  611. // contprojcetamount
  612. this.contprojcetamount.setBoundLabelText(resHelper.getString("contprojcetamount.boundLabelText"));
  613. this.contprojcetamount.setBoundLabelLength(100);
  614. this.contprojcetamount.setBoundLabelUnderline(true);
  615. this.contprojcetamount.setVisible(true);
  616. // contpersonname
  617. this.contpersonname.setBoundLabelText(resHelper.getString("contpersonname.boundLabelText"));
  618. this.contpersonname.setBoundLabelLength(100);
  619. this.contpersonname.setBoundLabelUnderline(true);
  620. this.contpersonname.setVisible(true);
  621. // contstaffno
  622. this.contstaffno.setBoundLabelText(resHelper.getString("contstaffno.boundLabelText"));
  623. this.contstaffno.setBoundLabelLength(100);
  624. this.contstaffno.setBoundLabelUnderline(true);
  625. this.contstaffno.setVisible(true);
  626. // contidcardno
  627. this.contidcardno.setBoundLabelText(resHelper.getString("contidcardno.boundLabelText"));
  628. this.contidcardno.setBoundLabelLength(100);
  629. this.contidcardno.setBoundLabelUnderline(true);
  630. this.contidcardno.setVisible(true);
  631. // txtNumber
  632. this.txtNumber.setMaxLength(80);
  633. this.txtNumber.setRequired(true);
  634. this.txtNumber.setVisible(true);
  635. this.txtNumber.setEnabled(true);
  636. this.txtNumber.setHorizontalAlignment(2);
  637. // txtDescription
  638. this.txtDescription.setMaxLength(200);
  639. this.txtDescription.setVisible(true);
  640. this.txtDescription.setEnabled(true);
  641. this.txtDescription.setHorizontalAlignment(2);
  642. this.txtDescription.setRequired(false);
  643. // txtApplier
  644. this.txtApplier.setEnabled(false);
  645. this.txtApplier.setMaxLength(80);
  646. this.txtApplier.setVisible(true);
  647. this.txtApplier.setHorizontalAlignment(2);
  648. this.txtApplier.setRequired(false);
  649. // prmtAdminOrg
  650. this.prmtAdminOrg.setRequired(true);
  651. this.prmtAdminOrg.setVisible(true);
  652. this.prmtAdminOrg.setEnabled(true);
  653. // dpApplyDate
  654. this.dpApplyDate.setEnabled(false);
  655. this.dpApplyDate.setVisible(true);
  656. this.dpApplyDate.setRequired(false);
  657. // cbBillState
  658. this.cbBillState.addItems(EnumUtils.getEnumList("com.kingdee.eas.hr.base.HRBillStateEnum").toArray());
  659. this.cbBillState.setEnabled(false);
  660. this.cbBillState.setVisible(false);
  661. this.cbBillState.setRequired(false);
  662. // txtaccountingstatus
  663. this.txtaccountingstatus.setVisible(true);
  664. this.txtaccountingstatus.setHorizontalAlignment(2);
  665. this.txtaccountingstatus.setMaxLength(100);
  666. this.txtaccountingstatus.setRequired(false);
  667. // txtAccountingfrequency
  668. this.txtAccountingfrequency.setVisible(true);
  669. this.txtAccountingfrequency.setHorizontalAlignment(2);
  670. this.txtAccountingfrequency.setMaxLength(100);
  671. this.txtAccountingfrequency.setRequired(false);
  672. // txtstatisticalyear
  673. this.txtstatisticalyear.setVisible(true);
  674. this.txtstatisticalyear.setHorizontalAlignment(2);
  675. this.txtstatisticalyear.setMaxLength(100);
  676. this.txtstatisticalyear.setRequired(false);
  677. // txtstatisticalmonth
  678. this.txtstatisticalmonth.setVisible(true);
  679. this.txtstatisticalmonth.setHorizontalAlignment(2);
  680. this.txtstatisticalmonth.setMaxLength(100);
  681. this.txtstatisticalmonth.setRequired(false);
  682. // txtcorporatename
  683. this.txtcorporatename.setVisible(true);
  684. this.txtcorporatename.setHorizontalAlignment(2);
  685. this.txtcorporatename.setMaxLength(100);
  686. this.txtcorporatename.setRequired(false);
  687. // pkstarttime
  688. this.pkstarttime.setVisible(true);
  689. this.pkstarttime.setRequired(false);
  690. // pkendtime
  691. this.pkendtime.setVisible(true);
  692. this.pkendtime.setRequired(false);
  693. // txtisitlocked
  694. this.txtisitlocked.setVisible(true);
  695. this.txtisitlocked.setHorizontalAlignment(2);
  696. this.txtisitlocked.setMaxLength(100);
  697. this.txtisitlocked.setRequired(false);
  698. // txtcalculationNumber
  699. this.txtcalculationNumber.setVisible(true);
  700. this.txtcalculationNumber.setHorizontalAlignment(2);
  701. this.txtcalculationNumber.setMaxLength(100);
  702. this.txtcalculationNumber.setRequired(false);
  703. // txtcalculationName
  704. this.txtcalculationName.setVisible(true);
  705. this.txtcalculationName.setHorizontalAlignment(2);
  706. this.txtcalculationName.setMaxLength(100);
  707. this.txtcalculationName.setRequired(false);
  708. // txttaxpayingcode
  709. this.txttaxpayingcode.setVisible(true);
  710. this.txttaxpayingcode.setHorizontalAlignment(2);
  711. this.txttaxpayingcode.setMaxLength(100);
  712. this.txttaxpayingcode.setRequired(false);
  713. // txtwithholdingcode
  714. this.txtwithholdingcode.setVisible(true);
  715. this.txtwithholdingcode.setHorizontalAlignment(2);
  716. this.txtwithholdingcode.setMaxLength(100);
  717. this.txtwithholdingcode.setRequired(false);
  718. // txtWithholdingName
  719. this.txtWithholdingName.setVisible(true);
  720. this.txtWithholdingName.setHorizontalAlignment(2);
  721. this.txtWithholdingName.setMaxLength(100);
  722. this.txtWithholdingName.setRequired(false);
  723. // txtstatus
  724. this.txtstatus.setVisible(true);
  725. this.txtstatus.setHorizontalAlignment(2);
  726. this.txtstatus.setMaxLength(100);
  727. this.txtstatus.setRequired(false);
  728. // txtbankName
  729. this.txtbankName.setVisible(true);
  730. this.txtbankName.setHorizontalAlignment(2);
  731. this.txtbankName.setMaxLength(100);
  732. this.txtbankName.setRequired(false);
  733. // txtbankcode
  734. this.txtbankcode.setVisible(true);
  735. this.txtbankcode.setHorizontalAlignment(2);
  736. this.txtbankcode.setMaxLength(100);
  737. this.txtbankcode.setRequired(false);
  738. // txtbankcardcode
  739. this.txtbankcardcode.setVisible(true);
  740. this.txtbankcardcode.setHorizontalAlignment(2);
  741. this.txtbankcardcode.setMaxLength(100);
  742. this.txtbankcardcode.setRequired(false);
  743. // txtexchangerate
  744. this.txtexchangerate.setVisible(true);
  745. this.txtexchangerate.setHorizontalAlignment(2);
  746. this.txtexchangerate.setMaxLength(100);
  747. this.txtexchangerate.setRequired(false);
  748. // txtOpeningProvince
  749. this.txtOpeningProvince.setVisible(true);
  750. this.txtOpeningProvince.setHorizontalAlignment(2);
  751. this.txtOpeningProvince.setMaxLength(100);
  752. this.txtOpeningProvince.setRequired(false);
  753. // txtopeningcity
  754. this.txtopeningcity.setVisible(true);
  755. this.txtopeningcity.setHorizontalAlignment(2);
  756. this.txtopeningcity.setMaxLength(100);
  757. this.txtopeningcity.setRequired(false);
  758. // txtnameofaccount
  759. this.txtnameofaccount.setVisible(true);
  760. this.txtnameofaccount.setHorizontalAlignment(2);
  761. this.txtnameofaccount.setMaxLength(100);
  762. this.txtnameofaccount.setRequired(false);
  763. // txtSalaryitemid
  764. this.txtSalaryitemid.setVisible(true);
  765. this.txtSalaryitemid.setHorizontalAlignment(2);
  766. this.txtSalaryitemid.setMaxLength(100);
  767. this.txtSalaryitemid.setRequired(false);
  768. // txtprojcetamount
  769. this.txtprojcetamount.setVisible(true);
  770. this.txtprojcetamount.setHorizontalAlignment(2);
  771. this.txtprojcetamount.setMaxLength(100);
  772. this.txtprojcetamount.setRequired(false);
  773. // txtpersonname
  774. this.txtpersonname.setVisible(true);
  775. this.txtpersonname.setHorizontalAlignment(2);
  776. this.txtpersonname.setMaxLength(100);
  777. this.txtpersonname.setRequired(false);
  778. // txtstaffno
  779. this.txtstaffno.setVisible(true);
  780. this.txtstaffno.setHorizontalAlignment(2);
  781. this.txtstaffno.setMaxLength(100);
  782. this.txtstaffno.setRequired(false);
  783. // txtidcardno
  784. this.txtidcardno.setVisible(true);
  785. this.txtidcardno.setHorizontalAlignment(2);
  786. this.txtidcardno.setMaxLength(100);
  787. this.txtidcardno.setRequired(false);
  788. this.setFocusTraversalPolicy(new com.kingdee.bos.ui.UIFocusTraversalPolicy(new java.awt.Component[] {txtApplier,txtDescription,txtNumber,cbBillState,prmtAdminOrg,dpApplyDate,kdtEntrys,txtaccountingstatus,txtAccountingfrequency,txtstatisticalyear,txtstatisticalmonth,txtcorporatename,pkstarttime,pkendtime,txtisitlocked,txtcalculationNumber,txtcalculationName,txttaxpayingcode,txtwithholdingcode,txtWithholdingName,txtstatus,txtbankName,txtbankcode,txtbankcardcode,txtexchangerate,txtOpeningProvince,txtopeningcity,txtnameofaccount,txtSalaryitemid,txtprojcetamount,txtpersonname,txtstaffno,txtidcardno}));
  789. this.setFocusCycleRoot(true);
  790. //Register control's property binding
  791. registerBindings();
  792. registerUIState();
  793. }
  794. public com.kingdee.bos.ctrl.swing.KDToolBar[] getUIMultiToolBar(){
  795. java.util.List list = new java.util.ArrayList();
  796. com.kingdee.bos.ctrl.swing.KDToolBar[] bars = super.getUIMultiToolBar();
  797. if (bars != null) {
  798. list.addAll(java.util.Arrays.asList(bars));
  799. }
  800. return (com.kingdee.bos.ctrl.swing.KDToolBar[])list.toArray(new com.kingdee.bos.ctrl.swing.KDToolBar[list.size()]);
  801. }
  802. /**
  803. * output initUIContentLayout method
  804. */
  805. public void initUIContentLayout()
  806. {
  807. this.setBounds(new Rectangle(0, 0, 1013, 629));
  808. this.setLayout(new KDLayout());
  809. this.putClientProperty("OriginalBounds", new Rectangle(0, 0, 1013, 629));
  810. contHROrg.setBounds(new Rectangle(10, 10, 270, 19));
  811. this.add(contHROrg, new KDLayout.Constraints(10, 10, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  812. contApproveType.setBounds(new Rectangle(732, 54, 270, 19));
  813. this.add(contApproveType, new KDLayout.Constraints(732, 54, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT));
  814. contNumber.setBounds(new Rectangle(10, 32, 270, 19));
  815. this.add(contNumber, new KDLayout.Constraints(10, 32, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  816. contDescription.setBounds(new Rectangle(376, 54, 270, 19));
  817. this.add(contDescription, new KDLayout.Constraints(376, 54, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  818. kdtEntrys.setBounds(new Rectangle(10, 76, 993, 543));
  819. 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.salarytemplate.WagesChromatographyEntryInfo(),null,false);
  820. 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));
  821. contApplier.setBounds(new Rectangle(10, 54, 270, 19));
  822. this.add(contApplier, new KDLayout.Constraints(10, 54, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  823. contAdminOrg.setBounds(new Rectangle(376, 32, 270, 19));
  824. this.add(contAdminOrg, new KDLayout.Constraints(376, 32, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT_SCALE));
  825. contApplyDate.setBounds(new Rectangle(732, 32, 270, 19));
  826. this.add(contApplyDate, new KDLayout.Constraints(732, 32, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT));
  827. contBillState.setBounds(new Rectangle(732, 10, 270, 19));
  828. this.add(contBillState, new KDLayout.Constraints(732, 10, 270, 19, KDLayout.Constraints.ANCHOR_TOP | KDLayout.Constraints.ANCHOR_LEFT_SCALE | KDLayout.Constraints.ANCHOR_RIGHT));
  829. contaccountingstatus.setBounds(new Rectangle(0, 0, 270, 19));
  830. this.add(contaccountingstatus, new KDLayout.Constraints(0, 0, 270, 19, 0));
  831. contAccountingfrequency.setBounds(new Rectangle(0, 0, 270, 19));
  832. this.add(contAccountingfrequency, new KDLayout.Constraints(0, 0, 270, 19, 0));
  833. contstatisticalyear.setBounds(new Rectangle(0, 0, 270, 19));
  834. this.add(contstatisticalyear, new KDLayout.Constraints(0, 0, 270, 19, 0));
  835. contstatisticalmonth.setBounds(new Rectangle(0, 0, 270, 19));
  836. this.add(contstatisticalmonth, new KDLayout.Constraints(0, 0, 270, 19, 0));
  837. contcorporatename.setBounds(new Rectangle(0, 0, 270, 19));
  838. this.add(contcorporatename, new KDLayout.Constraints(0, 0, 270, 19, 0));
  839. contstarttime.setBounds(new Rectangle(0, 0, 270, 19));
  840. this.add(contstarttime, new KDLayout.Constraints(0, 0, 270, 19, 0));
  841. contendtime.setBounds(new Rectangle(0, 0, 270, 19));
  842. this.add(contendtime, new KDLayout.Constraints(0, 0, 270, 19, 0));
  843. contisitlocked.setBounds(new Rectangle(0, 0, 270, 19));
  844. this.add(contisitlocked, new KDLayout.Constraints(0, 0, 270, 19, 0));
  845. contcalculationNumber.setBounds(new Rectangle(0, 0, 270, 19));
  846. this.add(contcalculationNumber, new KDLayout.Constraints(0, 0, 270, 19, 0));
  847. contcalculationName.setBounds(new Rectangle(0, 0, 270, 19));
  848. this.add(contcalculationName, new KDLayout.Constraints(0, 0, 270, 19, 0));
  849. conttaxpayingcode.setBounds(new Rectangle(0, 0, 270, 19));
  850. this.add(conttaxpayingcode, new KDLayout.Constraints(0, 0, 270, 19, 0));
  851. contwithholdingcode.setBounds(new Rectangle(0, 0, 270, 19));
  852. this.add(contwithholdingcode, new KDLayout.Constraints(0, 0, 270, 19, 0));
  853. contWithholdingName.setBounds(new Rectangle(315, 49, 270, 19));
  854. this.add(contWithholdingName, new KDLayout.Constraints(315, 49, 270, 19, 0));
  855. contstatus.setBounds(new Rectangle(0, 0, 270, 19));
  856. this.add(contstatus, new KDLayout.Constraints(0, 0, 270, 19, 0));
  857. contbankName.setBounds(new Rectangle(0, 0, 270, 19));
  858. this.add(contbankName, new KDLayout.Constraints(0, 0, 270, 19, 0));
  859. contbankcode.setBounds(new Rectangle(0, 0, 270, 19));
  860. this.add(contbankcode, new KDLayout.Constraints(0, 0, 270, 19, 0));
  861. contbankcardcode.setBounds(new Rectangle(0, 0, 270, 19));
  862. this.add(contbankcardcode, new KDLayout.Constraints(0, 0, 270, 19, 0));
  863. contexchangerate.setBounds(new Rectangle(0, 0, 270, 19));
  864. this.add(contexchangerate, new KDLayout.Constraints(0, 0, 270, 19, 0));
  865. contOpeningProvince.setBounds(new Rectangle(0, 0, 270, 19));
  866. this.add(contOpeningProvince, new KDLayout.Constraints(0, 0, 270, 19, 0));
  867. contopeningcity.setBounds(new Rectangle(0, 0, 270, 19));
  868. this.add(contopeningcity, new KDLayout.Constraints(0, 0, 270, 19, 0));
  869. contnameofaccount.setBounds(new Rectangle(0, 0, 270, 19));
  870. this.add(contnameofaccount, new KDLayout.Constraints(0, 0, 270, 19, 0));
  871. contSalaryitemid.setBounds(new Rectangle(0, 0, 270, 19));
  872. this.add(contSalaryitemid, new KDLayout.Constraints(0, 0, 270, 19, 0));
  873. contprojcetamount.setBounds(new Rectangle(0, 0, 270, 19));
  874. this.add(contprojcetamount, new KDLayout.Constraints(0, 0, 270, 19, 0));
  875. contpersonname.setBounds(new Rectangle(0, 0, 270, 19));
  876. this.add(contpersonname, new KDLayout.Constraints(0, 0, 270, 19, 0));
  877. contstaffno.setBounds(new Rectangle(0, 0, 270, 19));
  878. this.add(contstaffno, new KDLayout.Constraints(0, 0, 270, 19, 0));
  879. contidcardno.setBounds(new Rectangle(0, 0, 270, 19));
  880. this.add(contidcardno, new KDLayout.Constraints(0, 0, 270, 19, 0));
  881. //contHROrg
  882. contHROrg.setBoundEditor(prmtHROrg);
  883. //contApproveType
  884. contApproveType.setBoundEditor(cbApproveType);
  885. //contNumber
  886. contNumber.setBoundEditor(txtNumber);
  887. //contDescription
  888. contDescription.setBoundEditor(txtDescription);
  889. //contApplier
  890. contApplier.setBoundEditor(txtApplier);
  891. //contAdminOrg
  892. contAdminOrg.setBoundEditor(prmtAdminOrg);
  893. //contApplyDate
  894. contApplyDate.setBoundEditor(dpApplyDate);
  895. //contBillState
  896. contBillState.setBoundEditor(cbBillState);
  897. //contaccountingstatus
  898. contaccountingstatus.setBoundEditor(txtaccountingstatus);
  899. //contAccountingfrequency
  900. contAccountingfrequency.setBoundEditor(txtAccountingfrequency);
  901. //contstatisticalyear
  902. contstatisticalyear.setBoundEditor(txtstatisticalyear);
  903. //contstatisticalmonth
  904. contstatisticalmonth.setBoundEditor(txtstatisticalmonth);
  905. //contcorporatename
  906. contcorporatename.setBoundEditor(txtcorporatename);
  907. //contstarttime
  908. contstarttime.setBoundEditor(pkstarttime);
  909. //contendtime
  910. contendtime.setBoundEditor(pkendtime);
  911. //contisitlocked
  912. contisitlocked.setBoundEditor(txtisitlocked);
  913. //contcalculationNumber
  914. contcalculationNumber.setBoundEditor(txtcalculationNumber);
  915. //contcalculationName
  916. contcalculationName.setBoundEditor(txtcalculationName);
  917. //conttaxpayingcode
  918. conttaxpayingcode.setBoundEditor(txttaxpayingcode);
  919. //contwithholdingcode
  920. contwithholdingcode.setBoundEditor(txtwithholdingcode);
  921. //contWithholdingName
  922. contWithholdingName.setBoundEditor(txtWithholdingName);
  923. //contstatus
  924. contstatus.setBoundEditor(txtstatus);
  925. //contbankName
  926. contbankName.setBoundEditor(txtbankName);
  927. //contbankcode
  928. contbankcode.setBoundEditor(txtbankcode);
  929. //contbankcardcode
  930. contbankcardcode.setBoundEditor(txtbankcardcode);
  931. //contexchangerate
  932. contexchangerate.setBoundEditor(txtexchangerate);
  933. //contOpeningProvince
  934. contOpeningProvince.setBoundEditor(txtOpeningProvince);
  935. //contopeningcity
  936. contopeningcity.setBoundEditor(txtopeningcity);
  937. //contnameofaccount
  938. contnameofaccount.setBoundEditor(txtnameofaccount);
  939. //contSalaryitemid
  940. contSalaryitemid.setBoundEditor(txtSalaryitemid);
  941. //contprojcetamount
  942. contprojcetamount.setBoundEditor(txtprojcetamount);
  943. //contpersonname
  944. contpersonname.setBoundEditor(txtpersonname);
  945. //contstaffno
  946. contstaffno.setBoundEditor(txtstaffno);
  947. //contidcardno
  948. contidcardno.setBoundEditor(txtidcardno);
  949. }
  950. /**
  951. * output initUIMenuBarLayout method
  952. */
  953. public void initUIMenuBarLayout()
  954. {
  955. this.menuBar.add(menuFile);
  956. this.menuBar.add(menuEdit);
  957. this.menuBar.add(MenuService);
  958. this.menuBar.add(menuView);
  959. this.menuBar.add(menuBiz);
  960. this.menuBar.add(menuTable1);
  961. this.menuBar.add(menuTool);
  962. this.menuBar.add(menuWorkflow);
  963. this.menuBar.add(menuHelp);
  964. //menuFile
  965. menuFile.add(menuItemAddNew);
  966. menuFile.add(kDSeparator1);
  967. menuFile.add(menuItemCloudFeed);
  968. menuFile.add(menuItemSave);
  969. menuFile.add(menuItemCloudScreen);
  970. menuFile.add(menuItemSubmit);
  971. menuFile.add(menuItemCloudShare);
  972. menuFile.add(menuSubmitOption);
  973. menuFile.add(kdSeparatorFWFile1);
  974. menuFile.add(rMenuItemSubmit);
  975. menuFile.add(rMenuItemSubmitAndAddNew);
  976. menuFile.add(rMenuItemSubmitAndPrint);
  977. menuFile.add(separatorFile1);
  978. menuFile.add(menuItemMapping);
  979. menuFile.add(MenuItemAttachment);
  980. menuFile.add(kDSeparator2);
  981. menuFile.add(menuItemPageSetup);
  982. menuFile.add(menuItemPrint);
  983. menuFile.add(menuItemPrintPreview);
  984. menuFile.add(kDSeparator6);
  985. menuFile.add(kDSeparator3);
  986. menuFile.add(menuItemSendMail);
  987. menuFile.add(menuItemExitCurrent);
  988. //menuSubmitOption
  989. menuSubmitOption.add(chkMenuItemSubmitAndAddNew);
  990. menuSubmitOption.add(chkMenuItemSubmitAndPrint);
  991. //menuEdit
  992. menuEdit.add(menuItemCopy);
  993. menuEdit.add(menuItemEdit);
  994. menuEdit.add(menuItemRemove);
  995. menuEdit.add(kDSeparator4);
  996. menuEdit.add(menuItemReset);
  997. menuEdit.add(separator1);
  998. menuEdit.add(menuItemCreateFrom);
  999. menuEdit.add(menuItemCreateTo);
  1000. menuEdit.add(menuItemCopyFrom);
  1001. menuEdit.add(menuItemColumnCopyAll);
  1002. menuEdit.add(menuItemEnterToNextRow);
  1003. menuEdit.add(menuItemColumnCopySelect);
  1004. menuEdit.add(separatorEdit1);
  1005. menuEdit.add(separator2);
  1006. //MenuService
  1007. MenuService.add(MenuItemKnowStore);
  1008. MenuService.add(MenuItemAnwser);
  1009. MenuService.add(SepratorService);
  1010. MenuService.add(MenuItemRemoteAssist);
  1011. //menuView
  1012. menuView.add(menuItemFirst);
  1013. menuView.add(menuItemPre);
  1014. menuView.add(menuItemNext);
  1015. menuView.add(menuItemLast);
  1016. menuView.add(separator3);
  1017. menuView.add(menuItemTraceUp);
  1018. menuView.add(menuItemTraceDown);
  1019. menuView.add(kDSeparator7);
  1020. menuView.add(menuItemLocate);
  1021. //menuBiz
  1022. menuBiz.add(menuItemCancelCancel);
  1023. menuBiz.add(menuItemCancel);
  1024. menuBiz.add(MenuItemVoucher);
  1025. menuBiz.add(menuItemDelVoucher);
  1026. menuBiz.add(MenuItemPCVoucher);
  1027. menuBiz.add(menuItemAudit);
  1028. menuBiz.add(menuItemDelPCVoucher);
  1029. menuBiz.add(menuItemUnaudit);
  1030. menuBiz.add(menuItemPerson);
  1031. //menuTable1
  1032. menuTable1.add(menuItemAddLine);
  1033. menuTable1.add(menuItemCopyLine);
  1034. menuTable1.add(menuItemInsertLine);
  1035. menuTable1.add(menuItemRemoveLine);
  1036. //menuTool
  1037. menuTool.add(menuItemSendMessage);
  1038. menuTool.add(menuItemMsgFormat);
  1039. menuTool.add(menuItemCalculator);
  1040. menuTool.add(menuItemToolBarCustom);
  1041. //menuWorkflow
  1042. menuWorkflow.add(menuItemStartWorkFlow);
  1043. menuWorkflow.add(separatorWF1);
  1044. menuWorkflow.add(menuItemViewSubmitProccess);
  1045. menuWorkflow.add(menuItemViewDoProccess);
  1046. menuWorkflow.add(MenuItemWFG);
  1047. menuWorkflow.add(menuItemWorkFlowList);
  1048. menuWorkflow.add(separatorWF2);
  1049. menuWorkflow.add(menuItemMultiapprove);
  1050. menuWorkflow.add(menuItemNextPerson);
  1051. menuWorkflow.add(menuItemAuditResult);
  1052. menuWorkflow.add(kDSeparator5);
  1053. menuWorkflow.add(kDMenuItemSendMessage);
  1054. //menuHelp
  1055. menuHelp.add(menuItemHelp);
  1056. menuHelp.add(kDSeparator12);
  1057. menuHelp.add(menuItemRegPro);
  1058. menuHelp.add(menuItemPersonalSite);
  1059. menuHelp.add(helpseparatorDiv);
  1060. menuHelp.add(menuitemProductval);
  1061. menuHelp.add(kDSeparatorProduct);
  1062. menuHelp.add(menuItemAbout);
  1063. }
  1064. /**
  1065. * output initUIToolBarLayout method
  1066. */
  1067. public void initUIToolBarLayout()
  1068. {
  1069. this.toolBar.add(btnAddNew);
  1070. this.toolBar.add(btnCloud);
  1071. this.toolBar.add(btnEdit);
  1072. this.toolBar.add(btnSave);
  1073. this.toolBar.add(btnXunTong);
  1074. this.toolBar.add(btnReset);
  1075. this.toolBar.add(btnSubmit);
  1076. this.toolBar.add(kDSeparatorCloud);
  1077. this.toolBar.add(btnCopy);
  1078. this.toolBar.add(btnRemove);
  1079. this.toolBar.add(btnCancelCancel);
  1080. this.toolBar.add(btnCancel);
  1081. this.toolBar.add(btnAttachment);
  1082. this.toolBar.add(separatorFW1);
  1083. this.toolBar.add(btnPageSetup);
  1084. this.toolBar.add(btnColumnCopyAll);
  1085. this.toolBar.add(btnPrint);
  1086. this.toolBar.add(btnColumnCopySelect);
  1087. this.toolBar.add(btnPrintPreview);
  1088. this.toolBar.add(separatorFW2);
  1089. this.toolBar.add(btnFirst);
  1090. this.toolBar.add(btnPre);
  1091. this.toolBar.add(btnNext);
  1092. this.toolBar.add(btnLast);
  1093. this.toolBar.add(separatorFW3);
  1094. this.toolBar.add(btnTraceUp);
  1095. this.toolBar.add(btnTraceDown);
  1096. this.toolBar.add(btnWorkFlowG);
  1097. this.toolBar.add(btnSignature);
  1098. this.toolBar.add(btnViewSignature);
  1099. this.toolBar.add(separatorFW4);
  1100. this.toolBar.add(separatorFW7);
  1101. this.toolBar.add(btnCreateFrom);
  1102. this.toolBar.add(btnCopyFrom);
  1103. this.toolBar.add(btnNumberSign);
  1104. this.toolBar.add(btnCreateTo);
  1105. this.toolBar.add(separatorFW5);
  1106. this.toolBar.add(separatorFW8);
  1107. this.toolBar.add(btnAddLine);
  1108. this.toolBar.add(btnInsertLine);
  1109. this.toolBar.add(btnRemoveLine);
  1110. this.toolBar.add(separatorFW6);
  1111. this.toolBar.add(separatorFW9);
  1112. this.toolBar.add(btnCopyLine);
  1113. this.toolBar.add(btnVoucher);
  1114. this.toolBar.add(btnDelVoucher);
  1115. this.toolBar.add(btnAuditResult);
  1116. this.toolBar.add(btnMultiapprove);
  1117. this.toolBar.add(btnWFViewdoProccess);
  1118. this.toolBar.add(btnWFViewSubmitProccess);
  1119. this.toolBar.add(btnNextPerson);
  1120. this.toolBar.add(btnPCVoucher);
  1121. this.toolBar.add(btnAudit);
  1122. this.toolBar.add(btnDelPCVoucher);
  1123. this.toolBar.add(btnUnaudit);
  1124. this.toolBar.add(btnPerson);
  1125. }
  1126. //Regiester control's property binding.
  1127. private void registerBindings(){
  1128. dataBinder.registerBinding("hrOrgUnit", com.kingdee.eas.basedata.org.HROrgUnitInfo.class, this.prmtHROrg, "data");
  1129. dataBinder.registerBinding("approveType", com.kingdee.eas.hr.base.ApproveTypeEnum.class, this.cbApproveType, "selectedItem");
  1130. dataBinder.registerBinding("entrys.id", com.kingdee.bos.util.BOSUuid.class, this.kdtEntrys, "id.text");
  1131. dataBinder.registerBinding("entrys", com.kingdee.eas.custom.salarytemplate.WagesChromatographyEntryInfo.class, this.kdtEntrys, "userObject");
  1132. dataBinder.registerBinding("entrys.bizDate", java.util.Date.class, this.kdtEntrys, "bizDate.text");
  1133. dataBinder.registerBinding("entrys.description", String.class, this.kdtEntrys, "description.text");
  1134. dataBinder.registerBinding("entrys.person", com.kingdee.eas.basedata.person.PersonInfo.class, this.kdtEntrys, "person.text");
  1135. dataBinder.registerBinding("entrys.person.number", String.class, this.kdtEntrys, "empNumber.text");
  1136. dataBinder.registerBinding("entrys.person.name", String.class, this.kdtEntrys, "empName.text");
  1137. dataBinder.registerBinding("entrys.position", com.kingdee.eas.basedata.org.PositionInfo.class, this.kdtEntrys, "position.text");
  1138. dataBinder.registerBinding("entrys.adminOrg", com.kingdee.eas.basedata.org.AdminOrgUnitInfo.class, this.kdtEntrys, "adminOrg.text");
  1139. dataBinder.registerBinding("entrys.personID", String.class, this.kdtEntrys, "personID.text");
  1140. dataBinder.registerBinding("entrys.checkoutcycle", java.util.Date.class, this.kdtEntrys, "checkoutcycle.text");
  1141. dataBinder.registerBinding("number", String.class, this.txtNumber, "text");
  1142. dataBinder.registerBinding("description", String.class, this.txtDescription, "text");
  1143. dataBinder.registerBinding("applier.name", String.class, this.txtApplier, "text");
  1144. dataBinder.registerBinding("adminOrg", com.kingdee.eas.basedata.org.AdminOrgUnitInfo.class, this.prmtAdminOrg, "data");
  1145. dataBinder.registerBinding("applyDate", java.util.Date.class, this.dpApplyDate, "value");
  1146. dataBinder.registerBinding("billState", com.kingdee.eas.hr.base.HRBillStateEnum.class, this.cbBillState, "selectedItem");
  1147. dataBinder.registerBinding("accountingstatus", String.class, this.txtaccountingstatus, "text");
  1148. dataBinder.registerBinding("Accountingfrequency", String.class, this.txtAccountingfrequency, "text");
  1149. dataBinder.registerBinding("statisticalyear", String.class, this.txtstatisticalyear, "text");
  1150. dataBinder.registerBinding("statisticalmonth", String.class, this.txtstatisticalmonth, "text");
  1151. dataBinder.registerBinding("corporatename", String.class, this.txtcorporatename, "text");
  1152. dataBinder.registerBinding("starttime", java.util.Date.class, this.pkstarttime, "value");
  1153. dataBinder.registerBinding("endtime", java.util.Date.class, this.pkendtime, "value");
  1154. dataBinder.registerBinding("isitlocked", String.class, this.txtisitlocked, "text");
  1155. dataBinder.registerBinding("calculationNumber", String.class, this.txtcalculationNumber, "text");
  1156. dataBinder.registerBinding("calculationName", String.class, this.txtcalculationName, "text");
  1157. dataBinder.registerBinding("taxpayingcode", String.class, this.txttaxpayingcode, "text");
  1158. dataBinder.registerBinding("withholdingcode", String.class, this.txtwithholdingcode, "text");
  1159. dataBinder.registerBinding("WithholdingName", String.class, this.txtWithholdingName, "text");
  1160. dataBinder.registerBinding("status", String.class, this.txtstatus, "text");
  1161. dataBinder.registerBinding("bankName", String.class, this.txtbankName, "text");
  1162. dataBinder.registerBinding("bankcode", String.class, this.txtbankcode, "text");
  1163. dataBinder.registerBinding("bankcardcode", String.class, this.txtbankcardcode, "text");
  1164. dataBinder.registerBinding("exchangerate", String.class, this.txtexchangerate, "text");
  1165. dataBinder.registerBinding("OpeningProvince", String.class, this.txtOpeningProvince, "text");
  1166. dataBinder.registerBinding("openingcity", String.class, this.txtopeningcity, "text");
  1167. dataBinder.registerBinding("nameofaccount", String.class, this.txtnameofaccount, "text");
  1168. dataBinder.registerBinding("Salaryitemid", String.class, this.txtSalaryitemid, "text");
  1169. dataBinder.registerBinding("projcetamount", String.class, this.txtprojcetamount, "text");
  1170. dataBinder.registerBinding("personname", String.class, this.txtpersonname, "text");
  1171. dataBinder.registerBinding("staffno", String.class, this.txtstaffno, "text");
  1172. dataBinder.registerBinding("idcardno", String.class, this.txtidcardno, "text");
  1173. }
  1174. //Regiester UI State
  1175. private void registerUIState(){
  1176. }
  1177. public String getUIHandlerClassName() {
  1178. return "com.kingdee.eas.custom.salarytemplate.app.WagesChromatographyEditUIHandler";
  1179. }
  1180. public IUIActionPostman prepareInit() {
  1181. IUIActionPostman clientHanlder = super.prepareInit();
  1182. if (clientHanlder != null) {
  1183. RequestContext request = new RequestContext();
  1184. request.setClassName(getUIHandlerClassName());
  1185. clientHanlder.setRequestContext(request);
  1186. }
  1187. return clientHanlder;
  1188. }
  1189. public boolean isPrepareInit() {
  1190. return false;
  1191. }
  1192. protected void initUIP() {
  1193. super.initUIP();
  1194. }
  1195. /**
  1196. * output onShow method
  1197. */
  1198. public void onShow() throws Exception
  1199. {
  1200. super.onShow();
  1201. this.txtApplier.requestFocusInWindow();
  1202. }
  1203. /**
  1204. * output setDataObject method
  1205. */
  1206. public void setDataObject(IObjectValue dataObject)
  1207. {
  1208. IObjectValue ov = dataObject;
  1209. super.setDataObject(ov);
  1210. this.editData = (com.kingdee.eas.custom.salarytemplate.WagesChromatographyInfo)ov;
  1211. }
  1212. protected void removeByPK(IObjectPK pk) throws Exception {
  1213. IObjectValue editData = this.editData;
  1214. super.removeByPK(pk);
  1215. recycleNumberByOrg(editData,"NONE",editData.getString("number"));
  1216. }
  1217. protected void recycleNumberByOrg(IObjectValue editData,String orgType,String number) {
  1218. if (!StringUtils.isEmpty(number))
  1219. {
  1220. try {
  1221. String companyID = null;
  1222. com.kingdee.eas.base.codingrule.ICodingRuleManager iCodingRuleManager = com.kingdee.eas.base.codingrule.CodingRuleManagerFactory.getRemoteInstance();
  1223. 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) {
  1224. companyID =com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum(orgType)).getString("id");
  1225. }
  1226. else if (com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit() != null) {
  1227. companyID = ((com.kingdee.eas.basedata.org.OrgUnitInfo)com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit()).getString("id");
  1228. }
  1229. if (!StringUtils.isEmpty(companyID) && iCodingRuleManager.isExist(editData, companyID) && iCodingRuleManager.isUseIntermitNumber(editData, companyID)) {
  1230. iCodingRuleManager.recycleNumber(editData,companyID,number);
  1231. }
  1232. }
  1233. catch (Exception e)
  1234. {
  1235. handUIException(e);
  1236. }
  1237. }
  1238. }
  1239. protected void setAutoNumberByOrg(String orgType) {
  1240. if (editData == null) return;
  1241. if (editData.getNumber() == null) {
  1242. try {
  1243. String companyID = null;
  1244. 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) {
  1245. companyID = com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit(com.kingdee.eas.basedata.org.OrgType.getEnum(orgType)).getString("id");
  1246. }
  1247. else if (com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit() != null) {
  1248. companyID = ((com.kingdee.eas.basedata.org.OrgUnitInfo)com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentOrgUnit()).getString("id");
  1249. }
  1250. com.kingdee.eas.base.codingrule.ICodingRuleManager iCodingRuleManager = com.kingdee.eas.base.codingrule.CodingRuleManagerFactory.getRemoteInstance();
  1251. if (iCodingRuleManager.isExist(editData, companyID)) {
  1252. if (iCodingRuleManager.isAddView(editData, companyID)) {
  1253. editData.setNumber(iCodingRuleManager.getNumber(editData,companyID));
  1254. }
  1255. txtNumber.setEnabled(false);
  1256. }
  1257. }
  1258. catch (Exception e) {
  1259. handUIException(e);
  1260. this.oldData = editData;
  1261. com.kingdee.eas.util.SysUtil.abort();
  1262. }
  1263. }
  1264. else {
  1265. if (editData.getNumber().trim().length() > 0) {
  1266. txtNumber.setText(editData.getNumber());
  1267. }
  1268. }
  1269. }
  1270. /**
  1271. * output loadFields method
  1272. */
  1273. public void loadFields()
  1274. {
  1275. setAutoNumberByOrg("NONE");
  1276. dataBinder.loadFields();
  1277. }
  1278. protected void setOrgF7(KDBizPromptBox f7,com.kingdee.eas.basedata.org.OrgType orgType) throws Exception
  1279. {
  1280. com.kingdee.eas.basedata.org.client.f7.NewOrgUnitFilterInfoProducer oufip = new com.kingdee.eas.basedata.org.client.f7.NewOrgUnitFilterInfoProducer(orgType);
  1281. oufip.getModel().setIsCUFilter(true);
  1282. f7.setFilterInfoProducer(oufip);
  1283. }
  1284. /**
  1285. * output storeFields method
  1286. */
  1287. public void storeFields()
  1288. {
  1289. dataBinder.storeFields();
  1290. }
  1291. /**
  1292. * ????????§µ??
  1293. */
  1294. protected void registerValidator() {
  1295. getValidateHelper().setCustomValidator( getValidator() );
  1296. getValidateHelper().registerBindProperty("hrOrgUnit", ValidateHelper.ON_SAVE);
  1297. getValidateHelper().registerBindProperty("approveType", ValidateHelper.ON_SAVE);
  1298. getValidateHelper().registerBindProperty("entrys.id", ValidateHelper.ON_SAVE);
  1299. getValidateHelper().registerBindProperty("entrys", ValidateHelper.ON_SAVE);
  1300. getValidateHelper().registerBindProperty("entrys.bizDate", ValidateHelper.ON_SAVE);
  1301. getValidateHelper().registerBindProperty("entrys.description", ValidateHelper.ON_SAVE);
  1302. getValidateHelper().registerBindProperty("entrys.person", ValidateHelper.ON_SAVE);
  1303. getValidateHelper().registerBindProperty("entrys.person.number", ValidateHelper.ON_SAVE);
  1304. getValidateHelper().registerBindProperty("entrys.person.name", ValidateHelper.ON_SAVE);
  1305. getValidateHelper().registerBindProperty("entrys.position", ValidateHelper.ON_SAVE);
  1306. getValidateHelper().registerBindProperty("entrys.adminOrg", ValidateHelper.ON_SAVE);
  1307. getValidateHelper().registerBindProperty("entrys.personID", ValidateHelper.ON_SAVE);
  1308. getValidateHelper().registerBindProperty("entrys.checkoutcycle", ValidateHelper.ON_SAVE);
  1309. getValidateHelper().registerBindProperty("number", ValidateHelper.ON_SAVE);
  1310. getValidateHelper().registerBindProperty("description", ValidateHelper.ON_SAVE);
  1311. getValidateHelper().registerBindProperty("applier.name", ValidateHelper.ON_SAVE);
  1312. getValidateHelper().registerBindProperty("adminOrg", ValidateHelper.ON_SAVE);
  1313. getValidateHelper().registerBindProperty("applyDate", ValidateHelper.ON_SAVE);
  1314. getValidateHelper().registerBindProperty("billState", ValidateHelper.ON_SAVE);
  1315. getValidateHelper().registerBindProperty("accountingstatus", ValidateHelper.ON_SAVE);
  1316. getValidateHelper().registerBindProperty("Accountingfrequency", ValidateHelper.ON_SAVE);
  1317. getValidateHelper().registerBindProperty("statisticalyear", ValidateHelper.ON_SAVE);
  1318. getValidateHelper().registerBindProperty("statisticalmonth", ValidateHelper.ON_SAVE);
  1319. getValidateHelper().registerBindProperty("corporatename", ValidateHelper.ON_SAVE);
  1320. getValidateHelper().registerBindProperty("starttime", ValidateHelper.ON_SAVE);
  1321. getValidateHelper().registerBindProperty("endtime", ValidateHelper.ON_SAVE);
  1322. getValidateHelper().registerBindProperty("isitlocked", ValidateHelper.ON_SAVE);
  1323. getValidateHelper().registerBindProperty("calculationNumber", ValidateHelper.ON_SAVE);
  1324. getValidateHelper().registerBindProperty("calculationName", ValidateHelper.ON_SAVE);
  1325. getValidateHelper().registerBindProperty("taxpayingcode", ValidateHelper.ON_SAVE);
  1326. getValidateHelper().registerBindProperty("withholdingcode", ValidateHelper.ON_SAVE);
  1327. getValidateHelper().registerBindProperty("WithholdingName", ValidateHelper.ON_SAVE);
  1328. getValidateHelper().registerBindProperty("status", ValidateHelper.ON_SAVE);
  1329. getValidateHelper().registerBindProperty("bankName", ValidateHelper.ON_SAVE);
  1330. getValidateHelper().registerBindProperty("bankcode", ValidateHelper.ON_SAVE);
  1331. getValidateHelper().registerBindProperty("bankcardcode", ValidateHelper.ON_SAVE);
  1332. getValidateHelper().registerBindProperty("exchangerate", ValidateHelper.ON_SAVE);
  1333. getValidateHelper().registerBindProperty("OpeningProvince", ValidateHelper.ON_SAVE);
  1334. getValidateHelper().registerBindProperty("openingcity", ValidateHelper.ON_SAVE);
  1335. getValidateHelper().registerBindProperty("nameofaccount", ValidateHelper.ON_SAVE);
  1336. getValidateHelper().registerBindProperty("Salaryitemid", ValidateHelper.ON_SAVE);
  1337. getValidateHelper().registerBindProperty("projcetamount", ValidateHelper.ON_SAVE);
  1338. getValidateHelper().registerBindProperty("personname", ValidateHelper.ON_SAVE);
  1339. getValidateHelper().registerBindProperty("staffno", ValidateHelper.ON_SAVE);
  1340. getValidateHelper().registerBindProperty("idcardno", ValidateHelper.ON_SAVE);
  1341. }
  1342. /**
  1343. * output setOprtState method
  1344. */
  1345. public void setOprtState(String oprtType)
  1346. {
  1347. super.setOprtState(oprtType);
  1348. if (STATUS_ADDNEW.equals(this.oprtState)) {
  1349. } else if (STATUS_EDIT.equals(this.oprtState)) {
  1350. } else if (STATUS_VIEW.equals(this.oprtState)) {
  1351. } else if (STATUS_FINDVIEW.equals(this.oprtState)) {
  1352. }
  1353. }
  1354. /**
  1355. * output kdtEntrys_editStopping method
  1356. */
  1357. protected void kdtEntrys_editStopping(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) throws Exception
  1358. {
  1359. }
  1360. /**
  1361. * output kdtEntrys_editStopped method
  1362. */
  1363. protected void kdtEntrys_editStopped(com.kingdee.bos.ctrl.kdf.table.event.KDTEditEvent e) throws Exception
  1364. {
  1365. }
  1366. /**
  1367. * output getSelectors method
  1368. */
  1369. public SelectorItemCollection getSelectors()
  1370. {
  1371. SelectorItemCollection sic = new SelectorItemCollection();
  1372. String selectorAll = System.getProperty("selector.all");
  1373. if(StringUtils.isEmpty(selectorAll)){
  1374. selectorAll = "true";
  1375. }
  1376. if(selectorAll.equalsIgnoreCase("true"))
  1377. {
  1378. sic.add(new SelectorItemInfo("hrOrgUnit.*"));
  1379. }
  1380. else{
  1381. sic.add(new SelectorItemInfo("hrOrgUnit.id"));
  1382. sic.add(new SelectorItemInfo("hrOrgUnit.number"));
  1383. sic.add(new SelectorItemInfo("hrOrgUnit.name"));
  1384. }
  1385. sic.add(new SelectorItemInfo("approveType"));
  1386. sic.add(new SelectorItemInfo("entrys.id"));
  1387. if(selectorAll.equalsIgnoreCase("true"))
  1388. {
  1389. sic.add(new SelectorItemInfo("entrys.*"));
  1390. }
  1391. else{
  1392. }
  1393. sic.add(new SelectorItemInfo("entrys.bizDate"));
  1394. sic.add(new SelectorItemInfo("entrys.description"));
  1395. if(selectorAll.equalsIgnoreCase("true"))
  1396. {
  1397. sic.add(new SelectorItemInfo("entrys.person.*"));
  1398. }
  1399. else{
  1400. sic.add(new SelectorItemInfo("entrys.person.id"));
  1401. sic.add(new SelectorItemInfo("entrys.person.name"));
  1402. sic.add(new SelectorItemInfo("entrys.person.number"));
  1403. }
  1404. if(selectorAll.equalsIgnoreCase("true"))
  1405. {
  1406. sic.add(new SelectorItemInfo("entrys.position.*"));
  1407. }
  1408. else{
  1409. sic.add(new SelectorItemInfo("entrys.position.id"));
  1410. sic.add(new SelectorItemInfo("entrys.position.name"));
  1411. sic.add(new SelectorItemInfo("entrys.position.number"));
  1412. }
  1413. if(selectorAll.equalsIgnoreCase("true"))
  1414. {
  1415. sic.add(new SelectorItemInfo("entrys.adminOrg.*"));
  1416. }
  1417. else{
  1418. sic.add(new SelectorItemInfo("entrys.adminOrg.id"));
  1419. sic.add(new SelectorItemInfo("entrys.adminOrg.name"));
  1420. sic.add(new SelectorItemInfo("entrys.adminOrg.number"));
  1421. }
  1422. sic.add(new SelectorItemInfo("entrys.personID"));
  1423. sic.add(new SelectorItemInfo("entrys.checkoutcycle"));
  1424. sic.add(new SelectorItemInfo("number"));
  1425. sic.add(new SelectorItemInfo("description"));
  1426. sic.add(new SelectorItemInfo("applier.name"));
  1427. if(selectorAll.equalsIgnoreCase("true"))
  1428. {
  1429. sic.add(new SelectorItemInfo("adminOrg.*"));
  1430. }
  1431. else{
  1432. sic.add(new SelectorItemInfo("adminOrg.id"));
  1433. sic.add(new SelectorItemInfo("adminOrg.number"));
  1434. sic.add(new SelectorItemInfo("adminOrg.name"));
  1435. }
  1436. sic.add(new SelectorItemInfo("applyDate"));
  1437. sic.add(new SelectorItemInfo("billState"));
  1438. sic.add(new SelectorItemInfo("accountingstatus"));
  1439. sic.add(new SelectorItemInfo("Accountingfrequency"));
  1440. sic.add(new SelectorItemInfo("statisticalyear"));
  1441. sic.add(new SelectorItemInfo("statisticalmonth"));
  1442. sic.add(new SelectorItemInfo("corporatename"));
  1443. sic.add(new SelectorItemInfo("starttime"));
  1444. sic.add(new SelectorItemInfo("endtime"));
  1445. sic.add(new SelectorItemInfo("isitlocked"));
  1446. sic.add(new SelectorItemInfo("calculationNumber"));
  1447. sic.add(new SelectorItemInfo("calculationName"));
  1448. sic.add(new SelectorItemInfo("taxpayingcode"));
  1449. sic.add(new SelectorItemInfo("withholdingcode"));
  1450. sic.add(new SelectorItemInfo("WithholdingName"));
  1451. sic.add(new SelectorItemInfo("status"));
  1452. sic.add(new SelectorItemInfo("bankName"));
  1453. sic.add(new SelectorItemInfo("bankcode"));
  1454. sic.add(new SelectorItemInfo("bankcardcode"));
  1455. sic.add(new SelectorItemInfo("exchangerate"));
  1456. sic.add(new SelectorItemInfo("OpeningProvince"));
  1457. sic.add(new SelectorItemInfo("openingcity"));
  1458. sic.add(new SelectorItemInfo("nameofaccount"));
  1459. sic.add(new SelectorItemInfo("Salaryitemid"));
  1460. sic.add(new SelectorItemInfo("projcetamount"));
  1461. sic.add(new SelectorItemInfo("personname"));
  1462. sic.add(new SelectorItemInfo("staffno"));
  1463. sic.add(new SelectorItemInfo("idcardno"));
  1464. return sic;
  1465. }
  1466. /**
  1467. * output actionSubmit_actionPerformed method
  1468. */
  1469. public void actionSubmit_actionPerformed(ActionEvent e) throws Exception
  1470. {
  1471. super.actionSubmit_actionPerformed(e);
  1472. }
  1473. /**
  1474. * output actionPrint_actionPerformed method
  1475. */
  1476. public void actionPrint_actionPerformed(ActionEvent e) throws Exception
  1477. {
  1478. ArrayList idList = new ArrayList();
  1479. if (editData != null && !StringUtils.isEmpty(editData.getString("id"))) {
  1480. idList.add(editData.getString("id"));
  1481. }
  1482. if (idList == null || idList.size() == 0 || getTDQueryPK() == null || getTDFileName() == null)
  1483. return;
  1484. com.kingdee.bos.ctrl.kdf.data.impl.BOSQueryDelegate data = new com.kingdee.eas.framework.util.CommonDataProvider(idList,getTDQueryPK());
  1485. com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper appHlp = new com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper();
  1486. appHlp.print(getTDFileName(), data, javax.swing.SwingUtilities.getWindowAncestor(this));
  1487. }
  1488. /**
  1489. * output actionPrintPreview_actionPerformed method
  1490. */
  1491. public void actionPrintPreview_actionPerformed(ActionEvent e) throws Exception
  1492. {
  1493. ArrayList idList = new ArrayList();
  1494. if (editData != null && !StringUtils.isEmpty(editData.getString("id"))) {
  1495. idList.add(editData.getString("id"));
  1496. }
  1497. if (idList == null || idList.size() == 0 || getTDQueryPK() == null || getTDFileName() == null)
  1498. return;
  1499. com.kingdee.bos.ctrl.kdf.data.impl.BOSQueryDelegate data = new com.kingdee.eas.framework.util.CommonDataProvider(idList,getTDQueryPK());
  1500. com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper appHlp = new com.kingdee.bos.ctrl.report.forapp.kdnote.client.KDNoteHelper();
  1501. appHlp.printPreview(getTDFileName(), data, javax.swing.SwingUtilities.getWindowAncestor(this));
  1502. }
  1503. /**
  1504. * output actionAudit_actionPerformed method
  1505. */
  1506. public void actionAudit_actionPerformed(ActionEvent e) throws Exception
  1507. {
  1508. super.actionAudit_actionPerformed(e);
  1509. }
  1510. /**
  1511. * output actionUnaudit_actionPerformed method
  1512. */
  1513. public void actionUnaudit_actionPerformed(ActionEvent e) throws Exception
  1514. {
  1515. super.actionUnaudit_actionPerformed(e);
  1516. }
  1517. public RequestContext prepareActionSubmit(IItemAction itemAction) throws Exception {
  1518. RequestContext request = super.prepareActionSubmit(itemAction);
  1519. if (request != null) {
  1520. request.setClassName(getUIHandlerClassName());
  1521. }
  1522. return request;
  1523. }
  1524. public boolean isPrepareActionSubmit() {
  1525. return false;
  1526. }
  1527. public RequestContext prepareActionPrint(IItemAction itemAction) throws Exception {
  1528. RequestContext request = super.prepareActionPrint(itemAction);
  1529. if (request != null) {
  1530. request.setClassName(getUIHandlerClassName());
  1531. }
  1532. return request;
  1533. }
  1534. public boolean isPrepareActionPrint() {
  1535. return false;
  1536. }
  1537. public RequestContext prepareActionPrintPreview(IItemAction itemAction) throws Exception {
  1538. RequestContext request = super.prepareActionPrintPreview(itemAction);
  1539. if (request != null) {
  1540. request.setClassName(getUIHandlerClassName());
  1541. }
  1542. return request;
  1543. }
  1544. public boolean isPrepareActionPrintPreview() {
  1545. return false;
  1546. }
  1547. public RequestContext prepareActionAudit(IItemAction itemAction) throws Exception {
  1548. RequestContext request = super.prepareActionAudit(itemAction);
  1549. if (request != null) {
  1550. request.setClassName(getUIHandlerClassName());
  1551. }
  1552. return request;
  1553. }
  1554. public boolean isPrepareActionAudit() {
  1555. return false;
  1556. }
  1557. public RequestContext prepareActionUnaudit(IItemAction itemAction) throws Exception {
  1558. RequestContext request = super.prepareActionUnaudit(itemAction);
  1559. if (request != null) {
  1560. request.setClassName(getUIHandlerClassName());
  1561. }
  1562. return request;
  1563. }
  1564. public boolean isPrepareActionUnaudit() {
  1565. return false;
  1566. }
  1567. /**
  1568. * output getMetaDataPK method
  1569. */
  1570. public IMetaDataPK getMetaDataPK()
  1571. {
  1572. return new MetaDataPK("com.kingdee.eas.custom.salarytemplate.client", "WagesChromatographyEditUI");
  1573. }
  1574. /**
  1575. * output isBindWorkFlow method
  1576. */
  1577. public boolean isBindWorkFlow()
  1578. {
  1579. return true;
  1580. }
  1581. /**
  1582. * output getEditUIName method
  1583. */
  1584. protected String getEditUIName()
  1585. {
  1586. return com.kingdee.eas.custom.salarytemplate.client.WagesChromatographyEditUI.class.getName();
  1587. }
  1588. /**
  1589. * output getBizInterface method
  1590. */
  1591. protected com.kingdee.eas.framework.ICoreBase getBizInterface() throws Exception
  1592. {
  1593. return com.kingdee.eas.custom.salarytemplate.WagesChromatographyFactory.getRemoteInstance();
  1594. }
  1595. /**
  1596. * output createNewData method
  1597. */
  1598. protected IObjectValue createNewData()
  1599. {
  1600. com.kingdee.eas.custom.salarytemplate.WagesChromatographyInfo objectValue = new com.kingdee.eas.custom.salarytemplate.WagesChromatographyInfo();
  1601. objectValue.setCreator((com.kingdee.eas.base.permission.UserInfo)(com.kingdee.eas.common.client.SysContext.getSysContext().getCurrentUser()));
  1602. return objectValue;
  1603. }
  1604. protected String getTDFileName() {
  1605. return "/bim/custom/salarytemplate/WagesChromatography";
  1606. }
  1607. protected IMetaDataPK getTDQueryPK() {
  1608. return new MetaDataPK("com.kingdee.eas.custom.salarytemplate.app.WagesChromatographyQuery");
  1609. }
  1610. /**
  1611. * output getDetailTable method
  1612. */
  1613. protected KDTable getDetailTable() {
  1614. return kdtEntrys;
  1615. }
  1616. /**
  1617. * output applyDefaultValue method
  1618. */
  1619. protected void applyDefaultValue(IObjectValue vo) {
  1620. }
  1621. protected void setFieldsNull(com.kingdee.bos.dao.AbstractObjectValue arg0) {
  1622. super.setFieldsNull(arg0);
  1623. arg0.put("number",null);
  1624. }
  1625. }