w_rp_sale_cust.srw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. $PBExportHeader$w_rp_sale_cust.srw
  2. forward
  3. global type w_rp_sale_cust from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_sale_cust
  6. end type
  7. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_cust
  8. end type
  9. type tv_1 from uo_tv_cusarea within w_rp_sale_cust
  10. end type
  11. type st_1 from statictext within w_rp_sale_cust
  12. end type
  13. type st_2 from statictext within w_rp_sale_cust
  14. end type
  15. end forward
  16. global type w_rp_sale_cust from w_publ_easyq
  17. string title = "客户销售金额汇总表"
  18. ddlb_flag ddlb_flag
  19. ddlb_1 ddlb_1
  20. tv_1 tv_1
  21. st_1 st_1
  22. st_2 st_2
  23. end type
  24. global w_rp_sale_cust w_rp_sale_cust
  25. type variables
  26. Long cur_flag = -1 //-1:全部,0仓库未审,1仓库已审核
  27. Long cur_secflag = -1 //-1:全部,0财务未审
  28. Long cur_storageid_arr[]
  29. long cur_storageid = 0
  30. string ls_areaname = ''
  31. end variables
  32. forward prototypes
  33. public function integer wf_dw ()
  34. public subroutine wf_hidecol ()
  35. end prototypes
  36. public function integer wf_dw ();String ls_windowname
  37. ls_windowname = THIS.ClassName ( )
  38. String ls_old_dwname,ls_new_dwname = ''
  39. ls_old_dwname = dw_1.DataObject
  40. ls_new_dwname = f_get_dwprint_dynamic_chname(ls_old_dwname,ls_windowname)
  41. IF ls_new_dwname = '' THEN
  42. ls_new_dwname = ls_old_dwname
  43. END IF
  44. dw_1.DataObject = ls_new_dwname
  45. dw_1.SetTransObject(sqlca)
  46. dw_1.uf_read_profile_layout()
  47. //
  48. f_title_change(dw_1)
  49. RETURN 1
  50. end function
  51. public subroutine wf_hidecol ();s_hide_col s_col_plan
  52. s_col_plan.col_1 = 'u_mtrldef_planprice'
  53. s_col_plan.col_2 = 'enamt_plan'
  54. s_col_plan.col_3 = 'gpamt_plan'
  55. f_hide_col(1451,dw_1,s_col_plan)
  56. end subroutine
  57. on w_rp_sale_cust.create
  58. int iCurrent
  59. call super::create
  60. this.ddlb_flag=create ddlb_flag
  61. this.ddlb_1=create ddlb_1
  62. this.tv_1=create tv_1
  63. this.st_1=create st_1
  64. this.st_2=create st_2
  65. iCurrent=UpperBound(this.Control)
  66. this.Control[iCurrent+1]=this.ddlb_flag
  67. this.Control[iCurrent+2]=this.ddlb_1
  68. this.Control[iCurrent+3]=this.tv_1
  69. this.Control[iCurrent+4]=this.st_1
  70. this.Control[iCurrent+5]=this.st_2
  71. end on
  72. on w_rp_sale_cust.destroy
  73. call super::destroy
  74. destroy(this.ddlb_flag)
  75. destroy(this.ddlb_1)
  76. destroy(this.tv_1)
  77. destroy(this.st_1)
  78. destroy(this.st_2)
  79. end on
  80. event resize;call super::resize;dw_1.width=this.width - dw_1.x - 40
  81. dw_1.height=this.height - dw_1.y - 115
  82. tv_1.height=dw_1.height
  83. end event
  84. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col1,s_col2
  85. s_col1.col_1 = 'costamt'
  86. f_hide_col(490,dw_1,s_col1)
  87. s_col2.col_1 = 'gpamt'
  88. f_hide_col(843,dw_1,s_col2)
  89. end event
  90. type cb_func from w_publ_easyq`cb_func within w_rp_sale_cust
  91. end type
  92. type cb_exit from w_publ_easyq`cb_exit within w_rp_sale_cust
  93. end type
  94. type cb_2 from w_publ_easyq`cb_2 within w_rp_sale_cust
  95. boolean bringtotop = true
  96. end type
  97. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sale_cust
  98. boolean bringtotop = true
  99. end type
  100. type cb_1 from w_publ_easyq`cb_1 within w_rp_sale_cust
  101. boolean bringtotop = true
  102. end type
  103. event cb_1::clicked;call super::clicked;DateTime first_date,end_date
  104. first_date = DateTime(Date(em_1.Text),Time(0))
  105. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  106. Int li_option_outrep
  107. IF sys_power_issuper THEN
  108. li_option_outrep = 0
  109. ELSE
  110. li_option_outrep = sys_option_outrep
  111. END IF
  112. dw_1.Retrieve(cur_storageid_arr,first_date,end_date,cur_flag,cur_secflag,sys_areaid,ls_areaname,cur_storageid, sys_user_outrep, li_option_outrep)
  113. wf_hidecol()
  114. end event
  115. type st_3 from w_publ_easyq`st_3 within w_rp_sale_cust
  116. integer x = 1426
  117. integer y = 204
  118. end type
  119. type st_4 from w_publ_easyq`st_4 within w_rp_sale_cust
  120. integer x = 2117
  121. integer y = 204
  122. end type
  123. type em_1 from w_publ_easyq`em_1 within w_rp_sale_cust
  124. integer x = 1600
  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
  129. integer x = 2217
  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
  134. integer x = 1618
  135. integer y = 4
  136. end type
  137. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sale_cust
  138. integer x = 1408
  139. integer y = 4
  140. end type
  141. type dw_1 from w_publ_easyq`dw_1 within w_rp_sale_cust
  142. integer x = 800
  143. integer y = 304
  144. integer width = 1938
  145. integer height = 1008
  146. string dataobject = "dw_rp_sale_cust"
  147. end type
  148. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sale_cust
  149. end type
  150. type sle_cust from w_publ_easyq`sle_cust within w_rp_sale_cust
  151. end type
  152. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sale_cust
  153. end type
  154. type st_cust from w_publ_easyq`st_cust within w_rp_sale_cust
  155. end type
  156. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sale_cust
  157. boolean visible = true
  158. integer x = 1408
  159. integer y = 100
  160. end type
  161. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sale_cust
  162. integer x = 2011
  163. integer y = 188
  164. end type
  165. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sale_cust
  166. integer x = 2638
  167. integer y = 188
  168. end type
  169. type pb_2 from w_publ_easyq`pb_2 within w_rp_sale_cust
  170. integer x = 2743
  171. integer y = 188
  172. end type
  173. type cb_help from w_publ_easyq`cb_help within w_rp_sale_cust
  174. end type
  175. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sale_cust
  176. end type
  177. type gb_1 from w_publ_easyq`gb_1 within w_rp_sale_cust
  178. end type
  179. type ln_bar from w_publ_easyq`ln_bar within w_rp_sale_cust
  180. end type
  181. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sale_cust
  182. end type
  183. type r_bar from w_publ_easyq`r_bar within w_rp_sale_cust
  184. end type
  185. type ln_1 from w_publ_easyq`ln_1 within w_rp_sale_cust
  186. end type
  187. type ln_2 from w_publ_easyq`ln_2 within w_rp_sale_cust
  188. end type
  189. type ln_3 from w_publ_easyq`ln_3 within w_rp_sale_cust
  190. end type
  191. type ln_4 from w_publ_easyq`ln_4 within w_rp_sale_cust
  192. end type
  193. type ddlb_flag from dropdownlistbox within w_rp_sale_cust
  194. integer x = 1019
  195. integer y = 196
  196. integer width = 384
  197. integer height = 484
  198. integer taborder = 70
  199. boolean bringtotop = true
  200. integer textsize = -9
  201. integer weight = 400
  202. fontcharset fontcharset = gb2312charset!
  203. fontpitch fontpitch = variable!
  204. string facename = "宋体"
  205. long textcolor = 33554432
  206. string text = "[全部]"
  207. boolean sorted = false
  208. boolean vscrollbar = true
  209. string item[] = {"[全部]","待仓库审核","待财务审核","审核完毕"}
  210. borderstyle borderstyle = stylelowered!
  211. end type
  212. event selectionchanged;if index=1 then
  213. cur_flag=-1
  214. cur_secflag= -1
  215. elseif index=2 then
  216. cur_flag= 0
  217. cur_secflag= -1
  218. elseif index=3 then
  219. cur_flag= 1
  220. cur_secflag= 0
  221. elseif index=4 then
  222. cur_flag= 1
  223. cur_secflag= 1
  224. end if
  225. cb_1.triggerevent(clicked!)
  226. end event
  227. type ddlb_1 from uo_ddlb_storageid within w_rp_sale_cust
  228. integer x = 174
  229. integer y = 200
  230. integer width = 681
  231. integer height = 1108
  232. integer taborder = 20
  233. boolean bringtotop = true
  234. end type
  235. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  236. cur_storageid = this.uo_storageid
  237. cb_1.triggerevent(clicked!)
  238. end event
  239. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  240. cur_storageid = this.uo_storageid
  241. end event
  242. type tv_1 from uo_tv_cusarea within w_rp_sale_cust
  243. integer y = 304
  244. integer width = 800
  245. integer height = 1008
  246. integer taborder = 60
  247. boolean bringtotop = true
  248. integer textsize = -9
  249. fontcharset fontcharset = gb2312charset!
  250. fontfamily fontfamily = anyfont!
  251. string facename = "宋体"
  252. end type
  253. event selectionchanged;call super::selectionchanged;
  254. ls_areaname = this.uo_cur_info.areaname
  255. ls_areaname = ls_areaname + '%'
  256. cb_1.triggerevent(clicked!)
  257. end event
  258. type st_1 from statictext within w_rp_sale_cust
  259. integer y = 208
  260. integer width = 146
  261. integer height = 48
  262. boolean bringtotop = true
  263. integer textsize = -9
  264. integer weight = 400
  265. fontcharset fontcharset = gb2312charset!
  266. fontpitch fontpitch = variable!
  267. string facename = "宋体"
  268. long textcolor = 33554432
  269. long backcolor = 134217739
  270. string text = "仓库"
  271. alignment alignment = right!
  272. boolean focusrectangle = false
  273. end type
  274. type st_2 from statictext within w_rp_sale_cust
  275. integer x = 873
  276. integer y = 212
  277. integer width = 128
  278. integer height = 48
  279. boolean bringtotop = true
  280. integer textsize = -9
  281. integer weight = 400
  282. fontcharset fontcharset = gb2312charset!
  283. fontpitch fontpitch = variable!
  284. string facename = "宋体"
  285. long textcolor = 33554432
  286. long backcolor = 134217739
  287. string text = "状态"
  288. alignment alignment = right!
  289. boolean focusrectangle = false
  290. end type