w_rp_sale_cust_mtrl.srw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. $PBExportHeader$w_rp_sale_cust_mtrl.srw
  2. forward
  3. global type w_rp_sale_cust_mtrl from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_sale_cust_mtrl
  6. end type
  7. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_cust_mtrl
  8. end type
  9. type tv_1 from uo_tv_cusarea within w_rp_sale_cust_mtrl
  10. end type
  11. type st_1 from statictext within w_rp_sale_cust_mtrl
  12. end type
  13. type st_2 from statictext within w_rp_sale_cust_mtrl
  14. end type
  15. type ddlb_2 from dropdownlistbox within w_rp_sale_cust_mtrl
  16. end type
  17. end forward
  18. global type w_rp_sale_cust_mtrl from w_publ_easyq
  19. string title = "客户产品销售汇总表"
  20. ddlb_flag ddlb_flag
  21. ddlb_1 ddlb_1
  22. tv_1 tv_1
  23. st_1 st_1
  24. st_2 st_2
  25. ddlb_2 ddlb_2
  26. end type
  27. global w_rp_sale_cust_mtrl w_rp_sale_cust_mtrl
  28. type variables
  29. Long cur_flag = -1 //-1:全部,0仓库未审,1仓库已审核
  30. Long cur_secflag = -1 //-1:全部,0财务未审
  31. Long cur_storageid_arr[]
  32. string ls_areaname = ''
  33. end variables
  34. forward prototypes
  35. public subroutine wf_hidecol ()
  36. end prototypes
  37. public subroutine wf_hidecol ();s_hide_col s_col1,s_col2
  38. s_col1.col_1 = 'aamt'
  39. f_hide_col(490,dw_1,s_col1)
  40. s_col2.col_1 = 'gpamt'
  41. s_col2.col_2 = 'gpr'
  42. f_hide_col(843,dw_1,s_col2)
  43. s_hide_col s_col_mtrlsectype
  44. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  45. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  46. s_hide_col s_col_zxmtrlmode
  47. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  48. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  49. s_hide_col s_col3
  50. s_col3.col_1 = 'u_outwaremx_cost'
  51. f_hide_col(123,dw_1,s_col3)
  52. s_hide_col s_col4
  53. s_col4.col_1 = 'amt'
  54. s_col4.col_2 = 'gpamt'
  55. s_col4.col_3 = 'enamt2'
  56. s_col4.col_4 = 'enamt_notax'
  57. s_col4.col_5 = 'enprice_notax'
  58. s_col4.col_6 = 'gpamt_notax'
  59. s_col4.col_7 = 'jenamt_notax'
  60. s_col4.col_8 = 'aprice'
  61. f_hide_col(122,dw_1,s_col4)
  62. end subroutine
  63. on w_rp_sale_cust_mtrl.create
  64. int iCurrent
  65. call super::create
  66. this.ddlb_flag=create ddlb_flag
  67. this.ddlb_1=create ddlb_1
  68. this.tv_1=create tv_1
  69. this.st_1=create st_1
  70. this.st_2=create st_2
  71. this.ddlb_2=create ddlb_2
  72. iCurrent=UpperBound(this.Control)
  73. this.Control[iCurrent+1]=this.ddlb_flag
  74. this.Control[iCurrent+2]=this.ddlb_1
  75. this.Control[iCurrent+3]=this.tv_1
  76. this.Control[iCurrent+4]=this.st_1
  77. this.Control[iCurrent+5]=this.st_2
  78. this.Control[iCurrent+6]=this.ddlb_2
  79. end on
  80. on w_rp_sale_cust_mtrl.destroy
  81. call super::destroy
  82. destroy(this.ddlb_flag)
  83. destroy(this.ddlb_1)
  84. destroy(this.tv_1)
  85. destroy(this.st_1)
  86. destroy(this.st_2)
  87. destroy(this.ddlb_2)
  88. end on
  89. event resize;call super::resize;tv_1.height=dw_1.height
  90. end event
  91. type cb_func from w_publ_easyq`cb_func within w_rp_sale_cust_mtrl
  92. end type
  93. type cb_exit from w_publ_easyq`cb_exit within w_rp_sale_cust_mtrl
  94. end type
  95. type cb_2 from w_publ_easyq`cb_2 within w_rp_sale_cust_mtrl
  96. boolean bringtotop = true
  97. end type
  98. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sale_cust_mtrl
  99. boolean bringtotop = true
  100. end type
  101. type cb_1 from w_publ_easyq`cb_1 within w_rp_sale_cust_mtrl
  102. boolean bringtotop = true
  103. end type
  104. event cb_1::clicked;call super::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. IF first_date < sys_showsaledata_mindt THEN first_date = sys_showsaledata_mindt
  108. Int li_option_outrep
  109. IF sys_power_issuper THEN
  110. li_option_outrep = 0
  111. ELSE
  112. li_option_outrep = sys_option_outrep
  113. END IF
  114. dw_1.Retrieve(cur_storageid_arr,first_date,end_date,cur_flag,cur_secflag,sys_areaid,ls_areaname, sys_user_outrep, li_option_outrep)
  115. end event
  116. type st_3 from w_publ_easyq`st_3 within w_rp_sale_cust_mtrl
  117. integer x = 1467
  118. end type
  119. type st_4 from w_publ_easyq`st_4 within w_rp_sale_cust_mtrl
  120. integer x = 2158
  121. integer y = 204
  122. end type
  123. type em_1 from w_publ_easyq`em_1 within w_rp_sale_cust_mtrl
  124. integer x = 1659
  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_cust_mtrl
  129. integer x = 2263
  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_cust_mtrl
  134. integer y = 8
  135. end type
  136. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sale_cust_mtrl
  137. integer y = 8
  138. end type
  139. type dw_1 from w_publ_easyq`dw_1 within w_rp_sale_cust_mtrl
  140. integer x = 800
  141. integer y = 300
  142. integer width = 1769
  143. integer height = 1008
  144. string dataobject = "dw_rp_sale_cust_mtrl"
  145. end type
  146. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sale_cust_mtrl
  147. end type
  148. type sle_cust from w_publ_easyq`sle_cust within w_rp_sale_cust_mtrl
  149. end type
  150. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sale_cust_mtrl
  151. end type
  152. type st_cust from w_publ_easyq`st_cust within w_rp_sale_cust_mtrl
  153. end type
  154. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sale_cust_mtrl
  155. boolean visible = true
  156. end type
  157. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sale_cust_mtrl
  158. integer x = 2071
  159. integer y = 188
  160. end type
  161. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sale_cust_mtrl
  162. integer x = 2670
  163. integer y = 188
  164. end type
  165. type pb_2 from w_publ_easyq`pb_2 within w_rp_sale_cust_mtrl
  166. integer x = 2775
  167. integer y = 188
  168. end type
  169. type cb_help from w_publ_easyq`cb_help within w_rp_sale_cust_mtrl
  170. end type
  171. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sale_cust_mtrl
  172. end type
  173. type gb_1 from w_publ_easyq`gb_1 within w_rp_sale_cust_mtrl
  174. end type
  175. type ln_bar from w_publ_easyq`ln_bar within w_rp_sale_cust_mtrl
  176. end type
  177. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sale_cust_mtrl
  178. end type
  179. type r_bar from w_publ_easyq`r_bar within w_rp_sale_cust_mtrl
  180. end type
  181. type ln_1 from w_publ_easyq`ln_1 within w_rp_sale_cust_mtrl
  182. end type
  183. type ln_2 from w_publ_easyq`ln_2 within w_rp_sale_cust_mtrl
  184. end type
  185. type ln_3 from w_publ_easyq`ln_3 within w_rp_sale_cust_mtrl
  186. end type
  187. type ln_4 from w_publ_easyq`ln_4 within w_rp_sale_cust_mtrl
  188. end type
  189. type ddlb_flag from dropdownlistbox within w_rp_sale_cust_mtrl
  190. integer x = 1047
  191. integer y = 196
  192. integer width = 384
  193. integer height = 484
  194. integer taborder = 30
  195. boolean bringtotop = true
  196. integer textsize = -9
  197. integer weight = 400
  198. fontcharset fontcharset = gb2312charset!
  199. fontpitch fontpitch = variable!
  200. string facename = "宋体"
  201. long textcolor = 33554432
  202. string text = "[全部]"
  203. boolean sorted = false
  204. boolean vscrollbar = true
  205. string item[] = {"[全部]","待仓库审核","待财务审核","审核完毕"}
  206. borderstyle borderstyle = stylelowered!
  207. end type
  208. event selectionchanged;if index=1 then
  209. cur_flag=-1
  210. cur_secflag= -1
  211. elseif index=2 then
  212. cur_flag= 0
  213. cur_secflag= -1
  214. elseif index=3 then
  215. cur_flag= 1
  216. cur_secflag= 0
  217. elseif index=4 then
  218. cur_flag= 1
  219. cur_secflag= 1
  220. end if
  221. cb_1.triggerevent(clicked!)
  222. end event
  223. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_cust_mtrl
  224. integer x = 210
  225. integer y = 196
  226. integer width = 681
  227. integer height = 1108
  228. integer taborder = 120
  229. boolean bringtotop = true
  230. end type
  231. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  232. end event
  233. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  234. cb_1.triggerevent(clicked!)
  235. end event
  236. type tv_1 from uo_tv_cusarea within w_rp_sale_cust_mtrl
  237. integer y = 300
  238. integer width = 800
  239. integer height = 1008
  240. integer taborder = 70
  241. boolean bringtotop = true
  242. integer textsize = -9
  243. fontcharset fontcharset = gb2312charset!
  244. fontfamily fontfamily = anyfont!
  245. string facename = "宋体"
  246. end type
  247. event selectionchanged;call super::selectionchanged;
  248. ls_areaname = this.uo_cur_info.areaname
  249. ls_areaname = ls_areaname + '%'
  250. cb_1.triggerevent(clicked!)
  251. end event
  252. type st_1 from statictext within w_rp_sale_cust_mtrl
  253. integer x = 5
  254. integer y = 208
  255. integer width = 146
  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 st_2 from statictext within w_rp_sale_cust_mtrl
  270. integer x = 901
  271. integer y = 212
  272. integer width = 128
  273. integer height = 48
  274. boolean bringtotop = true
  275. integer textsize = -9
  276. integer weight = 400
  277. fontcharset fontcharset = gb2312charset!
  278. fontpitch fontpitch = variable!
  279. string facename = "宋体"
  280. long textcolor = 33554432
  281. long backcolor = 134217739
  282. string text = "状态"
  283. alignment alignment = right!
  284. boolean focusrectangle = false
  285. end type
  286. type ddlb_2 from dropdownlistbox within w_rp_sale_cust_mtrl
  287. integer x = 2034
  288. integer y = 36
  289. integer width = 645
  290. integer height = 800
  291. integer taborder = 80
  292. boolean bringtotop = true
  293. integer textsize = -9
  294. integer weight = 400
  295. fontcharset fontcharset = gb2312charset!
  296. fontpitch fontpitch = variable!
  297. string facename = "宋体"
  298. long textcolor = 33554432
  299. string text = "汇总表[客户-产品]"
  300. boolean sorted = false
  301. string item[] = {"汇总表[客户-产品]","汇总表[客户-产品-配置]"}
  302. borderstyle borderstyle = stylelowered!
  303. end type
  304. event selectionchanged;dw_1.uf_save_profile_layout()
  305. IF ddlb_2.Text = '汇总表[客户-产品]' THEN
  306. dw_1.DataObject = 'dw_rp_sale_cust_mtrl'
  307. ELSEIF ddlb_2.Text = '汇总表[客户-产品-配置]' THEN
  308. dw_1.DataObject = 'dw_rp_sale_cust_mtrl_3pz'
  309. END IF
  310. wf_replacedw()
  311. cb_1.TriggerEvent(Clicked!)
  312. end event