123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- $PBExportHeader$w_outware_pos_rebate.srw
- forward
- global type w_outware_pos_rebate from w_publ_base
- end type
- type cb_1 from uo_imflatbutton within w_outware_pos_rebate
- end type
- type st_1 from statictext within w_outware_pos_rebate
- end type
- type st_mtrlname from statictext within w_outware_pos_rebate
- end type
- type em_1 from editmask within w_outware_pos_rebate
- end type
- type st_2 from statictext within w_outware_pos_rebate
- end type
- type st_3 from statictext within w_outware_pos_rebate
- end type
- end forward
- global type w_outware_pos_rebate from w_publ_base
- integer width = 1481
- integer height = 704
- boolean titlebar = false
- string title = ""
- boolean controlmenu = false
- boolean minbox = false
- windowtype windowtype = response!
- cb_1 cb_1
- st_1 st_1
- st_mtrlname st_mtrlname
- em_1 em_1
- st_2 st_2
- st_3 st_3
- end type
- global w_outware_pos_rebate w_outware_pos_rebate
- type variables
- s_pos_rebate_tran s_rt_stru
- end variables
- event open;call super::open;s_rt_stru = message.powerobjectparm
- em_1.text = string(s_rt_stru.prerebate * 100)
- st_mtrlname.text = string(s_rt_stru.mtrlname)
- em_1.setfocus()
- s_rt_stru.if_ok = 0
- end event
- on w_outware_pos_rebate.create
- int iCurrent
- call super::create
- this.cb_1=create cb_1
- this.st_1=create st_1
- this.st_mtrlname=create st_mtrlname
- this.em_1=create em_1
- this.st_2=create st_2
- this.st_3=create st_3
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.cb_1
- this.Control[iCurrent+2]=this.st_1
- this.Control[iCurrent+3]=this.st_mtrlname
- this.Control[iCurrent+4]=this.em_1
- this.Control[iCurrent+5]=this.st_2
- this.Control[iCurrent+6]=this.st_3
- end on
- on w_outware_pos_rebate.destroy
- call super::destroy
- destroy(this.cb_1)
- destroy(this.st_1)
- destroy(this.st_mtrlname)
- destroy(this.em_1)
- destroy(this.st_2)
- destroy(this.st_3)
- end on
- event close;call super::close;closewithreturn(this,s_rt_stru)
- end event
- type cb_func from w_publ_base`cb_func within w_outware_pos_rebate
- boolean visible = false
- integer y = 804
- end type
- type cb_exit from w_publ_base`cb_exit within w_outware_pos_rebate
- integer x = 882
- integer y = 508
- string text = "退出[ESC]"
- string normalpicname = ""
- end type
- event cb_exit::clicked;s_rt_stru.if_ok = 0
- close(parent)
- end event
- type cb_1 from uo_imflatbutton within w_outware_pos_rebate
- integer x = 320
- integer y = 508
- integer width = 311
- integer height = 96
- integer taborder = 30
- boolean bringtotop = true
- string text = "确定[ENT]"
- boolean default = true
- end type
- event clicked;call super::clicked;if dec(em_1.text)<0 or dec(em_1.text)>100 then
- openwithparm(w_pos_msg,'请输入合理的折扣数值!')
- em_1.setfocus()
- em_1.selecttext( 1, len(em_1.text))
- return
- end if
- s_rt_stru.if_ok = 1
- s_rt_stru.newrebate = dec(em_1.text) / 100
- close(parent)
- end event
- type st_1 from statictext within w_outware_pos_rebate
- integer x = 137
- integer y = 132
- integer width = 558
- integer height = 48
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 16711680
- long backcolor = 134217739
- string text = "商品名称:"
- boolean focusrectangle = false
- end type
- type st_mtrlname from statictext within w_outware_pos_rebate
- integer x = 137
- integer y = 196
- integer width = 1216
- integer height = 48
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 700
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 67108864
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_1 from editmask within w_outware_pos_rebate
- integer x = 370
- integer y = 324
- integer width = 384
- integer height = 84
- integer taborder = 30
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 700
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "00"
- borderstyle borderstyle = stylelowered!
- string mask = "###,###"
- end type
- event getfocus;this.selecttext( 1, len(this.text))
- end event
- type st_2 from statictext within w_outware_pos_rebate
- integer x = 137
- integer y = 340
- integer width = 192
- integer height = 48
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 16711680
- long backcolor = 134217739
- string text = "折扣:"
- boolean focusrectangle = false
- end type
- type st_3 from statictext within w_outware_pos_rebate
- integer x = 782
- integer y = 340
- integer width = 453
- integer height = 48
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 700
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 255
- long backcolor = 134217739
- string text = "例如:8折用80"
- boolean focusrectangle = false
- end type
|