w_workgroup_edit_ch.srw 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. $PBExportHeader$w_workgroup_edit_ch.srw
  2. forward
  3. global type w_workgroup_edit_ch from w_workgroup
  4. end type
  5. end forward
  6. global type w_workgroup_edit_ch from w_workgroup
  7. boolean minbox = false
  8. windowtype windowtype = response!
  9. end type
  10. global w_workgroup_edit_ch w_workgroup_edit_ch
  11. type variables
  12. long ins_workgroupid
  13. end variables
  14. on w_workgroup_edit_ch.create
  15. call super::create
  16. end on
  17. on w_workgroup_edit_ch.destroy
  18. call super::destroy
  19. end on
  20. event open;call super::open;ins_workgroupid = 0
  21. end event
  22. event close;call super::close;closewithreturn(this, ins_workgroupid)
  23. end event
  24. type cb_func from w_workgroup`cb_func within w_workgroup_edit_ch
  25. end type
  26. type cb_exit from w_workgroup`cb_exit within w_workgroup_edit_ch
  27. integer x = 1330
  28. end type
  29. type cb_add from w_workgroup`cb_add within w_workgroup_edit_ch
  30. end type
  31. type cb_edit from w_workgroup`cb_edit within w_workgroup_edit_ch
  32. end type
  33. type cb_delet from w_workgroup`cb_delet within w_workgroup_edit_ch
  34. end type
  35. type cb_choice from w_workgroup`cb_choice within w_workgroup_edit_ch
  36. boolean visible = true
  37. integer x = 850
  38. boolean enabled = true
  39. end type
  40. event cb_choice::clicked;call super::clicked;if dw_edit_mode then return
  41. long ll_row
  42. ll_row = dw_uc.GetRow()
  43. if ll_row <= 0 then
  44. MessageBox('提示', '请选择工作中心')
  45. return
  46. end if
  47. ins_workgroupid = dw_uc.Object.workgroupid[ll_row]
  48. close(parent)
  49. end event
  50. type dw_uc from w_workgroup`dw_uc within w_workgroup_edit_ch
  51. end type
  52. type cb_rtr from w_workgroup`cb_rtr within w_workgroup_edit_ch
  53. end type
  54. type cb_help from w_workgroup`cb_help within w_workgroup_edit_ch
  55. integer x = 1179
  56. end type
  57. type ln_bar from w_workgroup`ln_bar within w_workgroup_edit_ch
  58. end type
  59. type ln_bar2 from w_workgroup`ln_bar2 within w_workgroup_edit_ch
  60. end type
  61. type r_bar from w_workgroup`r_bar within w_workgroup_edit_ch
  62. end type
  63. type cb_print from w_workgroup`cb_print within w_workgroup_edit_ch
  64. integer x = 1015
  65. end type