$PBExportHeader$w_rp_owwfjg_in.srw forward global type w_rp_owwfjg_in from w_publ_easyq end type type ddlb_2 from dropdownlistbox within w_rp_owwfjg_in end type type ddlb_3 from uo_ddlb_storageid within w_rp_owwfjg_in end type type tv_1 from uo_tv_mtrltype within w_rp_owwfjg_in end type type ddlb_status from dropdownlistbox within w_rp_owwfjg_in end type type ddlb_1 from dropdownlistbox within w_rp_owwfjg_in end type type ddlb_scid from uo_ddlb_scid within w_rp_owwfjg_in end type type st_5 from statictext within w_rp_owwfjg_in end type type cb_other from uo_imflatbutton within w_rp_owwfjg_in end type end forward global type w_rp_owwfjg_in from w_publ_easyq integer width = 3662 integer height = 2044 string title = "外协进仓统计表" event ue_retrieve_info ( ) ddlb_2 ddlb_2 ddlb_3 ddlb_3 tv_1 tv_1 ddlb_status ddlb_status ddlb_1 ddlb_1 ddlb_scid ddlb_scid st_5 st_5 cb_other cb_other end type global w_rp_owwfjg_in w_rp_owwfjg_in type variables Long cur_storageid_arr[] Int cur_mtrlorigin = -1 String ls_handtype = '' Long cur_flag = -1 Long cur_secflag = -1 Long cur_thflag = -1 long cur_scid_arr[] long cur_billtype = 4 end variables forward prototypes public function integer wf_hide_col () public subroutine wf_hidecol () 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_in' THEN // s_col.col_1 = 'ow_wfjgmx_in_aft_jgprice' // s_col.col_2 = 'ow_wfjgmx_in_aft_rebate' // s_col.col_3 = 'priceamt' // s_col.col_4 = 'ow_wfjgmx_in_aft_cost' // s_col.col_5 = 'costamt' //ELSEIF dw_1.DataObject = 'dw_rp_owwfjg_in_ws' THEN // s_col.col_1 = 'ow_wfjgmx_in_aft_jgprice' // s_col.col_2 = 'ow_wfjgmx_in_aft_rebate' // s_col.col_3 = 'priceamt' // s_col.col_4 = 'ow_wfjgmx_in_aft_cost' // s_col.col_5 = 'costamt' //ELSEIF dw_1.DataObject = 'dw_rp_owwfjg_out_hz_ws' THEN // s_col.col_1 = 'amt' // s_col.col_2 = 'price' // s_col.col_3 = 'planamt' // s_col.col_4 = 'u_mtrldef_planprice' //ELSE // s_col.col_1 = 'amt' // s_col.col_2 = 'price' // s_col.col_3 = 'costamt' // //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 public subroutine wf_hidecol ();s_hide_col s_col IF dw_1.DataObject = 'dw_rp_owwfjg_in' THEN s_col.col_1 = 'ow_wfjgmx_in_aft_jgprice' s_col.col_2 = 'ow_wfjgmx_in_aft_rebate' s_col.col_3 = 'priceamt' s_col.col_4 = 'ow_wfjgmx_in_aft_cost' s_col.col_5 = 'costamt' s_col.col_6 = 'ow_wfjgmx_in_aft_fprice' s_col.col_7 = 'ow_wfjgmx_in_aft_price' s_col.col_8 = 'famt' s_col.col_9 = 'amt' ELSEIF dw_1.DataObject = 'dw_rp_owwfjg_in_ws' THEN s_col.col_1 = 'ow_wfjgmx_in_aft_jgprice' s_col.col_2 = 'ow_wfjgmx_in_aft_rebate' s_col.col_3 = 'priceamt' s_col.col_4 = 'ow_wfjgmx_in_aft_cost' s_col.col_5 = 'costamt' ELSEIF dw_1.DataObject = 'dw_rp_owwfjg_out_hz_ws' THEN s_col.col_1 = 'amt' s_col.col_2 = 'price' s_col.col_3 = 'planamt' s_col.col_4 = 'u_mtrldef_planprice' ELSE s_col.col_1 = 'amt' s_col.col_2 = 'price' s_col.col_3 = 'costamt' END IF 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 subroutine on w_rp_owwfjg_in.create int iCurrent call super::create this.ddlb_2=create ddlb_2 this.ddlb_3=create ddlb_3 this.tv_1=create tv_1 this.ddlb_status=create ddlb_status this.ddlb_1=create ddlb_1 this.ddlb_scid=create ddlb_scid this.st_5=create st_5 this.cb_other=create cb_other iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.ddlb_2 this.Control[iCurrent+2]=this.ddlb_3 this.Control[iCurrent+3]=this.tv_1 this.Control[iCurrent+4]=this.ddlb_status this.Control[iCurrent+5]=this.ddlb_1 this.Control[iCurrent+6]=this.ddlb_scid this.Control[iCurrent+7]=this.st_5 this.Control[iCurrent+8]=this.cb_other end on on w_rp_owwfjg_in.destroy call super::destroy destroy(this.ddlb_2) destroy(this.ddlb_3) destroy(this.tv_1) destroy(this.ddlb_status) destroy(this.ddlb_1) destroy(this.ddlb_scid) destroy(this.st_5) destroy(this.cb_other) end on event resize;call super::resize;tv_1.height=this.height - dw_1.y - 150 end event type cb_func from w_publ_easyq`cb_func within w_rp_owwfjg_in end type type cb_exit from w_publ_easyq`cb_exit within w_rp_owwfjg_in integer x = 1477 end type type cb_2 from w_publ_easyq`cb_2 within w_rp_owwfjg_in integer x = 1175 integer taborder = 110 boolean bringtotop = true end type type cb_psetup from w_publ_easyq`cb_psetup within w_rp_owwfjg_in integer x = 919 integer taborder = 90 boolean bringtotop = true end type type cb_1 from w_publ_easyq`cb_1 within w_rp_owwfjg_in 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,cur_storageid_arr,cur_billtype,first_date,end_date,cur_flag,cur_secflag,ls_handtype,cur_thflag,sys_user_spttype) end event type st_3 from w_publ_easyq`st_3 within w_rp_owwfjg_in integer x = 1655 integer y = 216 end type type st_4 from w_publ_easyq`st_4 within w_rp_owwfjg_in integer x = 2341 integer y = 216 end type type em_1 from w_publ_easyq`em_1 within w_rp_owwfjg_in integer x = 1865 integer y = 196 integer width = 389 integer taborder = 120 end type type em_2 from w_publ_easyq`em_2 within w_rp_owwfjg_in integer x = 2446 integer width = 389 integer taborder = 130 end type type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_owwfjg_in integer x = 1897 integer y = 4 end type type cbx_yl from w_publ_easyq`cbx_yl within w_rp_owwfjg_in integer x = 1678 integer y = 4 end type type dw_1 from w_publ_easyq`dw_1 within w_rp_owwfjg_in integer x = 805 integer y = 308 integer width = 2400 integer height = 1540 string dataobject = "dw_rp_owwfjg_in" end type event dw_1::doubleclicked;call super::doubleclicked;String ls_code Long ll_scid Int li_thflag IF dw_1.DataObject = 'dw_rp_owwfjg_in' THEN IF row > 0 THEN ll_scid = THIS.Object.ow_wfjg_in_scid[row] ls_code = THIS.Object.ow_wfjg_in_inwarecode[row] // li_thflag = THIS.Object.ow_wfjg_in_thflag[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_in end type type sle_cust from w_publ_easyq`sle_cust within w_rp_owwfjg_in end type type st_mtrl from w_publ_easyq`st_mtrl within w_rp_owwfjg_in end type type st_cust from w_publ_easyq`st_cust within w_rp_owwfjg_in end type type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_owwfjg_in boolean visible = true integer x = 1678 end type type pb_em1 from w_publ_easyq`pb_em1 within w_rp_owwfjg_in integer x = 2258 end type type pb_em2 from w_publ_easyq`pb_em2 within w_rp_owwfjg_in integer x = 2839 integer y = 188 end type type pb_2 from w_publ_easyq`pb_2 within w_rp_owwfjg_in integer x = 2944 integer y = 188 end type type cb_help from w_publ_easyq`cb_help within w_rp_owwfjg_in integer x = 1326 end type type cb_copyself from w_publ_easyq`cb_copyself within w_rp_owwfjg_in end type type gb_1 from w_publ_easyq`gb_1 within w_rp_owwfjg_in end type type ln_bar from w_publ_easyq`ln_bar within w_rp_owwfjg_in end type type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_owwfjg_in end type type r_bar from w_publ_easyq`r_bar within w_rp_owwfjg_in integer x = 1865 end type type ln_1 from w_publ_easyq`ln_1 within w_rp_owwfjg_in end type type ln_2 from w_publ_easyq`ln_2 within w_rp_owwfjg_in end type type ln_3 from w_publ_easyq`ln_3 within w_rp_owwfjg_in end type type ln_4 from w_publ_easyq`ln_4 within w_rp_owwfjg_in end type type ddlb_2 from dropdownlistbox within w_rp_owwfjg_in integer x = 2254 integer y = 36 integer width = 599 integer height = 448 integer taborder = 80 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_2.Text = '仓库外协收货明细表' THEN dw_1.DataObject = 'dw_rp_owwfjg_in' cur_billtype = 4 ELSEIF ddlb_2.Text = '仓库外协收货汇总表' THEN dw_1.DataObject = 'dw_rp_owwfjg_in_hz' cur_billtype = 4 ELSEIF ddlb_2.Text = '车间外协收货明细表' THEN dw_1.DataObject = 'dw_rp_owwfjg_in' cur_billtype = 5 ELSEIF ddlb_2.Text = '车间外协收货汇总表' THEN dw_1.DataObject = 'dw_rp_owwfjg_in_hz' cur_billtype = 5 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 wf_replacedw() //wf_hide_col() cb_1.TriggerEvent(Clicked!) end event type ddlb_3 from uo_ddlb_storageid within w_rp_owwfjg_in integer x = 823 integer y = 196 integer width = 498 integer height = 1108 integer taborder = 130 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 tv_1 from uo_tv_mtrltype within w_rp_owwfjg_in integer y = 308 integer width = 805 integer height = 1540 integer taborder = 60 boolean bringtotop = true integer textsize = -9 fontcharset fontcharset = gb2312charset! fontfamily fontfamily = anyfont! string facename = "宋体" end type event selectionchanged;call super::selectionchanged;ls_handtype = THIS.uo_cur_info.handtype ls_handtype = ls_handtype + '%' cb_1.TriggerEvent(clicked!) end event type ddlb_status from dropdownlistbox within w_rp_owwfjg_in integer x = 1339 integer y = 196 integer width = 311 integer height = 296 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 string item[] = {"[全部]","待收货审","待财务审","审核完毕"} borderstyle borderstyle = stylelowered! end type event selectionchanged;IF Index = 1 THEN cur_flag = -1 cur_secflag = -1 ELSEIF Index = 2 THEN cur_flag = 0 cur_secflag = -1 ELSEIF Index = 3 THEN cur_flag = 1 cur_secflag = 0 ELSEIF Index = 4 THEN cur_flag = 1 cur_secflag = 1 END IF cb_1.TriggerEvent(clicked!) end event type ddlb_1 from dropdownlistbox within w_rp_owwfjg_in integer x = 553 integer y = 196 integer width = 265 integer height = 296 integer taborder = 80 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_thflag = -1 ELSEIF Index = 2 THEN cur_thflag = 0 ELSEIF Index = 3 THEN cur_thflag = 1 END IF cb_1.TriggerEvent(clicked!) end event type ddlb_scid from uo_ddlb_scid within w_rp_owwfjg_in integer x = 137 integer y = 196 integer width = 407 integer height = 620 integer taborder = 60 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_in 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_in 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