w_rp_order_wfjg.srw 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. $PBExportHeader$w_rp_order_wfjg.srw
  2. forward
  3. global type w_rp_order_wfjg from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_order_wfjg
  6. end type
  7. type ddlb_1 from uo_ddlb_storageid within w_rp_order_wfjg
  8. end type
  9. type ddlb_2 from dropdownlistbox within w_rp_order_wfjg
  10. end type
  11. type ddlb_scid from uo_ddlb_scid within w_rp_order_wfjg
  12. end type
  13. type st_5 from statictext within w_rp_order_wfjg
  14. end type
  15. end forward
  16. global type w_rp_order_wfjg from w_publ_easyq
  17. integer width = 3465
  18. integer height = 1904
  19. string title = "外协订单统计表"
  20. ddlb_flag ddlb_flag
  21. ddlb_1 ddlb_1
  22. ddlb_2 ddlb_2
  23. ddlb_scid ddlb_scid
  24. st_5 st_5
  25. end type
  26. global w_rp_order_wfjg w_rp_order_wfjg
  27. type variables
  28. Long cur_storageid_arr[]
  29. Long cur_flag = -1 //-1:全部,0仓库未审,1仓库已审核
  30. Long cur_secflag = -1 //-1:全部,0财务未审
  31. Int cur_status = -1
  32. long cur_scid_arr[]
  33. end variables
  34. on w_rp_order_wfjg.create
  35. int iCurrent
  36. call super::create
  37. this.ddlb_flag=create ddlb_flag
  38. this.ddlb_1=create ddlb_1
  39. this.ddlb_2=create ddlb_2
  40. this.ddlb_scid=create ddlb_scid
  41. this.st_5=create st_5
  42. iCurrent=UpperBound(this.Control)
  43. this.Control[iCurrent+1]=this.ddlb_flag
  44. this.Control[iCurrent+2]=this.ddlb_1
  45. this.Control[iCurrent+3]=this.ddlb_2
  46. this.Control[iCurrent+4]=this.ddlb_scid
  47. this.Control[iCurrent+5]=this.st_5
  48. end on
  49. on w_rp_order_wfjg.destroy
  50. call super::destroy
  51. destroy(this.ddlb_flag)
  52. destroy(this.ddlb_1)
  53. destroy(this.ddlb_2)
  54. destroy(this.ddlb_scid)
  55. destroy(this.st_5)
  56. end on
  57. event open;call super::open;EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
  58. EM_2.TEXT=STRING(TODAY(),'YYYY-MM-DD')
  59. //s_hide_col s_col
  60. //s_col.col_1 = 'u_outwaremx_costamt'
  61. //s_col.col_2 = 'gfamt'
  62. //f_hide_col(490,dw_1,s_col)
  63. IF cbx_loginretr.Checked THEN
  64. cb_1.TriggerEvent(Clicked!)
  65. END IF
  66. end event
  67. event ue_before_open;call super::ue_before_open;if_ue_retr=true
  68. if_ue_filter=true
  69. if_ue_sort=true
  70. if_ue_sentdataout=true
  71. end event
  72. type cb_func from w_publ_easyq`cb_func within w_rp_order_wfjg
  73. end type
  74. type cb_exit from w_publ_easyq`cb_exit within w_rp_order_wfjg
  75. end type
  76. type cb_2 from w_publ_easyq`cb_2 within w_rp_order_wfjg
  77. boolean bringtotop = true
  78. end type
  79. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_order_wfjg
  80. boolean bringtotop = true
  81. end type
  82. type cb_1 from w_publ_easyq`cb_1 within w_rp_order_wfjg
  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. IF first_date < sys_showsaledata_mindt THEN first_date = sys_showsaledata_mindt
  89. f_title_change(dw_1)
  90. dw_1.Retrieve(cur_scid_arr,cur_status,first_date,end_date,sys_user_spttype )
  91. s_hide_col s_col_mtrlsectype
  92. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  93. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  94. s_hide_col s_col_zxmtrlmode
  95. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  96. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  97. s_hide_col s_col
  98. IF dw_1.dataobject = 'dw_rp_order_wfjgmx_in' THEN
  99. s_col.col_1 = 'u_order_wfjgmx_price'
  100. f_hide_col(121,dw_1,s_col)
  101. ELSEIF dw_1.dataobject = 'dw_rp_order_wfjgmx_out' THEN
  102. s_col.col_1 = 'u_order_wfjgmx_out_price'
  103. f_hide_col(121,dw_1,s_col)
  104. END IF
  105. s_hide_col s_col2
  106. s_col2.col_1 = 'u_order_wfjgmx_price'
  107. s_col2.col_2 = 'amt'
  108. s_col2.col_3 = 'u_order_wfjgmx_out_price'
  109. f_hide_col(1448,dw_1,s_col2)
  110. end event
  111. type st_3 from w_publ_easyq`st_3 within w_rp_order_wfjg
  112. integer x = 1024
  113. integer y = 200
  114. end type
  115. type st_4 from w_publ_easyq`st_4 within w_rp_order_wfjg
  116. integer x = 1742
  117. end type
  118. type em_1 from w_publ_easyq`em_1 within w_rp_order_wfjg
  119. integer x = 1225
  120. integer taborder = 130
  121. end type
  122. type em_2 from w_publ_easyq`em_2 within w_rp_order_wfjg
  123. integer x = 1842
  124. integer taborder = 140
  125. end type
  126. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_order_wfjg
  127. integer x = 1522
  128. integer y = 4
  129. end type
  130. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_order_wfjg
  131. integer x = 1312
  132. integer y = 8
  133. end type
  134. type dw_1 from w_publ_easyq`dw_1 within w_rp_order_wfjg
  135. integer y = 308
  136. integer width = 2743
  137. integer height = 1392
  138. string dataobject = "dw_rp_order_wfjgmx_in"
  139. end type
  140. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  141. String ls_code
  142. Long ll_scid
  143. ll_scid = THIS.Object.u_order_wfjg_scid[row]
  144. ls_code = THIS.Object.u_order_wfjg_taskcode[row]
  145. f_open_win(ll_scid,ls_code)
  146. END IF
  147. end event
  148. event dw_1::retrieveend;call super::retrieveend;uf_read_profile_layout()
  149. end event
  150. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_order_wfjg
  151. end type
  152. type sle_cust from w_publ_easyq`sle_cust within w_rp_order_wfjg
  153. end type
  154. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_order_wfjg
  155. end type
  156. type st_cust from w_publ_easyq`st_cust within w_rp_order_wfjg
  157. end type
  158. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_order_wfjg
  159. boolean visible = true
  160. integer x = 1312
  161. end type
  162. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_order_wfjg
  163. integer x = 1641
  164. integer y = 184
  165. end type
  166. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_order_wfjg
  167. integer x = 2254
  168. integer y = 184
  169. end type
  170. type pb_2 from w_publ_easyq`pb_2 within w_rp_order_wfjg
  171. integer x = 2363
  172. integer y = 184
  173. end type
  174. type cb_help from w_publ_easyq`cb_help within w_rp_order_wfjg
  175. end type
  176. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_order_wfjg
  177. end type
  178. type gb_1 from w_publ_easyq`gb_1 within w_rp_order_wfjg
  179. end type
  180. type ln_bar from w_publ_easyq`ln_bar within w_rp_order_wfjg
  181. end type
  182. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_order_wfjg
  183. end type
  184. type r_bar from w_publ_easyq`r_bar within w_rp_order_wfjg
  185. end type
  186. type ln_1 from w_publ_easyq`ln_1 within w_rp_order_wfjg
  187. end type
  188. type ln_2 from w_publ_easyq`ln_2 within w_rp_order_wfjg
  189. end type
  190. type ln_3 from w_publ_easyq`ln_3 within w_rp_order_wfjg
  191. end type
  192. type ln_4 from w_publ_easyq`ln_4 within w_rp_order_wfjg
  193. end type
  194. type ddlb_flag from dropdownlistbox within w_rp_order_wfjg
  195. integer x = 631
  196. integer y = 188
  197. integer width = 379
  198. integer height = 484
  199. integer taborder = 90
  200. boolean bringtotop = true
  201. integer textsize = -9
  202. integer weight = 400
  203. fontcharset fontcharset = gb2312charset!
  204. fontpitch fontpitch = variable!
  205. string facename = "宋体"
  206. long textcolor = 33554432
  207. string text = "[全部]"
  208. boolean sorted = false
  209. boolean vscrollbar = true
  210. string item[] = {"待审核","在进行","已暂停","已终止","自动完成","手动完成","[全部]"}
  211. borderstyle borderstyle = stylelowered!
  212. end type
  213. event selectionchanged;choose case index
  214. case 1 //待采购审批
  215. cur_status=0
  216. case 2 //在进行
  217. cur_status=1
  218. case 3 //'已暂停'
  219. cur_status=2
  220. case 4 //'已终止'
  221. cur_status=3
  222. case 5 //'自动完成'
  223. cur_status=5
  224. case 6 //'手动完成'
  225. cur_status=6
  226. case else
  227. cur_status= -1
  228. end choose
  229. cb_1.triggerevent(clicked!)
  230. end event
  231. type ddlb_1 from uo_ddlb_storageid within w_rp_order_wfjg
  232. boolean visible = false
  233. integer x = 14
  234. integer y = 200
  235. integer width = 681
  236. integer height = 1108
  237. integer taborder = 140
  238. boolean bringtotop = true
  239. end type
  240. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  241. end event
  242. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  243. cb_1.triggerevent(clicked!)
  244. end event
  245. type ddlb_2 from dropdownlistbox within w_rp_order_wfjg
  246. integer x = 1902
  247. integer y = 44
  248. integer width = 549
  249. integer height = 300
  250. integer taborder = 140
  251. boolean bringtotop = true
  252. integer textsize = -9
  253. integer weight = 400
  254. fontcharset fontcharset = gb2312charset!
  255. fontpitch fontpitch = variable!
  256. string facename = "宋体"
  257. long textcolor = 33554432
  258. string text = "收货明细"
  259. string item[] = {"收货明细","发出明细"}
  260. borderstyle borderstyle = stylelowered!
  261. end type
  262. event selectionchanged;if this.text = '收货明细' then
  263. dw_1.dataobject = 'dw_rp_order_wfjgmx_in'
  264. else
  265. dw_1.dataobject = 'dw_rp_order_wfjgmx_out'
  266. end if
  267. dw_1.settransobject(sqlca)
  268. cb_1.triggerevent(clicked!)
  269. end event
  270. type ddlb_scid from uo_ddlb_scid within w_rp_order_wfjg
  271. integer x = 137
  272. integer y = 188
  273. integer width = 480
  274. integer height = 620
  275. integer taborder = 50
  276. boolean bringtotop = true
  277. end type
  278. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  279. end event
  280. event selectionchanged;call super::selectionchanged;
  281. cur_scid_arr = THIS.uo_scid_arr
  282. cb_1.triggerevent(clicked!)
  283. end event
  284. type st_5 from statictext within w_rp_order_wfjg
  285. integer y = 208
  286. integer width = 128
  287. integer height = 48
  288. boolean bringtotop = true
  289. integer textsize = -9
  290. integer weight = 400
  291. fontcharset fontcharset = gb2312charset!
  292. fontpitch fontpitch = variable!
  293. string facename = "宋体"
  294. long textcolor = 33554432
  295. long backcolor = 134217739
  296. string text = "分部"
  297. alignment alignment = right!
  298. boolean focusrectangle = false
  299. end type