w_sc_wkp_ch.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. $PBExportHeader$w_sc_wkp_ch.srw
  2. forward
  3. global type w_sc_wkp_ch from w_publ_choice
  4. end type
  5. end forward
  6. global type w_sc_wkp_ch from w_publ_choice
  7. integer width = 2263
  8. integer height = 1844
  9. string title = "车间选择"
  10. end type
  11. global w_sc_wkp_ch w_sc_wkp_ch
  12. type variables
  13. s_workgroup s_wkp
  14. Long i_scid
  15. end variables
  16. on w_sc_wkp_ch.create
  17. call super::create
  18. end on
  19. on w_sc_wkp_ch.destroy
  20. call super::destroy
  21. end on
  22. event ue_before_open;call super::ue_before_open;i_scid = Message.DoubleParm
  23. end event
  24. event dw_filter;call super::dw_filter;String obj_expr = ''
  25. IF Trim(sle_ch.Text) <> '' THEN
  26. IF Pos(Trim(sle_ch.Text),'%') = 0 THEN
  27. obj_expr = obj_expr+'( wrkgrpname LIKE "%'+Trim(sle_ch.Text)+'%" )'
  28. ELSE
  29. obj_expr = obj_expr+'( wrkgrpname LIKE "'+Trim(sle_ch.Text)+'" )'
  30. END IF
  31. END IF
  32. dw_ch.SetFilter(obj_expr)
  33. dw_ch.SetRedraw(FALSE)
  34. dw_ch.Filter()
  35. IF dw_ch.RowCount() >= 1 THEN
  36. dw_ch.SelectRow(0,FALSE)
  37. dw_ch.SelectRow(1,TRUE)
  38. END IF
  39. dw_ch.SetRedraw(TRUE)
  40. end event
  41. event close;call super::close;CLOSEWITHRETURN(THIS,s_wkp)
  42. end event
  43. type cb_func from w_publ_choice`cb_func within w_sc_wkp_ch
  44. end type
  45. type cb_exit from w_publ_choice`cb_exit within w_sc_wkp_ch
  46. end type
  47. event cb_exit::clicked;s_wkp.wrkgrpid = 0
  48. Close(PARENT)
  49. end event
  50. type sle_ch from w_publ_choice`sle_ch within w_sc_wkp_ch
  51. integer x = 279
  52. end type
  53. type dw_ch from w_publ_choice`dw_ch within w_sc_wkp_ch
  54. integer width = 2194
  55. string dataobject = "dw_sc_wkp_ch"
  56. end type
  57. type st_1 from w_publ_choice`st_1 within w_sc_wkp_ch
  58. integer width = 233
  59. string text = "名称含:"
  60. boolean righttoleft = false
  61. end type
  62. type cb_retrieve from w_publ_choice`cb_retrieve within w_sc_wkp_ch
  63. end type
  64. event cb_retrieve::clicked;dw_ch.retrieve(i_scid)
  65. end event
  66. type cb_choice from w_publ_choice`cb_choice within w_sc_wkp_ch
  67. end type
  68. event cb_choice::clicked;call super::clicked;Long LS_ROW
  69. LS_ROW = dw_CH.GetRow()
  70. IF LS_ROW <= 0 THEN
  71. MessageBox('系统提示','请先选择目标行!',StopSign!)
  72. RETURN
  73. END IF
  74. s_wkp.wrkgrpid = dw_CH.Object.wrkgrpid[LS_ROW]
  75. s_wkp.wrkgrpname = dw_CH.Object.wrkgrpname[LS_ROW]
  76. s_wkp.storageid = dw_CH.Object.storageid[LS_ROW]
  77. Close(PARENT)
  78. end event
  79. type ln_bar from w_publ_choice`ln_bar within w_sc_wkp_ch
  80. end type
  81. type ln_bar2 from w_publ_choice`ln_bar2 within w_sc_wkp_ch
  82. end type
  83. type r_bar from w_publ_choice`r_bar within w_sc_wkp_ch
  84. integer x = 1504
  85. end type
  86. type ln_1 from w_publ_choice`ln_1 within w_sc_wkp_ch
  87. end type
  88. type ln_2 from w_publ_choice`ln_2 within w_sc_wkp_ch
  89. end type