$PBExportHeader$w_cmpl_status_qty_ch.srw forward global type w_cmpl_status_qty_ch from w_publ_base end type type cb_1 from uo_imflatbutton within w_cmpl_status_qty_ch end type type sle_1 from singlelineedit within w_cmpl_status_qty_ch end type type rb_1 from radiobutton within w_cmpl_status_qty_ch end type type rb_2 from radiobutton within w_cmpl_status_qty_ch end type type st_1 from statictext within w_cmpl_status_qty_ch end type type st_2 from statictext within w_cmpl_status_qty_ch end type type st_3 from statictext within w_cmpl_status_qty_ch end type type em_1 from editmask within w_cmpl_status_qty_ch end type type ddlb_1 from dropdownlistbox within w_cmpl_status_qty_ch end type type st_4 from statictext within w_cmpl_status_qty_ch end type end forward global type w_cmpl_status_qty_ch from w_publ_base integer width = 1454 integer height = 632 string title = "设定公式" boolean minbox = false windowtype windowtype = response! cb_1 cb_1 sle_1 sle_1 rb_1 rb_1 rb_2 rb_2 st_1 st_1 st_2 st_2 st_3 st_3 em_1 em_1 ddlb_1 ddlb_1 st_4 st_4 end type global w_cmpl_status_qty_ch w_cmpl_status_qty_ch type variables string ls_value long ll_flag string ls_num long ll_type = 0 s_cmpl_addqty s_cmpl end variables on w_cmpl_status_qty_ch.create int iCurrent call super::create this.cb_1=create cb_1 this.sle_1=create sle_1 this.rb_1=create rb_1 this.rb_2=create rb_2 this.st_1=create st_1 this.st_2=create st_2 this.st_3=create st_3 this.em_1=create em_1 this.ddlb_1=create ddlb_1 this.st_4=create st_4 iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.cb_1 this.Control[iCurrent+2]=this.sle_1 this.Control[iCurrent+3]=this.rb_1 this.Control[iCurrent+4]=this.rb_2 this.Control[iCurrent+5]=this.st_1 this.Control[iCurrent+6]=this.st_2 this.Control[iCurrent+7]=this.st_3 this.Control[iCurrent+8]=this.em_1 this.Control[iCurrent+9]=this.ddlb_1 this.Control[iCurrent+10]=this.st_4 end on on w_cmpl_status_qty_ch.destroy call super::destroy destroy(this.cb_1) destroy(this.sle_1) destroy(this.rb_1) destroy(this.rb_2) destroy(this.st_1) destroy(this.st_2) destroy(this.st_3) destroy(this.em_1) destroy(this.ddlb_1) destroy(this.st_4) end on event close;call super::close;closewithreturn(this,s_cmpl) end event event open;call super::open;ddlb_1.additem( sys_option_change_status) ddlb_1.additem( sys_option_change_woodcode) ddlb_1.additem( sys_option_change_pcode) ddlb_1.additem( sys_option_change_mtrlsectype) ddlb_1.additem( sys_option_change_zxmtrlmode) ddlb_1.text = sys_option_change_status ls_value = f_ProfileString (sys_empid,'w_cmpl_status_qty_ch', "value",'0') ll_flag = Long(f_ProfileString (sys_empid,'w_cmpl_status_qty_ch', "flag",'0')) ls_num = f_ProfileString (sys_empid,'w_cmpl_status_qty_ch', "num",'0') IF ll_flag = 0 THEN rb_1.Checked = TRUE ELSE rb_2.Checked = TRUE END IF sle_1.Text = ls_value em_1.text = ls_num end event type cb_func from w_publ_base`cb_func within w_cmpl_status_qty_ch boolean visible = false end type type cb_exit from w_publ_base`cb_exit within w_cmpl_status_qty_ch integer x = 795 integer y = 424 integer width = 302 integer height = 100 end type type cb_1 from uo_imflatbutton within w_cmpl_status_qty_ch integer x = 384 integer y = 424 integer taborder = 20 boolean bringtotop = true string normalpicname = "ok.bmp" end type event clicked;call super::clicked;ls_value = sle_1.Text ls_num = em_1.Text if ls_num > '5' then ls_num = '5' end if IF rb_1.Checked THEN ll_flag = 0 ELSEIF rb_2.Checked THEN ll_flag = 1 END IF f_SetProfileString (sys_empid,"w_cmpl_status_qty_ch", "flag", String(ll_flag)) f_SetProfileString (sys_empid,"w_cmpl_status_qty_ch", "value", ls_value) f_SetProfileString (sys_empid,"w_cmpl_status_qty_ch", "num", ls_num) s_cmpl.flag = ll_flag s_cmpl.addvalue = Dec(ls_value) s_cmpl.cmptype = ll_type s_cmpl.num = Long(ls_num) Close(PARENT) end event type sle_1 from singlelineedit within w_cmpl_status_qty_ch integer x = 905 integer y = 136 integer width = 302 integer height = 84 integer taborder = 30 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 borderstyle borderstyle = stylelowered! end type type rb_1 from radiobutton within w_cmpl_status_qty_ch integer x = 750 integer y = 112 integer width = 155 integer height = 60 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 = "*" end type type rb_2 from radiobutton within w_cmpl_status_qty_ch integer x = 750 integer y = 192 integer width = 160 integer height = 56 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 = "/" end type type st_1 from statictext within w_cmpl_status_qty_ch integer x = 567 integer y = 156 integer width = 178 integer height = 64 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_2 from statictext within w_cmpl_status_qty_ch integer x = 1234 integer y = 156 integer width = 192 integer height = 64 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_cmpl_status_qty_ch integer x = 517 integer y = 304 integer width = 201 integer height = 56 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 em_1 from editmask within w_cmpl_status_qty_ch integer x = 736 integer y = 292 integer width = 238 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 alignment alignment = right! borderstyle borderstyle = stylelowered! string mask = "###0" boolean spin = true double increment = 1 string minmax = "0~~5" end type type ddlb_1 from dropdownlistbox within w_cmpl_status_qty_ch integer x = 23 integer y = 136 integer width = 517 integer height = 464 integer taborder = 50 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 boolean autohscroll = true boolean sorted = false boolean hscrollbar = true boolean vscrollbar = true borderstyle borderstyle = stylelowered! end type event selectionchanged;ll_type = index - 1 end event type st_4 from statictext within w_cmpl_status_qty_ch integer x = 32 integer y = 40 integer width = 645 integer height = 48 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 255 long backcolor = 134217739 string text = "注:请选择参与运算的参数" boolean focusrectangle = false end type