w_rp_buy_spt_mtrl.srw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. $PBExportHeader$w_rp_buy_spt_mtrl.srw
  2. forward
  3. global type w_rp_buy_spt_mtrl from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_spt_mtrl
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_buy_spt_mtrl
  8. end type
  9. type st_1 from statictext within w_rp_buy_spt_mtrl
  10. end type
  11. type st_2 from statictext within w_rp_buy_spt_mtrl
  12. end type
  13. type ddlb_3 from dropdownlistbox within w_rp_buy_spt_mtrl
  14. end type
  15. end forward
  16. global type w_rp_buy_spt_mtrl from w_publ_easyq
  17. string title = "供应商物料采购汇总表"
  18. ddlb_2 ddlb_2
  19. ddlb_status ddlb_status
  20. st_1 st_1
  21. st_2 st_2
  22. ddlb_3 ddlb_3
  23. end type
  24. global w_rp_buy_spt_mtrl w_rp_buy_spt_mtrl
  25. type variables
  26. Long cur_storageid_arr[]
  27. Long cur_flag = -1 //-1:全部,0未审
  28. Long cur_secflag = -1
  29. end variables
  30. on w_rp_buy_spt_mtrl.create
  31. int iCurrent
  32. call super::create
  33. this.ddlb_2=create ddlb_2
  34. this.ddlb_status=create ddlb_status
  35. this.st_1=create st_1
  36. this.st_2=create st_2
  37. this.ddlb_3=create ddlb_3
  38. iCurrent=UpperBound(this.Control)
  39. this.Control[iCurrent+1]=this.ddlb_2
  40. this.Control[iCurrent+2]=this.ddlb_status
  41. this.Control[iCurrent+3]=this.st_1
  42. this.Control[iCurrent+4]=this.st_2
  43. this.Control[iCurrent+5]=this.ddlb_3
  44. end on
  45. on w_rp_buy_spt_mtrl.destroy
  46. call super::destroy
  47. destroy(this.ddlb_2)
  48. destroy(this.ddlb_status)
  49. destroy(this.st_1)
  50. destroy(this.st_2)
  51. destroy(this.ddlb_3)
  52. end on
  53. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col
  54. s_col.col_1 = 'amt'
  55. f_hide_col(121,dw_1,s_col)
  56. s_hide_col s_col_mtrlsectype
  57. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  58. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  59. s_hide_col s_col_zxmtrlmode
  60. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  61. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  62. end event
  63. type cb_func from w_publ_easyq`cb_func within w_rp_buy_spt_mtrl
  64. end type
  65. type cb_exit from w_publ_easyq`cb_exit within w_rp_buy_spt_mtrl
  66. end type
  67. type cb_2 from w_publ_easyq`cb_2 within w_rp_buy_spt_mtrl
  68. boolean bringtotop = true
  69. end type
  70. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_buy_spt_mtrl
  71. boolean bringtotop = true
  72. end type
  73. type cb_1 from w_publ_easyq`cb_1 within w_rp_buy_spt_mtrl
  74. boolean bringtotop = true
  75. end type
  76. event cb_1::clicked;call super::clicked;DateTime first_date,end_date
  77. first_date = DateTime(Date(em_1.Text),Time(0))
  78. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  79. dw_1.Retrieve(first_date,end_date,cur_flag,cur_storageid_arr,cur_secflag,sys_user_spttype )
  80. IF dw_1.DataObject = 'dw_rp_buy_spt_mtrl' THEN
  81. s_hide_col s_col
  82. s_col.col_1 = 'uamt_notax'
  83. f_hide_col(121,dw_1,s_col)
  84. END IF
  85. end event
  86. type st_3 from w_publ_easyq`st_3 within w_rp_buy_spt_mtrl
  87. integer x = 1481
  88. end type
  89. type st_4 from w_publ_easyq`st_4 within w_rp_buy_spt_mtrl
  90. integer x = 2176
  91. end type
  92. type em_1 from w_publ_easyq`em_1 within w_rp_buy_spt_mtrl
  93. integer x = 1673
  94. integer taborder = 120
  95. end type
  96. type em_2 from w_publ_easyq`em_2 within w_rp_buy_spt_mtrl
  97. integer x = 2272
  98. integer taborder = 130
  99. end type
  100. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_buy_spt_mtrl
  101. integer x = 1609
  102. integer y = 12
  103. integer width = 270
  104. integer taborder = 70
  105. end type
  106. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_buy_spt_mtrl
  107. integer x = 1394
  108. integer y = 8
  109. end type
  110. type dw_1 from w_publ_easyq`dw_1 within w_rp_buy_spt_mtrl
  111. integer y = 304
  112. integer width = 2427
  113. string dataobject = "dw_rp_buy_spt_mtrl"
  114. end type
  115. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_buy_spt_mtrl
  116. end type
  117. type sle_cust from w_publ_easyq`sle_cust within w_rp_buy_spt_mtrl
  118. end type
  119. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_buy_spt_mtrl
  120. end type
  121. type st_cust from w_publ_easyq`st_cust within w_rp_buy_spt_mtrl
  122. end type
  123. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_buy_spt_mtrl
  124. boolean visible = true
  125. integer x = 1390
  126. integer y = 96
  127. end type
  128. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_buy_spt_mtrl
  129. integer x = 2080
  130. end type
  131. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_buy_spt_mtrl
  132. integer x = 2683
  133. end type
  134. type pb_2 from w_publ_easyq`pb_2 within w_rp_buy_spt_mtrl
  135. integer x = 2789
  136. end type
  137. type cb_help from w_publ_easyq`cb_help within w_rp_buy_spt_mtrl
  138. end type
  139. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_buy_spt_mtrl
  140. end type
  141. type gb_1 from w_publ_easyq`gb_1 within w_rp_buy_spt_mtrl
  142. end type
  143. type ln_bar from w_publ_easyq`ln_bar within w_rp_buy_spt_mtrl
  144. end type
  145. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_buy_spt_mtrl
  146. end type
  147. type r_bar from w_publ_easyq`r_bar within w_rp_buy_spt_mtrl
  148. end type
  149. type ln_1 from w_publ_easyq`ln_1 within w_rp_buy_spt_mtrl
  150. end type
  151. type ln_2 from w_publ_easyq`ln_2 within w_rp_buy_spt_mtrl
  152. end type
  153. type ln_3 from w_publ_easyq`ln_3 within w_rp_buy_spt_mtrl
  154. end type
  155. type ln_4 from w_publ_easyq`ln_4 within w_rp_buy_spt_mtrl
  156. end type
  157. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_spt_mtrl
  158. integer x = 183
  159. integer y = 192
  160. integer width = 681
  161. integer height = 1108
  162. integer taborder = 130
  163. boolean bringtotop = true
  164. end type
  165. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  166. end event
  167. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  168. cb_1.triggerevent(clicked!)
  169. end event
  170. type ddlb_status from dropdownlistbox within w_rp_buy_spt_mtrl
  171. integer x = 1015
  172. integer y = 192
  173. integer width = 402
  174. integer height = 556
  175. integer taborder = 80
  176. boolean bringtotop = true
  177. integer textsize = -9
  178. integer weight = 400
  179. fontcharset fontcharset = gb2312charset!
  180. fontpitch fontpitch = variable!
  181. string facename = "宋体"
  182. long textcolor = 33554432
  183. string text = "[全部]"
  184. boolean sorted = false
  185. string item[] = {"[全部]","待仓库审","待财务审","审核完毕"}
  186. borderstyle borderstyle = stylelowered!
  187. end type
  188. event selectionchanged;IF Index = 1 THEN
  189. cur_flag = -1
  190. cur_secflag = -1
  191. ELSEIF Index = 2 THEN
  192. cur_flag = 0
  193. cur_secflag = 0
  194. ELSEIF Index = 3 THEN
  195. cur_flag = 1
  196. cur_secflag = 0
  197. ELSEIF Index = 4 THEN
  198. cur_flag = 1
  199. cur_secflag = 1
  200. END IF
  201. cb_1.TriggerEvent(clicked!)
  202. end event
  203. type st_1 from statictext within w_rp_buy_spt_mtrl
  204. integer x = 5
  205. integer y = 208
  206. integer width = 146
  207. integer height = 48
  208. boolean bringtotop = true
  209. integer textsize = -9
  210. integer weight = 400
  211. fontcharset fontcharset = gb2312charset!
  212. fontpitch fontpitch = variable!
  213. string facename = "宋体"
  214. long textcolor = 33554432
  215. long backcolor = 134217739
  216. string text = "仓库"
  217. alignment alignment = right!
  218. boolean focusrectangle = false
  219. end type
  220. type st_2 from statictext within w_rp_buy_spt_mtrl
  221. integer x = 878
  222. integer y = 212
  223. integer width = 128
  224. integer height = 48
  225. boolean bringtotop = true
  226. integer textsize = -9
  227. integer weight = 400
  228. fontcharset fontcharset = gb2312charset!
  229. fontpitch fontpitch = variable!
  230. string facename = "宋体"
  231. long textcolor = 33554432
  232. long backcolor = 134217739
  233. string text = "状态"
  234. alignment alignment = right!
  235. boolean focusrectangle = false
  236. end type
  237. type ddlb_3 from dropdownlistbox within w_rp_buy_spt_mtrl
  238. integer x = 2501
  239. integer y = 16
  240. integer width = 466
  241. integer height = 756
  242. integer taborder = 150
  243. boolean bringtotop = true
  244. integer textsize = -9
  245. integer weight = 400
  246. fontcharset fontcharset = gb2312charset!
  247. fontpitch fontpitch = variable!
  248. string facename = "宋体"
  249. long textcolor = 33554432
  250. string text = "按产品汇总"
  251. boolean sorted = false
  252. string item[] = {"按产品汇总","按产品配置"}
  253. borderstyle borderstyle = stylelowered!
  254. end type
  255. event selectionchanged;IF this.Text = '按产品汇总' THEN
  256. dw_1.DataObject = 'dw_rp_buy_spt_mtrl'
  257. ELSEIF this.Text = '按产品配置' THEN
  258. dw_1.DataObject = 'dw_rp_buy_spt_mtrl_pz'
  259. END IF
  260. wf_replacedw()
  261. cb_1.TriggerEvent(Clicked!)
  262. end event