w_rp_buy_mx.srw 9.3 KB

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