$PBExportHeader$w_rp_cusbalc.srw forward global type w_rp_cusbalc from w_publ_easyq end type type tv_1 from uo_tv_cusarea within w_rp_cusbalc end type type st_1 from statictext within w_rp_cusbalc end type type ddlb_2 from uo_ddlb_scid within w_rp_cusbalc end type type st_2 from statictext within w_rp_cusbalc end type type ddlb_3 from dropdownlistbox within w_rp_cusbalc end type type ddlb_money from uo_ddlb_moneyid within w_rp_cusbalc end type end forward global type w_rp_cusbalc from w_publ_easyq integer x = 9 integer y = 12 string title = "客户应收结余表" tv_1 tv_1 st_1 st_1 ddlb_2 ddlb_2 st_2 st_2 ddlb_3 ddlb_3 ddlb_money ddlb_money end type global w_rp_cusbalc w_rp_cusbalc type variables String ls_areaname = '' long ins_moneyid=0 long cur_scid long cur_scid_arr[] end variables on w_rp_cusbalc.create int iCurrent call super::create this.tv_1=create tv_1 this.st_1=create st_1 this.ddlb_2=create ddlb_2 this.st_2=create st_2 this.ddlb_3=create ddlb_3 this.ddlb_money=create ddlb_money iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.tv_1 this.Control[iCurrent+2]=this.st_1 this.Control[iCurrent+3]=this.ddlb_2 this.Control[iCurrent+4]=this.st_2 this.Control[iCurrent+5]=this.ddlb_3 this.Control[iCurrent+6]=this.ddlb_money end on on w_rp_cusbalc.destroy call super::destroy destroy(this.tv_1) destroy(this.st_1) destroy(this.ddlb_2) destroy(this.st_2) destroy(this.ddlb_3) destroy(this.ddlb_money) end on event ue_before_open;IF sys_option_scid_msttake_mstpay = 1 THEN dw_1.DataObject = 'dw_rp_cusbalc' ELSE dw_1.DataObject = 'dw_rp_cusbalc_not_scid' END IF CALL Super :: ue_before_open ; end event event resize;call super::resize;tv_1.height=this.height - dw_1.y - 115 end event type cb_func from w_publ_easyq`cb_func within w_rp_cusbalc end type type cb_exit from w_publ_easyq`cb_exit within w_rp_cusbalc end type type cb_2 from w_publ_easyq`cb_2 within w_rp_cusbalc boolean bringtotop = true end type type cb_psetup from w_publ_easyq`cb_psetup within w_rp_cusbalc boolean bringtotop = true end type type cb_1 from w_publ_easyq`cb_1 within w_rp_cusbalc boolean bringtotop = true end type event cb_1::clicked;call super::clicked;IF sys_option_scid_msttake_mstpay = 1 THEN dw_1.Retrieve(ls_areaname,ins_moneyid,cur_scid_arr) ELSE dw_1.Retrieve(ls_areaname,ins_moneyid) END IF end event type st_3 from w_publ_easyq`st_3 within w_rp_cusbalc boolean visible = false integer y = 220 end type type st_4 from w_publ_easyq`st_4 within w_rp_cusbalc boolean visible = false integer y = 220 end type type em_1 from w_publ_easyq`em_1 within w_rp_cusbalc boolean visible = false integer y = 204 end type type em_2 from w_publ_easyq`em_2 within w_rp_cusbalc boolean visible = false integer y = 204 end type type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_cusbalc integer y = 12 end type type cbx_yl from w_publ_easyq`cbx_yl within w_rp_cusbalc integer y = 16 end type type dw_1 from w_publ_easyq`dw_1 within w_rp_cusbalc integer x = 859 integer y = 312 integer width = 2501 integer height = 1580 string dataobject = "dw_rp_cusbalc" end type type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_cusbalc end type type sle_cust from w_publ_easyq`sle_cust within w_rp_cusbalc end type type st_mtrl from w_publ_easyq`st_mtrl within w_rp_cusbalc end type type st_cust from w_publ_easyq`st_cust within w_rp_cusbalc end type type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_cusbalc boolean visible = true end type type pb_em1 from w_publ_easyq`pb_em1 within w_rp_cusbalc boolean visible = false end type type pb_em2 from w_publ_easyq`pb_em2 within w_rp_cusbalc boolean visible = false end type type pb_2 from w_publ_easyq`pb_2 within w_rp_cusbalc boolean visible = false end type type cb_help from w_publ_easyq`cb_help within w_rp_cusbalc end type type cb_copyself from w_publ_easyq`cb_copyself within w_rp_cusbalc end type type gb_1 from w_publ_easyq`gb_1 within w_rp_cusbalc end type type ln_bar from w_publ_easyq`ln_bar within w_rp_cusbalc end type type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_cusbalc end type type r_bar from w_publ_easyq`r_bar within w_rp_cusbalc end type type ln_1 from w_publ_easyq`ln_1 within w_rp_cusbalc end type type ln_2 from w_publ_easyq`ln_2 within w_rp_cusbalc end type type ln_3 from w_publ_easyq`ln_3 within w_rp_cusbalc end type type ln_4 from w_publ_easyq`ln_4 within w_rp_cusbalc end type type tv_1 from uo_tv_cusarea within w_rp_cusbalc integer y = 308 integer width = 850 integer height = 1584 integer taborder = 70 boolean bringtotop = true integer textsize = -9 fontcharset fontcharset = gb2312charset! fontfamily fontfamily = anyfont! string facename = "宋体" end type event selectionchanged;call super::selectionchanged;ls_areaname = THIS.uo_cur_info.areaname ls_areaname = ls_areaname + '%' cb_1.TriggerEvent(Clicked!) end event type st_1 from statictext within w_rp_cusbalc integer x = 713 integer y = 208 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_2 from uo_ddlb_scid within w_rp_cusbalc integer x = 155 integer y = 192 integer width = 526 integer height = 768 integer taborder = 50 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_cusbalc integer x = 18 integer y = 208 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_cusbalc integer x = 1984 integer y = 40 integer width = 549 integer height = 452 integer taborder = 120 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "汇总统计" string item[] = {"汇总统计","按月统计"} borderstyle borderstyle = stylelowered! end type event selectionchanged;IF THIS.Text = '汇总统计' THEN IF sys_option_scid_msttake_mstpay = 1 THEN dw_1.DataObject = 'dw_rp_cusbalc' ELSE dw_1.DataObject = 'dw_rp_cusbalc_not_scid' END IF ELSE//按月统计 IF sys_option_scid_msttake_mstpay = 1 THEN dw_1.DataObject = 'dw_rp_cusbalc_2' ELSE dw_1.DataObject = 'dw_rp_cusbalc_2_not_scid' END IF END IF dw_1.SetTransObject (sqlca) cb_1.TriggerEvent(Clicked!) end event type ddlb_money from uo_ddlb_moneyid within w_rp_cusbalc integer x = 850 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