w_rp_warepdb_bill.srw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. $PBExportHeader$w_rp_warepdb_bill.srw
  2. forward
  3. global type w_rp_warepdb_bill from w_publ_easyq
  4. end type
  5. type ddlb_storageid from uo_ddlb_storageid within w_rp_warepdb_bill
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_warepdb_bill
  8. end type
  9. type st_2 from statictext within w_rp_warepdb_bill
  10. end type
  11. type st_1 from statictext within w_rp_warepdb_bill
  12. end type
  13. type tv_1 from uo_tv_mtrltype within w_rp_warepdb_bill
  14. end type
  15. end forward
  16. global type w_rp_warepdb_bill from w_publ_easyq
  17. integer x = 123
  18. string title = "盘点单统计表"
  19. ddlb_storageid ddlb_storageid
  20. ddlb_status ddlb_status
  21. st_2 st_2
  22. st_1 st_1
  23. tv_1 tv_1
  24. end type
  25. global w_rp_warepdb_bill w_rp_warepdb_bill
  26. type variables
  27. Long cur_storageid_arr[]
  28. Long cur_flag = -1
  29. String ls_handtype = ''
  30. string ls_mtrltype = ''
  31. end variables
  32. forward prototypes
  33. public subroutine wf_hidecol ()
  34. end prototypes
  35. public subroutine wf_hidecol ();s_hide_col s_col,s_col2
  36. if dw_1.dataobject = 'dw_rp_outware_sc_mx' then
  37. s_col.col_1 = 'u_outwaremx_price'
  38. s_col.col_2 = 'amt'
  39. s_col.col_3 = 'cost'
  40. s_col.col_4 = 'u_outwaremx_costamt'
  41. s_col2.col_1 = 'planamt'
  42. s_col2.col_2 = 'u_mtrldef_planprice'
  43. elseif dw_1.dataobject = 'dw_rp_outware_sc_hz' then
  44. s_col.col_1 = 'costamt'
  45. s_col.col_2 = 'price'
  46. s_col2.col_1 = 'u_mtrldef_planprice'
  47. s_col2.col_2 = 'planamt'
  48. elseif dw_1.dataobject = 'dw_rp_outware_sc_hz_order' then
  49. s_col.col_1 = 'costamt'
  50. s_col.col_2 = 'price'
  51. s_col2.col_1 = 'u_mtrldef_planprice'
  52. s_col2.col_2 = 'planamt'
  53. elseif dw_1.dataobject = 'dw_rp_outware_sc_hz_not_order' then
  54. s_col.col_1 = 'costamt'
  55. s_col.col_2 = 'price'
  56. s_col2.col_1 = 'u_mtrldef_planprice'
  57. s_col2.col_2 = 'planamt'
  58. elseif dw_1.dataobject = 'dw_rp_outware_sc_hz_bill' then
  59. s_col.col_1 = 'costamt'
  60. s_col.col_2 = 'price'
  61. s_col2.col_1 = 'u_mtrldef_planprice'
  62. s_col2.col_2 = 'planamt'
  63. end if
  64. f_hide_col(490,dw_1,s_col)
  65. f_hide_col(1451,dw_1,s_col2)
  66. s_hide_col s_col_mtrlsectype
  67. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  68. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  69. s_hide_col s_col_zxmtrlmode
  70. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  71. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  72. return
  73. end subroutine
  74. on w_rp_warepdb_bill.create
  75. int iCurrent
  76. call super::create
  77. this.ddlb_storageid=create ddlb_storageid
  78. this.ddlb_status=create ddlb_status
  79. this.st_2=create st_2
  80. this.st_1=create st_1
  81. this.tv_1=create tv_1
  82. iCurrent=UpperBound(this.Control)
  83. this.Control[iCurrent+1]=this.ddlb_storageid
  84. this.Control[iCurrent+2]=this.ddlb_status
  85. this.Control[iCurrent+3]=this.st_2
  86. this.Control[iCurrent+4]=this.st_1
  87. this.Control[iCurrent+5]=this.tv_1
  88. end on
  89. on w_rp_warepdb_bill.destroy
  90. call super::destroy
  91. destroy(this.ddlb_storageid)
  92. destroy(this.ddlb_status)
  93. destroy(this.st_2)
  94. destroy(this.st_1)
  95. destroy(this.tv_1)
  96. end on
  97. event resize;call super::resize;tv_1.height=dw_1.height
  98. end event
  99. type cb_func from w_publ_easyq`cb_func within w_rp_warepdb_bill
  100. end type
  101. type cb_exit from w_publ_easyq`cb_exit within w_rp_warepdb_bill
  102. end type
  103. type cb_2 from w_publ_easyq`cb_2 within w_rp_warepdb_bill
  104. boolean bringtotop = true
  105. end type
  106. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_warepdb_bill
  107. boolean bringtotop = true
  108. end type
  109. type cb_1 from w_publ_easyq`cb_1 within w_rp_warepdb_bill
  110. boolean bringtotop = true
  111. end type
  112. event cb_1::clicked;DateTime first_date,end_date
  113. first_date = DateTime(Date(em_1.Text),Time(0))
  114. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  115. //f_title_change(dw_1)
  116. dw_1.Retrieve(first_date,end_date,cur_flag,cur_storageid_arr,ls_handtype)
  117. end event
  118. type st_3 from w_publ_easyq`st_3 within w_rp_warepdb_bill
  119. integer x = 1221
  120. integer y = 216
  121. end type
  122. type st_4 from w_publ_easyq`st_4 within w_rp_warepdb_bill
  123. integer x = 1957
  124. integer y = 216
  125. end type
  126. type em_1 from w_publ_easyq`em_1 within w_rp_warepdb_bill
  127. integer x = 1426
  128. integer y = 200
  129. integer taborder = 120
  130. end type
  131. type em_2 from w_publ_easyq`em_2 within w_rp_warepdb_bill
  132. integer x = 2062
  133. integer y = 200
  134. integer taborder = 130
  135. end type
  136. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_warepdb_bill
  137. integer x = 1609
  138. integer y = 8
  139. end type
  140. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_warepdb_bill
  141. integer x = 1399
  142. integer y = 8
  143. end type
  144. type dw_1 from w_publ_easyq`dw_1 within w_rp_warepdb_bill
  145. integer x = 805
  146. integer y = 308
  147. integer width = 2427
  148. string dataobject = "dw_rp_warepdb_bill_mx"
  149. end type
  150. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_warepdb_bill
  151. end type
  152. type sle_cust from w_publ_easyq`sle_cust within w_rp_warepdb_bill
  153. end type
  154. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_warepdb_bill
  155. end type
  156. type st_cust from w_publ_easyq`st_cust within w_rp_warepdb_bill
  157. end type
  158. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_warepdb_bill
  159. boolean visible = true
  160. integer x = 1399
  161. end type
  162. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_warepdb_bill
  163. integer x = 1842
  164. integer y = 188
  165. end type
  166. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_warepdb_bill
  167. integer x = 2473
  168. end type
  169. type pb_2 from w_publ_easyq`pb_2 within w_rp_warepdb_bill
  170. integer x = 2583
  171. end type
  172. type cb_help from w_publ_easyq`cb_help within w_rp_warepdb_bill
  173. end type
  174. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_warepdb_bill
  175. end type
  176. type gb_1 from w_publ_easyq`gb_1 within w_rp_warepdb_bill
  177. end type
  178. type ln_bar from w_publ_easyq`ln_bar within w_rp_warepdb_bill
  179. end type
  180. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_warepdb_bill
  181. end type
  182. type r_bar from w_publ_easyq`r_bar within w_rp_warepdb_bill
  183. end type
  184. type ln_1 from w_publ_easyq`ln_1 within w_rp_warepdb_bill
  185. end type
  186. type ln_2 from w_publ_easyq`ln_2 within w_rp_warepdb_bill
  187. end type
  188. type ln_3 from w_publ_easyq`ln_3 within w_rp_warepdb_bill
  189. boolean visible = false
  190. end type
  191. type ln_4 from w_publ_easyq`ln_4 within w_rp_warepdb_bill
  192. boolean visible = false
  193. end type
  194. type ddlb_storageid from uo_ddlb_storageid within w_rp_warepdb_bill
  195. integer x = 151
  196. integer y = 200
  197. integer width = 585
  198. integer height = 976
  199. integer taborder = 70
  200. boolean bringtotop = true
  201. end type
  202. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  203. end event
  204. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  205. cb_1.triggerevent(clicked!)
  206. end event
  207. type ddlb_status from dropdownlistbox within w_rp_warepdb_bill
  208. integer x = 905
  209. integer y = 196
  210. integer width = 325
  211. integer height = 976
  212. integer taborder = 80
  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. string text = "[全部]"
  221. boolean sorted = false
  222. string item[] = {"[全部]","待审核","已审核"}
  223. borderstyle borderstyle = stylelowered!
  224. end type
  225. event selectionchanged;IF Index = 1 THEN
  226. cur_flag = -1
  227. ELSEIF Index = 2 THEN
  228. cur_flag = 0
  229. ELSEIF Index = 3 THEN
  230. cur_flag = 1
  231. END IF
  232. cb_1.TriggerEvent(clicked!)
  233. end event
  234. type st_2 from statictext within w_rp_warepdb_bill
  235. integer y = 216
  236. integer width = 151
  237. integer height = 48
  238. boolean bringtotop = true
  239. integer textsize = -9
  240. integer weight = 400
  241. fontcharset fontcharset = gb2312charset!
  242. fontpitch fontpitch = variable!
  243. string facename = "宋体"
  244. long textcolor = 33554432
  245. long backcolor = 134217739
  246. string text = "仓库:"
  247. alignment alignment = right!
  248. boolean focusrectangle = false
  249. end type
  250. type st_1 from statictext within w_rp_warepdb_bill
  251. integer x = 754
  252. integer y = 216
  253. integer width = 128
  254. integer height = 48
  255. boolean bringtotop = true
  256. integer textsize = -9
  257. integer weight = 400
  258. fontcharset fontcharset = gb2312charset!
  259. fontpitch fontpitch = variable!
  260. string facename = "宋体"
  261. long textcolor = 33554432
  262. long backcolor = 134217739
  263. string text = "状态"
  264. alignment alignment = right!
  265. boolean focusrectangle = false
  266. end type
  267. type tv_1 from uo_tv_mtrltype within w_rp_warepdb_bill
  268. integer y = 308
  269. integer width = 800
  270. integer height = 1808
  271. integer taborder = 100
  272. boolean bringtotop = true
  273. integer textsize = -9
  274. fontcharset fontcharset = gb2312charset!
  275. fontfamily fontfamily = anyfont!
  276. string facename = "宋体"
  277. end type
  278. event selectionchanged;call super::selectionchanged;ls_handtype = This.uo_cur_info.handtype
  279. ls_handtype = ls_handtype + '%'
  280. cb_1.TriggerEvent(Clicked!)
  281. end event