w_rp_buy_spt_mtrl.srw 7.6 KB

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