$PBExportHeader$w_publ_input_expr_posi.srw forward global type w_publ_input_expr_posi from w_publ_base end type type cb_add from uo_imflatbutton within w_publ_input_expr_posi end type type cb_repl from uo_imflatbutton within w_publ_input_expr_posi end type type sle_nr from u_sleedit within w_publ_input_expr_posi end type type cbx_else from checkbox within w_publ_input_expr_posi end type type cbx_dist from checkbox within w_publ_input_expr_posi end type type cb_setposition from uo_imflatbutton within w_publ_input_expr_posi end type end forward global type w_publ_input_expr_posi from w_publ_base integer x = 407 integer y = 224 integer width = 1979 integer height = 364 string title = "请填入补充内容" boolean controlmenu = false boolean minbox = false windowtype windowtype = response! cb_add cb_add cb_repl cb_repl sle_nr sle_nr cbx_else cbx_else cbx_dist cbx_dist cb_setposition cb_setposition end type global w_publ_input_expr_posi w_publ_input_expr_posi type variables string cur_filter_expr //当前FILTER表达式 string cur_filter_expr_INCHA //当前FILTER表达式中文表示 s_esq_tran ls_esq_tran //返回结构 INT SHORTHEIGHT=360,LONGHEIGHT=1000 end variables on w_publ_input_expr_posi.create int iCurrent call super::create this.cb_add=create cb_add this.cb_repl=create cb_repl this.sle_nr=create sle_nr this.cbx_else=create cbx_else this.cbx_dist=create cbx_dist this.cb_setposition=create cb_setposition iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.cb_add this.Control[iCurrent+2]=this.cb_repl this.Control[iCurrent+3]=this.sle_nr this.Control[iCurrent+4]=this.cbx_else this.Control[iCurrent+5]=this.cbx_dist this.Control[iCurrent+6]=this.cb_setposition end on on w_publ_input_expr_posi.destroy call super::destroy destroy(this.cb_add) destroy(this.cb_repl) destroy(this.sle_nr) destroy(this.cbx_else) destroy(this.cbx_dist) destroy(this.cb_setposition) end on event open;call super::open;ls_esq_tran=Message.PowerObjectParm this.title='筛选项目: '+ls_esq_tran.title +' 包含' sle_nr.text=ls_esq_tran.cur_data cur_filter_expr=ls_esq_tran.cur_filter_expr cur_filter_expr_INCHA=ls_esq_tran.cur_filter_expr_INCHA THIS.HEIGHT=SHORTHEIGHT environment exerun_env GetEnvironment(exerun_env ) this.x=ls_esq_tran.x - 200 this.y=ls_esq_tran.y - 130 if this.x<0 then this.x=0 if this.y<0 then this.y=0 if this.x > PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width then this.x = PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width if this.y > PixelsToUnits(exerun_env.screenheight, yPixelsToUnits!) - this.HeighT then this.y = PixelsToUnits(exerun_env.screenheight, yPixelsToUnits!) - this.HeighT ls_esq_tran.return_flag=0 if trim(sle_nr.text)<>'' then cb_add.enabled=true sle_nr.SelectText(1,len(sle_nr.text)) end if end event event close;CloseWithReturn(THIS,ls_esq_tran) end event event rbuttondown;call super::rbuttondown;cb_exit.TriggerEvent(clicked!) end event type cb_func from w_publ_base`cb_func within w_publ_input_expr_posi boolean visible = false integer x = 1614 integer y = 128 integer taborder = 40 boolean enabled = false end type type cb_exit from w_publ_base`cb_exit within w_publ_input_expr_posi integer x = 997 integer y = 136 integer width = 325 integer taborder = 30 string text = "取消" end type event cb_exit::clicked;ls_esq_tran.cur_data=trim(sle_nr.text) ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED Close(parent) end event type cb_add from uo_imflatbutton within w_publ_input_expr_posi boolean visible = false integer x = 434 integer y = 148 integer width = 325 integer height = 96 integer taborder = 50 boolean enabled = false string text = "增加条件" end type event clicked;call super::clicked;ls_esq_tran.cur_data=trim(sle_nr.text) ls_esq_tran.return_flag=1 ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED Close(parent) end event type cb_repl from uo_imflatbutton within w_publ_input_expr_posi boolean visible = false integer x = 59 integer y = 148 integer width = 325 integer height = 96 integer taborder = 20 string text = "重新查询" end type event clicked;call super::clicked;ls_esq_tran.cur_data=trim(sle_nr.text) ls_esq_tran.return_flag=2 ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED Close(parent) end event type sle_nr from u_sleedit within w_publ_input_expr_posi integer x = 9 integer y = 24 integer width = 1554 boolean bringtotop = true end type event inputchanged;if trim(this.text)<>'' then cb_add.enabled=true else cb_add.enabled=false end if end event type cbx_else from checkbox within w_publ_input_expr_posi boolean visible = false integer x = 1591 integer y = 16 integer width = 224 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 = "除外" end type type cbx_dist from checkbox within w_publ_input_expr_posi integer x = 1591 integer y = 36 integer width = 402 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 cb_setposition from uo_imflatbutton within w_publ_input_expr_posi integer x = 320 integer y = 136 integer width = 325 integer height = 96 integer taborder = 40 boolean bringtotop = true string text = "定位" boolean default = true end type event clicked;call super::clicked;ls_esq_tran.cur_data=trim(sle_nr.text) ls_esq_tran.return_flag=4 ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED Close(parent) end event