123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- $PBExportHeader$w_rp_msttake_notds.srw
- forward
- global type w_rp_msttake_notds from w_publ_easyq
- end type
- type tv_1 from uo_tv_cusarea within w_rp_msttake_notds
- end type
- type st_1 from statictext within w_rp_msttake_notds
- end type
- type ddlb_2 from uo_ddlb_scid within w_rp_msttake_notds
- end type
- type st_2 from statictext within w_rp_msttake_notds
- end type
- type ddlb_money from uo_ddlb_moneyid within w_rp_msttake_notds
- end type
- end forward
- global type w_rp_msttake_notds 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_money ddlb_money
- end type
- global w_rp_msttake_notds w_rp_msttake_notds
- type variables
- String ls_areaname = ''
- long ins_moneyid=0
- long cur_scid
- long cur_scid_arr[]
- end variables
- on w_rp_msttake_notds.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_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_money
- end on
- on w_rp_msttake_notds.destroy
- call super::destroy
- destroy(this.tv_1)
- destroy(this.st_1)
- destroy(this.ddlb_2)
- destroy(this.st_2)
- destroy(this.ddlb_money)
- end on
- event resize;call super::resize;tv_1.Height = dw_1.Height
- end event
- type cb_func from w_publ_easyq`cb_func within w_rp_msttake_notds
- end type
- type cb_exit from w_publ_easyq`cb_exit within w_rp_msttake_notds
- end type
- type cb_2 from w_publ_easyq`cb_2 within w_rp_msttake_notds
- boolean bringtotop = true
- end type
- type cb_psetup from w_publ_easyq`cb_psetup within w_rp_msttake_notds
- boolean bringtotop = true
- end type
- type cb_1 from w_publ_easyq`cb_1 within w_rp_msttake_notds
- boolean bringtotop = true
- end type
- event cb_1::clicked;call super::clicked;dw_1.Retrieve(ls_areaname,ins_moneyid,cur_scid_arr)
- dw_1.object.t_1.text = '客户未对数汇总表(' + trim(left(ddlb_money.text,pos(ddlb_money.text,'[') - 1))+')'
- end event
- type st_3 from w_publ_easyq`st_3 within w_rp_msttake_notds
- boolean visible = false
- integer y = 220
- end type
- type st_4 from w_publ_easyq`st_4 within w_rp_msttake_notds
- boolean visible = false
- integer y = 220
- end type
- type em_1 from w_publ_easyq`em_1 within w_rp_msttake_notds
- boolean visible = false
- integer y = 204
- end type
- type em_2 from w_publ_easyq`em_2 within w_rp_msttake_notds
- boolean visible = false
- integer y = 204
- end type
- type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_msttake_notds
- integer y = 12
- end type
- type cbx_yl from w_publ_easyq`cbx_yl within w_rp_msttake_notds
- integer y = 16
- end type
- type dw_1 from w_publ_easyq`dw_1 within w_rp_msttake_notds
- integer x = 859
- integer y = 304
- integer width = 2501
- integer height = 1580
- string dataobject = "dw_rp_msttake_notds"
- end type
- event dw_1::constructor;//
- end event
- event dw_1::destructor;//
- end event
- type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_msttake_notds
- end type
- type sle_cust from w_publ_easyq`sle_cust within w_rp_msttake_notds
- end type
- type st_mtrl from w_publ_easyq`st_mtrl within w_rp_msttake_notds
- end type
- type st_cust from w_publ_easyq`st_cust within w_rp_msttake_notds
- end type
- type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_msttake_notds
- boolean visible = true
- end type
- type pb_em1 from w_publ_easyq`pb_em1 within w_rp_msttake_notds
- boolean visible = false
- end type
- type pb_em2 from w_publ_easyq`pb_em2 within w_rp_msttake_notds
- boolean visible = false
- end type
- type pb_2 from w_publ_easyq`pb_2 within w_rp_msttake_notds
- boolean visible = false
- end type
- type cb_help from w_publ_easyq`cb_help within w_rp_msttake_notds
- end type
- type cb_copyself from w_publ_easyq`cb_copyself within w_rp_msttake_notds
- end type
- type gb_1 from w_publ_easyq`gb_1 within w_rp_msttake_notds
- end type
- type ln_bar from w_publ_easyq`ln_bar within w_rp_msttake_notds
- end type
- type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_msttake_notds
- end type
- type r_bar from w_publ_easyq`r_bar within w_rp_msttake_notds
- end type
- type ln_1 from w_publ_easyq`ln_1 within w_rp_msttake_notds
- end type
- type ln_2 from w_publ_easyq`ln_2 within w_rp_msttake_notds
- end type
- type ln_3 from w_publ_easyq`ln_3 within w_rp_msttake_notds
- end type
- type ln_4 from w_publ_easyq`ln_4 within w_rp_msttake_notds
- end type
- type tv_1 from uo_tv_cusarea within w_rp_msttake_notds
- integer y = 304
- 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_msttake_notds
- 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_msttake_notds
- 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;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_msttake_notds
- 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_money from uo_ddlb_moneyid within w_rp_msttake_notds
- 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;Long ll_moneyid, ll_moneyid_save, ll_moneyid_get
- long cnt
- String ls_name, ls_name_get
- String ls_space
- Int li_spacenum
- Boolean lb_getdft = FALSE
- ll_moneyid_save = Long(f_ProfileString (sys_empid,String(PARENT.ClassName()), "moneyid",'0'))
- //SELECT count(*) INTO :cnt FROM cw_currency ;
- //IF cnt > 1 THEN
- // THIS.AddItem ('[全部]')
- //END IF
- DECLARE getmx CURSOR FOR
- SELECT moneyid,Name FROM cw_currency Order By moneyid ;
- OPEN getmx;
- DO WHILE sqlca.SQLCode = 0
- FETCH getmx INTO :ll_moneyid,:ls_name ;
- IF sqlca.SQLCode <> 0 THEN EXIT
-
- li_spacenum = 50 - Len(Trim(ls_name)) - 2 - Len(String(ll_moneyid))
- ls_space = Fill(' ',li_spacenum)
-
- THIS.AddItem (ls_name+ls_space+'['+String(ll_moneyid)+']')
-
- IF NOT lb_getdft THEN
- ll_moneyid_get = ll_moneyid
- ls_name_get = ls_name
- END IF
-
- IF ll_moneyid_save = ll_moneyid THEN
- lb_getdft = TRUE
- ll_moneyid_get = ll_moneyid
- ls_name_get = ls_name
- END IF
- LOOP
- CLOSE getmx;
- if ll_moneyid_save = -1 then
- THIS.Text = '[全部]'
- THIS.uo_moneyid = -1
- else
- li_spacenum = 50 - Len(Trim(ls_name_get)) - 2 - Len(String(ll_moneyid_get))
- ls_space = Fill(' ',li_spacenum)
- THIS.Text = ls_name_get+ls_space+'['+String(ll_moneyid_get)+']'
- THIS.uo_moneyid = ll_moneyid_get
- end if
- ins_moneyid = THIS.uo_moneyid
- end event
|