w_rp_saletask_saler.srw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. $PBExportHeader$w_rp_saletask_saler.srw
  2. forward
  3. global type w_rp_saletask_saler from w_publ_easyq
  4. end type
  5. type ddlb_2 from dropdownlistbox within w_rp_saletask_saler
  6. end type
  7. type st_2 from statictext within w_rp_saletask_saler
  8. end type
  9. type ddlb_scid from uo_ddlb_scid within w_rp_saletask_saler
  10. end type
  11. type st_5 from statictext within w_rp_saletask_saler
  12. end type
  13. type ddlb_status from uo_ddlb_status within w_rp_saletask_saler
  14. end type
  15. end forward
  16. global type w_rp_saletask_saler from w_publ_easyq
  17. string title = "业务员订货统计表"
  18. ddlb_2 ddlb_2
  19. st_2 st_2
  20. ddlb_scid ddlb_scid
  21. st_5 st_5
  22. ddlb_status ddlb_status
  23. end type
  24. global w_rp_saletask_saler w_rp_saletask_saler
  25. type variables
  26. long cur_status= -1 //-1:全部,0仓库未审,1仓库已审核
  27. long cur_scid_arr[]
  28. end variables
  29. forward prototypes
  30. public subroutine wf_hidecol ()
  31. end prototypes
  32. public subroutine wf_hidecol ();IF dw_1.DataObject = 'dw_rp_saletask_saler_mx' THEN
  33. s_hide_col s_col
  34. s_col.col_1 = 'u_saletaskmx_enprice'
  35. s_col.col_2 = 'u_saletaskmx_rebate'
  36. s_col.col_3 = 'u_saletaskmx_price'
  37. s_col.col_4 = 'amt'
  38. s_col.col_5 = 'u_saletaskmx_fprice'
  39. s_col.col_6 = 'u_saletaskmx_ware_fprice'
  40. s_col.col_7 = 'ware_amt'
  41. f_hide_col(122,dw_1,s_col)
  42. s_col.col_1 = 'b_costamt'
  43. f_hide_col(123,dw_1,s_col)
  44. s_col.col_1 = 'mamt'
  45. f_hide_col(843,dw_1,s_col)
  46. ELSEIF dw_1.DataObject = 'dw_rp_saletask_saler_hz' THEN
  47. s_hide_col s_col2
  48. s_col2.col_1 = 'mamt'
  49. f_hide_col(843,dw_1,s_col2)
  50. END IF
  51. end subroutine
  52. on w_rp_saletask_saler.create
  53. int iCurrent
  54. call super::create
  55. this.ddlb_2=create ddlb_2
  56. this.st_2=create st_2
  57. this.ddlb_scid=create ddlb_scid
  58. this.st_5=create st_5
  59. this.ddlb_status=create ddlb_status
  60. iCurrent=UpperBound(this.Control)
  61. this.Control[iCurrent+1]=this.ddlb_2
  62. this.Control[iCurrent+2]=this.st_2
  63. this.Control[iCurrent+3]=this.ddlb_scid
  64. this.Control[iCurrent+4]=this.st_5
  65. this.Control[iCurrent+5]=this.ddlb_status
  66. end on
  67. on w_rp_saletask_saler.destroy
  68. call super::destroy
  69. destroy(this.ddlb_2)
  70. destroy(this.st_2)
  71. destroy(this.ddlb_scid)
  72. destroy(this.st_5)
  73. destroy(this.ddlb_status)
  74. end on
  75. type cb_func from w_publ_easyq`cb_func within w_rp_saletask_saler
  76. end type
  77. type cb_exit from w_publ_easyq`cb_exit within w_rp_saletask_saler
  78. end type
  79. type cb_2 from w_publ_easyq`cb_2 within w_rp_saletask_saler
  80. boolean bringtotop = true
  81. end type
  82. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_saletask_saler
  83. boolean bringtotop = true
  84. end type
  85. type cb_1 from w_publ_easyq`cb_1 within w_rp_saletask_saler
  86. boolean bringtotop = true
  87. end type
  88. event cb_1::clicked;Int ls_flag = 0
  89. DateTime first_date,end_date
  90. first_date = DateTime(Date(em_1.Text),Time(0))
  91. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  92. IF first_date < sys_showsaledata_mindt THEN first_date= sys_showsaledata_mindt
  93. Int li_option_outrep,li_option_opemp
  94. string ls_option_opemp
  95. IF sys_power_issuper THEN
  96. li_option_outrep = 0
  97. ELSE
  98. li_option_outrep = sys_option_outrep
  99. END IF
  100. IF sys_power_issuper THEN
  101. li_option_opemp = 0
  102. // ls_option_opemp = publ_operator
  103. ELSE
  104. li_option_opemp = sys_option_opemp_sale
  105. ls_option_opemp = publ_operator
  106. END IF
  107. dw_1.Retrieve(cur_scid_arr,first_date,end_date,cur_status,sys_areaid, sys_user_outrep, li_option_outrep,ls_option_opemp,li_option_opemp)
  108. end event
  109. type st_3 from w_publ_easyq`st_3 within w_rp_saletask_saler
  110. integer x = 1271
  111. integer y = 204
  112. integer width = 210
  113. alignment alignment = left!
  114. end type
  115. type st_4 from w_publ_easyq`st_4 within w_rp_saletask_saler
  116. integer x = 1984
  117. integer y = 204
  118. end type
  119. type em_1 from w_publ_easyq`em_1 within w_rp_saletask_saler
  120. integer x = 1472
  121. integer y = 188
  122. integer taborder = 120
  123. end type
  124. type em_2 from w_publ_easyq`em_2 within w_rp_saletask_saler
  125. integer x = 2089
  126. integer y = 188
  127. integer taborder = 130
  128. end type
  129. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_saletask_saler
  130. integer x = 1563
  131. integer y = 4
  132. end type
  133. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_saletask_saler
  134. integer x = 1353
  135. integer y = 8
  136. end type
  137. type dw_1 from w_publ_easyq`dw_1 within w_rp_saletask_saler
  138. integer y = 288
  139. integer width = 2665
  140. integer height = 1044
  141. string dataobject = "dw_rp_saletask_saler_mx"
  142. end type
  143. event dw_1::doubleclicked;call super::doubleclicked;IF dw_1.DataObject = 'dw_rp_saletask_saler_mx' THEN
  144. IF row > 0 THEN
  145. String ls_code
  146. Long ll_scid
  147. ll_scid = THIS.Object.u_saletask_scid[row]
  148. ls_code = THIS.Object.u_saletask_taskcode[row]
  149. f_open_win(ll_scid,ls_code)
  150. END IF
  151. END IF
  152. end event
  153. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_saletask_saler
  154. end type
  155. type sle_cust from w_publ_easyq`sle_cust within w_rp_saletask_saler
  156. end type
  157. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_saletask_saler
  158. end type
  159. type st_cust from w_publ_easyq`st_cust within w_rp_saletask_saler
  160. end type
  161. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_saletask_saler
  162. boolean visible = true
  163. integer x = 1353
  164. end type
  165. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_saletask_saler
  166. integer x = 1888
  167. integer y = 188
  168. end type
  169. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_saletask_saler
  170. integer x = 2505
  171. integer y = 188
  172. end type
  173. type pb_2 from w_publ_easyq`pb_2 within w_rp_saletask_saler
  174. integer x = 2615
  175. integer y = 188
  176. end type
  177. type cb_help from w_publ_easyq`cb_help within w_rp_saletask_saler
  178. end type
  179. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_saletask_saler
  180. end type
  181. type gb_1 from w_publ_easyq`gb_1 within w_rp_saletask_saler
  182. end type
  183. type ln_bar from w_publ_easyq`ln_bar within w_rp_saletask_saler
  184. end type
  185. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_saletask_saler
  186. end type
  187. type r_bar from w_publ_easyq`r_bar within w_rp_saletask_saler
  188. end type
  189. type ln_1 from w_publ_easyq`ln_1 within w_rp_saletask_saler
  190. integer beginy = 280
  191. integer endy = 280
  192. end type
  193. type ln_2 from w_publ_easyq`ln_2 within w_rp_saletask_saler
  194. integer beginy = 284
  195. integer endy = 284
  196. end type
  197. type ln_3 from w_publ_easyq`ln_3 within w_rp_saletask_saler
  198. end type
  199. type ln_4 from w_publ_easyq`ln_4 within w_rp_saletask_saler
  200. end type
  201. type ddlb_2 from dropdownlistbox within w_rp_saletask_saler
  202. integer x = 1961
  203. integer y = 48
  204. integer width = 411
  205. integer height = 448
  206. integer taborder = 90
  207. boolean bringtotop = true
  208. integer textsize = -9
  209. integer weight = 400
  210. fontcharset fontcharset = gb2312charset!
  211. fontpitch fontpitch = variable!
  212. string facename = "宋体"
  213. long textcolor = 33554432
  214. string text = "明细表"
  215. boolean sorted = false
  216. boolean vscrollbar = true
  217. string item[] = {"明细表","汇总表"}
  218. borderstyle borderstyle = stylelowered!
  219. end type
  220. event selectionchanged;dw_1.uf_save_profile_layout()
  221. IF ddlb_2.Text = '明细表' THEN
  222. dw_1.DataObject = 'dw_rp_saletask_saler_mx'
  223. ELSE
  224. dw_1.DataObject = 'dw_rp_saletask_saler_hz'
  225. END IF
  226. wf_replacedw()
  227. cb_1.TriggerEvent(Clicked!)
  228. end event
  229. type st_2 from statictext within w_rp_saletask_saler
  230. integer x = 663
  231. integer y = 204
  232. integer width = 128
  233. integer height = 48
  234. boolean bringtotop = true
  235. integer textsize = -9
  236. integer weight = 400
  237. fontcharset fontcharset = gb2312charset!
  238. fontpitch fontpitch = variable!
  239. string facename = "宋体"
  240. long textcolor = 33554432
  241. long backcolor = 134217739
  242. string text = "状态"
  243. alignment alignment = right!
  244. boolean focusrectangle = false
  245. end type
  246. type ddlb_scid from uo_ddlb_scid within w_rp_saletask_saler
  247. integer x = 142
  248. integer y = 188
  249. integer width = 480
  250. integer height = 620
  251. integer taborder = 150
  252. boolean bringtotop = true
  253. end type
  254. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  255. end event
  256. event selectionchanged;call super::selectionchanged;
  257. cur_scid_arr = THIS.uo_scid_arr
  258. cb_1.triggerevent(clicked!)
  259. end event
  260. type st_5 from statictext within w_rp_saletask_saler
  261. integer x = 5
  262. integer y = 204
  263. integer width = 128
  264. integer height = 48
  265. boolean bringtotop = true
  266. integer textsize = -9
  267. integer weight = 400
  268. fontcharset fontcharset = gb2312charset!
  269. fontpitch fontpitch = variable!
  270. string facename = "宋体"
  271. long textcolor = 33554432
  272. long backcolor = 134217739
  273. string text = "分部"
  274. alignment alignment = right!
  275. boolean focusrectangle = false
  276. end type
  277. type ddlb_status from uo_ddlb_status within w_rp_saletask_saler
  278. integer x = 818
  279. integer y = 188
  280. integer width = 338
  281. integer taborder = 100
  282. boolean bringtotop = true
  283. string item[] = {"[全部]","待审核[0]","在进行[1]","已暂停[2]","已终止[3]","已完成[5]","手动完成[6]"}
  284. end type
  285. event selectionchanged;call super::selectionchanged;
  286. cb_1.triggerevent(clicked!)
  287. end event
  288. event uof_getvalue;call super::uof_getvalue;cur_status = this.uo_status
  289. end event