$PBExportHeader$w_rp_owwfjg_out.srw forward global type w_rp_owwfjg_out from w_publ_easyq end type type ddlb_2 from uo_ddlb_storageid within w_rp_owwfjg_out end type type ddlb_1 from dropdownlistbox within w_rp_owwfjg_out end type type ddlb_scid from uo_ddlb_scid within w_rp_owwfjg_out end type type st_5 from statictext within w_rp_owwfjg_out end type type cb_other from uo_imflatbutton within w_rp_owwfjg_out end type type ddlb_status from dropdownlistbox within w_rp_owwfjg_out end type end forward global type w_rp_owwfjg_out from w_publ_easyq string title = "外协出仓统计表" event ue_retrieve_info ( ) ddlb_2 ddlb_2 ddlb_1 ddlb_1 ddlb_scid ddlb_scid st_5 st_5 cb_other cb_other ddlb_status ddlb_status end type global w_rp_owwfjg_out w_rp_owwfjg_out type variables Long cur_storageid_arr[] long cur_scid_arr[] long cur_flag = -1 end variables forward prototypes public function integer wf_hide_col () end prototypes event ue_retrieve_info();Long ll_row Long ll_mtrlid ll_row = dw_1.GetRow() IF ll_row <= 0 THEN ll_mtrlid = 0 ELSE ll_mtrlid = dw_1.Object.mtrlid[ll_row] END IF IF IsValid(w_mtrl_info) THEN w_mtrl_info.WindowState = Normal! w_mtrl_info.ins_mtrlid = ll_mtrlid w_mtrl_info.wf_retrieve(ll_mtrlid) END IF end event public function integer wf_hide_col ();s_hide_col s_col if dw_1.dataobject = 'dw_rp_owwfjg_out' or dw_1.dataobject = 'dw_rp_owwfjg_out_ws' then s_col.col_1 = 'ow_wfjgmx_out_price' s_col.col_2 = 'amt_1' s_col.col_3 = 'fprice' else s_col.col_1 = 'amt' s_col.col_2 = 'price' s_col.col_3 = 'planamt' s_col.col_4 = 'u_mtrldef_planprice' end if //f_hide_col(121,dw_1,s_col) f_hide_col(1448,dw_1,s_col) s_hide_col s_col_mtrlsectype s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype' f_hide_col(1308,dw_1,s_col_mtrlsectype) s_hide_col s_col_zxmtrlmode s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode' f_hide_col(1309,dw_1,s_col_zxmtrlmode) return 1 end function on w_rp_owwfjg_out.create int iCurrent call super::create this.ddlb_2=create ddlb_2 this.ddlb_1=create ddlb_1 this.ddlb_scid=create ddlb_scid this.st_5=create st_5 this.cb_other=create cb_other this.ddlb_status=create ddlb_status iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.ddlb_2 this.Control[iCurrent+2]=this.ddlb_1 this.Control[iCurrent+3]=this.ddlb_scid this.Control[iCurrent+4]=this.st_5 this.Control[iCurrent+5]=this.cb_other this.Control[iCurrent+6]=this.ddlb_status end on on w_rp_owwfjg_out.destroy call super::destroy destroy(this.ddlb_2) destroy(this.ddlb_1) destroy(this.ddlb_scid) destroy(this.st_5) destroy(this.cb_other) destroy(this.ddlb_status) end on event open;call super::open;IF cbx_loginretr.Checked THEN cb_1.TriggerEvent(Clicked!) END IF end event event ue_before_open;call super::ue_before_open;if_ue_retr=true if_ue_filter=true if_ue_sort=true if_ue_sentdataout=true end event type cb_func from w_publ_easyq`cb_func within w_rp_owwfjg_out end type type cb_exit from w_publ_easyq`cb_exit within w_rp_owwfjg_out integer x = 1477 end type type cb_2 from w_publ_easyq`cb_2 within w_rp_owwfjg_out integer x = 1175 integer taborder = 100 boolean bringtotop = true end type type cb_psetup from w_publ_easyq`cb_psetup within w_rp_owwfjg_out integer x = 919 boolean bringtotop = true end type type cb_1 from w_publ_easyq`cb_1 within w_rp_owwfjg_out boolean bringtotop = true end type event cb_1::clicked; DateTime first_date,end_date first_date = DateTime(Date(em_1.Text),Time(0)) end_date = DateTime(Date(em_2.Text),Time('23:59:59')) dw_1.uf_read_profile_layout() wf_hide_col() f_title_change(dw_1) dw_1.Retrieve(cur_scid_arr,first_date,end_date,cur_flag,cur_storageid_arr,sys_user_spttype ) end event type st_3 from w_publ_easyq`st_3 within w_rp_owwfjg_out integer x = 1413 end type type st_4 from w_publ_easyq`st_4 within w_rp_owwfjg_out integer x = 2121 end type type em_1 from w_publ_easyq`em_1 within w_rp_owwfjg_out integer x = 1614 integer width = 393 integer taborder = 110 end type type em_2 from w_publ_easyq`em_2 within w_rp_owwfjg_out integer x = 2226 integer width = 393 integer taborder = 120 end type type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_owwfjg_out integer x = 1897 integer y = 8 end type type cbx_yl from w_publ_easyq`cbx_yl within w_rp_owwfjg_out integer x = 1678 integer y = 8 end type type dw_1 from w_publ_easyq`dw_1 within w_rp_owwfjg_out integer y = 308 integer width = 2994 integer height = 940 string dataobject = "dw_rp_owwfjg_out" end type event dw_1::doubleclicked;call super::doubleclicked;String ls_code Long ll_scid Long thflag IF dw_1.DataObject = 'dw_rp_owwfjg_out' THEN IF row > 0 THEN ll_scid = THIS.Object.ow_wfjg_out_scid[row] ls_code = THIS.Object.ow_wfjg_out_outwarecode[row] f_open_win(ll_scid,ls_code) END IF ELSEIF dw_1.DataObject = 'dw_rp_owwfjg_out_ws' THEN IF row > 0 THEN ll_scid = THIS.Object.ow_wfjg_out_scid[row] ls_code = THIS.Object.ow_wfjg_out_outwarecode[row] f_open_win(ll_scid,ls_code) END IF END IF end event event dw_1::rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN this.selectrow(0,false) this.selectrow(currentrow,true) PARENT.TriggerEvent('ue_retrieve_info') end event type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_owwfjg_out end type type sle_cust from w_publ_easyq`sle_cust within w_rp_owwfjg_out end type type st_mtrl from w_publ_easyq`st_mtrl within w_rp_owwfjg_out end type type st_cust from w_publ_easyq`st_cust within w_rp_owwfjg_out end type type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_owwfjg_out boolean visible = true integer x = 1678 end type type pb_em1 from w_publ_easyq`pb_em1 within w_rp_owwfjg_out integer x = 2016 integer y = 188 end type type pb_em2 from w_publ_easyq`pb_em2 within w_rp_owwfjg_out integer x = 2624 integer y = 188 end type type pb_2 from w_publ_easyq`pb_2 within w_rp_owwfjg_out integer x = 2738 integer y = 188 end type type cb_help from w_publ_easyq`cb_help within w_rp_owwfjg_out integer x = 1326 end type type cb_copyself from w_publ_easyq`cb_copyself within w_rp_owwfjg_out end type type gb_1 from w_publ_easyq`gb_1 within w_rp_owwfjg_out end type type ln_bar from w_publ_easyq`ln_bar within w_rp_owwfjg_out end type type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_owwfjg_out end type type r_bar from w_publ_easyq`r_bar within w_rp_owwfjg_out integer x = 1851 integer y = -4 end type type ln_1 from w_publ_easyq`ln_1 within w_rp_owwfjg_out end type type ln_2 from w_publ_easyq`ln_2 within w_rp_owwfjg_out end type type ln_3 from w_publ_easyq`ln_3 within w_rp_owwfjg_out end type type ln_4 from w_publ_easyq`ln_4 within w_rp_owwfjg_out end type type ddlb_2 from uo_ddlb_storageid within w_rp_owwfjg_out integer x = 567 integer y = 204 integer width = 498 integer height = 1108 integer taborder = 40 boolean bringtotop = true end type event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr end event event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr cb_1.triggerevent(clicked!) end event type ddlb_1 from dropdownlistbox within w_rp_owwfjg_out integer x = 2281 integer y = 44 integer width = 571 integer height = 448 integer taborder = 70 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "仓库发出明细表" boolean sorted = false boolean vscrollbar = true string item[] = {"仓库发出明细表","仓库发出汇总表","车间发出明细表","车间发出汇总表"} borderstyle borderstyle = stylelowered! end type event selectionchanged;dw_1.uf_save_profile_layout() if ddlb_1.text='仓库发出明细表' then dw_1.dataobject='dw_rp_owwfjg_out' elseif ddlb_1.text='仓库发出汇总表' then dw_1.dataobject='dw_rp_owwfjg_out_hz' elseif ddlb_1.text='车间发出明细表' then dw_1.dataobject='dw_rp_owwfjg_out_ws' elseif ddlb_1.text='车间发出汇总表' then dw_1.dataobject='dw_rp_owwfjg_out_hz_ws' end if dw_1.settransobject(sqlca) dw_1.ins_INIfile_name = sys_inifilename dw_1.ins_opemp = publ_operator dw_1.cardw_empid = sys_empid dw_1.cur_DataObject = dw_1.DataObject cb_1.triggerevent(clicked!) end event type ddlb_scid from uo_ddlb_scid within w_rp_owwfjg_out integer x = 137 integer y = 204 integer width = 407 integer height = 620 integer taborder = 70 boolean bringtotop = true end type event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr end event event selectionchanged;call super::selectionchanged; cur_scid_arr = THIS.uo_scid_arr cb_1.triggerevent(clicked!) end event type st_5 from statictext within w_rp_owwfjg_out integer y = 216 integer width = 128 integer height = 48 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 134217739 string text = "分部" alignment alignment = right! boolean focusrectangle = false end type type cb_other from uo_imflatbutton within w_rp_owwfjg_out integer x = 558 integer width = 361 integer height = 164 integer taborder = 40 boolean bringtotop = true string text = "物料相关查询" string normalpicname = "imexport.BMP" integer picsize = 16 toolbaralignment pic_align = alignattop! boolean border = false end type event clicked;call super::clicked;Long ll_row ll_row = dw_1.GetRow() IF ll_row <= 0 THEN MessageBox('系统提示','请选择物料',information!,OK!) RETURN END IF Long ll_mtrlid ll_mtrlid = dw_1.Object.mtrlid[ll_row] IF IsValid(w_mtrl_info) THEN w_mtrl_info.WindowState = Normal! w_mtrl_info.ins_mtrlid = ll_mtrlid w_mtrl_info.wf_retrieve(ll_mtrlid) ELSE OpenWithParm(w_mtrl_info,ll_mtrlid) END IF end event type ddlb_status from dropdownlistbox within w_rp_owwfjg_out integer x = 1088 integer y = 204 integer width = 311 integer height = 300 integer taborder = 40 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "[全部]" boolean sorted = false string item[] = {"[全部]","待审核","已审核"} borderstyle borderstyle = stylelowered! end type event selectionchanged;if index=1 then cur_flag=-1 elseif index=2 then cur_flag= 0 elseif index=3 then cur_flag= 1 end if cb_1.TriggerEvent(clicked!) end event