w_rp_sale_gphz_b.srw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. $PBExportHeader$w_rp_sale_gphz_b.srw
  2. forward
  3. global type w_rp_sale_gphz_b from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_sale_gphz_b
  6. end type
  7. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_gphz_b
  8. end type
  9. type st_1 from statictext within w_rp_sale_gphz_b
  10. end type
  11. type st_2 from statictext within w_rp_sale_gphz_b
  12. end type
  13. type ddlb_scid from uo_ddlb_scid within w_rp_sale_gphz_b
  14. end type
  15. type st_5 from statictext within w_rp_sale_gphz_b
  16. end type
  17. end forward
  18. global type w_rp_sale_gphz_b from w_publ_easyq
  19. string title = "单据毛利统计表"
  20. ddlb_flag ddlb_flag
  21. ddlb_1 ddlb_1
  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_sale_gphz_b w_rp_sale_gphz_b
  28. type variables
  29. Long cur_flag = -1 //-1:全部,0仓库未审,1仓库已审核
  30. Long cur_secflag = -1 //-1:全部,0财务未审
  31. Long cur_storageid_arr[]
  32. long cur_scid_arr[]
  33. end variables
  34. on w_rp_sale_gphz_b.create
  35. int iCurrent
  36. call super::create
  37. this.ddlb_flag=create ddlb_flag
  38. this.ddlb_1=create ddlb_1
  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_flag
  45. this.Control[iCurrent+2]=this.ddlb_1
  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_sale_gphz_b.destroy
  52. call super::destroy
  53. destroy(this.ddlb_flag)
  54. destroy(this.ddlb_1)
  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_col1,s_col2
  61. s_col1.col_1 = 'costamt'
  62. f_hide_col(490,dw_1,s_col1)
  63. s_col2.col_1 = 'gpamt'
  64. f_hide_col(843,dw_1,s_col2)
  65. s_hide_col s_col_mtrlsectype
  66. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  67. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  68. s_hide_col s_col_zxmtrlmode
  69. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  70. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  71. end event
  72. type cb_func from w_publ_easyq`cb_func within w_rp_sale_gphz_b
  73. end type
  74. type cb_exit from w_publ_easyq`cb_exit within w_rp_sale_gphz_b
  75. end type
  76. type cb_2 from w_publ_easyq`cb_2 within w_rp_sale_gphz_b
  77. boolean bringtotop = true
  78. end type
  79. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sale_gphz_b
  80. boolean bringtotop = true
  81. end type
  82. type cb_1 from w_publ_easyq`cb_1 within w_rp_sale_gphz_b
  83. boolean bringtotop = true
  84. end type
  85. event cb_1::clicked;DateTime first_date,end_date
  86. first_date = DateTime(Date(em_1.Text),Time(0))
  87. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  88. dw_1.Retrieve(cur_scid_arr,cur_storageid_arr,first_date,end_date,cur_flag,cur_secflag,sys_areaid)
  89. end event
  90. type st_3 from w_publ_easyq`st_3 within w_rp_sale_gphz_b
  91. integer x = 1874
  92. end type
  93. type st_4 from w_publ_easyq`st_4 within w_rp_sale_gphz_b
  94. integer x = 2574
  95. end type
  96. type em_1 from w_publ_easyq`em_1 within w_rp_sale_gphz_b
  97. integer x = 2075
  98. integer taborder = 110
  99. end type
  100. type em_2 from w_publ_easyq`em_2 within w_rp_sale_gphz_b
  101. integer x = 2679
  102. integer taborder = 120
  103. end type
  104. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_sale_gphz_b
  105. integer y = 4
  106. end type
  107. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sale_gphz_b
  108. integer y = 8
  109. end type
  110. type dw_1 from w_publ_easyq`dw_1 within w_rp_sale_gphz_b
  111. integer y = 300
  112. integer width = 2990
  113. integer height = 924
  114. string dataobject = "dw_rp_sale_gphz_b"
  115. end type
  116. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sale_gphz_b
  117. end type
  118. type sle_cust from w_publ_easyq`sle_cust within w_rp_sale_gphz_b
  119. end type
  120. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sale_gphz_b
  121. end type
  122. type st_cust from w_publ_easyq`st_cust within w_rp_sale_gphz_b
  123. end type
  124. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sale_gphz_b
  125. boolean visible = true
  126. end type
  127. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sale_gphz_b
  128. integer x = 2487
  129. end type
  130. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sale_gphz_b
  131. integer x = 3086
  132. end type
  133. type pb_2 from w_publ_easyq`pb_2 within w_rp_sale_gphz_b
  134. integer x = 3191
  135. end type
  136. type cb_help from w_publ_easyq`cb_help within w_rp_sale_gphz_b
  137. end type
  138. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sale_gphz_b
  139. end type
  140. type gb_1 from w_publ_easyq`gb_1 within w_rp_sale_gphz_b
  141. end type
  142. type ln_bar from w_publ_easyq`ln_bar within w_rp_sale_gphz_b
  143. end type
  144. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sale_gphz_b
  145. end type
  146. type r_bar from w_publ_easyq`r_bar within w_rp_sale_gphz_b
  147. end type
  148. type ln_1 from w_publ_easyq`ln_1 within w_rp_sale_gphz_b
  149. end type
  150. type ln_2 from w_publ_easyq`ln_2 within w_rp_sale_gphz_b
  151. end type
  152. type ln_3 from w_publ_easyq`ln_3 within w_rp_sale_gphz_b
  153. end type
  154. type ln_4 from w_publ_easyq`ln_4 within w_rp_sale_gphz_b
  155. end type
  156. type ddlb_flag from dropdownlistbox within w_rp_sale_gphz_b
  157. integer x = 137
  158. integer y = 192
  159. integer width = 389
  160. integer height = 484
  161. integer taborder = 80
  162. boolean bringtotop = true
  163. integer textsize = -9
  164. integer weight = 400
  165. fontcharset fontcharset = gb2312charset!
  166. fontpitch fontpitch = variable!
  167. string facename = "宋体"
  168. long textcolor = 33554432
  169. string text = "[全部]"
  170. boolean sorted = false
  171. boolean vscrollbar = true
  172. string item[] = {"[全部]","待仓库审核","待财务审核","审核完毕"}
  173. borderstyle borderstyle = stylelowered!
  174. end type
  175. event selectionchanged;if index=1 then
  176. cur_flag=-1
  177. cur_secflag= -1
  178. elseif index=2 then
  179. cur_flag= 0
  180. cur_secflag= -1
  181. elseif index=3 then
  182. cur_flag= 1
  183. cur_secflag= 0
  184. elseif index=4 then
  185. cur_flag= 1
  186. cur_secflag= 1
  187. end if
  188. cb_1.triggerevent(clicked!)
  189. end event
  190. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_gphz_b
  191. integer x = 1271
  192. integer y = 192
  193. integer width = 599
  194. integer height = 1108
  195. integer taborder = 40
  196. boolean bringtotop = true
  197. end type
  198. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  199. end event
  200. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  201. cb_1.triggerevent(clicked!)
  202. end event
  203. type st_1 from statictext within w_rp_sale_gphz_b
  204. integer x = 1115
  205. integer y = 208
  206. integer width = 146
  207. integer height = 48
  208. boolean bringtotop = true
  209. integer textsize = -9
  210. integer weight = 400
  211. fontcharset fontcharset = gb2312charset!
  212. fontpitch fontpitch = variable!
  213. string facename = "宋体"
  214. long textcolor = 33554432
  215. long backcolor = 134217739
  216. string text = "仓库"
  217. alignment alignment = right!
  218. boolean focusrectangle = false
  219. end type
  220. type st_2 from statictext within w_rp_sale_gphz_b
  221. integer y = 204
  222. integer width = 128
  223. integer height = 48
  224. boolean bringtotop = true
  225. integer textsize = -9
  226. integer weight = 400
  227. fontcharset fontcharset = gb2312charset!
  228. fontpitch fontpitch = variable!
  229. string facename = "宋体"
  230. long textcolor = 33554432
  231. long backcolor = 134217739
  232. string text = "状态"
  233. alignment alignment = right!
  234. boolean focusrectangle = false
  235. end type
  236. type ddlb_scid from uo_ddlb_scid within w_rp_sale_gphz_b
  237. integer x = 681
  238. integer y = 192
  239. integer width = 453
  240. integer height = 620
  241. integer taborder = 110
  242. boolean bringtotop = true
  243. end type
  244. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  245. end event
  246. event selectionchanged;call super::selectionchanged;
  247. cur_scid_arr = THIS.uo_scid_arr
  248. cb_1.triggerevent(clicked!)
  249. end event
  250. type st_5 from statictext within w_rp_sale_gphz_b
  251. integer x = 549
  252. integer y = 208
  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