w_rp_buy_mx.srw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. $PBExportHeader$w_rp_buy_mx.srw
  2. forward
  3. global type w_rp_buy_mx from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_mx
  6. end type
  7. type st_1 from statictext within w_rp_buy_mx
  8. end type
  9. type st_2 from statictext within w_rp_buy_mx
  10. end type
  11. type ddlb_scid from uo_ddlb_scid within w_rp_buy_mx
  12. end type
  13. type st_5 from statictext within w_rp_buy_mx
  14. end type
  15. type ddlb_status from uo_ddlb_status within w_rp_buy_mx
  16. end type
  17. type ddlb_1 from dropdownlistbox within w_rp_buy_mx
  18. end type
  19. end forward
  20. global type w_rp_buy_mx from w_publ_easyq
  21. string title = "采购收货单明细表"
  22. ddlb_2 ddlb_2
  23. st_1 st_1
  24. st_2 st_2
  25. ddlb_scid ddlb_scid
  26. st_5 st_5
  27. ddlb_status ddlb_status
  28. ddlb_1 ddlb_1
  29. end type
  30. global w_rp_buy_mx w_rp_buy_mx
  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_mx.create
  38. int iCurrent
  39. call super::create
  40. this.ddlb_2=create ddlb_2
  41. this.st_1=create st_1
  42. this.st_2=create st_2
  43. this.ddlb_scid=create ddlb_scid
  44. this.st_5=create st_5
  45. this.ddlb_status=create ddlb_status
  46. this.ddlb_1=create ddlb_1
  47. iCurrent=UpperBound(this.Control)
  48. this.Control[iCurrent+1]=this.ddlb_2
  49. this.Control[iCurrent+2]=this.st_1
  50. this.Control[iCurrent+3]=this.st_2
  51. this.Control[iCurrent+4]=this.ddlb_scid
  52. this.Control[iCurrent+5]=this.st_5
  53. this.Control[iCurrent+6]=this.ddlb_status
  54. this.Control[iCurrent+7]=this.ddlb_1
  55. end on
  56. on w_rp_buy_mx.destroy
  57. call super::destroy
  58. destroy(this.ddlb_2)
  59. destroy(this.st_1)
  60. destroy(this.st_2)
  61. destroy(this.ddlb_scid)
  62. destroy(this.st_5)
  63. destroy(this.ddlb_status)
  64. destroy(this.ddlb_1)
  65. end on
  66. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col
  67. s_col.col_1 = 'u_inwaremx_uprice'
  68. s_col.col_2 = 'u_inwaremx_fprice'
  69. s_col.col_3 = 'u_inwaremx_rebate'
  70. s_col.col_4 = 'u_inwaremx_price'
  71. s_col.col_5 = 'amt'
  72. s_col.col_6 = 'u_inware_otheramt'
  73. f_hide_col(121,dw_1,s_col)
  74. s_hide_col s_col_mtrlsectype
  75. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  76. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  77. s_hide_col s_col_zxmtrlmode
  78. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  79. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  80. end event
  81. event open;call super::open;dw_1.SetTransObject (sqlca)
  82. end event
  83. type cb_func from w_publ_easyq`cb_func within w_rp_buy_mx
  84. end type
  85. type cb_exit from w_publ_easyq`cb_exit within w_rp_buy_mx
  86. end type
  87. type cb_2 from w_publ_easyq`cb_2 within w_rp_buy_mx
  88. integer taborder = 100
  89. boolean bringtotop = true
  90. end type
  91. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_buy_mx
  92. boolean bringtotop = true
  93. end type
  94. type cb_1 from w_publ_easyq`cb_1 within w_rp_buy_mx
  95. boolean bringtotop = true
  96. end type
  97. event cb_1::clicked;DateTime first_date,end_date
  98. first_date = DateTime(Date(em_1.Text),Time(0))
  99. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  100. dw_1.Retrieve(cur_scid_arr,first_date,end_date,cur_flag,cur_storageid_arr,cur_secflag,sys_user_spttype )
  101. s_hide_col s_col
  102. IF dw_1.DataObject = 'dw_rp_buy_mx' THEN
  103. s_col.col_1 = 'uprice_notax'
  104. s_col.col_2 = 'fprice_notax'
  105. s_col.col_3 = 'uamt_notax'
  106. f_hide_col(121,dw_1,s_col)
  107. ELSEIF dw_1.DataObject = 'dw_rp_buy_mx_noxj' THEN
  108. s_col.col_1 = 'uprice_notax'
  109. s_col.col_2 = 'fprice_notax'
  110. s_col.col_3 = 'uamt_notax'
  111. f_hide_col(121,dw_1,s_col)
  112. END IF
  113. end event
  114. type st_3 from w_publ_easyq`st_3 within w_rp_buy_mx
  115. integer x = 2103
  116. integer y = 204
  117. end type
  118. type st_4 from w_publ_easyq`st_4 within w_rp_buy_mx
  119. integer x = 2811
  120. integer y = 204
  121. end type
  122. type em_1 from w_publ_easyq`em_1 within w_rp_buy_mx
  123. integer x = 2309
  124. integer y = 188
  125. integer taborder = 110
  126. end type
  127. type em_2 from w_publ_easyq`em_2 within w_rp_buy_mx
  128. integer x = 2903
  129. integer y = 188
  130. integer taborder = 120
  131. end type
  132. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_buy_mx
  133. integer x = 1554
  134. integer y = 12
  135. end type
  136. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_buy_mx
  137. integer x = 1344
  138. integer y = 12
  139. end type
  140. type dw_1 from w_publ_easyq`dw_1 within w_rp_buy_mx
  141. integer y = 304
  142. integer width = 2994
  143. integer height = 1476
  144. string dataobject = "dw_rp_buy_mx"
  145. end type
  146. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  147. String ls_code
  148. Long ll_scid
  149. ll_scid = THIS.Object.u_inware_scid[row]
  150. ls_code = THIS.Object.u_inware_inwarecode[row]
  151. f_open_win(ll_scid,ls_code)
  152. END IF
  153. end event
  154. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_buy_mx
  155. end type
  156. type sle_cust from w_publ_easyq`sle_cust within w_rp_buy_mx
  157. end type
  158. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_buy_mx
  159. end type
  160. type st_cust from w_publ_easyq`st_cust within w_rp_buy_mx
  161. end type
  162. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_buy_mx
  163. boolean visible = true
  164. integer x = 1344
  165. integer y = 100
  166. end type
  167. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_buy_mx
  168. integer x = 2720
  169. integer y = 188
  170. end type
  171. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_buy_mx
  172. integer x = 3319
  173. integer y = 188
  174. end type
  175. type pb_2 from w_publ_easyq`pb_2 within w_rp_buy_mx
  176. integer x = 3429
  177. integer y = 188
  178. end type
  179. type cb_help from w_publ_easyq`cb_help within w_rp_buy_mx
  180. end type
  181. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_buy_mx
  182. end type
  183. type gb_1 from w_publ_easyq`gb_1 within w_rp_buy_mx
  184. end type
  185. type ln_bar from w_publ_easyq`ln_bar within w_rp_buy_mx
  186. end type
  187. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_buy_mx
  188. end type
  189. type r_bar from w_publ_easyq`r_bar within w_rp_buy_mx
  190. end type
  191. type ln_1 from w_publ_easyq`ln_1 within w_rp_buy_mx
  192. end type
  193. type ln_2 from w_publ_easyq`ln_2 within w_rp_buy_mx
  194. end type
  195. type ln_3 from w_publ_easyq`ln_3 within w_rp_buy_mx
  196. end type
  197. type ln_4 from w_publ_easyq`ln_4 within w_rp_buy_mx
  198. end type
  199. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_mx
  200. integer x = 782
  201. integer y = 192
  202. integer width = 681
  203. integer height = 1108
  204. integer taborder = 40
  205. boolean bringtotop = true
  206. end type
  207. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  208. end event
  209. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  210. cb_1.triggerevent(clicked!)
  211. end event
  212. type st_1 from statictext within w_rp_buy_mx
  213. integer x = 626
  214. integer y = 208
  215. integer width = 146
  216. integer height = 48
  217. boolean bringtotop = true
  218. integer textsize = -9
  219. integer weight = 400
  220. fontcharset fontcharset = gb2312charset!
  221. fontpitch fontpitch = variable!
  222. string facename = "宋体"
  223. long textcolor = 33554432
  224. long backcolor = 134217739
  225. string text = "仓库"
  226. alignment alignment = right!
  227. boolean focusrectangle = false
  228. end type
  229. type st_2 from statictext within w_rp_buy_mx
  230. integer x = 1486
  231. integer y = 212
  232. integer width = 128
  233. integer height = 48
  234. boolean bringtotop = true
  235. integer textsize = -9
  236. integer weight = 400
  237. fontcharset fontcharset = gb2312charset!
  238. fontpitch fontpitch = variable!
  239. string facename = "宋体"
  240. long textcolor = 33554432
  241. long backcolor = 134217739
  242. string text = "状态"
  243. alignment alignment = right!
  244. boolean focusrectangle = false
  245. end type
  246. type ddlb_scid from uo_ddlb_scid within w_rp_buy_mx
  247. integer x = 137
  248. integer y = 192
  249. integer width = 480
  250. integer height = 620
  251. integer taborder = 50
  252. boolean bringtotop = true
  253. end type
  254. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  255. end event
  256. event selectionchanged;call super::selectionchanged;
  257. cur_scid_arr = THIS.uo_scid_arr
  258. cb_1.triggerevent(clicked!)
  259. end event
  260. type st_5 from statictext within w_rp_buy_mx
  261. integer y = 212
  262. integer width = 128
  263. integer height = 48
  264. boolean bringtotop = true
  265. integer textsize = -9
  266. integer weight = 400
  267. fontcharset fontcharset = gb2312charset!
  268. fontpitch fontpitch = variable!
  269. string facename = "宋体"
  270. long textcolor = 33554432
  271. long backcolor = 134217739
  272. string text = "分部"
  273. alignment alignment = right!
  274. boolean focusrectangle = false
  275. end type
  276. type ddlb_status from uo_ddlb_status within w_rp_buy_mx
  277. integer x = 1627
  278. integer y = 192
  279. integer taborder = 50
  280. boolean bringtotop = true
  281. string item[] = {"[全部]","待仓审","待财审","已审核"}
  282. end type
  283. event selectionchanged;call super::selectionchanged;cb_1.TriggerEvent(clicked!)
  284. end event
  285. event uof_getvalue;IF this.text = "[全部]" THEN
  286. cur_flag = -1
  287. cur_secflag = -1
  288. //ELSEIF this.text = "待确认" THEN
  289. // cur_flag = -1
  290. // cur_secflag = -1
  291. ELSEIF this.text = "待仓审" THEN
  292. cur_flag = 0
  293. cur_secflag = -1
  294. ELSEIF this.text = "待财审" THEN
  295. cur_flag = 1
  296. cur_secflag = 0
  297. ELSEIF this.text = "已审核" THEN
  298. cur_flag = 1
  299. cur_secflag = 1
  300. END IF
  301. end event
  302. type ddlb_1 from dropdownlistbox within w_rp_buy_mx
  303. integer x = 2304
  304. integer y = 56
  305. integer width = 480
  306. integer height = 300
  307. integer taborder = 70
  308. boolean bringtotop = true
  309. integer textsize = -9
  310. integer weight = 400
  311. fontcharset fontcharset = gb2312charset!
  312. fontpitch fontpitch = variable!
  313. string facename = "宋体"
  314. long textcolor = 33554432
  315. string text = "格式一"
  316. string item[] = {"格式一","格式二","格式三"}
  317. borderstyle borderstyle = stylelowered!
  318. end type
  319. event selectionchanged;IF ddlb_1.Text = '格式一' THEN
  320. dw_1.DataObject = 'dw_rp_buy_mx'
  321. ELSEIF ddlb_1.Text = '格式二' THEN
  322. dw_1.DataObject = 'dw_rp_buy_mx1'
  323. ELSEIF ddlb_1.Text = '格式三' THEN
  324. dw_1.DataObject = 'dw_rp_buy_mx_noxj'
  325. END IF
  326. dw_1.SetTransObject(sqlca)
  327. wf_replacedw()
  328. cb_1.TriggerEvent(Clicked!)
  329. end event