w_rp_sale_saletask_jdgz.srw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. $PBExportHeader$w_rp_sale_saletask_jdgz.srw
  2. forward
  3. global type w_rp_sale_saletask_jdgz from w_publ_easyq
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_rp_sale_saletask_jdgz
  6. end type
  7. type ddlb_scid from uo_ddlb_scid within w_rp_sale_saletask_jdgz
  8. end type
  9. type ddlb_2 from dropdownlistbox within w_rp_sale_saletask_jdgz
  10. end type
  11. type ddlb_3 from dropdownlistbox within w_rp_sale_saletask_jdgz
  12. end type
  13. type ddlb_status from uo_ddlb_status within w_rp_sale_saletask_jdgz
  14. end type
  15. type ddlb_4 from dropdownlistbox within w_rp_sale_saletask_jdgz
  16. end type
  17. type tab_1 from tab within w_rp_sale_saletask_jdgz
  18. end type
  19. type tabpage_1 from userobject within tab_1
  20. end type
  21. type dw_buytask from u_dw_rbtnfilter within tabpage_1
  22. end type
  23. type tabpage_1 from userobject within tab_1
  24. dw_buytask dw_buytask
  25. end type
  26. type tabpage_2 from userobject within tab_1
  27. end type
  28. type dw_inware from u_dw_rbtnfilter within tabpage_2
  29. end type
  30. type tabpage_2 from userobject within tab_1
  31. dw_inware dw_inware
  32. end type
  33. type tabpage_3 from userobject within tab_1
  34. end type
  35. type dw_outware_sale from u_dw_rbtnfilter within tabpage_3
  36. end type
  37. type tabpage_3 from userobject within tab_1
  38. dw_outware_sale dw_outware_sale
  39. end type
  40. type tab_1 from tab within w_rp_sale_saletask_jdgz
  41. tabpage_1 tabpage_1
  42. tabpage_2 tabpage_2
  43. tabpage_3 tabpage_3
  44. end type
  45. end forward
  46. global type w_rp_sale_saletask_jdgz from w_publ_easyq
  47. string title = "销售订单进度跟踪表"
  48. event ue_retrieve_mx ( )
  49. ddlb_1 ddlb_1
  50. ddlb_scid ddlb_scid
  51. ddlb_2 ddlb_2
  52. ddlb_3 ddlb_3
  53. ddlb_status ddlb_status
  54. ddlb_4 ddlb_4
  55. tab_1 tab_1
  56. end type
  57. global w_rp_sale_saletask_jdgz w_rp_sale_saletask_jdgz
  58. type variables
  59. int cur_status = 0 //当前查询订单状态// -1 所有
  60. int cur_stattype = 0
  61. long cur_scid_arr[]
  62. int cur_kind = -1
  63. int cur_fhflag = -1
  64. string ls_areaname=''
  65. end variables
  66. forward prototypes
  67. public subroutine wf_hidecol ()
  68. public subroutine wf_init_dw1 ()
  69. end prototypes
  70. event ue_retrieve_mx();Long ll_row
  71. long ll_scid, ll_taskid, ll_printid
  72. ll_row = dw_1.GetRow()
  73. tab_1.tabpage_1.dw_buytask.setredraw(false)
  74. tab_1.tabpage_2.dw_inware.setredraw(false)
  75. tab_1.tabpage_3.dw_outware_sale.setredraw(false)
  76. tab_1.tabpage_1.dw_buytask.setfilter('')
  77. tab_1.tabpage_1.dw_buytask.filter()
  78. tab_1.tabpage_2.dw_inware.setfilter('')
  79. tab_1.tabpage_2.dw_inware.filter()
  80. tab_1.tabpage_3.dw_outware_sale.setfilter('')
  81. tab_1.tabpage_3.dw_outware_sale.filter()
  82. IF ll_row <= 0 THEN
  83. tab_1.tabpage_1.dw_buytask.Reset()
  84. tab_1.tabpage_2.dw_inware.Reset()
  85. tab_1.tabpage_3.dw_outware_sale.Reset()
  86. ELSE
  87. ll_scid = dw_1.Object.u_saletask_scid[ll_row]
  88. ll_taskid = dw_1.Object.u_saletask_taskid[ll_row]
  89. ll_printid = dw_1.Object.u_saletaskmx_printid[ll_row]
  90. tab_1.tabpage_1.dw_buytask.Retrieve(ll_scid,ll_taskid,ll_printid)
  91. tab_1.tabpage_2.dw_inware.Retrieve(ll_scid,ll_taskid,ll_printid)
  92. tab_1.tabpage_3.dw_outware_sale.Retrieve(ll_scid,ll_taskid,ll_printid)
  93. END IF
  94. tab_1.tabpage_1.dw_buytask.setredraw(true)
  95. tab_1.tabpage_2.dw_inware.setredraw(true)
  96. tab_1.tabpage_3.dw_outware_sale.setredraw(true)
  97. end event
  98. public subroutine wf_hidecol ();s_hide_col s_col, s_null
  99. IF dw_1.DataObject = 'dw_rp_sale_saletask' THEN
  100. s_col.col_1 = 'fprice'
  101. s_col.col_2 = 'amt'
  102. s_col.col_3 = 'not_consignedqtyamt'
  103. s_col.col_4 = 'u_saletaskmx_enprice'
  104. s_col.col_5 = 'enamt'
  105. s_col.col_6 = 'u_saletaskmx_dftsaleprice'
  106. s_col.col_8 = 'rebate'
  107. s_col.col_9 = 'u_saletaskmx_acprice'
  108. s_col.col_10 = 'ware_amt'
  109. s_col.col_11 = 'u_saletaskmx_ware_fprice'
  110. s_col.col_12 = 'u_saletask_damt'
  111. f_hide_col(122,dw_1,s_col)
  112. s_col = s_null
  113. s_col.col_1 = 'consignedenamt'
  114. s_col.col_2 = 'unconsignedenamt'
  115. s_col.col_3 = 'u_saletask_msttakeamt'
  116. s_col.col_4 = 'u_saletask_takedamt'
  117. s_col.col_5 = 'u_saletask_takeamt'
  118. s_col.col_6 = 'nottakeamt'
  119. f_hide_col(122,dw_1,s_col)
  120. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz' THEN
  121. s_col.col_1 = 'amt'
  122. s_col.col_2 = 'consignedqtyamt'
  123. s_col.col_3 = 'not_consignedqtyamt'
  124. s_col.col_4 = 'stopamt'
  125. f_hide_col(122,dw_1,s_col)
  126. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_cust' THEN
  127. s_col.col_1 = 'amt'
  128. s_col.col_2 = 'consignedenamt'
  129. s_col.col_3 = 'unconsignedenamt'
  130. f_hide_col(122,dw_1,s_col)
  131. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_assignemp' THEN
  132. s_col.col_1 = 'amt'
  133. s_col.col_2 = 'consignedqty'
  134. s_col.col_3 = 'not_consignedqty'
  135. f_hide_col(122,dw_1,s_col)
  136. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_mtrlsectype' THEN
  137. s_col.col_1 = 'amt'
  138. s_col.col_2 = 'consignedqtyamt'
  139. s_col.col_3 = 'not_consignedqtyamt'
  140. s_col.col_4 = 'stopamt'
  141. f_hide_col(122,dw_1,s_col)
  142. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_zxmtrlmode' THEN
  143. s_col.col_1 = 'amt'
  144. s_col.col_2 = 'not_consignedqtyamt'
  145. s_col.col_3 = 'consignedqtyamt'
  146. s_col.col_4 = 'stopamt'
  147. f_hide_col(122,dw_1,s_col)
  148. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_bill' THEN
  149. s_col.col_1 = 'amt'
  150. s_col.col_2 = 'not_consignedqtyamt'
  151. s_col.col_3 = 'consignedqtyamt'
  152. s_col.col_4 = 'stopamt'
  153. f_hide_col(122,dw_1,s_col)
  154. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_1' THEN
  155. s_col.col_1 = 'amt'
  156. f_hide_col(122,dw_1,s_col)
  157. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_mx' THEN
  158. s_col.col_1 = 'fprice'
  159. s_col.col_2 = 'amt'
  160. s_col.col_3 = 'not_consignedqtyamt'
  161. s_col.col_4 = 'u_saletaskmx_enprice'
  162. s_col.col_5 = 'enamt'
  163. s_col.col_6 = 'u_saletaskmx_dftsaleprice'
  164. s_col.col_8 = 'rebate'
  165. s_col.col_9 = 'u_saletaskmx_acprice'
  166. s_col.col_10 = 'ware_amt'
  167. s_col.col_11 = 'u_saletaskmx_ware_fprice'
  168. f_hide_col(122,dw_1,s_col)
  169. ELSEIF dw_1.DataObject = 'dw_rp_sale_saletask_hz_amt' THEN
  170. s_col.col_1 = 'consignedenamt'
  171. s_col.col_2 = 'unconsignedenamt'
  172. s_col.col_3 = 'u_saletask_msttakeamt'
  173. s_col.col_4 = 'u_saletask_takedamt'
  174. s_col.col_5 = 'u_saletask_takeamt'
  175. s_col.col_6 = 'nottakeamt'
  176. s_col.col_7 = 'u_saletask_damt'
  177. s_col.col_8 = 'amt'
  178. s_col.col_9 = 'enamt'
  179. s_col.col_10 = 'not_consignedqtyamt'
  180. s_col.col_11 = 'ware_amt'
  181. f_hide_col(122,dw_1,s_col)
  182. END IF
  183. s_hide_col s_col_mtrlsectype
  184. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  185. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  186. s_hide_col s_col_zxmtrlmode
  187. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  188. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  189. end subroutine
  190. public subroutine wf_init_dw1 ();//IF sys_version = 802001 THEN //商业版
  191. // dw_1.DataObject = 'dw_rp_sale_saletask_b'
  192. //ELSE //工业版
  193. // dw_1.DataObject = 'dw_rp_sale_saletask'
  194. //END IF
  195. end subroutine
  196. on w_rp_sale_saletask_jdgz.create
  197. int iCurrent
  198. call super::create
  199. this.ddlb_1=create ddlb_1
  200. this.ddlb_scid=create ddlb_scid
  201. this.ddlb_2=create ddlb_2
  202. this.ddlb_3=create ddlb_3
  203. this.ddlb_status=create ddlb_status
  204. this.ddlb_4=create ddlb_4
  205. this.tab_1=create tab_1
  206. iCurrent=UpperBound(this.Control)
  207. this.Control[iCurrent+1]=this.ddlb_1
  208. this.Control[iCurrent+2]=this.ddlb_scid
  209. this.Control[iCurrent+3]=this.ddlb_2
  210. this.Control[iCurrent+4]=this.ddlb_3
  211. this.Control[iCurrent+5]=this.ddlb_status
  212. this.Control[iCurrent+6]=this.ddlb_4
  213. this.Control[iCurrent+7]=this.tab_1
  214. end on
  215. on w_rp_sale_saletask_jdgz.destroy
  216. call super::destroy
  217. destroy(this.ddlb_1)
  218. destroy(this.ddlb_scid)
  219. destroy(this.ddlb_2)
  220. destroy(this.ddlb_3)
  221. destroy(this.ddlb_status)
  222. destroy(this.ddlb_4)
  223. destroy(this.tab_1)
  224. end on
  225. event close;call super::close;f_SetProfileString (sys_empid, this.classname(), "status", string(cur_status))
  226. f_SetProfileString (sys_empid, this.classname(), "kind", string(cur_kind))
  227. f_SetProfileString (sys_empid, this.classname(), "fhflag", string(cur_fhflag))
  228. end event
  229. event resize;ln_bar.EndX = This.Width
  230. ln_bar2.EndX = This.Width
  231. ln_1.EndX = This.Width
  232. ln_2.EndX = This.Width
  233. ln_3.EndX = This.Width
  234. ln_4.EndX = This.Width
  235. r_bar.Width = This.Width
  236. dw_1.Width = This.Width - dw_1.X - 40
  237. dw_1.Height = This.Height - dw_1.Y - tab_1.Height - 150
  238. tab_1.X = dw_1.X
  239. tab_1.Y = dw_1.Y + dw_1.Height + 5
  240. tab_1.Width = dw_1.Width
  241. tab_1.tabpage_1.dw_buytask.Width = tab_1.tabpage_1.Width - 40
  242. tab_1.tabpage_1.dw_buytask.Height = tab_1.tabpage_1.Height - tab_1.tabpage_1.dw_buytask.Y
  243. tab_1.tabpage_2.dw_inware.Width = tab_1.tabpage_2.Width - 40
  244. tab_1.tabpage_2.dw_inware.Height = tab_1.tabpage_2.Height - tab_1.tabpage_2.dw_inware.Y
  245. tab_1.tabpage_3.dw_outware_sale.Width = tab_1.tabpage_3.Width - 40
  246. tab_1.tabpage_3.dw_outware_sale.Height = tab_1.tabpage_3.Height - tab_1.tabpage_3.dw_outware_sale.Y
  247. end event
  248. event ue_before_open;call super::ue_before_open;tab_1.tabpage_1.dw_buytask.settransobject(sqlca)
  249. tab_1.tabpage_2.dw_inware.settransobject(sqlca)
  250. tab_1.tabpage_3.dw_outware_sale.settransobject(sqlca)
  251. end event
  252. type cb_func from w_publ_easyq`cb_func within w_rp_sale_saletask_jdgz
  253. end type
  254. type cb_exit from w_publ_easyq`cb_exit within w_rp_sale_saletask_jdgz
  255. end type
  256. type cb_2 from w_publ_easyq`cb_2 within w_rp_sale_saletask_jdgz
  257. boolean bringtotop = true
  258. end type
  259. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sale_saletask_jdgz
  260. boolean bringtotop = true
  261. end type
  262. type cb_1 from w_publ_easyq`cb_1 within w_rp_sale_saletask_jdgz
  263. boolean bringtotop = true
  264. end type
  265. event cb_1::clicked;call super::clicked;datetime firstdate,enddate
  266. firstdate = DATEtime(date(EM_1.TEXT),time(0))
  267. enddate = datetime(date(EM_2.TEXT),time('23:59:59'))
  268. Int li_option_outrep
  269. IF sys_power_issuper THEN
  270. li_option_outrep = 0
  271. ELSE
  272. li_option_outrep = sys_option_outrep
  273. END IF
  274. dw_1.Retrieve(cur_scid_arr, cur_status,cur_stattype,firstdate,enddate,sys_areaid,cur_kind, sys_user_outrep, li_option_outrep,cur_fhflag)
  275. end event
  276. type st_3 from w_publ_easyq`st_3 within w_rp_sale_saletask_jdgz
  277. integer x = 965
  278. integer width = 101
  279. string text = "从:"
  280. alignment alignment = left!
  281. end type
  282. type st_4 from w_publ_easyq`st_4 within w_rp_sale_saletask_jdgz
  283. integer x = 1554
  284. end type
  285. type em_1 from w_publ_easyq`em_1 within w_rp_sale_saletask_jdgz
  286. integer x = 1051
  287. end type
  288. type em_2 from w_publ_easyq`em_2 within w_rp_sale_saletask_jdgz
  289. integer x = 1655
  290. end type
  291. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_sale_saletask_jdgz
  292. integer x = 1632
  293. integer y = 8
  294. end type
  295. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sale_saletask_jdgz
  296. integer x = 1417
  297. integer y = 12
  298. end type
  299. type dw_1 from w_publ_easyq`dw_1 within w_rp_sale_saletask_jdgz
  300. integer y = 304
  301. integer width = 2967
  302. integer height = 1436
  303. string dataobject = "dw_rp_sale_saletask_jdgz"
  304. end type
  305. event dw_1::doubleclicked;call super::doubleclicked;IF dw_1.DataObject = 'dw_rp_sale_saletask_jdgz' THEN
  306. IF row > 0 THEN
  307. String ls_code
  308. Long ll_scid
  309. ll_scid = THIS.Object.u_saletask_scid[row]
  310. ls_code = THIS.Object.u_saletask_taskcode[row]
  311. f_open_win(ll_scid,ls_code)
  312. END IF
  313. END IF
  314. end event
  315. event dw_1::rowfocuschanged;call super::rowfocuschanged;
  316. PARENT.TriggerEvent('ue_retrieve_mx')
  317. end event
  318. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sale_saletask_jdgz
  319. end type
  320. type sle_cust from w_publ_easyq`sle_cust within w_rp_sale_saletask_jdgz
  321. end type
  322. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sale_saletask_jdgz
  323. end type
  324. type st_cust from w_publ_easyq`st_cust within w_rp_sale_saletask_jdgz
  325. end type
  326. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sale_saletask_jdgz
  327. boolean visible = true
  328. integer x = 1417
  329. end type
  330. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sale_saletask_jdgz
  331. integer x = 1463
  332. end type
  333. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sale_saletask_jdgz
  334. integer x = 2075
  335. end type
  336. type pb_2 from w_publ_easyq`pb_2 within w_rp_sale_saletask_jdgz
  337. integer x = 2185
  338. end type
  339. type cb_help from w_publ_easyq`cb_help within w_rp_sale_saletask_jdgz
  340. end type
  341. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sale_saletask_jdgz
  342. end type
  343. type gb_1 from w_publ_easyq`gb_1 within w_rp_sale_saletask_jdgz
  344. end type
  345. type ln_bar from w_publ_easyq`ln_bar within w_rp_sale_saletask_jdgz
  346. end type
  347. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sale_saletask_jdgz
  348. end type
  349. type r_bar from w_publ_easyq`r_bar within w_rp_sale_saletask_jdgz
  350. end type
  351. type ln_1 from w_publ_easyq`ln_1 within w_rp_sale_saletask_jdgz
  352. integer beginy = 288
  353. integer endy = 288
  354. end type
  355. type ln_2 from w_publ_easyq`ln_2 within w_rp_sale_saletask_jdgz
  356. end type
  357. type ln_3 from w_publ_easyq`ln_3 within w_rp_sale_saletask_jdgz
  358. end type
  359. type ln_4 from w_publ_easyq`ln_4 within w_rp_sale_saletask_jdgz
  360. end type
  361. type ddlb_1 from dropdownlistbox within w_rp_sale_saletask_jdgz
  362. integer x = 571
  363. integer y = 192
  364. integer width = 379
  365. integer height = 300
  366. integer taborder = 110
  367. boolean bringtotop = true
  368. integer textsize = -9
  369. integer weight = 400
  370. fontcharset fontcharset = gb2312charset!
  371. fontpitch fontpitch = variable!
  372. string facename = "宋体"
  373. long textcolor = 33554432
  374. string text = "按订货日期"
  375. boolean sorted = false
  376. string item[] = {"按订货日期","按交货日期"}
  377. borderstyle borderstyle = stylelowered!
  378. end type
  379. event selectionchanged;if this.text = '按订货日期' then
  380. cur_stattype = 0
  381. else
  382. cur_stattype = 1
  383. end if
  384. end event
  385. type ddlb_scid from uo_ddlb_scid within w_rp_sale_saletask_jdgz
  386. integer y = 192
  387. integer width = 549
  388. integer height = 620
  389. integer taborder = 90
  390. boolean bringtotop = true
  391. end type
  392. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  393. end event
  394. event selectionchanged;call super::selectionchanged;
  395. cur_scid_arr = THIS.uo_scid_arr
  396. cb_1.triggerevent(clicked!)
  397. end event
  398. type ddlb_2 from dropdownlistbox within w_rp_sale_saletask_jdgz
  399. boolean visible = false
  400. integer x = 2034
  401. integer y = 36
  402. integer width = 645
  403. integer height = 800
  404. integer taborder = 70
  405. boolean bringtotop = true
  406. integer textsize = -9
  407. integer weight = 400
  408. fontcharset fontcharset = gb2312charset!
  409. fontpitch fontpitch = variable!
  410. string facename = "宋体"
  411. long textcolor = 33554432
  412. string text = "明细表"
  413. boolean sorted = false
  414. string item[] = {"明细表","明细表[不合并]","汇总表[产品]","汇总表[客户-产品]","汇总表[产品-配置]","汇总表[金额]"}
  415. borderstyle borderstyle = stylelowered!
  416. end type
  417. event selectionchanged;dw_1.uf_save_profile_layout()
  418. IF ddlb_2.Text = '明细表' THEN
  419. dw_1.DataObject = 'dw_rp_sale_saletask'
  420. ELSEIF ddlb_2.Text = '明细表[不合并]' THEN
  421. dw_1.DataObject = 'dw_rp_sale_saletask_mx'
  422. ELSEIF ddlb_2.Text = '汇总表[产品]' THEN
  423. dw_1.DataObject = 'dw_rp_sale_saletask_hz'
  424. ELSEIF ddlb_2.Text = '汇总表[客户-产品]' THEN
  425. dw_1.DataObject = 'dw_rp_sale_saletask_hz_cust'
  426. ELSEIF ddlb_2.Text = '汇总表[产品-配置]' THEN
  427. dw_1.DataObject = 'dw_rp_sale_saletask_hz_1'
  428. ELSEIF ddlb_2.Text = '来料加工进度表' THEN
  429. dw_1.DataObject = 'dw_rp_sale_saletask_lljg'
  430. ELSEIF ddlb_2.Text = '汇总表[金额]' THEN
  431. dw_1.DataObject = 'dw_rp_sale_saletask_hz_amt'
  432. END IF
  433. wf_replacedw()
  434. cb_1.TriggerEvent(Clicked!)
  435. end event
  436. type ddlb_3 from dropdownlistbox within w_rp_sale_saletask_jdgz
  437. integer x = 2665
  438. integer y = 192
  439. integer width = 411
  440. integer height = 856
  441. integer taborder = 110
  442. boolean bringtotop = true
  443. integer textsize = -9
  444. integer weight = 400
  445. fontcharset fontcharset = gb2312charset!
  446. fontpitch fontpitch = variable!
  447. string facename = "宋体"
  448. long textcolor = 33554432
  449. string text = "[全部]"
  450. boolean sorted = false
  451. boolean vscrollbar = true
  452. string item[] = {"[全部]","备货生产[0]","销售订单[1]"}
  453. borderstyle borderstyle = stylelowered!
  454. end type
  455. event constructor;cur_kind=long(f_ProfileString (sys_empid, parent.classname(), "kind", "-1"))
  456. choose case cur_kind
  457. case -1
  458. this.text="[全部]"
  459. case 0
  460. this.text="备货生产[0]"
  461. case 1
  462. this.text="销售订单[1]"
  463. case else
  464. this.text="[全部]"
  465. end choose
  466. end event
  467. event selectionchanged;choose case index
  468. case 1
  469. cur_kind = -1
  470. case 2 //备货生成
  471. cur_kind=0
  472. case 3 //销售订单
  473. cur_kind=1
  474. case else
  475. cur_kind= -1
  476. end choose
  477. cb_1.triggerevent(clicked!)
  478. end event
  479. type ddlb_status from uo_ddlb_status within w_rp_sale_saletask_jdgz
  480. integer x = 2304
  481. integer y = 192
  482. integer width = 338
  483. integer taborder = 120
  484. boolean bringtotop = true
  485. string item[] = {"[全部]","待审核[0]","在进行[1]","已暂停[2]","已终止[3]","已完成[5]","手动完成[6]"}
  486. end type
  487. event selectionchanged;call super::selectionchanged;cb_1.TriggerEvent(Clicked!)
  488. end event
  489. event uof_getvalue;call super::uof_getvalue;cur_status = this.uo_status
  490. end event
  491. type ddlb_4 from dropdownlistbox within w_rp_sale_saletask_jdgz
  492. integer x = 3090
  493. integer y = 188
  494. integer width = 306
  495. integer height = 856
  496. integer taborder = 130
  497. boolean bringtotop = true
  498. integer textsize = -9
  499. integer weight = 400
  500. fontcharset fontcharset = gb2312charset!
  501. fontpitch fontpitch = variable!
  502. string facename = "宋体"
  503. long textcolor = 33554432
  504. string text = "[全部]"
  505. boolean sorted = false
  506. boolean vscrollbar = true
  507. string item[] = {"[全部]","已发货[0]","未发货[1]"}
  508. borderstyle borderstyle = stylelowered!
  509. end type
  510. event constructor;cur_fhflag=long(f_ProfileString (sys_empid, parent.classname(), "fhflag", "-1"))
  511. choose case cur_fhflag
  512. case -1
  513. this.text="[全部]"
  514. case 0
  515. this.text="已发货[0]"
  516. case 1
  517. this.text="未发货[1]"
  518. case else
  519. this.text="[全部]"
  520. end choose
  521. end event
  522. event selectionchanged;choose case index
  523. case 1
  524. cur_fhflag = -1
  525. case 2 //已发货
  526. cur_fhflag=0
  527. case 3 //未发货
  528. cur_fhflag=1
  529. case else
  530. cur_kind= -1
  531. end choose
  532. cb_1.triggerevent(clicked!)
  533. end event
  534. type tab_1 from tab within w_rp_sale_saletask_jdgz
  535. integer y = 1220
  536. integer width = 2240
  537. integer height = 900
  538. integer taborder = 90
  539. boolean bringtotop = true
  540. integer textsize = -9
  541. integer weight = 400
  542. fontcharset fontcharset = gb2312charset!
  543. fontpitch fontpitch = variable!
  544. string facename = "宋体"
  545. long backcolor = 134217739
  546. boolean raggedright = true
  547. boolean focusonbuttondown = true
  548. integer selectedtab = 1
  549. tabpage_1 tabpage_1
  550. tabpage_2 tabpage_2
  551. tabpage_3 tabpage_3
  552. end type
  553. on tab_1.create
  554. this.tabpage_1=create tabpage_1
  555. this.tabpage_2=create tabpage_2
  556. this.tabpage_3=create tabpage_3
  557. this.Control[]={this.tabpage_1,&
  558. this.tabpage_2,&
  559. this.tabpage_3}
  560. end on
  561. on tab_1.destroy
  562. destroy(this.tabpage_1)
  563. destroy(this.tabpage_2)
  564. destroy(this.tabpage_3)
  565. end on
  566. type tabpage_1 from userobject within tab_1
  567. integer x = 18
  568. integer y = 96
  569. integer width = 2203
  570. integer height = 788
  571. long backcolor = 134217739
  572. string text = "采购订单"
  573. long tabtextcolor = 33554432
  574. long tabbackcolor = 134217739
  575. long picturemaskcolor = 536870912
  576. dw_buytask dw_buytask
  577. end type
  578. on tabpage_1.create
  579. this.dw_buytask=create dw_buytask
  580. this.Control[]={this.dw_buytask}
  581. end on
  582. on tabpage_1.destroy
  583. destroy(this.dw_buytask)
  584. end on
  585. type dw_buytask from u_dw_rbtnfilter within tabpage_1
  586. integer height = 780
  587. integer taborder = 30
  588. string dataobject = "dw_rp_sale_saletask_jdgz_buytask"
  589. boolean hscrollbar = true
  590. boolean vscrollbar = true
  591. boolean hsplitscroll = true
  592. boolean rbutton_filter_use = true
  593. boolean rbutton_setposition_use = true
  594. boolean titleclick_sort_use = true
  595. end type
  596. event clicked;call super::clicked;IF row > 0 THEN
  597. This.SelectRow(row, False)
  598. This.SetRow(row)
  599. This.SelectRow(row,True)
  600. END IF
  601. end event
  602. event doubleclicked;call super::doubleclicked;IF row > 0 THEN
  603. String ls_code
  604. Long ll_scid
  605. ll_scid = This.Object.u_buytask_scid[row]
  606. ls_code = This.Object.u_buytask_taskcode[row]
  607. f_open_win(ll_scid,ls_code)
  608. END IF
  609. end event
  610. type tabpage_2 from userobject within tab_1
  611. integer x = 18
  612. integer y = 96
  613. integer width = 2203
  614. integer height = 788
  615. long backcolor = 134217739
  616. string text = "进仓单"
  617. long tabtextcolor = 33554432
  618. long tabbackcolor = 134217739
  619. long picturemaskcolor = 536870912
  620. dw_inware dw_inware
  621. end type
  622. on tabpage_2.create
  623. this.dw_inware=create dw_inware
  624. this.Control[]={this.dw_inware}
  625. end on
  626. on tabpage_2.destroy
  627. destroy(this.dw_inware)
  628. end on
  629. type dw_inware from u_dw_rbtnfilter within tabpage_2
  630. integer height = 780
  631. string dataobject = "dw_rp_sale_saletask_jdgz_inware"
  632. boolean hscrollbar = true
  633. boolean vscrollbar = true
  634. boolean hsplitscroll = true
  635. boolean rbutton_filter_use = true
  636. boolean rbutton_setposition_use = true
  637. boolean titleclick_sort_use = true
  638. end type
  639. event clicked;call super::clicked;IF row > 0 THEN
  640. This.SelectRow(row, False)
  641. This.SetRow(row)
  642. This.SelectRow(row,True)
  643. END IF
  644. end event
  645. event doubleclicked;call super::doubleclicked;IF row > 0 THEN
  646. String ls_code
  647. Long ll_scid
  648. ll_scid = This.Object.u_inware_scid[row]
  649. ls_code = This.Object.u_inware_inwarecode[row]
  650. f_open_win(ll_scid,ls_code)
  651. END IF
  652. end event
  653. type tabpage_3 from userobject within tab_1
  654. integer x = 18
  655. integer y = 96
  656. integer width = 2203
  657. integer height = 788
  658. long backcolor = 134217739
  659. string text = "发货单"
  660. long tabtextcolor = 33554432
  661. long tabbackcolor = 134217739
  662. long picturemaskcolor = 536870912
  663. dw_outware_sale dw_outware_sale
  664. end type
  665. on tabpage_3.create
  666. this.dw_outware_sale=create dw_outware_sale
  667. this.Control[]={this.dw_outware_sale}
  668. end on
  669. on tabpage_3.destroy
  670. destroy(this.dw_outware_sale)
  671. end on
  672. type dw_outware_sale from u_dw_rbtnfilter within tabpage_3
  673. integer height = 780
  674. string dataobject = "dw_rp_sale_saletask_jdgz_outware_sale"
  675. boolean hscrollbar = true
  676. boolean vscrollbar = true
  677. boolean hsplitscroll = true
  678. boolean rbutton_filter_use = true
  679. boolean rbutton_setposition_use = true
  680. boolean titleclick_sort_use = true
  681. end type
  682. event clicked;call super::clicked;IF row > 0 THEN
  683. This.SelectRow(row, False)
  684. This.SetRow(row)
  685. This.SelectRow(row,True)
  686. END IF
  687. end event
  688. event doubleclicked;call super::doubleclicked;IF row > 0 THEN
  689. String ls_code
  690. Long ll_scid
  691. ll_scid = This.Object.u_outware_scid[row]
  692. ls_code = This.Object.code[row]
  693. f_open_win(ll_scid,ls_code)
  694. END IF
  695. end event