$PBExportHeader$w_rp_sptbalc.srw forward global type w_rp_sptbalc from w_publ_easyq end type type ddlb_2 from uo_ddlb_scid within w_rp_sptbalc end type type st_2 from statictext within w_rp_sptbalc end type type dw_spttype from u_dw_rbtnfilter within w_rp_sptbalc end type type st_1 from statictext within w_rp_sptbalc end type type ddlb_3 from dropdownlistbox within w_rp_sptbalc end type type ddlb_money from uo_ddlb_moneyid within w_rp_sptbalc end type end forward global type w_rp_sptbalc from w_publ_easyq integer x = 9 integer y = 12 string title = "供应商应付结余表" ddlb_2 ddlb_2 st_2 st_2 dw_spttype dw_spttype st_1 st_1 ddlb_3 ddlb_3 ddlb_money ddlb_money end type global w_rp_sptbalc w_rp_sptbalc type variables long cur_scid long cur_scid_arr[] long ins_spttypeid long ins_moneyid=0 end variables forward prototypes public subroutine wf_dw () end prototypes public subroutine wf_dw ();IF ddlb_3.Text = '按月统计' THEN dw_1.uf_save_profile_layout() END IF IF sys_option_scid_msttake_mstpay = 1 THEN IF ddlb_3.Text = '汇总统计' THEN dw_1.DataObject = 'dw_rp_sptbalc' ELSEIF ddlb_3.Text = '按月统计' THEN dw_1.DataObject = 'dw_rp_sptbalc_2' ELSEIF ddlb_3.Text = '汇总统计(分类小计)' THEN dw_1.DataObject = 'dw_rp_sptbalc_sm' ELSEIF ddlb_3.Text = '按月统计(分类小计)' THEN dw_1.DataObject = 'dw_rp_sptbalc_2_sm' END IF ELSE IF ddlb_3.Text = '汇总统计' THEN dw_1.DataObject = 'dw_rp_sptbalc_not_scid' ELSEIF ddlb_3.Text = '按月统计' THEN dw_1.DataObject = 'dw_rp_sptbalc_2_not_scid' ELSEIF ddlb_3.Text = '汇总统计(分类小计)' THEN dw_1.DataObject = 'dw_rp_sptbalc_not_scid_sm' ELSEIF ddlb_3.Text = '按月统计(分类小计)' THEN dw_1.DataObject = 'dw_rp_sptbalc_2_not_scid_sm' END IF END IF dw_1.SetTransObject (sqlca) IF ddlb_3.Text <> '按月统计' THEN 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 dw_1.uf_read_profile_layout() END IF end subroutine on w_rp_sptbalc.create int iCurrent call super::create this.ddlb_2=create ddlb_2 this.st_2=create st_2 this.dw_spttype=create dw_spttype this.st_1=create st_1 this.ddlb_3=create ddlb_3 this.ddlb_money=create ddlb_money iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.ddlb_2 this.Control[iCurrent+2]=this.st_2 this.Control[iCurrent+3]=this.dw_spttype this.Control[iCurrent+4]=this.st_1 this.Control[iCurrent+5]=this.ddlb_3 this.Control[iCurrent+6]=this.ddlb_money end on on w_rp_sptbalc.destroy call super::destroy destroy(this.ddlb_2) destroy(this.st_2) destroy(this.dw_spttype) destroy(this.st_1) destroy(this.ddlb_3) destroy(this.ddlb_money) end on event open;call super::open;dw_spttype.SetTransObject (sqlca) dw_spttype.Retrieve() IF cbx_loginretr.Checked THEN cb_1.TriggerEvent(Clicked!) END IF end event event ue_before_open;call super::ue_before_open;IF sys_option_scid_msttake_mstpay = 1 THEN dw_1.DataObject = 'dw_rp_sptbalc' ELSE dw_1.DataObject = 'dw_rp_sptbalc_not_scid' END IF dw_1.SetTransObject (sqlca) if_ue_retr=true if_ue_filter=true if_ue_sort=true if_ue_sentdataout=true end event event resize;call super::resize;dw_spttype.height = dw_1.height end event type cb_func from w_publ_easyq`cb_func within w_rp_sptbalc end type type cb_exit from w_publ_easyq`cb_exit within w_rp_sptbalc end type type cb_2 from w_publ_easyq`cb_2 within w_rp_sptbalc boolean bringtotop = true end type type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sptbalc boolean bringtotop = true end type type cb_1 from w_publ_easyq`cb_1 within w_rp_sptbalc boolean bringtotop = true end type event cb_1::clicked;call super::clicked;IF sys_option_scid_msttake_mstpay = 1 THEN dw_1.retrieve(cur_scid_arr,sys_user_spttype,ins_spttypeid,ins_moneyid) else dw_1.retrieve(sys_user_spttype,ins_spttypeid,ins_moneyid) end if end event type st_3 from w_publ_easyq`st_3 within w_rp_sptbalc boolean visible = false end type type st_4 from w_publ_easyq`st_4 within w_rp_sptbalc boolean visible = false end type type em_1 from w_publ_easyq`em_1 within w_rp_sptbalc boolean visible = false end type type em_2 from w_publ_easyq`em_2 within w_rp_sptbalc boolean visible = false end type type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_sptbalc end type type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sptbalc end type type dw_1 from w_publ_easyq`dw_1 within w_rp_sptbalc integer x = 800 integer y = 292 integer width = 1618 integer height = 1932 string dataobject = "dw_rp_sptbalc" end type type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sptbalc end type type sle_cust from w_publ_easyq`sle_cust within w_rp_sptbalc end type type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sptbalc end type type st_cust from w_publ_easyq`st_cust within w_rp_sptbalc end type type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sptbalc boolean visible = true end type type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sptbalc boolean visible = false end type type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sptbalc boolean visible = false end type type pb_2 from w_publ_easyq`pb_2 within w_rp_sptbalc boolean visible = false end type type cb_help from w_publ_easyq`cb_help within w_rp_sptbalc end type type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sptbalc end type type gb_1 from w_publ_easyq`gb_1 within w_rp_sptbalc end type type ln_bar from w_publ_easyq`ln_bar within w_rp_sptbalc end type type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sptbalc end type type r_bar from w_publ_easyq`r_bar within w_rp_sptbalc end type type ln_1 from w_publ_easyq`ln_1 within w_rp_sptbalc integer beginy = 280 integer endy = 280 end type type ln_2 from w_publ_easyq`ln_2 within w_rp_sptbalc integer beginy = 284 integer endy = 284 end type type ln_3 from w_publ_easyq`ln_3 within w_rp_sptbalc integer beginy = 392 integer endy = 392 end type type ln_4 from w_publ_easyq`ln_4 within w_rp_sptbalc integer beginy = 396 integer endy = 396 end type type ddlb_2 from uo_ddlb_scid within w_rp_sptbalc integer x = 155 integer y = 192 integer width = 526 integer height = 768 integer taborder = 60 boolean bringtotop = true end type event constructor;call super::constructor;THIS.Enabled = (sys_option_scid_msttake_mstpay = 1) 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_2 from statictext within w_rp_sptbalc integer x = 18 integer y = 204 integer width = 133 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 = "分部" boolean focusrectangle = false end type type dw_spttype from u_dw_rbtnfilter within w_rp_sptbalc integer y = 292 integer width = 791 integer height = 1656 integer taborder = 20 boolean bringtotop = true string dataobject = "dw_spttype_index" end type event rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN this.selectrow(0,false) this.selectrow(currentrow,true) IF dw_spttype.GetRow() <= 0 THEN ins_spttypeid = 0 ELSE ins_spttypeid = dw_spttype.Object.spttypeid[dw_spttype.GetRow()] END IF cb_1.triggerevent(clicked!) end event type st_1 from statictext within w_rp_sptbalc integer x = 741 integer y = 200 integer width = 133 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 = "币种" boolean focusrectangle = false end type type ddlb_3 from dropdownlistbox within w_rp_sptbalc integer x = 1883 integer y = 52 integer width = 663 integer height = 452 integer taborder = 130 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;wf_dw() cb_1.TriggerEvent(Clicked!) end event type ddlb_money from uo_ddlb_moneyid within w_rp_sptbalc integer x = 873 integer y = 192 integer taborder = 20 boolean bringtotop = true end type event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid cb_1.TriggerEvent(Clicked!) end event event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid end event