$PBExportHeader$w_mtrlarea_rate.srw forward global type w_mtrlarea_rate from w_publ_base end type type em_1 from editmask within w_mtrlarea_rate end type type st_1 from statictext within w_mtrlarea_rate end type type cb_1 from uo_imflatbutton within w_mtrlarea_rate end type type ddlb_1 from dropdownlistbox within w_mtrlarea_rate end type type st_2 from statictext within w_mtrlarea_rate end type type st_3 from statictext within w_mtrlarea_rate end type end forward global type w_mtrlarea_rate from w_publ_base integer width = 1106 integer height = 592 string title = "比例" boolean minbox = false windowtype windowtype = response! em_1 em_1 st_1 st_1 cb_1 cb_1 ddlb_1 ddlb_1 st_2 st_2 st_3 st_3 end type global w_mtrlarea_rate w_mtrlarea_rate type variables decimal rslt_rebate s_edit_index_tran s_tranf8 end variables on w_mtrlarea_rate.create int iCurrent call super::create this.em_1=create em_1 this.st_1=create st_1 this.cb_1=create cb_1 this.ddlb_1=create ddlb_1 this.st_2=create st_2 this.st_3=create st_3 iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.em_1 this.Control[iCurrent+2]=this.st_1 this.Control[iCurrent+3]=this.cb_1 this.Control[iCurrent+4]=this.ddlb_1 this.Control[iCurrent+5]=this.st_2 this.Control[iCurrent+6]=this.st_3 end on on w_mtrlarea_rate.destroy call super::destroy destroy(this.em_1) destroy(this.st_1) destroy(this.cb_1) destroy(this.ddlb_1) destroy(this.st_2) destroy(this.st_3) end on event close;call super::close;CloseWithReturn(THIS,s_tranf8) end event type cb_func from w_publ_base`cb_func within w_mtrlarea_rate boolean visible = false integer x = 160 integer y = 640 boolean enabled = false end type type cb_exit from w_publ_base`cb_exit within w_mtrlarea_rate integer x = 613 integer y = 296 end type event cb_exit::clicked;rslt_rebate = 0 close(parent) end event type em_1 from editmask within w_mtrlarea_rate integer x = 288 integer y = 144 integer width = 402 integer height = 84 integer taborder = 10 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "1.00" alignment alignment = right! borderstyle borderstyle = stylelowered! maskdatatype maskdatatype = decimalmask! string mask = "#,##0.00###" end type type st_1 from statictext within w_mtrlarea_rate integer x = 123 integer y = 152 integer width = 165 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 cb_1 from uo_imflatbutton within w_mtrlarea_rate integer x = 146 integer y = 296 integer width = 311 integer height = 96 integer taborder = 20 boolean bringtotop = true end type event clicked;call super::clicked;s_tranf8.b_decimal = Dec(em_1.Text) IF ddlb_1.Text = '油漆面积' THEN s_tranf8.b_long = 0 ELSEIF ddlb_1.Text = '油漆面积1' THEN s_tranf8.b_long = 1 ELSEIF ddlb_1.Text = '油漆面积2' THEN s_tranf8.b_long = 2 END IF Close(PARENT) end event type ddlb_1 from dropdownlistbox within w_mtrlarea_rate integer x = 288 integer y = 52 integer width = 549 integer height = 452 integer taborder = 10 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[] = {"油漆面积","油漆面积1","油漆面积2"} borderstyle borderstyle = stylelowered! end type type st_2 from statictext within w_mtrlarea_rate integer x = 197 integer y = 64 integer width = 78 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 st_3 from statictext within w_mtrlarea_rate integer x = 855 integer y = 64 integer width = 119 integer height = 68 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