w_rp_owwfjg_out.srw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. $PBExportHeader$w_rp_owwfjg_out.srw
  2. forward
  3. global type w_rp_owwfjg_out from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_owwfjg_out
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_rp_owwfjg_out
  8. end type
  9. type ddlb_scid from uo_ddlb_scid within w_rp_owwfjg_out
  10. end type
  11. type st_5 from statictext within w_rp_owwfjg_out
  12. end type
  13. type cb_other from uo_imflatbutton within w_rp_owwfjg_out
  14. end type
  15. type ddlb_status from dropdownlistbox within w_rp_owwfjg_out
  16. end type
  17. end forward
  18. global type w_rp_owwfjg_out from w_publ_easyq
  19. string title = "外协出仓统计表"
  20. event ue_retrieve_info ( )
  21. ddlb_2 ddlb_2
  22. ddlb_1 ddlb_1
  23. ddlb_scid ddlb_scid
  24. st_5 st_5
  25. cb_other cb_other
  26. ddlb_status ddlb_status
  27. end type
  28. global w_rp_owwfjg_out w_rp_owwfjg_out
  29. type variables
  30. Long cur_storageid_arr[]
  31. long cur_scid_arr[]
  32. long cur_flag = -1
  33. end variables
  34. forward prototypes
  35. public function integer wf_hide_col ()
  36. end prototypes
  37. event ue_retrieve_info();Long ll_row
  38. Long ll_mtrlid
  39. ll_row = dw_1.GetRow()
  40. IF ll_row <= 0 THEN
  41. ll_mtrlid = 0
  42. ELSE
  43. ll_mtrlid = dw_1.Object.mtrlid[ll_row]
  44. END IF
  45. IF IsValid(w_mtrl_info) THEN
  46. w_mtrl_info.WindowState = Normal!
  47. w_mtrl_info.ins_mtrlid = ll_mtrlid
  48. w_mtrl_info.wf_retrieve(ll_mtrlid)
  49. END IF
  50. end event
  51. public function integer wf_hide_col ();s_hide_col s_col
  52. if dw_1.dataobject = 'dw_rp_owwfjg_out' or dw_1.dataobject = 'dw_rp_owwfjg_out_ws' then
  53. s_col.col_1 = 'ow_wfjgmx_out_price'
  54. s_col.col_2 = 'amt_1'
  55. s_col.col_3 = 'fprice'
  56. else
  57. s_col.col_1 = 'amt'
  58. s_col.col_2 = 'price'
  59. s_col.col_3 = 'planamt'
  60. s_col.col_4 = 'u_mtrldef_planprice'
  61. end if
  62. //f_hide_col(121,dw_1,s_col)
  63. f_hide_col(1448,dw_1,s_col)
  64. s_hide_col s_col_mtrlsectype
  65. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  66. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  67. s_hide_col s_col_zxmtrlmode
  68. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  69. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  70. return 1
  71. end function
  72. on w_rp_owwfjg_out.create
  73. int iCurrent
  74. call super::create
  75. this.ddlb_2=create ddlb_2
  76. this.ddlb_1=create ddlb_1
  77. this.ddlb_scid=create ddlb_scid
  78. this.st_5=create st_5
  79. this.cb_other=create cb_other
  80. this.ddlb_status=create ddlb_status
  81. iCurrent=UpperBound(this.Control)
  82. this.Control[iCurrent+1]=this.ddlb_2
  83. this.Control[iCurrent+2]=this.ddlb_1
  84. this.Control[iCurrent+3]=this.ddlb_scid
  85. this.Control[iCurrent+4]=this.st_5
  86. this.Control[iCurrent+5]=this.cb_other
  87. this.Control[iCurrent+6]=this.ddlb_status
  88. end on
  89. on w_rp_owwfjg_out.destroy
  90. call super::destroy
  91. destroy(this.ddlb_2)
  92. destroy(this.ddlb_1)
  93. destroy(this.ddlb_scid)
  94. destroy(this.st_5)
  95. destroy(this.cb_other)
  96. destroy(this.ddlb_status)
  97. end on
  98. event open;call super::open;IF cbx_loginretr.Checked THEN
  99. cb_1.TriggerEvent(Clicked!)
  100. END IF
  101. end event
  102. event ue_before_open;call super::ue_before_open;if_ue_retr=true
  103. if_ue_filter=true
  104. if_ue_sort=true
  105. if_ue_sentdataout=true
  106. end event
  107. type cb_func from w_publ_easyq`cb_func within w_rp_owwfjg_out
  108. end type
  109. type cb_exit from w_publ_easyq`cb_exit within w_rp_owwfjg_out
  110. integer x = 1477
  111. end type
  112. type cb_2 from w_publ_easyq`cb_2 within w_rp_owwfjg_out
  113. integer x = 1175
  114. integer taborder = 100
  115. boolean bringtotop = true
  116. end type
  117. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_owwfjg_out
  118. integer x = 919
  119. boolean bringtotop = true
  120. end type
  121. type cb_1 from w_publ_easyq`cb_1 within w_rp_owwfjg_out
  122. boolean bringtotop = true
  123. end type
  124. event cb_1::clicked;
  125. DateTime first_date,end_date
  126. first_date = DateTime(Date(em_1.Text),Time(0))
  127. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  128. dw_1.uf_read_profile_layout()
  129. wf_hide_col()
  130. f_title_change(dw_1)
  131. dw_1.Retrieve(cur_scid_arr,first_date,end_date,cur_flag,cur_storageid_arr,sys_user_spttype )
  132. end event
  133. type st_3 from w_publ_easyq`st_3 within w_rp_owwfjg_out
  134. integer x = 1413
  135. end type
  136. type st_4 from w_publ_easyq`st_4 within w_rp_owwfjg_out
  137. integer x = 2121
  138. end type
  139. type em_1 from w_publ_easyq`em_1 within w_rp_owwfjg_out
  140. integer x = 1614
  141. integer width = 393
  142. integer taborder = 110
  143. end type
  144. type em_2 from w_publ_easyq`em_2 within w_rp_owwfjg_out
  145. integer x = 2226
  146. integer width = 393
  147. integer taborder = 120
  148. end type
  149. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_owwfjg_out
  150. integer x = 1897
  151. integer y = 8
  152. end type
  153. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_owwfjg_out
  154. integer x = 1678
  155. integer y = 8
  156. end type
  157. type dw_1 from w_publ_easyq`dw_1 within w_rp_owwfjg_out
  158. integer y = 308
  159. integer width = 2994
  160. integer height = 940
  161. string dataobject = "dw_rp_owwfjg_out"
  162. end type
  163. event dw_1::doubleclicked;call super::doubleclicked;String ls_code
  164. Long ll_scid
  165. Long thflag
  166. IF dw_1.DataObject = 'dw_rp_owwfjg_out' THEN
  167. IF row > 0 THEN
  168. ll_scid = THIS.Object.ow_wfjg_out_scid[row]
  169. ls_code = THIS.Object.ow_wfjg_out_outwarecode[row]
  170. f_open_win(ll_scid,ls_code)
  171. END IF
  172. ELSEIF dw_1.DataObject = 'dw_rp_owwfjg_out_ws' THEN
  173. IF row > 0 THEN
  174. ll_scid = THIS.Object.ow_wfjg_out_scid[row]
  175. ls_code = THIS.Object.ow_wfjg_out_outwarecode[row]
  176. f_open_win(ll_scid,ls_code)
  177. END IF
  178. END IF
  179. end event
  180. event dw_1::rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN
  181. this.selectrow(0,false)
  182. this.selectrow(currentrow,true)
  183. PARENT.TriggerEvent('ue_retrieve_info')
  184. end event
  185. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_owwfjg_out
  186. end type
  187. type sle_cust from w_publ_easyq`sle_cust within w_rp_owwfjg_out
  188. end type
  189. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_owwfjg_out
  190. end type
  191. type st_cust from w_publ_easyq`st_cust within w_rp_owwfjg_out
  192. end type
  193. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_owwfjg_out
  194. boolean visible = true
  195. integer x = 1678
  196. end type
  197. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_owwfjg_out
  198. integer x = 2016
  199. integer y = 188
  200. end type
  201. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_owwfjg_out
  202. integer x = 2624
  203. integer y = 188
  204. end type
  205. type pb_2 from w_publ_easyq`pb_2 within w_rp_owwfjg_out
  206. integer x = 2738
  207. integer y = 188
  208. end type
  209. type cb_help from w_publ_easyq`cb_help within w_rp_owwfjg_out
  210. integer x = 1326
  211. end type
  212. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_owwfjg_out
  213. end type
  214. type gb_1 from w_publ_easyq`gb_1 within w_rp_owwfjg_out
  215. end type
  216. type ln_bar from w_publ_easyq`ln_bar within w_rp_owwfjg_out
  217. end type
  218. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_owwfjg_out
  219. end type
  220. type r_bar from w_publ_easyq`r_bar within w_rp_owwfjg_out
  221. integer x = 1851
  222. integer y = -4
  223. end type
  224. type ln_1 from w_publ_easyq`ln_1 within w_rp_owwfjg_out
  225. end type
  226. type ln_2 from w_publ_easyq`ln_2 within w_rp_owwfjg_out
  227. end type
  228. type ln_3 from w_publ_easyq`ln_3 within w_rp_owwfjg_out
  229. end type
  230. type ln_4 from w_publ_easyq`ln_4 within w_rp_owwfjg_out
  231. end type
  232. type ddlb_2 from uo_ddlb_storageid within w_rp_owwfjg_out
  233. integer x = 567
  234. integer y = 204
  235. integer width = 498
  236. integer height = 1108
  237. integer taborder = 40
  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_1 from dropdownlistbox within w_rp_owwfjg_out
  246. integer x = 2281
  247. integer y = 44
  248. integer width = 571
  249. integer height = 448
  250. integer taborder = 70
  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. boolean sorted = false
  260. boolean vscrollbar = true
  261. string item[] = {"仓库发出明细表","仓库发出汇总表","车间发出明细表","车间发出汇总表"}
  262. borderstyle borderstyle = stylelowered!
  263. end type
  264. event selectionchanged;dw_1.uf_save_profile_layout()
  265. if ddlb_1.text='仓库发出明细表' then
  266. dw_1.dataobject='dw_rp_owwfjg_out'
  267. elseif ddlb_1.text='仓库发出汇总表' then
  268. dw_1.dataobject='dw_rp_owwfjg_out_hz'
  269. elseif ddlb_1.text='车间发出明细表' then
  270. dw_1.dataobject='dw_rp_owwfjg_out_ws'
  271. elseif ddlb_1.text='车间发出汇总表' then
  272. dw_1.dataobject='dw_rp_owwfjg_out_hz_ws'
  273. end if
  274. dw_1.settransobject(sqlca)
  275. dw_1.ins_INIfile_name = sys_inifilename
  276. dw_1.ins_opemp = publ_operator
  277. dw_1.cardw_empid = sys_empid
  278. dw_1.cur_DataObject = dw_1.DataObject
  279. cb_1.triggerevent(clicked!)
  280. end event
  281. type ddlb_scid from uo_ddlb_scid within w_rp_owwfjg_out
  282. integer x = 137
  283. integer y = 204
  284. integer width = 407
  285. integer height = 620
  286. integer taborder = 70
  287. boolean bringtotop = true
  288. end type
  289. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  290. end event
  291. event selectionchanged;call super::selectionchanged;
  292. cur_scid_arr = THIS.uo_scid_arr
  293. cb_1.triggerevent(clicked!)
  294. end event
  295. type st_5 from statictext within w_rp_owwfjg_out
  296. integer y = 216
  297. integer width = 128
  298. integer height = 48
  299. boolean bringtotop = true
  300. integer textsize = -9
  301. integer weight = 400
  302. fontcharset fontcharset = gb2312charset!
  303. fontpitch fontpitch = variable!
  304. string facename = "宋体"
  305. long textcolor = 33554432
  306. long backcolor = 134217739
  307. string text = "分部"
  308. alignment alignment = right!
  309. boolean focusrectangle = false
  310. end type
  311. type cb_other from uo_imflatbutton within w_rp_owwfjg_out
  312. integer x = 558
  313. integer width = 361
  314. integer height = 164
  315. integer taborder = 40
  316. boolean bringtotop = true
  317. string text = "物料相关查询"
  318. string normalpicname = "imexport.BMP"
  319. integer picsize = 16
  320. toolbaralignment pic_align = alignattop!
  321. boolean border = false
  322. end type
  323. event clicked;call super::clicked;Long ll_row
  324. ll_row = dw_1.GetRow()
  325. IF ll_row <= 0 THEN
  326. MessageBox('系统提示','请选择物料',information!,OK!)
  327. RETURN
  328. END IF
  329. Long ll_mtrlid
  330. ll_mtrlid = dw_1.Object.mtrlid[ll_row]
  331. IF IsValid(w_mtrl_info) THEN
  332. w_mtrl_info.WindowState = Normal!
  333. w_mtrl_info.ins_mtrlid = ll_mtrlid
  334. w_mtrl_info.wf_retrieve(ll_mtrlid)
  335. ELSE
  336. OpenWithParm(w_mtrl_info,ll_mtrlid)
  337. END IF
  338. end event
  339. type ddlb_status from dropdownlistbox within w_rp_owwfjg_out
  340. integer x = 1088
  341. integer y = 204
  342. integer width = 311
  343. integer height = 300
  344. integer taborder = 40
  345. boolean bringtotop = true
  346. integer textsize = -9
  347. integer weight = 400
  348. fontcharset fontcharset = gb2312charset!
  349. fontpitch fontpitch = variable!
  350. string facename = "宋体"
  351. long textcolor = 33554432
  352. string text = "[全部]"
  353. boolean sorted = false
  354. string item[] = {"[全部]","待审核","已审核"}
  355. borderstyle borderstyle = stylelowered!
  356. end type
  357. event selectionchanged;if index=1 then
  358. cur_flag=-1
  359. elseif index=2 then
  360. cur_flag= 0
  361. elseif index=3 then
  362. cur_flag= 1
  363. end if
  364. cb_1.TriggerEvent(clicked!)
  365. end event