$PBExportHeader$w_item_cust_spt_mx_ch.srw forward global type w_item_cust_spt_mx_ch from w_publ_choice end type end forward global type w_item_cust_spt_mx_ch from w_publ_choice integer width = 1390 integer height = 1988 string title = "项目选择" end type global w_item_cust_spt_mx_ch w_item_cust_spt_mx_ch type variables String rst_mxname Long il_itemid end variables on w_item_cust_spt_mx_ch.create call super::create end on on w_item_cust_spt_mx_ch.destroy call super::destroy end on event dw_filter;call super::dw_filter;string obj_expr='' if trim(sle_ch.text)<>'' then IF POS(trim(sle_ch.text),'%')=0 THEN obj_expr=obj_expr+'( mxcode LIKE "%'+trim(sle_ch.text)+'%" )' ELSE obj_expr=obj_expr+'( mxcode LIKE "'+trim(sle_ch.text)+'" )' END IF end if dw_ch.setfilter(obj_expr) dw_ch.SetRedraw(False) dw_ch.filter() if dw_ch.rowcount()>=1 then dw_ch.selectrow(0,false) dw_ch.selectrow(1,true) end if dw_ch.SetRedraw(TRUE) end event event close;call super::close;CloseWithReturn(THIS,rst_mxname) end event event ue_before_open;call super::ue_before_open;il_itemid = Message.DoubleParm end event type cb_func from w_publ_choice`cb_func within w_item_cust_spt_mx_ch end type type cb_exit from w_publ_choice`cb_exit within w_item_cust_spt_mx_ch end type type sle_ch from w_publ_choice`sle_ch within w_item_cust_spt_mx_ch end type type dw_ch from w_publ_choice`dw_ch within w_item_cust_spt_mx_ch integer width = 1321 integer height = 1576 string dataobject = "dw_item_cust_spt_mx_ch" end type type st_1 from w_publ_choice`st_1 within w_item_cust_spt_mx_ch end type type cb_retrieve from w_publ_choice`cb_retrieve within w_item_cust_spt_mx_ch end type event cb_retrieve::clicked;dw_ch.Retrieve(il_itemid) end event type cb_choice from w_publ_choice`cb_choice within w_item_cust_spt_mx_ch end type event cb_choice::clicked;call super::clicked;Long LS_ROW LS_ROW = dw_CH.GetRow() IF LS_ROW <= 0 THEN MessageBox('提示','请先选择目标行!',information!,ok!) RETURN END IF rst_mxname = dw_CH.Object.mxname[LS_ROW] Close(PARENT) end event type ln_bar from w_publ_choice`ln_bar within w_item_cust_spt_mx_ch end type type ln_bar2 from w_publ_choice`ln_bar2 within w_item_cust_spt_mx_ch end type type r_bar from w_publ_choice`r_bar within w_item_cust_spt_mx_ch end type type ln_1 from w_publ_choice`ln_1 within w_item_cust_spt_mx_ch end type type ln_2 from w_publ_choice`ln_2 within w_item_cust_spt_mx_ch end type