w_rp_buy_mtrl.srw 8.5 KB

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