m_ljerp2_main_menu_item_sp1.srm 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. $PBExportHeader$m_ljerp2_main_menu_item_sp1.srm
  2. $PBExportComments$超级菜单
  3. forward
  4. global type m_ljerp2_main_menu_item_sp1 from menu
  5. end type
  6. type m_temp from menu within m_ljerp2_main_menu_item_sp1
  7. end type
  8. global type m_ljerp2_main_menu_item_sp1 from menu
  9. m_temp m_temp
  10. end type
  11. end forward
  12. shared variables
  13. end variables
  14. global type m_ljerp2_main_menu_item_sp1 from menu
  15. m_temp m_temp
  16. end type
  17. global m_ljerp2_main_menu_item_sp1 m_ljerp2_main_menu_item_sp1
  18. type variables
  19. end variables
  20. on m_ljerp2_main_menu_item_sp1.create
  21. m_ljerp2_main_menu_item_sp1=this
  22. call super::create
  23. this.text = "m_ljerp2_main_menu_item"
  24. this.menutextcolor = 134217735
  25. this.menubackcolor = 134217732
  26. this.menuhighlightcolor = 134217741
  27. this.textsize = 8
  28. this.weight = 400
  29. this.facename = "Tahoma"
  30. this.titlebackcolor = 134217730
  31. this.bitmapbackcolor = 12632256
  32. this.menubitmaps = true
  33. this.titlegradient = true
  34. this.toolbartextcolor = 134217746
  35. this.toolbarbackcolor = 67108864
  36. this.toolbarhighlightcolor = 134217741
  37. this.toolbargradient = true
  38. this.bitmapgradient = true
  39. this.m_temp=create m_temp
  40. this.Item[UpperBound(this.Item)+1]=this.m_temp
  41. end on
  42. on m_ljerp2_main_menu_item_sp1.destroy
  43. call super::destroy
  44. destroy(this.m_temp)
  45. end on
  46. type m_temp from menu within m_ljerp2_main_menu_item_sp1
  47. end type
  48. on m_temp.create
  49. call super::create
  50. this.text = "Temp"
  51. this.menutextcolor = 134217735
  52. this.menubackcolor = 134217732
  53. this.menuhighlightcolor = 134217741
  54. this.textsize = 8
  55. this.weight = 400
  56. this.facename = "Tahoma"
  57. this.titlebackcolor = 134217730
  58. this.bitmapbackcolor = 12632256
  59. this.menubitmaps = true
  60. this.titlegradient = true
  61. this.toolbartextcolor = 134217746
  62. this.toolbarbackcolor = 67108864
  63. this.toolbarhighlightcolor = 134217741
  64. this.toolbargradient = true
  65. this.bitmapgradient = true
  66. end on
  67. on m_temp.destroy
  68. call super::destroy
  69. end on
  70. event clicked;//====================================================================
  71. // 事件(Event): m_temp::clicked()
  72. //--------------------------------------------------------------------
  73. // 描述(Description): 菜单条触发时
  74. //--------------------------------------------------------------------
  75. // 参数(Arguments): (None)
  76. //--------------------------------------------------------------------
  77. // 返回(Returns): (None)
  78. //--------------------------------------------------------------------
  79. //====================================================================
  80. IF UpperBound(Item) = 0 THEN
  81. String dsEventName
  82. //u_Dfc_Base_Func duFunc
  83. //duFunc.uf_GetKeyValue(Tag, "Event")
  84. dsEventName = 'ue_main_menu_commnd'
  85. // If dsEventName <> "" Then
  86. // 如果有效
  87. // If IsValid(igoObject) Then
  88. // igoObject.TriggerEvent(dsEventName,long(Tag))
  89. // Else
  90. IF Pos(Text,'(嵌入式)') > 0 THEN
  91. dsEventName = 'ue_main_meun_report'
  92. ELSEIF Pos(Text,'(外挂)') > 0 THEN
  93. dsEventName = 'ue_main_meun_plugins'
  94. ELSE
  95. dsEventName = 'ue_main_menu_commnd'
  96. END IF
  97. IF IsValid(w_main_scware) THEN
  98. w_main_scware.TriggerEvent(dsEventName,Long(Tag),Long(Tag))
  99. END IF
  100. // IF IsValid(w_main_scware_biz) THEN
  101. // w_main_scware_biz.TriggerEvent(dsEventName,Long(Tag),Long(Tag))
  102. // END IF
  103. // End If
  104. // End If
  105. END IF
  106. end event