w_fileclass_ch.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. $PBExportHeader$w_fileclass_ch.srw
  2. forward
  3. global type w_fileclass_ch from w_publ_choice
  4. end type
  5. end forward
  6. global type w_fileclass_ch from w_publ_choice
  7. integer width = 1984
  8. integer height = 1424
  9. string title = "附件分类选择"
  10. end type
  11. global w_fileclass_ch w_fileclass_ch
  12. type variables
  13. long ins_billtype
  14. long ins_classid = 0
  15. end variables
  16. on w_fileclass_ch.create
  17. call super::create
  18. end on
  19. on w_fileclass_ch.destroy
  20. call super::destroy
  21. end on
  22. event open;ins_billtype = message.doubleparm
  23. call super::open
  24. end event
  25. event close;call super::close;CLOSEWITHRETURN(THIS,ins_classid)
  26. end event
  27. event dw_filter;call super::dw_filter;String obj_expr = ''
  28. IF Trim(sle_ch.Text) <> '' THEN
  29. IF Pos(Trim(sle_ch.Text),'%') = 0 THEN
  30. obj_expr = obj_expr+'( classname LIKE "%'+Trim(sle_ch.Text)+'%" )'
  31. ELSE
  32. obj_expr = obj_expr+'( classname LIKE "'+Trim(sle_ch.Text)+'" )'
  33. END IF
  34. END IF
  35. dw_ch.SetFilter(obj_expr)
  36. dw_ch.SetRedraw(FALSE)
  37. dw_ch.Filter()
  38. IF dw_ch.RowCount() >= 1 THEN
  39. dw_ch.SelectRow(0,FALSE)
  40. dw_ch.SelectRow(1,TRUE)
  41. END IF
  42. dw_ch.SetRedraw(TRUE)
  43. end event
  44. type cb_func from w_publ_choice`cb_func within w_fileclass_ch
  45. end type
  46. type cb_exit from w_publ_choice`cb_exit within w_fileclass_ch
  47. end type
  48. type sle_ch from w_publ_choice`sle_ch within w_fileclass_ch
  49. boolean visible = false
  50. integer x = 334
  51. end type
  52. type dw_ch from w_publ_choice`dw_ch within w_fileclass_ch
  53. integer y = 180
  54. integer width = 1920
  55. integer height = 1100
  56. string dataobject = "dw_fileclass_ch"
  57. end type
  58. type st_1 from w_publ_choice`st_1 within w_fileclass_ch
  59. boolean visible = false
  60. integer y = 200
  61. integer width = 288
  62. string text = "分类名称含"
  63. end type
  64. type cb_retrieve from w_publ_choice`cb_retrieve within w_fileclass_ch
  65. end type
  66. event cb_retrieve::clicked;dw_ch.retrieve(ins_billtype)
  67. end event
  68. type cb_choice from w_publ_choice`cb_choice within w_fileclass_ch
  69. end type
  70. event cb_choice::clicked;call super::clicked;LONG LS_ROW
  71. LS_ROW=dw_CH.getrow()
  72. if LS_ROW<=0 then
  73. messagebox('系统提示','请先选择目标行!',StopSign!)
  74. return
  75. end if
  76. ins_classid = dw_ch.object.classid[ls_row]
  77. CLOSE(PARENT)
  78. end event
  79. type ln_bar from w_publ_choice`ln_bar within w_fileclass_ch
  80. end type
  81. type ln_bar2 from w_publ_choice`ln_bar2 within w_fileclass_ch
  82. end type
  83. type r_bar from w_publ_choice`r_bar within w_fileclass_ch
  84. end type
  85. type ln_1 from w_publ_choice`ln_1 within w_fileclass_ch
  86. boolean visible = false
  87. end type
  88. type ln_2 from w_publ_choice`ln_2 within w_fileclass_ch
  89. boolean visible = false
  90. end type