w_sc_abnormity_audit.srw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. $PBExportHeader$w_sc_abnormity_audit.srw
  2. forward
  3. global type w_sc_abnormity_audit from window
  4. end type
  5. type ddlb_wageitem from dropdownlistbox within w_sc_abnormity_audit
  6. end type
  7. type st_3 from statictext within w_sc_abnormity_audit
  8. end type
  9. type cb_cancel from uo_imflatbutton within w_sc_abnormity_audit
  10. end type
  11. type cb_ok from uo_imflatbutton within w_sc_abnormity_audit
  12. end type
  13. type em_2 from editmask within w_sc_abnormity_audit
  14. end type
  15. type em_1 from editmask within w_sc_abnormity_audit
  16. end type
  17. type st_2 from statictext within w_sc_abnormity_audit
  18. end type
  19. type st_1 from statictext within w_sc_abnormity_audit
  20. end type
  21. end forward
  22. global type w_sc_abnormity_audit from window
  23. integer width = 997
  24. integer height = 660
  25. boolean titlebar = true
  26. string title = "计件审核"
  27. boolean controlmenu = true
  28. windowtype windowtype = response!
  29. long backcolor = 134217739
  30. string icon = "AppIcon!"
  31. boolean center = true
  32. ddlb_wageitem ddlb_wageitem
  33. st_3 st_3
  34. cb_cancel cb_cancel
  35. cb_ok cb_ok
  36. em_2 em_2
  37. em_1 em_1
  38. st_2 st_2
  39. st_1 st_1
  40. end type
  41. global w_sc_abnormity_audit w_sc_abnormity_audit
  42. type variables
  43. s_taskwork_abnormity_audit s_audit
  44. end variables
  45. on w_sc_abnormity_audit.create
  46. this.ddlb_wageitem=create ddlb_wageitem
  47. this.st_3=create st_3
  48. this.cb_cancel=create cb_cancel
  49. this.cb_ok=create cb_ok
  50. this.em_2=create em_2
  51. this.em_1=create em_1
  52. this.st_2=create st_2
  53. this.st_1=create st_1
  54. this.Control[]={this.ddlb_wageitem,&
  55. this.st_3,&
  56. this.cb_cancel,&
  57. this.cb_ok,&
  58. this.em_2,&
  59. this.em_1,&
  60. this.st_2,&
  61. this.st_1}
  62. end on
  63. on w_sc_abnormity_audit.destroy
  64. destroy(this.ddlb_wageitem)
  65. destroy(this.st_3)
  66. destroy(this.cb_cancel)
  67. destroy(this.cb_ok)
  68. destroy(this.em_2)
  69. destroy(this.em_1)
  70. destroy(this.st_2)
  71. destroy(this.st_1)
  72. end on
  73. event close;closewithreturn(this,s_audit)
  74. end event
  75. event open;int ls_audittype
  76. //1 审核
  77. //0 撤审
  78. ls_audittype=message.doubleparm
  79. if ls_audittype=1 then
  80. this.title='异常计件审核'
  81. em_2.enabled=true
  82. else
  83. this.title='异常计件撤审'
  84. em_2.enabled=false
  85. end if
  86. end event
  87. type ddlb_wageitem from dropdownlistbox within w_sc_abnormity_audit
  88. integer x = 375
  89. integer y = 68
  90. integer width = 485
  91. integer height = 412
  92. integer taborder = 10
  93. integer textsize = -9
  94. integer weight = 400
  95. fontcharset fontcharset = gb2312charset!
  96. fontpitch fontpitch = variable!
  97. string facename = "宋体"
  98. long textcolor = 33554432
  99. borderstyle borderstyle = stylelowered!
  100. end type
  101. event constructor;string ls_wagename
  102. long ls_wageid
  103. DECLARE cur_wageitem CURSOR FOR
  104. SELECT u_gz_wageitem.wageid,
  105. u_gz_wageitem.Wagename
  106. FROM u_gz_wageitem
  107. WHERE ( u_gz_wageitem.wagemode = 14 ) AND
  108. ( u_gz_wageitem.useflag = 1 )
  109. ORDER BY u_gz_wageitem.wageid desc;
  110. open cur_wageitem;
  111. fetch cur_wageitem into :ls_wageid,:ls_wagename;
  112. do while sqlca.sqlcode=0
  113. ddlb_wageitem.additem('['+string(ls_wageid)+']'+ls_wagename)
  114. fetch cur_wageitem into :ls_wageid,:ls_wagename;
  115. loop
  116. ddlb_wageitem.text='['+string(ls_wageid)+']'+ls_wagename
  117. close cur_wageitem;
  118. end event
  119. type st_3 from statictext within w_sc_abnormity_audit
  120. integer x = 119
  121. integer y = 80
  122. integer width = 256
  123. integer height = 48
  124. integer textsize = -9
  125. integer weight = 400
  126. fontcharset fontcharset = gb2312charset!
  127. fontpitch fontpitch = variable!
  128. string facename = "宋体"
  129. long textcolor = 33554432
  130. long backcolor = 134217739
  131. string text = "工资项目"
  132. boolean focusrectangle = false
  133. end type
  134. type cb_cancel from uo_imflatbutton within w_sc_abnormity_audit
  135. integer x = 535
  136. integer y = 432
  137. integer width = 311
  138. integer taborder = 40
  139. string text = "取消"
  140. boolean cancel = true
  141. string normalpicname = "exit.bmp"
  142. end type
  143. event clicked;call super::clicked;s_audit.audit_month=0
  144. close(parent)
  145. end event
  146. type cb_ok from uo_imflatbutton within w_sc_abnormity_audit
  147. integer x = 151
  148. integer y = 432
  149. integer width = 311
  150. integer taborder = 30
  151. string normalpicname = "ok.bmp"
  152. end type
  153. event clicked;call super::clicked;
  154. s_audit.audit_wageid=long(mid(ddlb_wageitem.text,2,pos(ddlb_wageitem.text,']') - 2 ))
  155. s_audit.audit_month=long(em_1.text)
  156. s_audit.audit_enddate=datetime(date(em_2.text),time('23:59:59'))
  157. close(parent)
  158. end event
  159. type em_2 from editmask within w_sc_abnormity_audit
  160. integer x = 375
  161. integer y = 276
  162. integer width = 485
  163. integer height = 88
  164. integer taborder = 20
  165. integer textsize = -9
  166. integer weight = 400
  167. fontcharset fontcharset = gb2312charset!
  168. fontpitch fontpitch = variable!
  169. string facename = "宋体"
  170. long textcolor = 33554432
  171. string text = "none"
  172. alignment alignment = center!
  173. borderstyle borderstyle = stylelowered!
  174. maskdatatype maskdatatype = datetimemask!
  175. string mask = "yyyy-mm-dd"
  176. boolean spin = true
  177. end type
  178. event constructor;this.text=string(today(),'yyyy-mm-dd')
  179. end event
  180. type em_1 from editmask within w_sc_abnormity_audit
  181. integer x = 375
  182. integer y = 168
  183. integer width = 485
  184. integer height = 88
  185. integer taborder = 10
  186. integer textsize = -9
  187. integer weight = 400
  188. fontcharset fontcharset = gb2312charset!
  189. fontpitch fontpitch = variable!
  190. string facename = "宋体"
  191. long textcolor = 33554432
  192. string text = "none"
  193. alignment alignment = center!
  194. borderstyle borderstyle = stylelowered!
  195. maskdatatype maskdatatype = datetimemask!
  196. string mask = "yyyymm"
  197. boolean spin = true
  198. end type
  199. event constructor;this.text=string(today(),'yyyymm')
  200. end event
  201. type st_2 from statictext within w_sc_abnormity_audit
  202. integer x = 119
  203. integer y = 296
  204. integer width = 256
  205. integer height = 48
  206. integer textsize = -9
  207. integer weight = 400
  208. fontcharset fontcharset = gb2312charset!
  209. fontpitch fontpitch = variable!
  210. string facename = "宋体"
  211. long textcolor = 33554432
  212. long backcolor = 134217739
  213. string text = "截止日期"
  214. boolean focusrectangle = false
  215. end type
  216. type st_1 from statictext within w_sc_abnormity_audit
  217. integer x = 119
  218. integer y = 188
  219. integer width = 256
  220. integer height = 48
  221. integer textsize = -9
  222. integer weight = 400
  223. fontcharset fontcharset = gb2312charset!
  224. fontpitch fontpitch = variable!
  225. string facename = "宋体"
  226. long textcolor = 33554432
  227. long backcolor = 134217739
  228. string text = "工资月份"
  229. boolean focusrectangle = false
  230. end type