123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- $PBExportHeader$w_rp_subid_hz.srw
- forward
- global type w_rp_subid_hz from w_publ_easyq
- end type
- type cbx_1 from checkbox within w_rp_subid_hz
- end type
- type cb_3 from uo_imflatbutton within w_rp_subid_hz
- end type
- type cb_4 from uo_imflatbutton within w_rp_subid_hz
- end type
- type cb_5 from uo_imflatbutton within w_rp_subid_hz
- end type
- type cbx_2 from checkbox within w_rp_subid_hz
- end type
- end forward
- global type w_rp_subid_hz from w_publ_easyq
- integer width = 3502
- integer height = 2200
- string title = "总分类帐"
- long backcolor = 80269524
- boolean if_ue_sentdataout = true
- cbx_1 cbx_1
- cb_3 cb_3
- cb_4 cb_4
- cb_5 cb_5
- cbx_2 cbx_2
- end type
- global w_rp_subid_hz w_rp_subid_hz
- type variables
- boolean is_display=false
- long firstmon,lastmon,subgrade,cur_year,ls_firstmon,ls_lastmon,ls_grade_len
- string firstsubid,lastsubid
- end variables
- forward prototypes
- public subroutine wf_retrieve ()
- end prototypes
- public subroutine wf_retrieve ();string ls_modify
- IF cbx_2.Checked THEN
- ls_modify += "destroy cw_balance_rawdebit ~n "
- ls_modify += "destroy cw_balance_rawcredit ~n "
- ls_modify += "destroy cw_balance_rawdebit_t ~n "
- ls_modify += "destroy cw_balance_rawcredit_t ~n "
- ls_modify += "destroy rawbalc ~n "
- ls_modify += "destroy rawbalc_t ~n "
-
- dw_1.Modify(ls_modify)
- ELSE
- dw_1.DataObject = 'dw_rp_subid_hz'
- dw_1.SetTransObject(sqlca)
- END IF
- dw_1.retrieve(sys_accsetid,sys_subaccsetid,firstsubid,lastsubid,ls_firstmon,ls_lastmon,ls_grade_len)
- dw_1.object.month.text="会计期间:"+string(ls_firstmon)+" 至 "+string(ls_lastmon)
- end subroutine
- on w_rp_subid_hz.create
- int iCurrent
- call super::create
- 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.cbx_2=create cbx_2
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.cbx_1
- this.Control[iCurrent+2]=this.cb_3
- this.Control[iCurrent+3]=this.cb_4
- this.Control[iCurrent+4]=this.cb_5
- this.Control[iCurrent+5]=this.cbx_2
- end on
- on w_rp_subid_hz.destroy
- call super::destroy
- destroy(this.cbx_1)
- destroy(this.cb_3)
- destroy(this.cb_4)
- destroy(this.cb_5)
- destroy(this.cbx_2)
- end on
- event open;this.triggerevent('ue_before_open')
- wf_movetocenter()
- 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_1.SetTransObject (sqlca)
- cb_1.triggerevent(clicked!)
- 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_subid_hz
- end type
- type cb_exit from w_publ_easyq`cb_exit within w_rp_subid_hz
- integer x = 1701
- end type
- type cb_2 from w_publ_easyq`cb_2 within w_rp_subid_hz
- integer x = 1262
- integer taborder = 120
- boolean bringtotop = true
- end type
- type cb_psetup from w_publ_easyq`cb_psetup within w_rp_subid_hz
- integer x = 1006
- boolean bringtotop = true
- end type
- type cb_1 from w_publ_easyq`cb_1 within w_rp_subid_hz
- boolean bringtotop = true
- string text = "过滤"
- end type
- event cb_1::clicked;OPEN(w_rp_type_hz)
- st_3.Text = '会计年度:'
- st_4.Text = '会计期间:'
- s_rp_type s_rp_type_hz
- s_rp_type_hz = Message.PowerObjectParm
- cur_year = s_rp_type_hz.Year
- IF cur_year = 0 THEN
- IF is_display THEN
- RETURN
- ELSE
- CLOSE(PARENT)
- RETURN
- END IF
- END IF
- is_display = TRUE
- firstmon = s_rp_type_hz.firstmon
- lastmon = s_rp_type_hz.lastmon
- subgrade = s_rp_type_hz.subidgrade
- firstsubid = s_rp_type_hz.firstsubid
- lastsubid = s_rp_type_hz.lastsubid
- st_3.Text = '会计年度:'+String(cur_year)
- st_4.Text = '会计期间:'+String(firstmon)+' 至 '+String(lastmon)
- ls_firstmon = cur_year * 100 + firstmon
- ls_lastmon = cur_year * 100 + lastmon
- ls_grade_len = f_rst_grade_len(subgrade)
- wf_retrieve()
- end event
- type st_3 from w_publ_easyq`st_3 within w_rp_subid_hz
- integer x = 46
- integer y = 464
- integer width = 453
- integer height = 64
- integer weight = 700
- long backcolor = 16776960
- string text = "会计年度:2002"
- alignment alignment = left!
- boolean border = true
- end type
- type st_4 from w_publ_easyq`st_4 within w_rp_subid_hz
- boolean visible = false
- integer x = 407
- integer y = 888
- integer width = 526
- integer height = 64
- integer weight = 700
- long backcolor = 16776960
- string text = "会计期间:2 至 2 "
- alignment alignment = left!
- boolean border = true
- end type
- type em_1 from w_publ_easyq`em_1 within w_rp_subid_hz
- integer x = 608
- integer y = 440
- integer taborder = 130
- end type
- type em_2 from w_publ_easyq`em_2 within w_rp_subid_hz
- boolean visible = false
- integer x = 983
- integer y = 888
- integer taborder = 140
- end type
- type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_subid_hz
- integer x = 2089
- integer y = 56
- end type
- type cbx_yl from w_publ_easyq`cbx_yl within w_rp_subid_hz
- integer x = 1874
- integer y = 56
- end type
- type dw_1 from w_publ_easyq`dw_1 within w_rp_subid_hz
- integer y = 300
- integer width = 2935
- integer height = 1216
- string dataobject = "dw_rp_subid_hz"
- end type
- type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_subid_hz
- integer x = 1733
- integer y = 916
- end type
- type sle_cust from w_publ_easyq`sle_cust within w_rp_subid_hz
- integer x = 571
- integer y = 916
- end type
- type st_mtrl from w_publ_easyq`st_mtrl within w_rp_subid_hz
- integer x = 1275
- integer y = 932
- end type
- type st_cust from w_publ_easyq`st_cust within w_rp_subid_hz
- integer x = 110
- integer y = 932
- end type
- type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_subid_hz
- integer x = 1938
- integer y = 740
- end type
- type pb_em1 from w_publ_easyq`pb_em1 within w_rp_subid_hz
- boolean visible = false
- integer x = 562
- integer y = 1096
- end type
- type pb_em2 from w_publ_easyq`pb_em2 within w_rp_subid_hz
- boolean visible = false
- integer x = 1175
- integer y = 1096
- end type
- type pb_2 from w_publ_easyq`pb_2 within w_rp_subid_hz
- boolean visible = false
- integer x = 1285
- integer y = 1096
- end type
- type cb_help from w_publ_easyq`cb_help within w_rp_subid_hz
- boolean visible = false
- integer x = 1659
- integer y = 712
- end type
- type cb_copyself from w_publ_easyq`cb_copyself within w_rp_subid_hz
- integer x = 750
- end type
- type gb_1 from w_publ_easyq`gb_1 within w_rp_subid_hz
- end type
- type ln_bar from w_publ_easyq`ln_bar within w_rp_subid_hz
- end type
- type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_subid_hz
- end type
- type r_bar from w_publ_easyq`r_bar within w_rp_subid_hz
- end type
- type ln_1 from w_publ_easyq`ln_1 within w_rp_subid_hz
- end type
- type ln_2 from w_publ_easyq`ln_2 within w_rp_subid_hz
- end type
- type ln_3 from w_publ_easyq`ln_3 within w_rp_subid_hz
- boolean visible = false
- end type
- type ln_4 from w_publ_easyq`ln_4 within w_rp_subid_hz
- boolean visible = false
- end type
- type cbx_1 from checkbox within w_rp_subid_hz
- integer x = 23
- integer y = 204
- integer width = 466
- integer height = 76
- 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;if this.checked then
- cbx_yl.enabled = false
- dw_1.dataobject= 'dw_rp_subid_hz_2'
- else
- cbx_yl.enabled = true
- dw_1.dataobject= 'dw_rp_subid_hz'
- end if
- dw_1.settransobject(sqlca)
- wf_retrieve()
- end event
- type cb_3 from uo_imflatbutton within w_rp_subid_hz
- integer x = 302
- integer width = 224
- integer height = 164
- integer taborder = 100
- boolean bringtotop = true
- string text = "上一页"
- string normalpicname = "p5.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;dw_1.ScrollPriorPage()
- end event
- type cb_4 from uo_imflatbutton within w_rp_subid_hz
- integer x = 526
- integer width = 224
- integer height = 164
- integer taborder = 90
- boolean bringtotop = true
- string text = "下一页"
- string normalpicname = "p6.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;dw_1.ScrollNextPage()
- end event
- type cb_5 from uo_imflatbutton within w_rp_subid_hz
- integer x = 1413
- integer width = 288
- integer height = 164
- integer taborder = 80
- boolean bringtotop = true
- string text = "打印封面"
- string normalpicname = "print.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;S_print_MSG LS_PRMSG
- LS_PRMSG.obj_dwNAME = 'dw_rp_fm_subid_hz'
- LS_PRMSG.TAG_TEXT = '封面'
- LS_PRMSG.FILTER_STRING = ''
- LS_PRMSG.retr_pram_falg = -1
- LS_PRMSG.PAGECH_FLAG = 0
- OpenWithParm(w_publ_preview,LS_PRMSG)
- end event
- type cbx_2 from checkbox within w_rp_subid_hz
- integer x = 645
- integer y = 212
- integer width = 521
- 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 = "不显示原币金额"
- boolean checked = true
- end type
- event clicked;wf_retrieve()
- end event
|