w_unit_def_ch.srw 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. $PBExportHeader$w_unit_def_ch.srw
  2. forward
  3. global type w_unit_def_ch from w_unit_def
  4. end type
  5. end forward
  6. global type w_unit_def_ch from w_unit_def
  7. boolean minbox = false
  8. windowtype windowtype = response!
  9. end type
  10. global w_unit_def_ch w_unit_def_ch
  11. type variables
  12. s_unit INS_RT_STRU
  13. end variables
  14. on w_unit_def_ch.create
  15. call super::create
  16. end on
  17. on w_unit_def_ch.destroy
  18. call super::destroy
  19. end on
  20. event close;call super::close;CloseWithReturn(THIS,INS_RT_STRU)
  21. end event
  22. type cb_func from w_unit_def`cb_func within w_unit_def_ch
  23. end type
  24. type cb_exit from w_unit_def`cb_exit within w_unit_def_ch
  25. integer x = 987
  26. end type
  27. type cb_add from w_unit_def`cb_add within w_unit_def_ch
  28. end type
  29. type cb_edit from w_unit_def`cb_edit within w_unit_def_ch
  30. end type
  31. type cb_delet from w_unit_def`cb_delet within w_unit_def_ch
  32. end type
  33. type cb_choice from w_unit_def`cb_choice within w_unit_def_ch
  34. boolean visible = true
  35. integer x = 686
  36. boolean enabled = true
  37. end type
  38. event cb_choice::clicked;call super::clicked;LONG LS_ROW
  39. LS_ROW=dw_uc.getrow()
  40. if LS_ROW<=0 then
  41. messagebox('提示','请先选择目标行!', Information!, OK! )
  42. return
  43. end if
  44. INS_RT_STRU.unit=dw_uc.OBJECT.unit[LS_ROW]
  45. CLOSE(PARENT)
  46. end event
  47. type dw_uc from w_unit_def`dw_uc within w_unit_def_ch
  48. end type
  49. event dw_uc::doubleclicked;call super::doubleclicked;cb_choice.triggerevent(clicked!)
  50. end event
  51. type cb_rtr from w_unit_def`cb_rtr within w_unit_def_ch
  52. end type
  53. type cb_help from w_unit_def`cb_help within w_unit_def_ch
  54. integer x = 837
  55. end type
  56. type ln_bar from w_unit_def`ln_bar within w_unit_def_ch
  57. end type
  58. type ln_bar2 from w_unit_def`ln_bar2 within w_unit_def_ch
  59. end type
  60. type r_bar from w_unit_def`r_bar within w_unit_def_ch
  61. end type
  62. type cb_view from w_unit_def`cb_view within w_unit_def_ch
  63. boolean visible = false
  64. end type