m_xls_pop.srm 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. $PBExportHeader$m_xls_pop.srm
  2. $PBExportComments$By PBKiller v2.5.18(http://kivens.nease.net)
  3. forward
  4. global type m_xls_pop from menu
  5. end type
  6. type m_panel from menu within m_xls_pop
  7. end type
  8. type m_查找 from menu within m_panel
  9. end type
  10. type m_expandall from menu within m_panel
  11. end type
  12. type m_collapseall from menu within m_panel
  13. end type
  14. type m_pop_panelrefresh from menu within m_panel
  15. end type
  16. type m_- from menu within m_panel
  17. end type
  18. type m_displayid from menu within m_panel
  19. end type
  20. type m_smallicon from menu within m_panel
  21. end type
  22. type m_panel from menu within m_xls_pop
  23. m_查找 m_查找
  24. m_expandall m_expandall
  25. m_collapseall m_collapseall
  26. m_pop_panelrefresh m_pop_panelrefresh
  27. m_- m_-
  28. m_displayid m_displayid
  29. m_smallicon m_smallicon
  30. end type
  31. global type m_xls_pop from menu
  32. m_panel m_panel
  33. end type
  34. end forward
  35. global type m_xls_pop from menu
  36. m_panel m_panel
  37. end type
  38. global m_xls_pop m_xls_pop
  39. type variables
  40. public u_function_panel iuo_parent
  41. end variables
  42. on m_xls_pop.create
  43. m_xls_pop=this
  44. call super::create
  45. this.text = "m_pop"
  46. this.m_panel=create m_panel
  47. this.Item[UpperBound(this.Item)+1]=this.m_panel
  48. end on
  49. on m_xls_pop.destroy
  50. call super::destroy
  51. destroy(this.m_panel)
  52. end on
  53. type m_panel from menu within m_xls_pop
  54. m_查找 m_查找
  55. m_expandall m_expandall
  56. m_collapseall m_collapseall
  57. m_pop_panelrefresh m_pop_panelrefresh
  58. m_- m_-
  59. m_displayid m_displayid
  60. m_smallicon m_smallicon
  61. end type
  62. on m_panel.create
  63. call super::create
  64. this.text = "系统模块"
  65. this.m_查找=create m_查找
  66. this.m_expandall=create m_expandall
  67. this.m_collapseall=create m_collapseall
  68. this.m_pop_panelrefresh=create m_pop_panelrefresh
  69. this.m_-=create m_-
  70. this.m_displayid=create m_displayid
  71. this.m_smallicon=create m_smallicon
  72. this.Item[UpperBound(this.Item)+1]=this.m_查找
  73. this.Item[UpperBound(this.Item)+1]=this.m_expandall
  74. this.Item[UpperBound(this.Item)+1]=this.m_collapseall
  75. this.Item[UpperBound(this.Item)+1]=this.m_pop_panelrefresh
  76. this.Item[UpperBound(this.Item)+1]=this.m_-
  77. this.Item[UpperBound(this.Item)+1]=this.m_displayid
  78. this.Item[UpperBound(this.Item)+1]=this.m_smallicon
  79. end on
  80. on m_panel.destroy
  81. call super::destroy
  82. destroy(this.m_查找)
  83. destroy(this.m_expandall)
  84. destroy(this.m_collapseall)
  85. destroy(this.m_pop_panelrefresh)
  86. destroy(this.m_-)
  87. destroy(this.m_displayid)
  88. destroy(this.m_smallicon)
  89. end on
  90. event clicked;if not IsValid( iuo_parent ) then return
  91. end event
  92. type m_查找 from menu within m_panel
  93. end type
  94. event clicked;if not IsValid( iuo_parent ) then return
  95. iuo_parent.triggerevent( 'ue_getfindtext')
  96. end event
  97. on m_查找.create
  98. call super::create
  99. this.text = "查找"
  100. end on
  101. on m_查找.destroy
  102. call super::destroy
  103. end on
  104. type m_expandall from menu within m_panel
  105. end type
  106. event clicked;long ll_hdl[1024]
  107. long li_cnt = 1
  108. if not IsValid( iuo_parent ) then return
  109. ll_hdl[1] = iuo_parent.tv_function.finditem(roottreeitem!,0)
  110. iuo_parent.tv_function.expanditem(ll_hdl[1])
  111. do while ll_hdl[li_cnt] > 0
  112. ll_hdl[li_cnt + 1] = iuo_parent.tv_function.finditem(nexttreeitem!,ll_hdl[li_cnt])
  113. iuo_parent.tv_function.expanditem(ll_hdl[li_cnt])
  114. li_cnt ++
  115. loop
  116. end event
  117. on m_expandall.create
  118. call super::create
  119. this.text = "展开"
  120. end on
  121. on m_expandall.destroy
  122. call super::destroy
  123. end on
  124. type m_collapseall from menu within m_panel
  125. end type
  126. event clicked;long ll_hdl[1024]
  127. long li_cnt = 1
  128. if not IsValid( iuo_parent ) then return
  129. ll_hdl[1] = iuo_parent.tv_function.finditem(roottreeitem!,0)
  130. iuo_parent.tv_function.expanditem(ll_hdl[1])
  131. do while ll_hdl[li_cnt] > 0
  132. ll_hdl[li_cnt + 1] = iuo_parent.tv_function.finditem(nexttreeitem!,ll_hdl[li_cnt])
  133. iuo_parent.tv_function.collapseitem(ll_hdl[li_cnt])
  134. li_cnt ++
  135. loop
  136. end event
  137. on m_collapseall.create
  138. call super::create
  139. this.text = "收拢"
  140. end on
  141. on m_collapseall.destroy
  142. call super::destroy
  143. end on
  144. type m_pop_panelrefresh from menu within m_panel
  145. end type
  146. event clicked;if not IsValid( iuo_parent ) then return
  147. iuo_parent.ddplb_module.event selectionchanged( iuo_parent.ii_selindex)
  148. end event
  149. on m_pop_panelrefresh.create
  150. call super::create
  151. this.text = "刷新"
  152. this.microhelp = "刷新功能列表"
  153. end on
  154. on m_pop_panelrefresh.destroy
  155. call super::destroy
  156. end on
  157. type m_- from menu within m_panel
  158. end type
  159. on m_-.create
  160. call super::create
  161. this.text = "-"
  162. end on
  163. on m_-.destroy
  164. call super::destroy
  165. end on
  166. type m_displayid from menu within m_panel
  167. end type
  168. event clicked;if not IsValid( iuo_parent ) then return
  169. if not checked then
  170. iuo_parent.is_displayid = "Y"
  171. else
  172. iuo_parent.is_displayid = "N"
  173. end if
  174. iuo_parent.ddplb_module.event selectionchanged( iuo_parent.ii_selindex)
  175. //iuo_parent.of_buildtreeview(iuo_parent.is_ddplb,0,false)
  176. end event
  177. on m_displayid.create
  178. call super::create
  179. this.text = "显示模块编号"
  180. end on
  181. on m_displayid.destroy
  182. call super::destroy
  183. end on
  184. type m_smallicon from menu within m_panel
  185. end type
  186. event clicked;if not IsValid( iuo_parent ) then return
  187. if not checked then
  188. iuo_parent.is_smallicon = "Y"
  189. iuo_parent.iuo_list[iuo_parent.ii_curgroup].view = listviewsmallicon!
  190. else
  191. iuo_parent.is_smallicon = "N"
  192. iuo_parent.iuo_list[iuo_parent.ii_curgroup].view = listviewlargeicon!
  193. end if
  194. iuo_parent.of_refreshlist(iuo_parent.ii_curgroup)
  195. iuo_parent.ids_module.setfilter("")
  196. iuo_parent.ids_module.filter()
  197. iuo_parent.ids_module.sort()
  198. iuo_parent.ids_function.setfilter("")
  199. iuo_parent.ids_function.filter()
  200. iuo_parent.ids_function.sort()
  201. //iuo_parent.ddplb_module.event selectionchanged( iuo_parent.ii_selindex)
  202. end event
  203. on m_smallicon.create
  204. call super::create
  205. this.text = "以小图标方式排列"
  206. end on
  207. on m_smallicon.destroy
  208. call super::destroy
  209. end on