$PBExportHeader$w_p_quote_com.srw forward global type w_p_quote_com from w_publ_base end type type st_1 from statictext within w_p_quote_com end type type ddlb_1 from dropdownlistbox within w_p_quote_com end type type em_1 from editmask within w_p_quote_com end type type st_2 from statictext within w_p_quote_com end type type ddlb_2 from dropdownlistbox within w_p_quote_com end type type st_3 from statictext within w_p_quote_com end type type cb_1 from uo_imflatbutton within w_p_quote_com end type end forward global type w_p_quote_com from w_publ_base integer width = 1335 integer height = 656 string title = "按公式批设定单价" boolean minbox = false windowtype windowtype = response! st_1 st_1 ddlb_1 ddlb_1 em_1 em_1 st_2 st_2 ddlb_2 ddlb_2 st_3 st_3 cb_1 cb_1 end type global w_p_quote_com w_p_quote_com type variables s_edit_index_tran s_tran end variables on w_p_quote_com.create int iCurrent call super::create this.st_1=create st_1 this.ddlb_1=create ddlb_1 this.em_1=create em_1 this.st_2=create st_2 this.ddlb_2=create ddlb_2 this.st_3=create st_3 this.cb_1=create cb_1 iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.st_1 this.Control[iCurrent+2]=this.ddlb_1 this.Control[iCurrent+3]=this.em_1 this.Control[iCurrent+4]=this.st_2 this.Control[iCurrent+5]=this.ddlb_2 this.Control[iCurrent+6]=this.st_3 this.Control[iCurrent+7]=this.cb_1 end on on w_p_quote_com.destroy call super::destroy destroy(this.st_1) destroy(this.ddlb_1) destroy(this.em_1) destroy(this.st_2) destroy(this.ddlb_2) destroy(this.st_3) destroy(this.cb_1) end on event close;call super::close;closewithreturn(this,s_tran) end event type cb_func from w_publ_base`cb_func within w_p_quote_com boolean visible = false end type type cb_exit from w_publ_base`cb_exit within w_p_quote_com integer x = 795 integer y = 388 end type event cb_exit::clicked;s_tran.b_long = 0 Close(PARENT) end event type st_1 from statictext within w_p_quote_com integer x = 59 integer y = 88 integer width = 507 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_1 from dropdownlistbox within w_p_quote_com integer x = 535 integer y = 76 integer width = 242 integer height = 300 integer taborder = 30 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 type em_1 from editmask within w_p_quote_com integer x = 800 integer y = 80 integer width = 338 integer height = 84 integer taborder = 40 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "1.00" borderstyle borderstyle = stylelowered! string mask = "###,###.00###" end type type st_2 from statictext within w_p_quote_com integer x = 64 integer y = 204 integer width = 562 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 dropdownlistbox within w_p_quote_com integer x = 631 integer y = 192 integer width = 174 integer height = 356 integer taborder = 50 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "2" boolean sorted = false string item[] = {"0","1","2","3","4","5"} borderstyle borderstyle = stylelowered! end type type st_3 from statictext within w_p_quote_com integer x = 814 integer y = 204 integer width = 101 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 cb_1 from uo_imflatbutton within w_p_quote_com integer x = 256 integer y = 388 integer width = 311 integer height = 96 integer taborder = 20 boolean bringtotop = true end type event clicked;call super::clicked;IF ddlb_1.Text = '÷' AND Dec(em_1.Text) <= 0 THEN MessageBox('系统提示','执行除法时,参数不能为0!') em_1.SetFocus() RETURN END IF IF ddlb_1.Text = '×' THEN s_tran.b_long = 1 ELSEIF ddlb_1.Text = '÷' THEN s_tran.b_long = 2 ELSEIF ddlb_1.Text = '+' THEN s_tran.b_long = 3 ELSEIF ddlb_1.Text = '-' THEN s_tran.b_long = 4 END IF s_tran.c_long = Long(ddlb_2.Text) s_tran.c_decimal = Dec(em_1.Text) Close(PARENT) end event