FrmPaySetting.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <Forms>
  3. <Form Name="FrmPaySetting">
  4. <Client>
  5. <Events>
  6. <Load>
  7. @Title="薪资设定";
  8. GetSchema();
  9. if(Search("SearchPaySetting"))
  10. ChangeMode("View");
  11. else
  12. ChangeMode("New");
  13. </Load>
  14. <Closed>
  15. ;
  16. </Closed>
  17. </Events>
  18. <Mode>
  19. <Search>
  20. <Lable name="Search" />
  21. </Search>
  22. <New>
  23. <Lable name="New" />
  24. </New>
  25. <View>
  26. <Lable name="View" />
  27. </View>
  28. <Modify>
  29. <Lable name="Modify" />
  30. </Modify>
  31. </Mode>
  32. <Controls>
  33. <IKTextBox name="ikTextBox1" DataSource="PaySetting.ThreeFundBase_PaySetting"/>
  34. <IKTextBox name="ikTextBox2" DataSource="PaySetting.ProvideInsure_PaySetting"/>
  35. <IKTextBox name="ikTextBox3" DataSource="PaySetting.IdlenessInsure_PaySetting"/>
  36. <IKTextBox name="ikTextBox4" DataSource="PaySetting.MedicalInsure_PaySetting"/>
  37. <IKTextBox name="ikTextBox5" DataSource="PaySetting.AccFundAdjust_PaySetting"/>
  38. <IKTextBox name="ikTextBox6" DataSource="PaySetting.HouseAccFund_PaySetting"/>
  39. <IKTextBox name="ikTextBox8" DataSource="PaySetting.TaxBeginCH_PaySetting"/>
  40. <IKTextBox name="ikTextBox7" DataSource="PaySetting.TaxBeginF_PaySetting"/>
  41. <IKDataGridEx name="ikDataGridEx2" DataSource="LaterEarlySetting" TableStyleIndex="0">
  42. <DataColumn Index="0" DataSource="LaterEarlySetting.Minutes_LaterEarlySetting" />
  43. <DataColumn Index="1" DataSource="LaterEarlySetting.Money_LaterEarlySetting" />
  44. <DataColumn Index="2" DataSource="LaterEarlySetting.Comment_LaterEarlySetting" />
  45. </IKDataGridEx>
  46. <IKDataGridEx name="ikDataGridEx3" DataSource="SickHoliday" TableStyleIndex="0">
  47. <DataColumn Index="0" DataSource="SickHoliday.ServiceLength_SickHoliday" />
  48. <DataColumn Index="1" DataSource="SickHoliday.SickRate_SickHoliday" />
  49. </IKDataGridEx>
  50. <IKDataGridEx name="ikDataGridEx1" DataSource="TaxSetting" TableStyleIndex="0">
  51. <DataColumn Index="0" DataSource="TaxSetting.BeginAmount_TaxSetting" />
  52. <DataColumn Index="1" DataSource="TaxSetting.EndAmount_TaxSetting" />
  53. <DataColumn Index="2" DataSource="TaxSetting.TaxRate_TaxSetting" />
  54. <DataColumn Index="3" DataSource="TaxSetting.FastDeduct_TaxSetting" />
  55. </IKDataGridEx>
  56. <IKDataGridEx name="dgCalendarList" DataSource="PayBase" TableStyleIndex="0">
  57. <DataColumn Index="0" DataSource="PayBase.Type_PayBase" />
  58. <DataColumn Index="1" DataSource="PayBase.Value_PayBase" />
  59. </IKDataGridEx>
  60. <IKFormToolBar name="toolBar">
  61. <Events>
  62. <ClickEmpty>
  63. ChangeMode("Search");
  64. </ClickEmpty>
  65. <ClickSubmit>
  66. <Lable name="SubmitButtonClick" />
  67. </ClickSubmit>
  68. <ClickModify>
  69. ChangeMode("Modify");
  70. </ClickModify>
  71. </Events>
  72. </IKFormToolBar>
  73. </Controls>
  74. </Client>
  75. <Server>
  76. <Tables>
  77. <Table name="PaySetting" Type="Parent">
  78. <GetSchema CmdType="Text" CmdText="Select Top 0 PaySetting.*
  79. From PaySetting"/>
  80. <New CmdType="Text" CmdText="Insert Into dbo.PaySetting (ID_PaySetting
  81. , ThreeFundBase_PaySetting
  82. , ProvideInsure_PaySetting
  83. , IdlenessInsure_PaySetting
  84. , MedicalInsure_PaySetting
  85. , AccFundAdjust_PaySetting
  86. , HouseAccFund_PaySetting
  87. , TaxBeginCH_PaySetting
  88. , TaxBeginF_PaySetting
  89. )
  90. Values (@ID_PaySetting
  91. , @ThreeFundBase_PaySetting
  92. , @ProvideInsure_PaySetting
  93. , @IdlenessInsure_PaySetting
  94. , @MedicalInsure_PaySetting
  95. , @AccFundAdjust_PaySetting
  96. , @HouseAccFund_PaySetting
  97. , @TaxBeginCH_PaySetting
  98. , @TaxBeginF_PaySetting
  99. )">
  100. <Params>
  101. <Param name="@ID_PaySetting" type="PaySetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  102. <Param name="@ThreeFundBase_PaySetting" type="PaySetting.ThreeFundBase_PaySetting" sourceColumn="ThreeFundBase_PaySetting" />
  103. <Param name="@ProvideInsure_PaySetting" type="PaySetting.ProvideInsure_PaySetting" sourceColumn="ProvideInsure_PaySetting" />
  104. <Param name="@IdlenessInsure_PaySetting" type="PaySetting.IdlenessInsure_PaySetting" sourceColumn="IdlenessInsure_PaySetting" />
  105. <Param name="@MedicalInsure_PaySetting" type="PaySetting.MedicalInsure_PaySetting" sourceColumn="MedicalInsure_PaySetting" />
  106. <Param name="@AccFundAdjust_PaySetting" type="PaySetting.AccFundAdjust_PaySetting" sourceColumn="AccFundAdjust_PaySetting" />
  107. <Param name="@HouseAccFund_PaySetting" type="PaySetting.HouseAccFund_PaySetting" sourceColumn="HouseAccFund_PaySetting" />
  108. <Param name="@TaxBeginCH_PaySetting" type="PaySetting.TaxBeginCH_PaySetting" sourceColumn="TaxBeginCH_PaySetting" />
  109. <Param name="@TaxBeginF_PaySetting" type="PaySetting.TaxBeginF_PaySetting" sourceColumn="TaxBeginF_PaySetting" />
  110. </Params>
  111. </New>
  112. <Update CmdType="Text" CmdText="Update dbo.PaySetting
  113. Set ThreeFundBase_PaySetting = @ThreeFundBase_PaySetting
  114. , ProvideInsure_PaySetting = @ProvideInsure_PaySetting
  115. , IdlenessInsure_PaySetting = @IdlenessInsure_PaySetting
  116. , MedicalInsure_PaySetting = @MedicalInsure_PaySetting
  117. , AccFundAdjust_PaySetting = @AccFundAdjust_PaySetting
  118. , HouseAccFund_PaySetting = @HouseAccFund_PaySetting
  119. , TaxBeginCH_PaySetting = @TaxBeginCH_PaySetting
  120. , TaxBeginF_PaySetting = @TaxBeginF_PaySetting
  121. Where ID_PaySetting = @ID_PaySetting">
  122. <Params>
  123. <Param name="@ID_PaySetting" type="PaySetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  124. <Param name="@ThreeFundBase_PaySetting" type="PaySetting.ThreeFundBase_PaySetting" sourceColumn="ThreeFundBase_PaySetting" />
  125. <Param name="@ProvideInsure_PaySetting" type="PaySetting.ProvideInsure_PaySetting" sourceColumn="ProvideInsure_PaySetting" />
  126. <Param name="@IdlenessInsure_PaySetting" type="PaySetting.IdlenessInsure_PaySetting" sourceColumn="IdlenessInsure_PaySetting" />
  127. <Param name="@MedicalInsure_PaySetting" type="PaySetting.MedicalInsure_PaySetting" sourceColumn="MedicalInsure_PaySetting" />
  128. <Param name="@AccFundAdjust_PaySetting" type="PaySetting.AccFundAdjust_PaySetting" sourceColumn="AccFundAdjust_PaySetting" />
  129. <Param name="@HouseAccFund_PaySetting" type="PaySetting.HouseAccFund_PaySetting" sourceColumn="HouseAccFund_PaySetting" />
  130. <Param name="@TaxBeginCH_PaySetting" type="PaySetting.TaxBeginCH_PaySetting" sourceColumn="TaxBeginCH_PaySetting" />
  131. <Param name="@TaxBeginF_PaySetting" type="PaySetting.TaxBeginF_PaySetting" sourceColumn="TaxBeginF_PaySetting" />
  132. </Params>
  133. </Update>
  134. <Delete CmdType="Text" CmdText="Delete LaterEarlySetting Where ID_PaySetting = @ID_PaySetting
  135. Delete SickHoliday Where ID_PaySetting = @ID_PaySetting
  136. Delete TaxSetting Where ID_PaySetting = @ID_PaySetting
  137. Delete PayBase Where ID_PaySetting = @ID_PaySetting
  138. Delete PaySetting Where ID_PaySetting = @ID_PaySetting">
  139. <Params>
  140. <Param name="@ID_PaySetting" type="PaySetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  141. </Params>
  142. </Delete>
  143. </Table>
  144. <Table name="LaterEarlySetting" Type="Child">
  145. <GetSchema CmdType="Text" CmdText="Select Top 0 LaterEarlySetting.*
  146. From LaterEarlySetting"/>
  147. <New CmdType="Text" CmdText="Insert Into dbo.LaterEarlySetting (ID_LaterEarlySetting
  148. , ID_PaySetting
  149. , Minutes_LaterEarlySetting
  150. , Money_LaterEarlySetting
  151. , Comment_LaterEarlySetting
  152. )
  153. Values (@ID_LaterEarlySetting
  154. , @ID_PaySetting
  155. , @Minutes_LaterEarlySetting
  156. , @Money_LaterEarlySetting
  157. , @Comment_LaterEarlySetting
  158. )">
  159. <Params>
  160. <Param name="@ID_LaterEarlySetting" type="LaterEarlySetting.ID_LaterEarlySetting" sourceColumn="ID_LaterEarlySetting" />
  161. <Param name="@ID_PaySetting" type="LaterEarlySetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  162. <Param name="@Minutes_LaterEarlySetting" type="LaterEarlySetting.Minutes_LaterEarlySetting" sourceColumn="Minutes_LaterEarlySetting" />
  163. <Param name="@Money_LaterEarlySetting" type="LaterEarlySetting.Money_LaterEarlySetting" sourceColumn="Money_LaterEarlySetting" />
  164. <Param name="@Comment_LaterEarlySetting" type="LaterEarlySetting.Comment_LaterEarlySetting" sourceColumn="Comment_LaterEarlySetting" />
  165. </Params>
  166. </New>
  167. <Update CmdType="Text" CmdText="Update dbo.LaterEarlySetting
  168. Set ID_PaySetting = @ID_PaySetting
  169. , Minutes_LaterEarlySetting = @Minutes_LaterEarlySetting
  170. , Money_LaterEarlySetting = @Money_LaterEarlySetting
  171. , Comment_LaterEarlySetting = @Comment_LaterEarlySetting
  172. Where ID_LaterEarlySetting = @ID_LaterEarlySetting">
  173. <Params>
  174. <Param name="@ID_LaterEarlySetting" type="LaterEarlySetting.ID_LaterEarlySetting" sourceColumn="ID_LaterEarlySetting" />
  175. <Param name="@ID_PaySetting" type="LaterEarlySetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  176. <Param name="@Minutes_LaterEarlySetting" type="LaterEarlySetting.Minutes_LaterEarlySetting" sourceColumn="Minutes_LaterEarlySetting" />
  177. <Param name="@Money_LaterEarlySetting" type="LaterEarlySetting.Money_LaterEarlySetting" sourceColumn="Money_LaterEarlySetting" />
  178. <Param name="@Comment_LaterEarlySetting" type="LaterEarlySetting.Comment_LaterEarlySetting" sourceColumn="Comment_LaterEarlySetting" />
  179. </Params>
  180. </Update>
  181. <Delete CmdType="Text" CmdText="Delete LaterEarlySetting Where ID_LaterEarlySetting = @ID_LaterEarlySetting">
  182. <Params>
  183. <Param name="@ID_LaterEarlySetting" type="LaterEarlySetting.ID_LaterEarlySetting" sourceColumn="ID_LaterEarlySetting" />
  184. </Params>
  185. </Delete>
  186. </Table>
  187. <Table name="SickHoliday" Type="Child">
  188. <GetSchema CmdType="Text" CmdText="Select Top 0 SickHoliday.*
  189. From SickHoliday"/>
  190. <New CmdType="Text" CmdText="Insert Into dbo.SickHoliday (ID_SickHoliday
  191. , ID_PaySetting
  192. , ServiceLength_SickHoliday
  193. , SickRate_SickHoliday
  194. )
  195. Values (@ID_SickHoliday
  196. , @ID_PaySetting
  197. , @ServiceLength_SickHoliday
  198. , @SickRate_SickHoliday
  199. )">
  200. <Params>
  201. <Param name="@ID_SickHoliday" type="SickHoliday.ID_SickHoliday" sourceColumn="ID_SickHoliday" />
  202. <Param name="@ID_PaySetting" type="SickHoliday.ID_PaySetting" sourceColumn="ID_PaySetting" />
  203. <Param name="@ServiceLength_SickHoliday" type="SickHoliday.ServiceLength_SickHoliday" sourceColumn="ServiceLength_SickHoliday" />
  204. <Param name="@SickRate_SickHoliday" type="SickHoliday.SickRate_SickHoliday" sourceColumn="SickRate_SickHoliday" />
  205. </Params>
  206. </New>
  207. <Update CmdType="Text" CmdText="Update dbo.SickHoliday
  208. Set ID_PaySetting = @ID_PaySetting
  209. , ServiceLength_SickHoliday = @ServiceLength_SickHoliday
  210. , SickRate_SickHoliday = @SickRate_SickHoliday
  211. Where ID_SickHoliday = @ID_SickHoliday">
  212. <Params>
  213. <Param name="@ID_SickHoliday" type="SickHoliday.ID_SickHoliday" sourceColumn="ID_SickHoliday" />
  214. <Param name="@ID_PaySetting" type="SickHoliday.ID_PaySetting" sourceColumn="ID_PaySetting" />
  215. <Param name="@ServiceLength_SickHoliday" type="SickHoliday.ServiceLength_SickHoliday" sourceColumn="ServiceLength_SickHoliday" />
  216. <Param name="@SickRate_SickHoliday" type="SickHoliday.SickRate_SickHoliday" sourceColumn="SickRate_SickHoliday" />
  217. </Params>
  218. </Update>
  219. <Delete CmdType="Text" CmdText="Delete SickHoliday Where ID_SickHoliday = @ID_SickHoliday">
  220. <Params>
  221. <Param name="@ID_SickHoliday" type="SickHoliday.ID_SickHoliday" sourceColumn="ID_SickHoliday" />
  222. </Params>
  223. </Delete>
  224. </Table>
  225. <Table name="TaxSetting" Type="Child">
  226. <GetSchema CmdType="Text" CmdText="Select Top 0 TaxSetting.*
  227. From TaxSetting" />
  228. <New CmdType="Text" CmdText="Insert Into dbo.TaxSetting (ID_TaxSetting
  229. , ID_PaySetting
  230. , BeginAmount_TaxSetting
  231. , EndAmount_TaxSetting
  232. , TaxRate_TaxSetting
  233. , FastDeduct_TaxSetting
  234. )
  235. Values (@ID_TaxSetting
  236. , @ID_PaySetting
  237. , @BeginAmount_TaxSetting
  238. , @EndAmount_TaxSetting
  239. , @TaxRate_TaxSetting
  240. , @FastDeduct_TaxSetting
  241. )">
  242. <Params>
  243. <Param name="@ID_TaxSetting" type="TaxSetting.ID_TaxSetting" sourceColumn="ID_TaxSetting" />
  244. <Param name="@ID_PaySetting" type="TaxSetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  245. <Param name="@BeginAmount_TaxSetting" type="TaxSetting.BeginAmount_TaxSetting" sourceColumn="BeginAmount_TaxSetting" />
  246. <Param name="@EndAmount_TaxSetting" type="TaxSetting.EndAmount_TaxSetting" sourceColumn="EndAmount_TaxSetting" />
  247. <Param name="@TaxRate_TaxSetting" type="TaxSetting.TaxRate_TaxSetting" sourceColumn="TaxRate_TaxSetting" />
  248. <Param name="@FastDeduct_TaxSetting" type="TaxSetting.FastDeduct_TaxSetting" sourceColumn="FastDeduct_TaxSetting" />
  249. </Params>
  250. </New>
  251. <Update CmdType="Text" CmdText="Update dbo.TaxSetting
  252. Set ID_PaySetting = @ID_PaySetting
  253. , BeginAmount_TaxSetting = @BeginAmount_TaxSetting
  254. , EndAmount_TaxSetting = @EndAmount_TaxSetting
  255. , TaxRate_TaxSetting = @TaxRate_TaxSetting
  256. , FastDeduct_TaxSetting = @FastDeduct_TaxSetting
  257. Where ID_TaxSetting = @ID_TaxSetting ">
  258. <Params>
  259. <Param name="@ID_TaxSetting" type="TaxSetting.ID_TaxSetting" sourceColumn="ID_TaxSetting" />
  260. <Param name="@ID_PaySetting" type="TaxSetting.ID_PaySetting" sourceColumn="ID_PaySetting" />
  261. <Param name="@BeginAmount_TaxSetting" type="TaxSetting.BeginAmount_TaxSetting" sourceColumn="BeginAmount_TaxSetting" />
  262. <Param name="@EndAmount_TaxSetting" type="TaxSetting.EndAmount_TaxSetting" sourceColumn="EndAmount_TaxSetting" />
  263. <Param name="@TaxRate_TaxSetting" type="TaxSetting.TaxRate_TaxSetting" sourceColumn="TaxRate_TaxSetting" />
  264. <Param name="@FastDeduct_TaxSetting" type="TaxSetting.FastDeduct_TaxSetting" sourceColumn="FastDeduct_TaxSetting" />
  265. </Params>
  266. </Update>
  267. <Delete CmdType="Text" CmdText="Delete TaxSetting Where ID_TaxSetting = @ID_TaxSetting">
  268. <Params>
  269. <Param name="@ID_TaxSetting" type="TaxSetting.ID_TaxSetting" sourceColumn="ID_TaxSetting" />
  270. </Params>
  271. </Delete>
  272. </Table>
  273. <Table name="PayBase" Type="Child">
  274. <GetSchema CmdType="Text" CmdText="Select Top 0 PayBase.*
  275. From PayBase" />
  276. <New CmdType="Text" CmdText="Insert Into dbo.PayBase (ID_PayBase
  277. , ID_PaySetting
  278. , Type_PayBase
  279. , Value_PayBase
  280. )
  281. Values (@ID_PayBase
  282. , @ID_PaySetting
  283. , @Type_PayBase
  284. , @Value_PayBase
  285. )">
  286. <Params>
  287. <Param name="@ID_PayBase" type="PayBase.ID_PayBase" sourceColumn="ID_PayBase" />
  288. <Param name="@ID_PaySetting" type="PayBase.ID_PaySetting" sourceColumn="ID_PaySetting" />
  289. <Param name="@Type_PayBase" type="PayBase.Type_PayBase" sourceColumn="Type_PayBase" />
  290. <Param name="@Value_PayBase" type="PayBase.Value_PayBase" sourceColumn="Value_PayBase" />
  291. </Params>
  292. </New>
  293. <Update CmdType="Text" CmdText="Update dbo.PayBase
  294. Set ID_PaySetting = @ID_PaySetting
  295. , Type_PayBase = @Type_PayBase
  296. , Value_PayBase = @Value_PayBase
  297. Where ID_PayBase = @ID_PayBase">
  298. <Params>
  299. <Param name="@ID_PayBase" type="PayBase.ID_PayBase" sourceColumn="ID_PayBase" />
  300. <Param name="@ID_PaySetting" type="PayBase.ID_PaySetting" sourceColumn="ID_PaySetting" />
  301. <Param name="@Type_PayBase" type="PayBase.Type_PayBase" sourceColumn="Type_PayBase" />
  302. <Param name="@Value_PayBase" type="PayBase.Value_PayBase" sourceColumn="Value_PayBase" />
  303. </Params>
  304. </Update>
  305. <Delete CmdType="Text" CmdText="Delete PayBase Where ID_PayBase = @ID_PayBase">
  306. <Params>
  307. <Param name="@ID_PayBase" type="PayBase.ID_PayBase" sourceColumn="ID_PayBase" />
  308. </Params>
  309. </Delete>
  310. </Table>
  311. </Tables>
  312. <Search>
  313. <SearchPaySetting CmdType="Text" CmdText="Declare @ID_PaySetting Uniqueidentifier
  314. Select @ID_PaySetting = ID_PaySetting
  315. From PaySetting
  316. Select *
  317. From PaySetting
  318. Select *
  319. From LaterEarlySetting
  320. Where ID_PaySetting = @ID_PaySetting
  321. Select *
  322. From SickHoliday
  323. Where ID_PaySetting = @ID_PaySetting
  324. Select *
  325. From TaxSetting
  326. Where ID_PaySetting = @ID_PaySetting
  327. Select *
  328. From PayBase
  329. Where ID_PaySetting = @ID_PaySetting">
  330. <Tables>
  331. <Table name="PaySetting" />
  332. <Table name="LaterEarlySetting" />
  333. <Table name="SickHoliday" />
  334. <Table name="TaxSetting" />
  335. <Table name="PayBase" />
  336. </Tables>
  337. </SearchPaySetting>
  338. </Search>
  339. </Server>
  340. <Lables>
  341. <Search>
  342. Empty();
  343. NewInstance();
  344. #PaySetting.ThreeFundBase_PaySetting = 0;
  345. #PaySetting.ProvideInsure_PaySetting = 0;
  346. #PaySetting.IdlenessInsure_PaySetting = 0;
  347. #PaySetting.MedicalInsure_PaySetting = 0;
  348. #PaySetting.AccFundAdjust_PaySetting = 0;
  349. #PaySetting.HouseAccFund_PaySetting = 0;
  350. #PaySetting.TaxBeginCH_PaySetting = 0;
  351. #PaySetting.TaxBeginF_PaySetting = 0;
  352. ikTextBox1.ReadOnly = true;
  353. ikTextBox2.ReadOnly = true;
  354. ikTextBox3.ReadOnly = true;
  355. ikTextBox4.ReadOnly = true;
  356. ikTextBox5.ReadOnly = true;
  357. ikTextBox6.ReadOnly = true;
  358. ikTextBox7.ReadOnly = true;
  359. ikTextBox8.ReadOnly = true;
  360. ikDataGridEx1.ReadOnly = true;
  361. ikDataGridEx2.ReadOnly = true;
  362. ikDataGridEx3.ReadOnly = true;
  363. dgCalendarList.ReadOnly = true;
  364. toolBar.EnableSubmit=false;
  365. toolBar.EnableModify=false;
  366. UpdateForm(true, "");
  367. </Search>
  368. <New>
  369. Empty();
  370. NewInstance();
  371. ikTextBox1.ReadOnly = false;
  372. ikTextBox2.ReadOnly = false;
  373. ikTextBox3.ReadOnly = false;
  374. ikTextBox4.ReadOnly = false;
  375. ikTextBox5.ReadOnly = false;
  376. ikTextBox6.ReadOnly = false;
  377. ikTextBox7.ReadOnly = false;
  378. ikTextBox8.ReadOnly = false;
  379. ikDataGridEx1.ReadOnly = false;
  380. ikDataGridEx2.ReadOnly = false;
  381. ikDataGridEx3.ReadOnly = false;
  382. dgCalendarList.ReadOnly = false;
  383. toolBar.EnableSubmit=GetRight(@Title,"新增");
  384. toolBar.EnableModify=false;
  385. #PaySetting.ID_PaySetting = NewGuid();
  386. #PaySetting.ThreeFundBase_PaySetting = 1725.00;
  387. #PaySetting.ProvideInsure_PaySetting = 8.00;
  388. #PaySetting.IdlenessInsure_PaySetting = 1.00;
  389. #PaySetting.MedicalInsure_PaySetting = 2.00;
  390. #PaySetting.AccFundAdjust_PaySetting = -200.00;
  391. #PaySetting.HouseAccFund_PaySetting = 7.00;
  392. #PaySetting.TaxBeginCH_PaySetting = 2000.00;
  393. #PaySetting.TaxBeginF_PaySetting = 4000.00;
  394. UpdateForm(true, "");
  395. @Status=1;
  396. </New>
  397. <View>
  398. ikTextBox1.ReadOnly = true;
  399. ikTextBox2.ReadOnly = true;
  400. ikTextBox3.ReadOnly = true;
  401. ikTextBox4.ReadOnly = true;
  402. ikTextBox5.ReadOnly = true;
  403. ikTextBox6.ReadOnly = true;
  404. ikTextBox7.ReadOnly = true;
  405. ikTextBox8.ReadOnly = true;
  406. ikDataGridEx1.ReadOnly = true;
  407. ikDataGridEx2.ReadOnly = true;
  408. ikDataGridEx3.ReadOnly = true;
  409. dgCalendarList.ReadOnly = true;
  410. toolBar.EnableSubmit=false;
  411. toolBar.EnableModify=GetRight(@Title,"修改");
  412. UpdateForm(true, "");
  413. @Status=2;
  414. </View>
  415. <Modify>
  416. ikTextBox1.ReadOnly = false;
  417. ikTextBox2.ReadOnly = false;
  418. ikTextBox3.ReadOnly = false;
  419. ikTextBox4.ReadOnly = false;
  420. ikTextBox5.ReadOnly = false;
  421. ikTextBox6.ReadOnly = false;
  422. ikTextBox7.ReadOnly = false;
  423. ikTextBox8.ReadOnly = false;
  424. ikDataGridEx1.ReadOnly = false;
  425. ikDataGridEx2.ReadOnly = false;
  426. ikDataGridEx3.ReadOnly = false;
  427. dgCalendarList.ReadOnly = false;
  428. toolBar.EnableSubmit=GetRight(@Title,"新增");
  429. toolBar.EnableModify=false;
  430. UpdateForm(true, "");
  431. @Status=3;
  432. </Modify>
  433. <SubmitButtonClick>
  434. <![CDATA[
  435. UpdateForm(false, "");
  436. SuspendLayout();
  437. for (@i=0;@i<RowCount("#LaterEarlySetting");@i=@i+1)
  438. {
  439. SetPosition("#LaterEarlySetting", @i);
  440. if (Equals(#LaterEarlySetting.ID_LaterEarlySetting,GuidEmpty()))
  441. #LaterEarlySetting.ID_LaterEarlySetting = NewGuid();
  442. #LaterEarlySetting.ID_PaySetting =#PaySetting.ID_PaySetting;
  443. }
  444. for (@i=0;@i<RowCount("#SickHoliday");@i=@i+1)
  445. {
  446. SetPosition("#SickHoliday", @i);
  447. if (Equals(#SickHoliday.ID_SickHoliday,GuidEmpty()))
  448. #SickHoliday.ID_SickHoliday = NewGuid();
  449. #SickHoliday.ID_PaySetting =#PaySetting.ID_PaySetting;
  450. }
  451. for (@i=0;@i<RowCount("#TaxSetting");@i=@i+1)
  452. {
  453. SetPosition("#TaxSetting", @i);
  454. if (Equals(#TaxSetting.ID_TaxSetting,GuidEmpty()))
  455. #TaxSetting.ID_TaxSetting = NewGuid();
  456. #TaxSetting.ID_PaySetting =#PaySetting.ID_PaySetting;
  457. }
  458. for (@i=0;@i<RowCount("#PayBase");@i=@i+1)
  459. {
  460. SetPosition("#PayBase", @i);
  461. if (Equals(#PayBase.ID_PayBase,GuidEmpty()))
  462. #PayBase.ID_PayBase = NewGuid();
  463. #PayBase.ID_PaySetting =#PaySetting.ID_PaySetting;
  464. }
  465. ResumeLayout();
  466. if(@Status == 1)
  467. {
  468. New();
  469. }
  470. else if(@Status == 3)
  471. {
  472. Update();
  473. }
  474. ChangeMode("View");
  475. ]]>
  476. </SubmitButtonClick>
  477. </Lables>
  478. </Form>
  479. </Forms>