123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- $PBExportHeader$m_xls_pop.srm
- $PBExportComments$By PBKiller v2.5.18(http://kivens.nease.net)
- forward
- global type m_xls_pop from menu
- end type
- type m_panel from menu within m_xls_pop
- end type
- type m_查找 from menu within m_panel
- end type
- type m_expandall from menu within m_panel
- end type
- type m_collapseall from menu within m_panel
- end type
- type m_pop_panelrefresh from menu within m_panel
- end type
- type m_- from menu within m_panel
- end type
- type m_displayid from menu within m_panel
- end type
- type m_smallicon from menu within m_panel
- end type
- type m_panel from menu within m_xls_pop
- m_查找 m_查找
- m_expandall m_expandall
- m_collapseall m_collapseall
- m_pop_panelrefresh m_pop_panelrefresh
- m_- m_-
- m_displayid m_displayid
- m_smallicon m_smallicon
- end type
- global type m_xls_pop from menu
- m_panel m_panel
- end type
- end forward
- global type m_xls_pop from menu
- m_panel m_panel
- end type
- global m_xls_pop m_xls_pop
- type variables
- public u_function_panel iuo_parent
- end variables
- on m_xls_pop.create
- m_xls_pop=this
- call super::create
- this.text = "m_pop"
- this.m_panel=create m_panel
- this.Item[UpperBound(this.Item)+1]=this.m_panel
- end on
- on m_xls_pop.destroy
- call super::destroy
- destroy(this.m_panel)
- end on
- type m_panel from menu within m_xls_pop
- m_查找 m_查找
- m_expandall m_expandall
- m_collapseall m_collapseall
- m_pop_panelrefresh m_pop_panelrefresh
- m_- m_-
- m_displayid m_displayid
- m_smallicon m_smallicon
- end type
- on m_panel.create
- call super::create
- this.text = "系统模块"
- this.m_查找=create m_查找
- this.m_expandall=create m_expandall
- this.m_collapseall=create m_collapseall
- this.m_pop_panelrefresh=create m_pop_panelrefresh
- this.m_-=create m_-
- this.m_displayid=create m_displayid
- this.m_smallicon=create m_smallicon
- this.Item[UpperBound(this.Item)+1]=this.m_查找
- this.Item[UpperBound(this.Item)+1]=this.m_expandall
- this.Item[UpperBound(this.Item)+1]=this.m_collapseall
- this.Item[UpperBound(this.Item)+1]=this.m_pop_panelrefresh
- this.Item[UpperBound(this.Item)+1]=this.m_-
- this.Item[UpperBound(this.Item)+1]=this.m_displayid
- this.Item[UpperBound(this.Item)+1]=this.m_smallicon
- end on
- on m_panel.destroy
- call super::destroy
- destroy(this.m_查找)
- destroy(this.m_expandall)
- destroy(this.m_collapseall)
- destroy(this.m_pop_panelrefresh)
- destroy(this.m_-)
- destroy(this.m_displayid)
- destroy(this.m_smallicon)
- end on
- event clicked;if not IsValid( iuo_parent ) then return
- end event
- type m_查找 from menu within m_panel
- end type
- event clicked;if not IsValid( iuo_parent ) then return
- iuo_parent.triggerevent( 'ue_getfindtext')
- end event
- on m_查找.create
- call super::create
- this.text = "查找"
- end on
- on m_查找.destroy
- call super::destroy
- end on
- type m_expandall from menu within m_panel
- end type
- event clicked;long ll_hdl[1024]
- long li_cnt = 1
- if not IsValid( iuo_parent ) then return
- ll_hdl[1] = iuo_parent.tv_function.finditem(roottreeitem!,0)
- iuo_parent.tv_function.expanditem(ll_hdl[1])
- do while ll_hdl[li_cnt] > 0
- ll_hdl[li_cnt + 1] = iuo_parent.tv_function.finditem(nexttreeitem!,ll_hdl[li_cnt])
- iuo_parent.tv_function.expanditem(ll_hdl[li_cnt])
- li_cnt ++
- loop
- end event
- on m_expandall.create
- call super::create
- this.text = "展开"
- end on
- on m_expandall.destroy
- call super::destroy
- end on
- type m_collapseall from menu within m_panel
- end type
- event clicked;long ll_hdl[1024]
- long li_cnt = 1
- if not IsValid( iuo_parent ) then return
- ll_hdl[1] = iuo_parent.tv_function.finditem(roottreeitem!,0)
- iuo_parent.tv_function.expanditem(ll_hdl[1])
- do while ll_hdl[li_cnt] > 0
- ll_hdl[li_cnt + 1] = iuo_parent.tv_function.finditem(nexttreeitem!,ll_hdl[li_cnt])
- iuo_parent.tv_function.collapseitem(ll_hdl[li_cnt])
- li_cnt ++
- loop
- end event
- on m_collapseall.create
- call super::create
- this.text = "收拢"
- end on
- on m_collapseall.destroy
- call super::destroy
- end on
- type m_pop_panelrefresh from menu within m_panel
- end type
- event clicked;if not IsValid( iuo_parent ) then return
- iuo_parent.ddplb_module.event selectionchanged( iuo_parent.ii_selindex)
- end event
- on m_pop_panelrefresh.create
- call super::create
- this.text = "刷新"
- this.microhelp = "刷新功能列表"
- end on
- on m_pop_panelrefresh.destroy
- call super::destroy
- end on
- type m_- from menu within m_panel
- end type
- on m_-.create
- call super::create
- this.text = "-"
- end on
- on m_-.destroy
- call super::destroy
- end on
- type m_displayid from menu within m_panel
- end type
- event clicked;if not IsValid( iuo_parent ) then return
- if not checked then
- iuo_parent.is_displayid = "Y"
- else
- iuo_parent.is_displayid = "N"
- end if
- iuo_parent.ddplb_module.event selectionchanged( iuo_parent.ii_selindex)
- //iuo_parent.of_buildtreeview(iuo_parent.is_ddplb,0,false)
- end event
- on m_displayid.create
- call super::create
- this.text = "显示模块编号"
- end on
- on m_displayid.destroy
- call super::destroy
- end on
- type m_smallicon from menu within m_panel
- end type
- event clicked;if not IsValid( iuo_parent ) then return
- if not checked then
- iuo_parent.is_smallicon = "Y"
- iuo_parent.iuo_list[iuo_parent.ii_curgroup].view = listviewsmallicon!
- else
- iuo_parent.is_smallicon = "N"
- iuo_parent.iuo_list[iuo_parent.ii_curgroup].view = listviewlargeicon!
- end if
-
- iuo_parent.of_refreshlist(iuo_parent.ii_curgroup)
- iuo_parent.ids_module.setfilter("")
- iuo_parent.ids_module.filter()
- iuo_parent.ids_module.sort()
- iuo_parent.ids_function.setfilter("")
- iuo_parent.ids_function.filter()
- iuo_parent.ids_function.sort()
- //iuo_parent.ddplb_module.event selectionchanged( iuo_parent.ii_selindex)
- end event
- on m_smallicon.create
- call super::create
- this.text = "以小图标方式排列"
- end on
- on m_smallicon.destroy
- call super::destroy
- end on
|