w_item_cust_spt_mx_ch.srw 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. $PBExportHeader$w_item_cust_spt_mx_ch.srw
  2. forward
  3. global type w_item_cust_spt_mx_ch from w_publ_choice
  4. end type
  5. end forward
  6. global type w_item_cust_spt_mx_ch from w_publ_choice
  7. integer width = 1390
  8. integer height = 1988
  9. string title = "项目选择"
  10. end type
  11. global w_item_cust_spt_mx_ch w_item_cust_spt_mx_ch
  12. type variables
  13. String rst_mxname
  14. Long il_itemid
  15. end variables
  16. on w_item_cust_spt_mx_ch.create
  17. call super::create
  18. end on
  19. on w_item_cust_spt_mx_ch.destroy
  20. call super::destroy
  21. end on
  22. event dw_filter;call super::dw_filter;string obj_expr=''
  23. if trim(sle_ch.text)<>'' then
  24. IF POS(trim(sle_ch.text),'%')=0 THEN
  25. obj_expr=obj_expr+'( mxcode LIKE "%'+trim(sle_ch.text)+'%" )'
  26. ELSE
  27. obj_expr=obj_expr+'( mxcode LIKE "'+trim(sle_ch.text)+'" )'
  28. END IF
  29. end if
  30. dw_ch.setfilter(obj_expr)
  31. dw_ch.SetRedraw(False)
  32. dw_ch.filter()
  33. if dw_ch.rowcount()>=1 then
  34. dw_ch.selectrow(0,false)
  35. dw_ch.selectrow(1,true)
  36. end if
  37. dw_ch.SetRedraw(TRUE)
  38. end event
  39. event close;call super::close;CloseWithReturn(THIS,rst_mxname)
  40. end event
  41. event ue_before_open;call super::ue_before_open;il_itemid = Message.DoubleParm
  42. end event
  43. type cb_func from w_publ_choice`cb_func within w_item_cust_spt_mx_ch
  44. end type
  45. type cb_exit from w_publ_choice`cb_exit within w_item_cust_spt_mx_ch
  46. end type
  47. type sle_ch from w_publ_choice`sle_ch within w_item_cust_spt_mx_ch
  48. end type
  49. type dw_ch from w_publ_choice`dw_ch within w_item_cust_spt_mx_ch
  50. integer width = 1321
  51. integer height = 1576
  52. string dataobject = "dw_item_cust_spt_mx_ch"
  53. end type
  54. type st_1 from w_publ_choice`st_1 within w_item_cust_spt_mx_ch
  55. end type
  56. type cb_retrieve from w_publ_choice`cb_retrieve within w_item_cust_spt_mx_ch
  57. end type
  58. event cb_retrieve::clicked;dw_ch.Retrieve(il_itemid)
  59. end event
  60. type cb_choice from w_publ_choice`cb_choice within w_item_cust_spt_mx_ch
  61. end type
  62. event cb_choice::clicked;call super::clicked;Long LS_ROW
  63. LS_ROW = dw_CH.GetRow()
  64. IF LS_ROW <= 0 THEN
  65. MessageBox('提示','请先选择目标行!',information!,ok!)
  66. RETURN
  67. END IF
  68. rst_mxname = dw_CH.Object.mxname[LS_ROW]
  69. Close(PARENT)
  70. end event
  71. type ln_bar from w_publ_choice`ln_bar within w_item_cust_spt_mx_ch
  72. end type
  73. type ln_bar2 from w_publ_choice`ln_bar2 within w_item_cust_spt_mx_ch
  74. end type
  75. type r_bar from w_publ_choice`r_bar within w_item_cust_spt_mx_ch
  76. end type
  77. type ln_1 from w_publ_choice`ln_1 within w_item_cust_spt_mx_ch
  78. end type
  79. type ln_2 from w_publ_choice`ln_2 within w_item_cust_spt_mx_ch
  80. end type