$PBExportHeader$w_rp_cashitem_mx.srw forward global type w_rp_cashitem_mx from w_publ_easyq end type type ddlb_1 from dropdownlistbox within w_rp_cashitem_mx end type type ddlb_2 from dropdownlistbox within w_rp_cashitem_mx end type type cbx_1 from checkbox within w_rp_cashitem_mx end type type cb_3 from uo_imflatbutton within w_rp_cashitem_mx end type type cb_4 from uo_imflatbutton within w_rp_cashitem_mx end type type cb_5 from uo_imflatbutton within w_rp_cashitem_mx end type type dw_2 from u_dw_rbtnfilter within w_rp_cashitem_mx end type type cbx_2 from checkbox within w_rp_cashitem_mx end type type st_6 from statictext within w_rp_cashitem_mx end type type st_5 from statictext within w_rp_cashitem_mx end type type st_1 from statictext within w_rp_cashitem_mx end type end forward global type w_rp_cashitem_mx from w_publ_easyq integer width = 3639 integer height = 2404 string title = "现金流量项目明细帐" long backcolor = 82767598 ddlb_1 ddlb_1 ddlb_2 ddlb_2 cbx_1 cbx_1 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 st_1 st_1 end type global w_rp_cashitem_mx w_rp_cashitem_mx on w_rp_cashitem_mx.create int iCurrent call super::create this.ddlb_1=create ddlb_1 this.ddlb_2=create ddlb_2 this.cbx_1=create cbx_1 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.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.cbx_1 this.Control[iCurrent+4]=this.cb_3 this.Control[iCurrent+5]=this.cb_4 this.Control[iCurrent+6]=this.cb_5 this.Control[iCurrent+7]=this.dw_2 this.Control[iCurrent+8]=this.cbx_2 this.Control[iCurrent+9]=this.st_6 this.Control[iCurrent+10]=this.st_5 this.Control[iCurrent+11]=this.st_1 end on on w_rp_cashitem_mx.destroy call super::destroy destroy(this.ddlb_1) destroy(this.ddlb_2) destroy(this.cbx_1) 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.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 dw_2.retrieve(sys_accsetid) 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_cashitem_mx end type type cb_exit from w_publ_easyq`cb_exit within w_rp_cashitem_mx integer x = 1481 end type type cb_2 from w_publ_easyq`cb_2 within w_rp_cashitem_mx integer x = 1051 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_cashitem_mx integer x = 777 integer taborder = 110 boolean bringtotop = true end type type cb_1 from w_publ_easyq`cb_1 within w_rp_cashitem_mx boolean bringtotop = true end type event cb_1::clicked;call super::clicked;Long ls_firstcmon,ls_lastmon Long ll_flowid,ll_accsetid Int ls_postflag,li_deteilflag String ls_flowname,ls_cashcode IF dw_2.GetRow() <= 0 THEN dw_1.reset() return end if IF cbx_1.Checked THEN ls_postflag = -1 ELSE ls_postflag = 1 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_flowid = dw_2.Object.flowid[dw_2.GetRow()] ll_accsetid = dw_2.Object.accsetid[dw_2.GetRow()] li_deteilflag = dw_2.Object.detailfalg[dw_2.GetRow()] ls_flowname = dw_2.Object.flowname[dw_2.GetRow()] ls_cashcode = dw_2.Object.cashcode[dw_2.GetRow()] IF li_deteilflag = 0 THEN dw_1.Reset() ELSE dw_1.Retrieve(ll_accsetid,ll_flowid,ls_firstcmon,ls_lastmon,ls_postflag) END IF dw_1.Object.Month.Text = "会计期间:"+String(ls_firstcmon)+" 至 "+String(ls_lastmon) dw_1.Object.mtrl.Text = ls_cashcode + '-'+ls_flowname dw_1.SetRedraw(TRUE) end event type st_3 from w_publ_easyq`st_3 within w_rp_cashitem_mx integer x = 9 integer width = 288 string text = "会计年度:" end type type st_4 from w_publ_easyq`st_4 within w_rp_cashitem_mx integer x = 1033 integer width = 78 string text = "至" end type type em_1 from w_publ_easyq`em_1 within w_rp_cashitem_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_cashitem_mx integer x = 1911 integer y = 340 integer taborder = 160 end type type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_cashitem_mx integer x = 1865 integer y = 48 integer taborder = 90 end type type cbx_yl from w_publ_easyq`cbx_yl within w_rp_cashitem_mx integer x = 1659 integer y = 60 integer height = 56 integer taborder = 100 end type type dw_1 from w_publ_easyq`dw_1 within w_rp_cashitem_mx integer x = 1545 integer width = 1801 string dataobject = "dw_rp_cashitem_mx" end type event dw_1::doubleclicked;Long ll_row Long ll_credid ll_row = THIS.GetRow() IF ll_row <= 0 THEN RETURN ll_credid = THIS.Object.cw_credence_credid[ll_row] IF ll_credid <= 0 THEN RETURN s_edit_index_tran s_tran //翻页功能窗口 传递参数使用 s_tran.if_retrieve_all = TRUE //是否一次RETRIEVE所有行 s_tran.work_mode = 0 //0-单纯编辑模式, 1-选择模式 s_tran.arg_pkid = 0 //目标定位PKID (备用) s_tran.arg_string_code = '' //查询列部分内容,用于初步筛选 s_tran.e_long = ll_credid OpenWithParm(w_credence_edit,s_tran) end event type ln_bar from w_publ_easyq`ln_bar within w_rp_cashitem_mx end type type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_cashitem_mx end type type r_bar from w_publ_easyq`r_bar within w_rp_cashitem_mx end type type ln_1 from w_publ_easyq`ln_1 within w_rp_cashitem_mx end type type ln_2 from w_publ_easyq`ln_2 within w_rp_cashitem_mx end type type ddlb_1 from dropdownlistbox within w_rp_cashitem_mx integer x = 805 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_cashitem_mx integer x = 1125 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)