w_rp_gz_wage.srw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. $PBExportHeader$w_rp_gz_wage.srw
  2. forward
  3. global type w_rp_gz_wage from w_publ_easyq
  4. end type
  5. type em_mth from editmask within w_rp_gz_wage
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_rp_gz_wage
  8. end type
  9. type st_1 from statictext within w_rp_gz_wage
  10. end type
  11. type ddlb_2 from dropdownlistbox within w_rp_gz_wage
  12. end type
  13. end forward
  14. global type w_rp_gz_wage from w_publ_easyq
  15. string title = "工资表"
  16. em_mth em_mth
  17. ddlb_1 ddlb_1
  18. st_1 st_1
  19. ddlb_2 ddlb_2
  20. end type
  21. global w_rp_gz_wage w_rp_gz_wage
  22. on w_rp_gz_wage.create
  23. int iCurrent
  24. call super::create
  25. this.em_mth=create em_mth
  26. this.ddlb_1=create ddlb_1
  27. this.st_1=create st_1
  28. this.ddlb_2=create ddlb_2
  29. iCurrent=UpperBound(this.Control)
  30. this.Control[iCurrent+1]=this.em_mth
  31. this.Control[iCurrent+2]=this.ddlb_1
  32. this.Control[iCurrent+3]=this.st_1
  33. this.Control[iCurrent+4]=this.ddlb_2
  34. end on
  35. on w_rp_gz_wage.destroy
  36. call super::destroy
  37. destroy(this.em_mth)
  38. destroy(this.ddlb_1)
  39. destroy(this.st_1)
  40. destroy(this.ddlb_2)
  41. end on
  42. event ue_before_open;call super::ue_before_open;if_ue_sentdataout = True
  43. IF Message.DoubleParm > 200001 And Message.DoubleParm < 209912 THEN
  44. em_mth.Text = String(Message.DoubleParm)
  45. ELSE
  46. em_mth.Text = String(Today(),'yyyymm')
  47. END IF
  48. f_getdept(ddlb_1)
  49. ddlb_1.Text = '全部'
  50. wf_replacedw()
  51. //cb_1.triggerevent(clicked!)
  52. end event
  53. type cb_func from w_publ_easyq`cb_func within w_rp_gz_wage
  54. end type
  55. type cb_exit from w_publ_easyq`cb_exit within w_rp_gz_wage
  56. end type
  57. type cb_2 from w_publ_easyq`cb_2 within w_rp_gz_wage
  58. end type
  59. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_gz_wage
  60. end type
  61. type cb_1 from w_publ_easyq`cb_1 within w_rp_gz_wage
  62. end type
  63. event cb_1::clicked;call super::clicked;dw_1.Retrieve(long(em_mth.text))
  64. end event
  65. type st_3 from w_publ_easyq`st_3 within w_rp_gz_wage
  66. integer x = 37
  67. integer y = 216
  68. integer width = 160
  69. string text = "月份"
  70. alignment alignment = center!
  71. end type
  72. type st_4 from w_publ_easyq`st_4 within w_rp_gz_wage
  73. integer x = 585
  74. integer y = 352
  75. end type
  76. type em_1 from w_publ_easyq`em_1 within w_rp_gz_wage
  77. integer x = 201
  78. integer y = 352
  79. end type
  80. type em_2 from w_publ_easyq`em_2 within w_rp_gz_wage
  81. integer y = 352
  82. end type
  83. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_gz_wage
  84. end type
  85. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_gz_wage
  86. end type
  87. type dw_1 from w_publ_easyq`dw_1 within w_rp_gz_wage
  88. integer y = 300
  89. string dataobject = "dw_mthwage_crosrpt"
  90. end type
  91. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_gz_wage
  92. end type
  93. type sle_cust from w_publ_easyq`sle_cust within w_rp_gz_wage
  94. end type
  95. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_gz_wage
  96. end type
  97. type st_cust from w_publ_easyq`st_cust within w_rp_gz_wage
  98. end type
  99. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_gz_wage
  100. boolean visible = true
  101. end type
  102. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_gz_wage
  103. boolean visible = false
  104. end type
  105. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_gz_wage
  106. boolean visible = false
  107. end type
  108. type pb_2 from w_publ_easyq`pb_2 within w_rp_gz_wage
  109. boolean visible = false
  110. end type
  111. type cb_help from w_publ_easyq`cb_help within w_rp_gz_wage
  112. end type
  113. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_gz_wage
  114. end type
  115. type gb_1 from w_publ_easyq`gb_1 within w_rp_gz_wage
  116. end type
  117. type ln_bar from w_publ_easyq`ln_bar within w_rp_gz_wage
  118. end type
  119. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_gz_wage
  120. end type
  121. type r_bar from w_publ_easyq`r_bar within w_rp_gz_wage
  122. end type
  123. type ln_1 from w_publ_easyq`ln_1 within w_rp_gz_wage
  124. end type
  125. type ln_2 from w_publ_easyq`ln_2 within w_rp_gz_wage
  126. end type
  127. type ln_3 from w_publ_easyq`ln_3 within w_rp_gz_wage
  128. end type
  129. type ln_4 from w_publ_easyq`ln_4 within w_rp_gz_wage
  130. end type
  131. type em_mth from editmask within w_rp_gz_wage
  132. integer x = 197
  133. integer y = 200
  134. integer width = 329
  135. integer height = 88
  136. integer taborder = 80
  137. boolean bringtotop = true
  138. integer textsize = -10
  139. integer weight = 400
  140. fontcharset fontcharset = gb2312charset!
  141. fontpitch fontpitch = variable!
  142. string facename = "宋体"
  143. long textcolor = 33554432
  144. string text = "none"
  145. borderstyle borderstyle = stylelowered!
  146. maskdatatype maskdatatype = datemask!
  147. string mask = "yyyymm"
  148. boolean spin = true
  149. end type
  150. type ddlb_1 from dropdownlistbox within w_rp_gz_wage
  151. integer x = 727
  152. integer y = 200
  153. integer width = 590
  154. integer height = 680
  155. integer taborder = 80
  156. boolean bringtotop = true
  157. integer textsize = -9
  158. integer weight = 400
  159. fontcharset fontcharset = gb2312charset!
  160. fontpitch fontpitch = variable!
  161. string facename = "宋体"
  162. long textcolor = 33554432
  163. boolean sorted = false
  164. boolean vscrollbar = true
  165. string item[] = {"全部"}
  166. borderstyle borderstyle = stylelowered!
  167. end type
  168. event selectionchanged;if this.text='全部' then
  169. dw_1.setfilter('')
  170. else
  171. DW_1.setfilter("departmentname='"+this.text+"'")
  172. end if
  173. dw_1.filter()
  174. end event
  175. type st_1 from statictext within w_rp_gz_wage
  176. integer x = 535
  177. integer y = 216
  178. integer width = 169
  179. integer height = 48
  180. boolean bringtotop = true
  181. integer textsize = -9
  182. integer weight = 400
  183. fontcharset fontcharset = gb2312charset!
  184. fontpitch fontpitch = variable!
  185. string facename = "宋体"
  186. long textcolor = 33554432
  187. long backcolor = 134217739
  188. string text = "部门"
  189. alignment alignment = right!
  190. boolean focusrectangle = false
  191. end type
  192. type ddlb_2 from dropdownlistbox within w_rp_gz_wage
  193. integer x = 1847
  194. integer y = 28
  195. integer width = 370
  196. integer height = 452
  197. integer taborder = 90
  198. boolean bringtotop = true
  199. integer textsize = -9
  200. integer weight = 400
  201. fontcharset fontcharset = gb2312charset!
  202. fontpitch fontpitch = variable!
  203. string facename = "宋体"
  204. long textcolor = 33554432
  205. string text = "格式一"
  206. boolean sorted = false
  207. string item[] = {"格式一","格式二"}
  208. borderstyle borderstyle = stylelowered!
  209. end type
  210. event selectionchanged;dw_1.uf_save_profile_layout()
  211. IF ddlb_2.Text = '格式一' THEN
  212. dw_1.DataObject = 'dw_mthwage_crosrpt'
  213. ELSE
  214. dw_1.DataObject = 'dw_mthwage_crosrpt_1' //格式二存在平项时合计实发工资有错误
  215. END IF
  216. wf_replacedw()
  217. //dw_1.SetTransObject(sqlca)
  218. //
  219. //dw_1.ins_INIfile_name = sys_inifilename
  220. //dw_1.ins_opemp = publ_operator
  221. //dw_1.cardw_empid = sys_empid
  222. //dw_1.cur_DataObject = dw_1.DataObject
  223. //
  224. //dw_1.uf_read_profile_layout()
  225. cb_1.TriggerEvent(Clicked!)
  226. end event