w_gz_loanwage_audit.srw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. $PBExportHeader$w_gz_loanwage_audit.srw
  2. forward
  3. global type w_gz_loanwage_audit from window
  4. end type
  5. type ddlb_wageitem from dropdownlistbox within w_gz_loanwage_audit
  6. end type
  7. type st_3 from statictext within w_gz_loanwage_audit
  8. end type
  9. type cb_cancel from uo_imflatbutton within w_gz_loanwage_audit
  10. end type
  11. type cb_ok from uo_imflatbutton within w_gz_loanwage_audit
  12. end type
  13. type em_2 from editmask within w_gz_loanwage_audit
  14. end type
  15. type em_1 from editmask within w_gz_loanwage_audit
  16. end type
  17. type st_2 from statictext within w_gz_loanwage_audit
  18. end type
  19. type st_1 from statictext within w_gz_loanwage_audit
  20. end type
  21. end forward
  22. global type w_gz_loanwage_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_gz_loanwage_audit w_gz_loanwage_audit
  42. type variables
  43. s_taskwork_abnormity_audit s_audit
  44. end variables
  45. on w_gz_loanwage_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_gz_loanwage_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. em_2.enabled=false
  83. else
  84. this.title='借支撤审'
  85. em_2.enabled=false
  86. end if
  87. end event
  88. type ddlb_wageitem from dropdownlistbox within w_gz_loanwage_audit
  89. integer x = 375
  90. integer y = 68
  91. integer width = 485
  92. integer height = 412
  93. integer taborder = 10
  94. integer textsize = -9
  95. integer weight = 400
  96. fontcharset fontcharset = gb2312charset!
  97. fontpitch fontpitch = variable!
  98. string facename = "宋体"
  99. long textcolor = 33554432
  100. borderstyle borderstyle = stylelowered!
  101. end type
  102. event constructor;string ls_wagename
  103. long ls_wageid
  104. DECLARE cur_wageitem CURSOR FOR
  105. SELECT u_gz_wageitem.wageid,
  106. u_gz_wageitem.Wagename
  107. FROM u_gz_wageitem
  108. WHERE ( u_gz_wageitem.wagemode = 21 ) AND
  109. ( u_gz_wageitem.useflag = 1 )
  110. ORDER BY u_gz_wageitem.wageid desc;
  111. open cur_wageitem;
  112. fetch cur_wageitem into :ls_wageid,:ls_wagename;
  113. do while sqlca.sqlcode=0
  114. ddlb_wageitem.additem('['+string(ls_wageid)+']'+ls_wagename)
  115. fetch cur_wageitem into :ls_wageid,:ls_wagename;
  116. loop
  117. ddlb_wageitem.text='['+string(ls_wageid)+']'+ls_wagename
  118. close cur_wageitem;
  119. end event
  120. type st_3 from statictext within w_gz_loanwage_audit
  121. integer x = 119
  122. integer y = 80
  123. integer width = 256
  124. integer height = 48
  125. integer textsize = -9
  126. integer weight = 400
  127. fontcharset fontcharset = gb2312charset!
  128. fontpitch fontpitch = variable!
  129. string facename = "宋体"
  130. long textcolor = 33554432
  131. long backcolor = 134217739
  132. string text = "工资项目"
  133. boolean focusrectangle = false
  134. end type
  135. type cb_cancel from uo_imflatbutton within w_gz_loanwage_audit
  136. integer x = 535
  137. integer y = 432
  138. integer width = 311
  139. integer taborder = 40
  140. string text = "取消"
  141. boolean cancel = true
  142. string normalpicname = "exit.bmp"
  143. end type
  144. event clicked;call super::clicked;s_audit.audit_month=0
  145. close(parent)
  146. end event
  147. type cb_ok from uo_imflatbutton within w_gz_loanwage_audit
  148. integer x = 151
  149. integer y = 432
  150. integer width = 311
  151. integer taborder = 30
  152. string normalpicname = "ok.bmp"
  153. end type
  154. event clicked;call super::clicked;
  155. s_audit.audit_wageid=long(mid(ddlb_wageitem.text,2,pos(ddlb_wageitem.text,']') - 2 ))
  156. s_audit.audit_month=long(em_1.text)
  157. //s_audit.audit_enddate=datetime(date(em_2.text),time('23:59:59'))
  158. close(parent)
  159. end event
  160. type em_2 from editmask within w_gz_loanwage_audit
  161. integer x = 375
  162. integer y = 276
  163. integer width = 485
  164. integer height = 88
  165. integer taborder = 20
  166. integer textsize = -9
  167. integer weight = 400
  168. fontcharset fontcharset = gb2312charset!
  169. fontpitch fontpitch = variable!
  170. string facename = "宋体"
  171. long textcolor = 33554432
  172. boolean enabled = false
  173. string text = "none"
  174. alignment alignment = center!
  175. borderstyle borderstyle = stylelowered!
  176. maskdatatype maskdatatype = datetimemask!
  177. string mask = "yyyy-mm-dd"
  178. boolean spin = true
  179. end type
  180. event constructor;this.text=string(today(),'yyyy-mm-dd')
  181. end event
  182. type em_1 from editmask within w_gz_loanwage_audit
  183. integer x = 375
  184. integer y = 168
  185. integer width = 485
  186. integer height = 88
  187. integer taborder = 10
  188. integer textsize = -9
  189. integer weight = 400
  190. fontcharset fontcharset = gb2312charset!
  191. fontpitch fontpitch = variable!
  192. string facename = "宋体"
  193. long textcolor = 33554432
  194. string text = "none"
  195. alignment alignment = center!
  196. borderstyle borderstyle = stylelowered!
  197. maskdatatype maskdatatype = datetimemask!
  198. string mask = "yyyymm"
  199. boolean spin = true
  200. end type
  201. event constructor;this.text=string(today(),'yyyymm')
  202. end event
  203. type st_2 from statictext within w_gz_loanwage_audit
  204. integer x = 119
  205. integer y = 296
  206. integer width = 256
  207. integer height = 48
  208. integer textsize = -9
  209. integer weight = 400
  210. fontcharset fontcharset = gb2312charset!
  211. fontpitch fontpitch = variable!
  212. string facename = "宋体"
  213. long textcolor = 33554432
  214. long backcolor = 134217739
  215. string text = "截止日期"
  216. boolean focusrectangle = false
  217. end type
  218. type st_1 from statictext within w_gz_loanwage_audit
  219. integer x = 119
  220. integer y = 188
  221. integer width = 256
  222. integer height = 48
  223. integer textsize = -9
  224. integer weight = 400
  225. fontcharset fontcharset = gb2312charset!
  226. fontpitch fontpitch = variable!
  227. string facename = "宋体"
  228. long textcolor = 33554432
  229. long backcolor = 134217739
  230. string text = "工资月份"
  231. boolean focusrectangle = false
  232. end type