w_rp_buy_mtrl.srw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. $PBExportHeader$w_rp_buy_mtrl.srw
  2. forward
  3. global type w_rp_buy_mtrl from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_mtrl
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_buy_mtrl
  8. end type
  9. type st_1 from statictext within w_rp_buy_mtrl
  10. end type
  11. type st_2 from statictext within w_rp_buy_mtrl
  12. end type
  13. type ddlb_scid from uo_ddlb_scid within w_rp_buy_mtrl
  14. end type
  15. type st_5 from statictext within w_rp_buy_mtrl
  16. end type
  17. type ddlb_3 from dropdownlistbox within w_rp_buy_mtrl
  18. end type
  19. end forward
  20. global type w_rp_buy_mtrl from w_publ_easyq
  21. string title = "物料采购汇总表"
  22. ddlb_2 ddlb_2
  23. ddlb_status ddlb_status
  24. st_1 st_1
  25. st_2 st_2
  26. ddlb_scid ddlb_scid
  27. st_5 st_5
  28. ddlb_3 ddlb_3
  29. end type
  30. global w_rp_buy_mtrl w_rp_buy_mtrl
  31. type variables
  32. Long cur_storageid_arr[]
  33. Long cur_flag = -1
  34. Long cur_secflag = -1
  35. long cur_scid_arr[]
  36. end variables
  37. forward prototypes
  38. public subroutine wf_hidecol ()
  39. end prototypes
  40. public subroutine wf_hidecol ();s_hide_col s_col
  41. s_col.col_1 = 'avgprice'
  42. s_col.col_2 = 'amt'
  43. s_col.col_3 = 'jamt'
  44. s_col.col_4 = 'uamt_notax'
  45. s_col.col_5 = 'juamt_notax'
  46. f_hide_col(121,dw_1,s_col)
  47. s_hide_col s_col_mtrlsectype
  48. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  49. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  50. s_hide_col s_col_zxmtrlmode
  51. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  52. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  53. end subroutine
  54. on w_rp_buy_mtrl.create
  55. int iCurrent
  56. call super::create
  57. this.ddlb_2=create ddlb_2
  58. this.ddlb_status=create ddlb_status
  59. this.st_1=create st_1
  60. this.st_2=create st_2
  61. this.ddlb_scid=create ddlb_scid
  62. this.st_5=create st_5
  63. this.ddlb_3=create ddlb_3
  64. iCurrent=UpperBound(this.Control)
  65. this.Control[iCurrent+1]=this.ddlb_2
  66. this.Control[iCurrent+2]=this.ddlb_status
  67. this.Control[iCurrent+3]=this.st_1
  68. this.Control[iCurrent+4]=this.st_2
  69. this.Control[iCurrent+5]=this.ddlb_scid
  70. this.Control[iCurrent+6]=this.st_5
  71. this.Control[iCurrent+7]=this.ddlb_3
  72. end on
  73. on w_rp_buy_mtrl.destroy
  74. call super::destroy
  75. destroy(this.ddlb_2)
  76. destroy(this.ddlb_status)
  77. destroy(this.st_1)
  78. destroy(this.st_2)
  79. destroy(this.ddlb_scid)
  80. destroy(this.st_5)
  81. destroy(this.ddlb_3)
  82. end on
  83. type cb_func from w_publ_easyq`cb_func within w_rp_buy_mtrl
  84. end type
  85. type cb_exit from w_publ_easyq`cb_exit within w_rp_buy_mtrl
  86. end type
  87. type cb_2 from w_publ_easyq`cb_2 within w_rp_buy_mtrl
  88. boolean bringtotop = true
  89. end type
  90. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_buy_mtrl
  91. boolean bringtotop = true
  92. end type
  93. type cb_1 from w_publ_easyq`cb_1 within w_rp_buy_mtrl
  94. boolean bringtotop = true
  95. end type
  96. event cb_1::clicked;call super::clicked;DateTime first_date,end_date
  97. first_date = DateTime(Date(em_1.Text),Time(0))
  98. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  99. dw_1.Retrieve(cur_scid_arr,first_date,end_date,cur_flag,cur_storageid_arr,cur_secflag)
  100. s_hide_col s_col
  101. IF dw_1.DataObject = 'dw_rp_buy_mtrl' THEN
  102. s_col.col_1 = 'uamt_notax'
  103. f_hide_col(121,dw_1,s_col)
  104. END IF
  105. //wf_hidecol()
  106. end event
  107. type st_3 from w_publ_easyq`st_3 within w_rp_buy_mtrl
  108. integer x = 2062
  109. integer y = 204
  110. end type
  111. type st_4 from w_publ_easyq`st_4 within w_rp_buy_mtrl
  112. integer x = 2775
  113. integer y = 204
  114. end type
  115. type em_1 from w_publ_easyq`em_1 within w_rp_buy_mtrl
  116. integer x = 2277
  117. integer y = 188
  118. integer width = 402
  119. integer taborder = 120
  120. end type
  121. type em_2 from w_publ_easyq`em_2 within w_rp_buy_mtrl
  122. integer x = 2862
  123. integer y = 188
  124. integer width = 402
  125. integer taborder = 130
  126. end type
  127. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_buy_mtrl
  128. integer x = 1563
  129. integer y = 12
  130. end type
  131. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_buy_mtrl
  132. integer x = 1344
  133. integer y = 16
  134. end type
  135. type dw_1 from w_publ_easyq`dw_1 within w_rp_buy_mtrl
  136. integer y = 300
  137. integer width = 3168
  138. integer height = 1188
  139. string dataobject = "dw_rp_buy_mtrl"
  140. end type
  141. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_buy_mtrl
  142. end type
  143. type sle_cust from w_publ_easyq`sle_cust within w_rp_buy_mtrl
  144. end type
  145. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_buy_mtrl
  146. end type
  147. type st_cust from w_publ_easyq`st_cust within w_rp_buy_mtrl
  148. end type
  149. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_buy_mtrl
  150. boolean visible = true
  151. integer x = 1344
  152. end type
  153. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_buy_mtrl
  154. integer x = 2674
  155. integer y = 188
  156. end type
  157. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_buy_mtrl
  158. integer x = 3269
  159. integer y = 188
  160. end type
  161. type pb_2 from w_publ_easyq`pb_2 within w_rp_buy_mtrl
  162. integer x = 3374
  163. integer y = 188
  164. end type
  165. type cb_help from w_publ_easyq`cb_help within w_rp_buy_mtrl
  166. integer y = 4
  167. end type
  168. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_buy_mtrl
  169. end type
  170. type gb_1 from w_publ_easyq`gb_1 within w_rp_buy_mtrl
  171. end type
  172. type ln_bar from w_publ_easyq`ln_bar within w_rp_buy_mtrl
  173. end type
  174. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_buy_mtrl
  175. end type
  176. type r_bar from w_publ_easyq`r_bar within w_rp_buy_mtrl
  177. end type
  178. type ln_1 from w_publ_easyq`ln_1 within w_rp_buy_mtrl
  179. end type
  180. type ln_2 from w_publ_easyq`ln_2 within w_rp_buy_mtrl
  181. end type
  182. type ln_3 from w_publ_easyq`ln_3 within w_rp_buy_mtrl
  183. end type
  184. type ln_4 from w_publ_easyq`ln_4 within w_rp_buy_mtrl
  185. end type
  186. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_mtrl
  187. integer x = 800
  188. integer y = 192
  189. integer width = 681
  190. integer height = 1108
  191. integer taborder = 30
  192. boolean bringtotop = true
  193. end type
  194. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  195. end event
  196. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  197. cb_1.triggerevent(clicked!)
  198. end event
  199. type ddlb_status from dropdownlistbox within w_rp_buy_mtrl
  200. integer x = 1641
  201. integer y = 188
  202. integer width = 402
  203. integer height = 556
  204. integer taborder = 40
  205. boolean bringtotop = true
  206. integer textsize = -9
  207. integer weight = 400
  208. fontcharset fontcharset = gb2312charset!
  209. fontpitch fontpitch = variable!
  210. string facename = "宋体"
  211. long textcolor = 33554432
  212. string text = "[全部]"
  213. boolean sorted = false
  214. string item[] = {"[全部]","待仓库审","待财务审","审核完毕"}
  215. borderstyle borderstyle = stylelowered!
  216. end type
  217. event selectionchanged;IF Index = 1 THEN
  218. cur_flag = -1
  219. cur_secflag = -1
  220. ELSEIF Index = 2 THEN
  221. cur_flag = 0
  222. cur_secflag = 0
  223. ELSEIF Index = 3 THEN
  224. cur_flag = 1
  225. cur_secflag = 0
  226. ELSEIF Index = 4 THEN
  227. cur_flag = 1
  228. cur_secflag = 1
  229. END IF
  230. cb_1.TriggerEvent(clicked!)
  231. end event
  232. type st_1 from statictext within w_rp_buy_mtrl
  233. integer x = 640
  234. integer y = 208
  235. integer width = 146
  236. integer height = 48
  237. boolean bringtotop = true
  238. integer textsize = -9
  239. integer weight = 400
  240. fontcharset fontcharset = gb2312charset!
  241. fontpitch fontpitch = variable!
  242. string facename = "宋体"
  243. long textcolor = 33554432
  244. long backcolor = 134217739
  245. string text = "仓库"
  246. alignment alignment = right!
  247. boolean focusrectangle = false
  248. end type
  249. type st_2 from statictext within w_rp_buy_mtrl
  250. integer x = 1504
  251. integer y = 208
  252. integer width = 128
  253. integer height = 48
  254. boolean bringtotop = true
  255. integer textsize = -9
  256. integer weight = 400
  257. fontcharset fontcharset = gb2312charset!
  258. fontpitch fontpitch = variable!
  259. string facename = "宋体"
  260. long textcolor = 33554432
  261. long backcolor = 134217739
  262. string text = "状态"
  263. alignment alignment = right!
  264. boolean focusrectangle = false
  265. end type
  266. type ddlb_scid from uo_ddlb_scid within w_rp_buy_mtrl
  267. integer x = 137
  268. integer y = 192
  269. integer width = 480
  270. integer height = 620
  271. integer taborder = 40
  272. boolean bringtotop = true
  273. end type
  274. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  275. end event
  276. event selectionchanged;call super::selectionchanged;
  277. cur_scid_arr = THIS.uo_scid_arr
  278. cb_1.triggerevent(clicked!)
  279. end event
  280. type st_5 from statictext within w_rp_buy_mtrl
  281. integer y = 212
  282. integer width = 128
  283. integer height = 48
  284. boolean bringtotop = true
  285. integer textsize = -9
  286. integer weight = 400
  287. fontcharset fontcharset = gb2312charset!
  288. fontpitch fontpitch = variable!
  289. string facename = "宋体"
  290. long textcolor = 33554432
  291. long backcolor = 134217739
  292. string text = "分部"
  293. alignment alignment = right!
  294. boolean focusrectangle = false
  295. end type
  296. type ddlb_3 from dropdownlistbox within w_rp_buy_mtrl
  297. integer x = 2450
  298. integer y = 32
  299. integer width = 466
  300. integer height = 756
  301. integer taborder = 140
  302. boolean bringtotop = true
  303. integer textsize = -9
  304. integer weight = 400
  305. fontcharset fontcharset = gb2312charset!
  306. fontpitch fontpitch = variable!
  307. string facename = "宋体"
  308. long textcolor = 33554432
  309. string text = "按产品汇总"
  310. boolean sorted = false
  311. string item[] = {"按产品汇总","按产品配置"}
  312. borderstyle borderstyle = stylelowered!
  313. end type
  314. event selectionchanged;IF this.Text = '按产品汇总' THEN
  315. dw_1.DataObject = 'dw_rp_buy_mtrl'
  316. ELSEIF this.Text = '按产品配置' THEN
  317. dw_1.DataObject = 'dw_rp_buy_mtrl_pz'
  318. END IF
  319. wf_replacedw()
  320. cb_1.TriggerEvent(Clicked!)
  321. end event