123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- $PBExportHeader$w_fileclass_ch.srw
- forward
- global type w_fileclass_ch from w_publ_choice
- end type
- end forward
- global type w_fileclass_ch from w_publ_choice
- integer width = 1984
- integer height = 1424
- string title = "附件分类选择"
- end type
- global w_fileclass_ch w_fileclass_ch
- type variables
- long ins_billtype
- long ins_classid = 0
- end variables
- on w_fileclass_ch.create
- call super::create
- end on
- on w_fileclass_ch.destroy
- call super::destroy
- end on
- event open;ins_billtype = message.doubleparm
- call super::open
- end event
- event close;call super::close;CLOSEWITHRETURN(THIS,ins_classid)
- end event
- 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+'( classname LIKE "%'+Trim(sle_ch.Text)+'%" )'
- ELSE
- obj_expr = obj_expr+'( classname 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
- type cb_func from w_publ_choice`cb_func within w_fileclass_ch
- end type
- type cb_exit from w_publ_choice`cb_exit within w_fileclass_ch
- end type
- type sle_ch from w_publ_choice`sle_ch within w_fileclass_ch
- boolean visible = false
- integer x = 334
- end type
- type dw_ch from w_publ_choice`dw_ch within w_fileclass_ch
- integer y = 180
- integer width = 1920
- integer height = 1100
- string dataobject = "dw_fileclass_ch"
- end type
- type st_1 from w_publ_choice`st_1 within w_fileclass_ch
- boolean visible = false
- integer y = 200
- integer width = 288
- string text = "分类名称含"
- end type
- type cb_retrieve from w_publ_choice`cb_retrieve within w_fileclass_ch
- end type
- event cb_retrieve::clicked;dw_ch.retrieve(ins_billtype)
- end event
- type cb_choice from w_publ_choice`cb_choice within w_fileclass_ch
- end type
- event cb_choice::clicked;call super::clicked;LONG LS_ROW
- LS_ROW=dw_CH.getrow()
- if LS_ROW<=0 then
- messagebox('系统提示','请先选择目标行!',StopSign!)
- return
- end if
- ins_classid = dw_ch.object.classid[ls_row]
- CLOSE(PARENT)
- end event
- type ln_bar from w_publ_choice`ln_bar within w_fileclass_ch
- end type
- type ln_bar2 from w_publ_choice`ln_bar2 within w_fileclass_ch
- end type
- type r_bar from w_publ_choice`r_bar within w_fileclass_ch
- end type
- type ln_1 from w_publ_choice`ln_1 within w_fileclass_ch
- boolean visible = false
- end type
- type ln_2 from w_publ_choice`ln_2 within w_fileclass_ch
- boolean visible = false
- end type
|