$PBExportHeader$w_rp_assetdepr_mx.srw forward global type w_rp_assetdepr_mx from w_publ_easyq end type type ddlb_1 from dropdownlistbox within w_rp_assetdepr_mx end type type ddlb_2 from dropdownlistbox within w_rp_assetdepr_mx end type type cb_3 from uo_imflatbutton within w_rp_assetdepr_mx end type type cb_4 from uo_imflatbutton within w_rp_assetdepr_mx end type type cb_5 from uo_imflatbutton within w_rp_assetdepr_mx end type type dw_2 from u_dw_rbtnfilter within w_rp_assetdepr_mx end type type cbx_2 from checkbox within w_rp_assetdepr_mx end type type st_6 from statictext within w_rp_assetdepr_mx end type type st_5 from statictext within w_rp_assetdepr_mx end type type cbx_1 from checkbox within w_rp_assetdepr_mx end type type st_1 from statictext within w_rp_assetdepr_mx end type end forward global type w_rp_assetdepr_mx from w_publ_easyq integer width = 3502 integer height = 2200 string title = "固定资产及累计折旧明细帐" long backcolor = 83488739 event retr_mx ( ) ddlb_1 ddlb_1 ddlb_2 ddlb_2 cb_3 cb_3 cb_4 cb_4 cb_5 cb_5 dw_2 dw_2 cbx_2 cbx_2 st_6 st_6 st_5 st_5 cbx_1 cbx_1 st_1 st_1 end type global w_rp_assetdepr_mx w_rp_assetdepr_mx event retr_mx;Long ls_firstcmon,ls_lastmon,init_mon String ls_assetcardname,ls_text,ls_assetcardcode long ll_assetcardid IF dw_2.GetRow() <= 0 THEN dw_1.Reset() RETURN END IF ls_firstcmon = Long(em_1.Text) * 100 + Long(ddlb_1.Text) ls_lastmon = Long(em_1.Text) * 100 + Long(ddlb_2.Text) ll_assetcardid = dw_2.Object.cw_assetcard_assetcardid[dw_2.GetRow()] ls_assetcardcode = dw_2.Object.cw_assetcard_assetcardcode[dw_2.GetRow()] ls_assetcardname = dw_2.Object.cw_assetcard_assetcardname[dw_2.GetRow()] ls_text = '('+ls_assetcardcode+')'+ls_assetcardname IF ls_firstcmon <= sys_startyearmon THEN init_mon = 0 ELSE init_mon = ls_firstcmon END IF dw_1.Retrieve(sys_accsetid,ll_assetcardid,ls_firstcmon,ls_lastmon) dw_1.SetRedraw(FALSE) dw_1.Object.Month.Text = "期间: "+String(ls_firstcmon)+" 至 "+String(ls_lastmon) dw_1.Object.subname.Text = "固定资产: " + ls_text dw_1.SetRedraw(TRUE) end event on w_rp_assetdepr_mx.create int iCurrent call super::create this.ddlb_1=create ddlb_1 this.ddlb_2=create ddlb_2 this.cb_3=create cb_3 this.cb_4=create cb_4 this.cb_5=create cb_5 this.dw_2=create dw_2 this.cbx_2=create cbx_2 this.st_6=create st_6 this.st_5=create st_5 this.cbx_1=create cbx_1 this.st_1=create st_1 iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.ddlb_1 this.Control[iCurrent+2]=this.ddlb_2 this.Control[iCurrent+3]=this.cb_3 this.Control[iCurrent+4]=this.cb_4 this.Control[iCurrent+5]=this.cb_5 this.Control[iCurrent+6]=this.dw_2 this.Control[iCurrent+7]=this.cbx_2 this.Control[iCurrent+8]=this.st_6 this.Control[iCurrent+9]=this.st_5 this.Control[iCurrent+10]=this.cbx_1 this.Control[iCurrent+11]=this.st_1 end on on w_rp_assetdepr_mx.destroy call super::destroy destroy(this.ddlb_1) destroy(this.ddlb_2) destroy(this.cb_3) destroy(this.cb_4) destroy(this.cb_5) destroy(this.dw_2) destroy(this.cbx_2) destroy(this.st_6) destroy(this.st_5) destroy(this.cbx_1) destroy(this.st_1) end on event open;THIS.TriggerEvent('ue_before_open') wf_movetocenter() dw_2.SetTransObject (sqlca) dw_1.SetTransObject (sqlca) dw_1.titleclick_sort_use = FALSE IF Trim(dw_1.DataObject) <> '' THEN dw_1.Object.DataWindow.Print.MARGIN.Top = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_TOP", "110")) dw_1.Object.DataWindow.Print.MARGIN.Left = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_LEFT", "96" )) dw_1.Object.DataWindow.Print.MARGIN.bottom = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_BOTTOM", "110")) dw_1.Object.DataWindow.Print.MARGIN.Right = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_RIGHT", "96" )) END IF cb_1.TriggerEvent(Clicked!) end event event resize;call super::resize;dw_2.Height=dw_1.height end event event ue_before_open;call super::ue_before_open;if_ue_sentdataout = TRUE end event type cb_func from w_publ_easyq`cb_func within w_rp_assetdepr_mx end type type cb_exit from w_publ_easyq`cb_exit within w_rp_assetdepr_mx integer x = 1691 end type type cb_2 from w_publ_easyq`cb_2 within w_rp_assetdepr_mx integer x = 1426 integer width = 265 integer taborder = 140 boolean bringtotop = true string text = "选择打印" end type type cb_psetup from w_publ_easyq`cb_psetup within w_rp_assetdepr_mx integer x = 1006 integer taborder = 110 boolean bringtotop = true end type type cb_1 from w_publ_easyq`cb_1 within w_rp_assetdepr_mx boolean bringtotop = true end type event cb_1::clicked;call super::clicked;Int li_clearflag IF cbx_1.Checked THEN li_clearflag = -1 ELSE li_clearflag = 0 END IF dw_2.Retrieve(sys_accsetid,li_clearflag) PARENT.TriggerEvent('retr_mx') end event type st_3 from w_publ_easyq`st_3 within w_rp_assetdepr_mx integer x = 9 integer width = 288 string text = "会计年度:" alignment alignment = center! end type type st_4 from w_publ_easyq`st_4 within w_rp_assetdepr_mx integer x = 1015 integer width = 78 string text = "至" end type type em_1 from w_publ_easyq`em_1 within w_rp_assetdepr_mx integer x = 288 integer width = 219 integer taborder = 150 string mask = "yyyy" end type event em_1::constructor;THIS.Text = Left(String(sys_curyearmon),4) end event type em_2 from w_publ_easyq`em_2 within w_rp_assetdepr_mx integer x = 1801 integer y = 548 integer taborder = 160 end type type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_assetdepr_mx integer x = 2066 integer y = 48 integer taborder = 90 end type type cbx_yl from w_publ_easyq`cbx_yl within w_rp_assetdepr_mx integer x = 1856 integer y = 56 integer height = 56 integer taborder = 100 long backcolor = 67108864 end type type dw_1 from w_publ_easyq`dw_1 within w_rp_assetdepr_mx integer x = 1385 integer y = 300 integer width = 2039 string dataobject = "dw_rp_assetdepr_mx" end type type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_assetdepr_mx end type type sle_cust from w_publ_easyq`sle_cust within w_rp_assetdepr_mx end type type st_mtrl from w_publ_easyq`st_mtrl within w_rp_assetdepr_mx end type type st_cust from w_publ_easyq`st_cust within w_rp_assetdepr_mx end type type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_assetdepr_mx end type type pb_em1 from w_publ_easyq`pb_em1 within w_rp_assetdepr_mx integer x = 425 integer y = 756 end type type pb_em2 from w_publ_easyq`pb_em2 within w_rp_assetdepr_mx integer x = 1038 integer y = 756 end type type pb_2 from w_publ_easyq`pb_2 within w_rp_assetdepr_mx integer x = 1147 integer y = 756 end type type cb_help from w_publ_easyq`cb_help within w_rp_assetdepr_mx integer x = 553 integer y = 568 end type type cb_copyself from w_publ_easyq`cb_copyself within w_rp_assetdepr_mx end type type gb_1 from w_publ_easyq`gb_1 within w_rp_assetdepr_mx end type type ln_bar from w_publ_easyq`ln_bar within w_rp_assetdepr_mx end type type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_assetdepr_mx end type type r_bar from w_publ_easyq`r_bar within w_rp_assetdepr_mx end type type ln_1 from w_publ_easyq`ln_1 within w_rp_assetdepr_mx end type type ln_2 from w_publ_easyq`ln_2 within w_rp_assetdepr_mx end type type ln_3 from w_publ_easyq`ln_3 within w_rp_assetdepr_mx boolean visible = false end type type ln_4 from w_publ_easyq`ln_4 within w_rp_assetdepr_mx boolean visible = false end type type ddlb_1 from dropdownlistbox within w_rp_assetdepr_mx integer x = 782 integer y = 200 integer width = 229 integer height = 908 integer taborder = 170 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 boolean sorted = false boolean vscrollbar = true string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"} borderstyle borderstyle = stylelowered! end type event constructor;this.text=string(s_sys_accset.currmon) end event type ddlb_2 from dropdownlistbox within w_rp_assetdepr_mx integer x = 1129 integer y = 200 integer width = 229 integer height = 908 integer taborder = 180 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 boolean sorted = false boolean vscrollbar = true string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"} borderstyle borderstyle = stylelowered! end type event constructor;this.text=string(s_sys_accset.currmon) end event event selectionchanged;if long(ddlb_2.text) 0 THEN THIS.SelectRow(0,FALSE) THIS.SelectRow(currentrow,TRUE) END IF PARENT.TriggerEvent('retr_mx') end event event constructor;call super::constructor; titleclick_sort_use=true //单击标题排序功能开关 rbutton_filter_use=true //右键查询功能开关 end event type cbx_2 from checkbox within w_rp_assetdepr_mx integer x = 1902 integer y = 212 integer width = 320 integer height = 56 integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 67108864 string text = "全选打印" end type event clicked;Long i Int k = 0 IF THIS.Checked THEN k = 1 FOR i = 1 TO dw_2.RowCount() dw_2.Object.cw_assetcard_selectflag[i] = k NEXT end event type st_6 from statictext within w_rp_assetdepr_mx integer x = 2222 integer y = 208 integer width = 462 integer height = 64 integer textsize = -9 integer weight = 700 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 16776960 boolean enabled = false boolean border = true boolean focusrectangle = false end type type st_5 from statictext within w_rp_assetdepr_mx integer x = 1888 integer y = 200 integer width = 818 integer height = 80 integer textsize = -9 integer weight = 700 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 80269524 boolean enabled = false boolean border = true boolean focusrectangle = false end type type cbx_1 from checkbox within w_rp_assetdepr_mx integer x = 1394 integer y = 212 integer width = 466 integer height = 60 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 67108864 string text = "显示已清理资产" end type event clicked;cb_1.triggerevent(clicked!) end event type st_1 from statictext within w_rp_assetdepr_mx integer x = 512 integer y = 216 integer width = 288 integer height = 48 integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 67108864 string text = "会计期间:" alignment alignment = center! boolean focusrectangle = false end type