w_sc_taskwork_p_audit.srw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. $PBExportHeader$w_sc_taskwork_p_audit.srw
  2. forward
  3. global type w_sc_taskwork_p_audit from window
  4. end type
  5. type ddlb_wageitem from dropdownlistbox within w_sc_taskwork_p_audit
  6. end type
  7. type st_3 from statictext within w_sc_taskwork_p_audit
  8. end type
  9. type cb_cancel from uo_imflatbutton within w_sc_taskwork_p_audit
  10. end type
  11. type cb_ok from uo_imflatbutton within w_sc_taskwork_p_audit
  12. end type
  13. type em_1 from editmask within w_sc_taskwork_p_audit
  14. end type
  15. type st_1 from statictext within w_sc_taskwork_p_audit
  16. end type
  17. end forward
  18. global type w_sc_taskwork_p_audit from window
  19. integer width = 1477
  20. integer height = 672
  21. boolean titlebar = true
  22. string title = "产品个人工序计件单批审核"
  23. boolean controlmenu = true
  24. windowtype windowtype = response!
  25. long backcolor = 134217739
  26. string icon = "AppIcon!"
  27. boolean center = true
  28. ddlb_wageitem ddlb_wageitem
  29. st_3 st_3
  30. cb_cancel cb_cancel
  31. cb_ok cb_ok
  32. em_1 em_1
  33. st_1 st_1
  34. end type
  35. global w_sc_taskwork_p_audit w_sc_taskwork_p_audit
  36. type variables
  37. s_taskwork_abnormity_audit s_audit
  38. end variables
  39. on w_sc_taskwork_p_audit.create
  40. this.ddlb_wageitem=create ddlb_wageitem
  41. this.st_3=create st_3
  42. this.cb_cancel=create cb_cancel
  43. this.cb_ok=create cb_ok
  44. this.em_1=create em_1
  45. this.st_1=create st_1
  46. this.Control[]={this.ddlb_wageitem,&
  47. this.st_3,&
  48. this.cb_cancel,&
  49. this.cb_ok,&
  50. this.em_1,&
  51. this.st_1}
  52. end on
  53. on w_sc_taskwork_p_audit.destroy
  54. destroy(this.ddlb_wageitem)
  55. destroy(this.st_3)
  56. destroy(this.cb_cancel)
  57. destroy(this.cb_ok)
  58. destroy(this.em_1)
  59. destroy(this.st_1)
  60. end on
  61. event close;closewithreturn(this,s_audit)
  62. end event
  63. event open;int ls_audittype
  64. //1 审核
  65. //0 撤审
  66. ls_audittype=message.doubleparm
  67. if ls_audittype=1 then
  68. this.title='计件审核'
  69. else
  70. this.title='计件撤审'
  71. end if
  72. end event
  73. type ddlb_wageitem from dropdownlistbox within w_sc_taskwork_p_audit
  74. integer x = 475
  75. integer y = 104
  76. integer width = 768
  77. integer height = 412
  78. integer taborder = 10
  79. integer textsize = -9
  80. integer weight = 400
  81. fontcharset fontcharset = gb2312charset!
  82. fontpitch fontpitch = variable!
  83. string facename = "宋体"
  84. long textcolor = 33554432
  85. borderstyle borderstyle = stylelowered!
  86. end type
  87. event constructor;string ls_wagename
  88. long ls_wageid
  89. DECLARE cur_wageitem CURSOR FOR
  90. SELECT u_gz_wageitem.wageid,
  91. u_gz_wageitem.Wagename
  92. FROM u_gz_wageitem
  93. WHERE ( u_gz_wageitem.wagemode = 15 ) AND
  94. ( u_gz_wageitem.useflag = 1 )
  95. ORDER BY u_gz_wageitem.wageid desc;
  96. open cur_wageitem;
  97. fetch cur_wageitem into :ls_wageid,:ls_wagename;
  98. do while sqlca.sqlcode=0
  99. ddlb_wageitem.additem('['+string(ls_wageid)+']'+ls_wagename)
  100. fetch cur_wageitem into :ls_wageid,:ls_wagename;
  101. loop
  102. ddlb_wageitem.text='['+string(ls_wageid)+']'+ls_wagename
  103. close cur_wageitem;
  104. end event
  105. type st_3 from statictext within w_sc_taskwork_p_audit
  106. integer x = 219
  107. integer y = 104
  108. integer width = 256
  109. integer height = 48
  110. integer textsize = -9
  111. integer weight = 400
  112. fontcharset fontcharset = gb2312charset!
  113. fontpitch fontpitch = variable!
  114. string facename = "宋体"
  115. long textcolor = 33554432
  116. long backcolor = 134217739
  117. string text = "工资项目"
  118. boolean focusrectangle = false
  119. end type
  120. type cb_cancel from uo_imflatbutton within w_sc_taskwork_p_audit
  121. integer x = 873
  122. integer y = 392
  123. integer width = 311
  124. integer height = 96
  125. integer taborder = 40
  126. string text = "取消"
  127. boolean cancel = true
  128. end type
  129. event clicked;call super::clicked;s_audit.audit_month=0
  130. close(parent)
  131. end event
  132. type cb_ok from uo_imflatbutton within w_sc_taskwork_p_audit
  133. integer x = 293
  134. integer y = 392
  135. integer width = 311
  136. integer height = 96
  137. integer taborder = 30
  138. end type
  139. event clicked;call super::clicked;
  140. s_audit.audit_wageid=long(mid(ddlb_wageitem.text,2,pos(ddlb_wageitem.text,']') - 2 ))
  141. s_audit.audit_month=long(em_1.text)
  142. close(parent)
  143. end event
  144. type em_1 from editmask within w_sc_taskwork_p_audit
  145. integer x = 475
  146. integer y = 204
  147. integer width = 485
  148. integer height = 88
  149. integer taborder = 10
  150. integer textsize = -9
  151. integer weight = 400
  152. fontcharset fontcharset = gb2312charset!
  153. fontpitch fontpitch = variable!
  154. string facename = "宋体"
  155. long textcolor = 33554432
  156. string text = "none"
  157. alignment alignment = center!
  158. borderstyle borderstyle = stylelowered!
  159. maskdatatype maskdatatype = datetimemask!
  160. string mask = "yyyymm"
  161. boolean spin = true
  162. end type
  163. event constructor;this.text=string(today(),'yyyymm')
  164. end event
  165. type st_1 from statictext within w_sc_taskwork_p_audit
  166. integer x = 219
  167. integer y = 224
  168. integer width = 256
  169. integer height = 48
  170. integer textsize = -9
  171. integer weight = 400
  172. fontcharset fontcharset = gb2312charset!
  173. fontpitch fontpitch = variable!
  174. string facename = "宋体"
  175. long textcolor = 33554432
  176. long backcolor = 134217739
  177. string text = "工资月份"
  178. boolean focusrectangle = false
  179. end type