123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- $PBExportHeader$w_rp_gz_wage.srw
- forward
- global type w_rp_gz_wage from w_publ_easyq
- end type
- type em_mth from editmask within w_rp_gz_wage
- end type
- type ddlb_1 from dropdownlistbox within w_rp_gz_wage
- end type
- type st_1 from statictext within w_rp_gz_wage
- end type
- type ddlb_2 from dropdownlistbox within w_rp_gz_wage
- end type
- end forward
- global type w_rp_gz_wage from w_publ_easyq
- string title = "工资表"
- em_mth em_mth
- ddlb_1 ddlb_1
- st_1 st_1
- ddlb_2 ddlb_2
- end type
- global w_rp_gz_wage w_rp_gz_wage
- on w_rp_gz_wage.create
- int iCurrent
- call super::create
- this.em_mth=create em_mth
- this.ddlb_1=create ddlb_1
- this.st_1=create st_1
- this.ddlb_2=create ddlb_2
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.em_mth
- this.Control[iCurrent+2]=this.ddlb_1
- this.Control[iCurrent+3]=this.st_1
- this.Control[iCurrent+4]=this.ddlb_2
- end on
- on w_rp_gz_wage.destroy
- call super::destroy
- destroy(this.em_mth)
- destroy(this.ddlb_1)
- destroy(this.st_1)
- destroy(this.ddlb_2)
- end on
- event ue_before_open;call super::ue_before_open;if_ue_sentdataout = True
- IF Message.DoubleParm > 200001 And Message.DoubleParm < 209912 THEN
- em_mth.Text = String(Message.DoubleParm)
- ELSE
- em_mth.Text = String(Today(),'yyyymm')
- END IF
- f_getdept(ddlb_1)
- ddlb_1.Text = '全部'
- wf_replacedw()
- //cb_1.triggerevent(clicked!)
- end event
- type cb_func from w_publ_easyq`cb_func within w_rp_gz_wage
- end type
- type cb_exit from w_publ_easyq`cb_exit within w_rp_gz_wage
- end type
- type cb_2 from w_publ_easyq`cb_2 within w_rp_gz_wage
- end type
- type cb_psetup from w_publ_easyq`cb_psetup within w_rp_gz_wage
- end type
- type cb_1 from w_publ_easyq`cb_1 within w_rp_gz_wage
- end type
- event cb_1::clicked;call super::clicked;dw_1.Retrieve(long(em_mth.text))
- end event
- type st_3 from w_publ_easyq`st_3 within w_rp_gz_wage
- integer x = 37
- integer y = 216
- integer width = 160
- string text = "月份"
- alignment alignment = center!
- end type
- type st_4 from w_publ_easyq`st_4 within w_rp_gz_wage
- integer x = 585
- integer y = 352
- end type
- type em_1 from w_publ_easyq`em_1 within w_rp_gz_wage
- integer x = 201
- integer y = 352
- end type
- type em_2 from w_publ_easyq`em_2 within w_rp_gz_wage
- integer y = 352
- end type
- type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_gz_wage
- end type
- type cbx_yl from w_publ_easyq`cbx_yl within w_rp_gz_wage
- end type
- type dw_1 from w_publ_easyq`dw_1 within w_rp_gz_wage
- integer y = 300
- string dataobject = "dw_mthwage_crosrpt"
- end type
- type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_gz_wage
- end type
- type sle_cust from w_publ_easyq`sle_cust within w_rp_gz_wage
- end type
- type st_mtrl from w_publ_easyq`st_mtrl within w_rp_gz_wage
- end type
- type st_cust from w_publ_easyq`st_cust within w_rp_gz_wage
- end type
- type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_gz_wage
- boolean visible = true
- end type
- type pb_em1 from w_publ_easyq`pb_em1 within w_rp_gz_wage
- boolean visible = false
- end type
- type pb_em2 from w_publ_easyq`pb_em2 within w_rp_gz_wage
- boolean visible = false
- end type
- type pb_2 from w_publ_easyq`pb_2 within w_rp_gz_wage
- boolean visible = false
- end type
- type cb_help from w_publ_easyq`cb_help within w_rp_gz_wage
- end type
- type cb_copyself from w_publ_easyq`cb_copyself within w_rp_gz_wage
- end type
- type gb_1 from w_publ_easyq`gb_1 within w_rp_gz_wage
- end type
- type ln_bar from w_publ_easyq`ln_bar within w_rp_gz_wage
- end type
- type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_gz_wage
- end type
- type r_bar from w_publ_easyq`r_bar within w_rp_gz_wage
- end type
- type ln_1 from w_publ_easyq`ln_1 within w_rp_gz_wage
- end type
- type ln_2 from w_publ_easyq`ln_2 within w_rp_gz_wage
- end type
- type ln_3 from w_publ_easyq`ln_3 within w_rp_gz_wage
- end type
- type ln_4 from w_publ_easyq`ln_4 within w_rp_gz_wage
- end type
- type em_mth from editmask within w_rp_gz_wage
- integer x = 197
- integer y = 200
- integer width = 329
- integer height = 88
- integer taborder = 80
- boolean bringtotop = true
- integer textsize = -10
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyymm"
- boolean spin = true
- end type
- type ddlb_1 from dropdownlistbox within w_rp_gz_wage
- integer x = 727
- integer y = 200
- integer width = 590
- integer height = 680
- integer taborder = 80
- 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[] = {"全部"}
- borderstyle borderstyle = stylelowered!
- end type
- event selectionchanged;if this.text='全部' then
- dw_1.setfilter('')
- else
- DW_1.setfilter("departmentname='"+this.text+"'")
- end if
- dw_1.filter()
- end event
- type st_1 from statictext within w_rp_gz_wage
- integer x = 535
- integer y = 216
- integer width = 169
- 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 = "部门"
- alignment alignment = right!
- boolean focusrectangle = false
- end type
- type ddlb_2 from dropdownlistbox within w_rp_gz_wage
- integer x = 1847
- integer y = 28
- integer width = 370
- integer height = 452
- integer taborder = 90
- 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;dw_1.uf_save_profile_layout()
- IF ddlb_2.Text = '格式一' THEN
- dw_1.DataObject = 'dw_mthwage_crosrpt'
- ELSE
- dw_1.DataObject = 'dw_mthwage_crosrpt_1' //格式二存在平项时合计实发工资有错误
- END IF
- wf_replacedw()
- //dw_1.SetTransObject(sqlca)
- //
- //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()
- cb_1.TriggerEvent(Clicked!)
- end event
|