$PBExportHeader$w_outware_pos_price.srw forward global type w_outware_pos_price from w_publ_base end type type cb_1 from uo_imflatbutton within w_outware_pos_price end type type em_1 from editmask within w_outware_pos_price end type type st_1 from statictext within w_outware_pos_price end type type st_mtrlname from statictext within w_outware_pos_price end type type st_2 from statictext within w_outware_pos_price end type end forward global type w_outware_pos_price 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 em_1 em_1 st_1 st_1 st_mtrlname st_mtrlname st_2 st_2 end type global w_outware_pos_price w_outware_pos_price type variables s_pos_price_tran s_rt_stru end variables event open;call super::open;s_rt_stru = message.powerobjectparm em_1.text = string(s_rt_stru.preprice) st_mtrlname.text = string(s_rt_stru.mtrlname) em_1.setfocus() s_rt_stru.if_ok = 0 end event on w_outware_pos_price.create int iCurrent call super::create this.cb_1=create cb_1 this.em_1=create em_1 this.st_1=create st_1 this.st_mtrlname=create st_mtrlname this.st_2=create st_2 iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.cb_1 this.Control[iCurrent+2]=this.em_1 this.Control[iCurrent+3]=this.st_1 this.Control[iCurrent+4]=this.st_mtrlname this.Control[iCurrent+5]=this.st_2 end on on w_outware_pos_price.destroy call super::destroy destroy(this.cb_1) destroy(this.em_1) destroy(this.st_1) destroy(this.st_mtrlname) destroy(this.st_2) 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_price boolean visible = false integer y = 748 end type type cb_exit from w_publ_base`cb_exit within w_outware_pos_price integer x = 786 integer y = 492 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_price integer x = 279 integer y = 492 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;s_rt_stru.if_ok = 1 s_rt_stru.newprice = dec(em_1.text) close(parent) end event type em_1 from editmask within w_outware_pos_price integer x = 315 integer y = 296 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 = "0.00" borderstyle borderstyle = stylelowered! string mask = "###,##0.00" end type event getfocus;this.selecttext( 1, len(this.text)) end event type st_1 from statictext within w_outware_pos_price 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_price 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 st_2 from statictext within w_outware_pos_price integer x = 137 integer y = 312 integer width = 315 integer height = 48 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