w_rp_sale_gphz.srw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. $PBExportHeader$w_rp_sale_gphz.srw
  2. forward
  3. global type w_rp_sale_gphz from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_sale_gphz
  6. end type
  7. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_gphz
  8. end type
  9. type st_1 from statictext within w_rp_sale_gphz
  10. end type
  11. type st_2 from statictext within w_rp_sale_gphz
  12. end type
  13. type ddlb_scid from uo_ddlb_scid within w_rp_sale_gphz
  14. end type
  15. type st_5 from statictext within w_rp_sale_gphz
  16. end type
  17. end forward
  18. global type w_rp_sale_gphz 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 w_rp_sale_gphz
  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. forward prototypes
  35. public function integer wf_dw ()
  36. end prototypes
  37. public function integer wf_dw ();String ls_windowname
  38. ls_windowname = THIS.ClassName ( )
  39. String ls_old_dwname,ls_new_dwname = ''
  40. ls_old_dwname = dw_1.DataObject
  41. ls_new_dwname = f_get_dwprint_dynamic_chname(ls_old_dwname,ls_windowname)
  42. IF ls_new_dwname = '' THEN
  43. ls_new_dwname = ls_old_dwname
  44. END IF
  45. dw_1.DataObject = ls_new_dwname
  46. dw_1.SetTransObject(sqlca)
  47. dw_1.uf_read_profile_layout()
  48. f_title_change(dw_1)
  49. RETURN 1
  50. end function
  51. on w_rp_sale_gphz.create
  52. int iCurrent
  53. call super::create
  54. this.ddlb_flag=create ddlb_flag
  55. this.ddlb_1=create ddlb_1
  56. this.st_1=create st_1
  57. this.st_2=create st_2
  58. this.ddlb_scid=create ddlb_scid
  59. this.st_5=create st_5
  60. iCurrent=UpperBound(this.Control)
  61. this.Control[iCurrent+1]=this.ddlb_flag
  62. this.Control[iCurrent+2]=this.ddlb_1
  63. this.Control[iCurrent+3]=this.st_1
  64. this.Control[iCurrent+4]=this.st_2
  65. this.Control[iCurrent+5]=this.ddlb_scid
  66. this.Control[iCurrent+6]=this.st_5
  67. end on
  68. on w_rp_sale_gphz.destroy
  69. call super::destroy
  70. destroy(this.ddlb_flag)
  71. destroy(this.ddlb_1)
  72. destroy(this.st_1)
  73. destroy(this.st_2)
  74. destroy(this.ddlb_scid)
  75. destroy(this.st_5)
  76. end on
  77. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col1,s_col2
  78. s_col1.col_1 = 'costamt'
  79. s_col1.col_2 = 'u_outware_otheramt'
  80. f_hide_col(490,dw_1,s_col1)
  81. s_col2.col_1 = 'gpamt'
  82. s_col2.col_2 = 'gpr'
  83. f_hide_col(843,dw_1,s_col2)
  84. s_hide_col s_col_mtrlsectype
  85. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  86. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  87. s_hide_col s_col_zxmtrlmode
  88. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  89. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  90. end event
  91. type cb_func from w_publ_easyq`cb_func within w_rp_sale_gphz
  92. end type
  93. type cb_exit from w_publ_easyq`cb_exit within w_rp_sale_gphz
  94. end type
  95. type cb_2 from w_publ_easyq`cb_2 within w_rp_sale_gphz
  96. boolean bringtotop = true
  97. end type
  98. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sale_gphz
  99. boolean bringtotop = true
  100. end type
  101. type cb_1 from w_publ_easyq`cb_1 within w_rp_sale_gphz
  102. boolean bringtotop = true
  103. end type
  104. event cb_1::clicked;DateTime first_date,end_date
  105. first_date = DateTime(Date(em_1.Text),Time(0))
  106. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  107. Int li_option_outrep
  108. IF sys_power_issuper THEN
  109. li_option_outrep = 0
  110. ELSE
  111. li_option_outrep = sys_option_outrep
  112. END IF
  113. dw_1.Retrieve(cur_scid_arr,cur_storageid_arr,first_date,end_date,cur_flag,cur_secflag,sys_areaid, sys_user_outrep, li_option_outrep)
  114. end event
  115. type st_3 from w_publ_easyq`st_3 within w_rp_sale_gphz
  116. integer x = 2025
  117. integer y = 204
  118. end type
  119. type st_4 from w_publ_easyq`st_4 within w_rp_sale_gphz
  120. integer x = 2725
  121. integer y = 204
  122. end type
  123. type em_1 from w_publ_easyq`em_1 within w_rp_sale_gphz
  124. integer x = 2226
  125. integer y = 188
  126. integer taborder = 110
  127. end type
  128. type em_2 from w_publ_easyq`em_2 within w_rp_sale_gphz
  129. integer x = 2830
  130. integer y = 188
  131. integer taborder = 120
  132. end type
  133. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_sale_gphz
  134. integer y = 0
  135. end type
  136. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sale_gphz
  137. integer y = 4
  138. end type
  139. type dw_1 from w_publ_easyq`dw_1 within w_rp_sale_gphz
  140. integer y = 300
  141. integer width = 2990
  142. integer height = 924
  143. string dataobject = "dw_rp_sale_gphz"
  144. end type
  145. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sale_gphz
  146. end type
  147. type sle_cust from w_publ_easyq`sle_cust within w_rp_sale_gphz
  148. end type
  149. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sale_gphz
  150. end type
  151. type st_cust from w_publ_easyq`st_cust within w_rp_sale_gphz
  152. end type
  153. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sale_gphz
  154. boolean visible = true
  155. end type
  156. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sale_gphz
  157. integer x = 2638
  158. integer y = 188
  159. end type
  160. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sale_gphz
  161. integer x = 3237
  162. integer y = 188
  163. end type
  164. type pb_2 from w_publ_easyq`pb_2 within w_rp_sale_gphz
  165. integer x = 3342
  166. integer y = 188
  167. end type
  168. type cb_help from w_publ_easyq`cb_help within w_rp_sale_gphz
  169. end type
  170. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sale_gphz
  171. end type
  172. type gb_1 from w_publ_easyq`gb_1 within w_rp_sale_gphz
  173. end type
  174. type ln_bar from w_publ_easyq`ln_bar within w_rp_sale_gphz
  175. end type
  176. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sale_gphz
  177. end type
  178. type r_bar from w_publ_easyq`r_bar within w_rp_sale_gphz
  179. end type
  180. type ln_1 from w_publ_easyq`ln_1 within w_rp_sale_gphz
  181. end type
  182. type ln_2 from w_publ_easyq`ln_2 within w_rp_sale_gphz
  183. end type
  184. type ln_3 from w_publ_easyq`ln_3 within w_rp_sale_gphz
  185. end type
  186. type ln_4 from w_publ_easyq`ln_4 within w_rp_sale_gphz
  187. end type
  188. type ddlb_flag from dropdownlistbox within w_rp_sale_gphz
  189. integer x = 1586
  190. integer y = 188
  191. integer width = 389
  192. integer height = 484
  193. integer taborder = 80
  194. boolean bringtotop = true
  195. integer textsize = -9
  196. integer weight = 400
  197. fontcharset fontcharset = gb2312charset!
  198. fontpitch fontpitch = variable!
  199. string facename = "宋体"
  200. long textcolor = 33554432
  201. string text = "[全部]"
  202. boolean sorted = false
  203. boolean vscrollbar = true
  204. string item[] = {"[全部]","待仓库审核","待财务审核","审核完毕"}
  205. borderstyle borderstyle = stylelowered!
  206. end type
  207. event selectionchanged;if index=1 then
  208. cur_flag=-1
  209. cur_secflag= -1
  210. elseif index=2 then
  211. cur_flag= 0
  212. cur_secflag= -1
  213. elseif index=3 then
  214. cur_flag= 1
  215. cur_secflag= 0
  216. elseif index=4 then
  217. cur_flag= 1
  218. cur_secflag= 1
  219. end if
  220. cb_1.triggerevent(clicked!)
  221. end event
  222. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_gphz
  223. integer x = 759
  224. integer y = 188
  225. integer width = 681
  226. integer height = 1108
  227. integer taborder = 40
  228. boolean bringtotop = true
  229. end type
  230. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  231. end event
  232. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  233. cb_1.triggerevent(clicked!)
  234. end event
  235. type st_1 from statictext within w_rp_sale_gphz
  236. integer x = 603
  237. integer y = 204
  238. integer width = 146
  239. integer height = 48
  240. boolean bringtotop = true
  241. integer textsize = -9
  242. integer weight = 400
  243. fontcharset fontcharset = gb2312charset!
  244. fontpitch fontpitch = variable!
  245. string facename = "宋体"
  246. long textcolor = 33554432
  247. long backcolor = 134217739
  248. string text = "仓库"
  249. alignment alignment = right!
  250. boolean focusrectangle = false
  251. end type
  252. type st_2 from statictext within w_rp_sale_gphz
  253. integer x = 1449
  254. integer y = 204
  255. integer width = 128
  256. integer height = 48
  257. boolean bringtotop = true
  258. integer textsize = -9
  259. integer weight = 400
  260. fontcharset fontcharset = gb2312charset!
  261. fontpitch fontpitch = variable!
  262. string facename = "宋体"
  263. long textcolor = 33554432
  264. long backcolor = 134217739
  265. string text = "状态"
  266. alignment alignment = right!
  267. boolean focusrectangle = false
  268. end type
  269. type ddlb_scid from uo_ddlb_scid within w_rp_sale_gphz
  270. integer x = 137
  271. integer y = 188
  272. integer width = 471
  273. integer height = 620
  274. integer taborder = 100
  275. boolean bringtotop = true
  276. end type
  277. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  278. end event
  279. event selectionchanged;call super::selectionchanged;
  280. cur_scid_arr = THIS.uo_scid_arr
  281. cb_1.triggerevent(clicked!)
  282. end event
  283. type st_5 from statictext within w_rp_sale_gphz
  284. integer y = 204
  285. integer width = 128
  286. integer height = 48
  287. boolean bringtotop = true
  288. integer textsize = -9
  289. integer weight = 400
  290. fontcharset fontcharset = gb2312charset!
  291. fontpitch fontpitch = variable!
  292. string facename = "宋体"
  293. long textcolor = 33554432
  294. long backcolor = 134217739
  295. string text = "分部"
  296. alignment alignment = right!
  297. boolean focusrectangle = false
  298. end type