m_publ_func.srm 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. $PBExportHeader$m_publ_func.srm
  2. forward
  3. global type m_publ_func from menu
  4. end type
  5. type m_func from menu within m_publ_func
  6. end type
  7. type m_retr from menu within m_func
  8. end type
  9. type m_filter from menu within m_func
  10. end type
  11. type m_sort from menu within m_func
  12. end type
  13. type m_sentdataout from menu within m_func
  14. end type
  15. type m_func from menu within m_publ_func
  16. m_retr m_retr
  17. m_filter m_filter
  18. m_sort m_sort
  19. m_sentdataout m_sentdataout
  20. end type
  21. global type m_publ_func from menu
  22. m_func m_func
  23. end type
  24. end forward
  25. global type m_publ_func from menu
  26. m_func m_func
  27. end type
  28. global m_publ_func m_publ_func
  29. on m_publ_func.create
  30. m_publ_func=this
  31. call super::create
  32. this.text = "m_publ"
  33. this.m_func=create m_func
  34. this.Item[UpperBound(this.Item)+1]=this.m_func
  35. end on
  36. on m_publ_func.destroy
  37. call super::destroy
  38. destroy(this.m_func)
  39. end on
  40. type m_func from menu within m_publ_func
  41. m_retr m_retr
  42. m_filter m_filter
  43. m_sort m_sort
  44. m_sentdataout m_sentdataout
  45. end type
  46. on m_func.create
  47. call super::create
  48. this.text = " "
  49. this.m_retr=create m_retr
  50. this.m_filter=create m_filter
  51. this.m_sort=create m_sort
  52. this.m_sentdataout=create m_sentdataout
  53. this.Item[UpperBound(this.Item)+1]=this.m_retr
  54. this.Item[UpperBound(this.Item)+1]=this.m_filter
  55. this.Item[UpperBound(this.Item)+1]=this.m_sort
  56. this.Item[UpperBound(this.Item)+1]=this.m_sentdataout
  57. end on
  58. on m_func.destroy
  59. call super::destroy
  60. destroy(this.m_retr)
  61. destroy(this.m_filter)
  62. destroy(this.m_sort)
  63. destroy(this.m_sentdataout)
  64. end on
  65. type m_retr from menu within m_func
  66. end type
  67. on m_retr.create
  68. call super::create
  69. this.text = "查询"
  70. end on
  71. on m_retr.destroy
  72. call super::destroy
  73. end on
  74. event clicked;m_publ_func.getparent().triggerevent("ue_retr")
  75. //CommandButton btn
  76. //menu m
  77. //m=this.getparent().getparent()
  78. ////messagebox("",this.getparent().getparent().classname())
  79. //messagebox("",m.getparent().classname())
  80. //messagebox("",this.getparent().getparent().getparent().classname())
  81. //parent.triggerevent("ue_retr")
  82. //btn=this.getparent()
  83. //window w
  84. //w=btn.getparent()
  85. //w.triggerevent("ue_retr")
  86. end event
  87. type m_filter from menu within m_func
  88. end type
  89. on m_filter.create
  90. call super::create
  91. this.text = "高级筛选"
  92. end on
  93. on m_filter.destroy
  94. call super::destroy
  95. end on
  96. type m_sort from menu within m_func
  97. end type
  98. on m_sort.create
  99. call super::create
  100. this.text = "排序"
  101. end on
  102. on m_sort.destroy
  103. call super::destroy
  104. end on
  105. type m_sentdataout from menu within m_func
  106. end type
  107. on m_sentdataout.create
  108. call super::create
  109. this.text = "数据发送"
  110. end on
  111. on m_sentdataout.destroy
  112. call super::destroy
  113. end on