w_rp_buy_gpmx.srw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. $PBExportHeader$w_rp_buy_gpmx.srw
  2. forward
  3. global type w_rp_buy_gpmx from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_gpmx
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_buy_gpmx
  8. end type
  9. type st_1 from statictext within w_rp_buy_gpmx
  10. end type
  11. type st_2 from statictext within w_rp_buy_gpmx
  12. end type
  13. type ddlb_scid from uo_ddlb_scid within w_rp_buy_gpmx
  14. end type
  15. type st_5 from statictext within w_rp_buy_gpmx
  16. end type
  17. end forward
  18. global type w_rp_buy_gpmx from w_publ_easyq
  19. string title = "退货单毛利统计表"
  20. ddlb_2 ddlb_2
  21. ddlb_status ddlb_status
  22. st_1 st_1
  23. st_2 st_2
  24. ddlb_scid ddlb_scid
  25. st_5 st_5
  26. end type
  27. global w_rp_buy_gpmx w_rp_buy_gpmx
  28. type variables
  29. Long cur_storageid_arr[]
  30. Long cur_flag = -1
  31. Long cur_secflag = -1
  32. long cur_scid_arr[]
  33. end variables
  34. on w_rp_buy_gpmx.create
  35. int iCurrent
  36. call super::create
  37. this.ddlb_2=create ddlb_2
  38. this.ddlb_status=create ddlb_status
  39. this.st_1=create st_1
  40. this.st_2=create st_2
  41. this.ddlb_scid=create ddlb_scid
  42. this.st_5=create st_5
  43. iCurrent=UpperBound(this.Control)
  44. this.Control[iCurrent+1]=this.ddlb_2
  45. this.Control[iCurrent+2]=this.ddlb_status
  46. this.Control[iCurrent+3]=this.st_1
  47. this.Control[iCurrent+4]=this.st_2
  48. this.Control[iCurrent+5]=this.ddlb_scid
  49. this.Control[iCurrent+6]=this.st_5
  50. end on
  51. on w_rp_buy_gpmx.destroy
  52. call super::destroy
  53. destroy(this.ddlb_2)
  54. destroy(this.ddlb_status)
  55. destroy(this.st_1)
  56. destroy(this.st_2)
  57. destroy(this.ddlb_scid)
  58. destroy(this.st_5)
  59. end on
  60. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col_mtrlsectype
  61. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  62. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  63. s_hide_col s_col_zxmtrlmode
  64. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  65. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  66. end event
  67. type cb_func from w_publ_easyq`cb_func within w_rp_buy_gpmx
  68. end type
  69. type cb_exit from w_publ_easyq`cb_exit within w_rp_buy_gpmx
  70. end type
  71. type cb_2 from w_publ_easyq`cb_2 within w_rp_buy_gpmx
  72. boolean bringtotop = true
  73. end type
  74. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_buy_gpmx
  75. boolean bringtotop = true
  76. end type
  77. type cb_1 from w_publ_easyq`cb_1 within w_rp_buy_gpmx
  78. end type
  79. event cb_1::clicked;DateTime first_date,end_date
  80. first_date = DateTime(Date(em_1.Text),Time(0))
  81. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  82. dw_1.Retrieve(cur_scid_arr,first_date,end_date,cur_flag,cur_storageid_arr,cur_secflag,sys_user_spttype )
  83. end event
  84. type st_3 from w_publ_easyq`st_3 within w_rp_buy_gpmx
  85. integer x = 2048
  86. end type
  87. type st_4 from w_publ_easyq`st_4 within w_rp_buy_gpmx
  88. integer x = 2734
  89. end type
  90. type em_1 from w_publ_easyq`em_1 within w_rp_buy_gpmx
  91. integer x = 2240
  92. integer taborder = 110
  93. end type
  94. type em_2 from w_publ_easyq`em_2 within w_rp_buy_gpmx
  95. integer x = 2839
  96. integer taborder = 120
  97. end type
  98. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_buy_gpmx
  99. integer x = 1568
  100. integer y = 12
  101. end type
  102. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_buy_gpmx
  103. integer x = 1349
  104. integer y = 16
  105. end type
  106. type dw_1 from w_publ_easyq`dw_1 within w_rp_buy_gpmx
  107. integer y = 304
  108. integer width = 2994
  109. integer height = 940
  110. string dataobject = "dw_rp_buy_gpmx"
  111. end type
  112. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  113. String ls_code
  114. Long ll_scid
  115. ll_scid = THIS.Object.u_inware_scid[row]
  116. ls_code = THIS.Object.u_inware_inwarecode[row]
  117. f_open_win(ll_scid,ls_code)
  118. END IF
  119. end event
  120. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_buy_gpmx
  121. end type
  122. type sle_cust from w_publ_easyq`sle_cust within w_rp_buy_gpmx
  123. end type
  124. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_buy_gpmx
  125. end type
  126. type st_cust from w_publ_easyq`st_cust within w_rp_buy_gpmx
  127. end type
  128. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_buy_gpmx
  129. boolean visible = true
  130. integer x = 1349
  131. end type
  132. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_buy_gpmx
  133. integer x = 2651
  134. end type
  135. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_buy_gpmx
  136. integer x = 3255
  137. end type
  138. type pb_2 from w_publ_easyq`pb_2 within w_rp_buy_gpmx
  139. integer x = 3365
  140. end type
  141. type cb_help from w_publ_easyq`cb_help within w_rp_buy_gpmx
  142. end type
  143. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_buy_gpmx
  144. end type
  145. type gb_1 from w_publ_easyq`gb_1 within w_rp_buy_gpmx
  146. end type
  147. type ln_bar from w_publ_easyq`ln_bar within w_rp_buy_gpmx
  148. end type
  149. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_buy_gpmx
  150. end type
  151. type r_bar from w_publ_easyq`r_bar within w_rp_buy_gpmx
  152. end type
  153. type ln_1 from w_publ_easyq`ln_1 within w_rp_buy_gpmx
  154. end type
  155. type ln_2 from w_publ_easyq`ln_2 within w_rp_buy_gpmx
  156. end type
  157. type ln_3 from w_publ_easyq`ln_3 within w_rp_buy_gpmx
  158. end type
  159. type ln_4 from w_publ_easyq`ln_4 within w_rp_buy_gpmx
  160. end type
  161. type ddlb_2 from uo_ddlb_storageid within w_rp_buy_gpmx
  162. integer x = 818
  163. integer y = 196
  164. integer width = 681
  165. integer height = 1108
  166. integer taborder = 40
  167. boolean bringtotop = true
  168. end type
  169. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  170. end event
  171. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  172. cb_1.triggerevent(clicked!)
  173. end event
  174. type ddlb_status from dropdownlistbox within w_rp_buy_gpmx
  175. integer x = 1659
  176. integer y = 196
  177. integer width = 384
  178. integer height = 556
  179. integer taborder = 70
  180. boolean bringtotop = true
  181. integer textsize = -9
  182. integer weight = 400
  183. fontcharset fontcharset = gb2312charset!
  184. fontpitch fontpitch = variable!
  185. string facename = "宋体"
  186. long textcolor = 33554432
  187. string text = "[全部]"
  188. boolean sorted = false
  189. string item[] = {"[全部]","待仓库审","待财务审","审核完毕"}
  190. borderstyle borderstyle = stylelowered!
  191. end type
  192. event selectionchanged;IF Index = 1 THEN
  193. cur_flag = -1
  194. cur_secflag = -1
  195. ELSEIF Index = 2 THEN
  196. cur_flag = 0
  197. cur_secflag = 0
  198. ELSEIF Index = 3 THEN
  199. cur_flag = 1
  200. cur_secflag = 0
  201. ELSEIF Index = 4 THEN
  202. cur_flag = 1
  203. cur_secflag = 1
  204. END IF
  205. cb_1.TriggerEvent(clicked!)
  206. end event
  207. type st_1 from statictext within w_rp_buy_gpmx
  208. integer x = 649
  209. integer y = 208
  210. integer width = 146
  211. integer height = 48
  212. boolean bringtotop = true
  213. integer textsize = -9
  214. integer weight = 400
  215. fontcharset fontcharset = gb2312charset!
  216. fontpitch fontpitch = variable!
  217. string facename = "宋体"
  218. long textcolor = 33554432
  219. long backcolor = 134217739
  220. string text = "仓库"
  221. alignment alignment = right!
  222. boolean focusrectangle = false
  223. end type
  224. type st_2 from statictext within w_rp_buy_gpmx
  225. integer x = 1522
  226. integer y = 212
  227. integer width = 128
  228. integer height = 48
  229. boolean bringtotop = true
  230. integer textsize = -9
  231. integer weight = 400
  232. fontcharset fontcharset = gb2312charset!
  233. fontpitch fontpitch = variable!
  234. string facename = "宋体"
  235. long textcolor = 33554432
  236. long backcolor = 134217739
  237. string text = "状态"
  238. alignment alignment = right!
  239. boolean focusrectangle = false
  240. end type
  241. type ddlb_scid from uo_ddlb_scid within w_rp_buy_gpmx
  242. integer x = 137
  243. integer y = 196
  244. integer width = 480
  245. integer height = 620
  246. integer taborder = 130
  247. boolean bringtotop = true
  248. end type
  249. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  250. end event
  251. event selectionchanged;call super::selectionchanged;
  252. cur_scid_arr = THIS.uo_scid_arr
  253. cb_1.triggerevent(clicked!)
  254. end event
  255. type st_5 from statictext within w_rp_buy_gpmx
  256. integer y = 216
  257. integer width = 128
  258. integer height = 48
  259. boolean bringtotop = true
  260. integer textsize = -9
  261. integer weight = 400
  262. fontcharset fontcharset = gb2312charset!
  263. fontpitch fontpitch = variable!
  264. string facename = "宋体"
  265. long textcolor = 33554432
  266. long backcolor = 134217739
  267. string text = "分部"
  268. alignment alignment = right!
  269. boolean focusrectangle = false
  270. end type