| | |
| | | using DevExpress.XtraBars.Navigation; |
| | | using DevExpress.XtraBars.Ribbon; |
| | | using DevExpress.XtraEditors; |
| | | using HStation.WinFrmUI.PBS; |
| | | using System.IO; |
| | | using Yw.WinFrmUI; |
| | | using Yw.WinFrmUI.Page; |
| | |
| | | { |
| | | this.Close(); |
| | | } |
| | | |
| | | |
| | | //功能点击事件 |
| | | private void tileNavPane_ElementClick(object sender, NavElementEventArgs e) |
| | | { |
| | |
| | | |
| | | private Control _place_mgr_ctrl = null;//场所管理弹出界面 |
| | | private Control _equivalent_mgr_ctrl = null;//当量管理弹出界面 |
| | | private Control _asste_mgr_ctrl = null;//产品管理弹出界面 |
| | | private Control _system_config_ctrl = null;//系统配置弹出界面 |
| | | private Control _asste_mgr_ctrl = null;//产品管理弹出界面 |
| | | private Control _system_config_ctrl = null;//系统配置弹出界面 |
| | | private Control _auth_config_ctrl = null;//权限配置弹出界面 |
| | | |
| | | //首页 |
| | |
| | | }; |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | var page=new Yw.WinFrmUI.DivisionMainPage(); |
| | | CreatePage(page,guid); |
| | | } |
| | | } |
| | | }, |
| | |
| | | var guid=new PageGuid(){ |
| | | Modular="Place", |
| | | MoudingType=eMoudingType.Tab, |
| | | Function="PlaceBuildMgr", |
| | | Function="PlaceMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | var page=new Yw.WinFrmUI.BuildingTypeMgr(); |
| | | CreatePage(page,guid); |
| | | } |
| | | } |
| | | }, |
| | | new TilePeekItem(){ |
| | |
| | | var guid=new PageGuid(){ |
| | | Modular="Place", |
| | | MoudingType=eMoudingType.Tab, |
| | | Function="PlaceFacilityMgr", |
| | | Function="FacilityMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | }, |
| | | new TilePeekItem(){ |
| | | Caption="设施分区", |
| | | Caption="场所分区", |
| | | SvgImage=svgImg32[3], |
| | | SvgImageSize=new Size(24,24), |
| | | Click=()=>{ |
| | |
| | | var guid=new PageGuid(){ |
| | | Modular="Place", |
| | | MoudingType=eMoudingType.Tab, |
| | | Function="FacilityRegionMgr", |
| | | Function="PlaceRegionMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | var page=new Yw.WinFrmUI.PartitionMgr(); |
| | | CreatePage(page,guid); |
| | | } |
| | | } |
| | | }, |
| | | }; |
| | |
| | | this.flyoutPanelControl1.Controls.Add(_place_mgr_ctrl); |
| | | var rectangle = this.RectangleToScreen(hit_info.ButtonInfo.Bounds); |
| | | this.flyoutPanel1.ShowBeakForm(rectangle); |
| | | |
| | | } |
| | | |
| | | //当量管理 |
| | | private void nbEquivalentMgr_ElementClick(object sender, NavElementEventArgs e) |
| | | private void nbWEMgr_ElementClick(object sender, NavElementEventArgs e) |
| | | { |
| | | var pt = this.tileNavPane.PointToClient(MousePosition); |
| | | var hit_info = this.tileNavPane.CalcHitInfo(pt); |
| | |
| | | Click=()=>{ |
| | | this.flyoutPanel1.HideBeakForm(); |
| | | var guid=new PageGuid(){ |
| | | Modular="Equivalent", |
| | | Modular="WE", |
| | | MoudingType=eMoudingType.Tab, |
| | | Function="WaterDeviceMgr", |
| | | Function="WaterUtensilMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | }, |
| | |
| | | Click=()=>{ |
| | | this.flyoutPanel1.HideBeakForm(); |
| | | var guid=new PageGuid(){ |
| | | Modular="Equivalent", |
| | | Modular="WE", |
| | | MoudingType=eMoudingType.Tab, |
| | | Function="WaterEquivalentMgr", |
| | | Function="WaterWEMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | }, |
| | |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | }, |
| | | new TilePeekItem(){ |
| | | Caption="成套设备管理", |
| | | Caption="成套设备", |
| | | SvgImage=svgImg32[8], |
| | | SvgImageSize=new Size(24,24), |
| | | Click=()=>{ |
| | |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | this.flyoutPanelControl1.Controls.Add(_asste_mgr_ctrl); |
| | | var rectangle = this.RectangleToScreen(hit_info.ButtonInfo.Bounds); |
| | | this.flyoutPanel1.ShowBeakForm(rectangle); |
| | | |
| | | } |
| | | |
| | | //系统配置 |
| | |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | |
| | | } |
| | | } |
| | | }, new TilePeekItem(){ |
| | |
| | | this.flyoutPanelControl1.Controls.Add(_system_config_ctrl); |
| | | var rectangle = this.RectangleToScreen(hit_info.ButtonInfo.Bounds); |
| | | this.flyoutPanel1.ShowBeakForm(rectangle); |
| | | |
| | | } |
| | | |
| | | //权限配置 |
| | |
| | | Function="RoleMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | { |
| | | } |
| | | } |
| | | }, |
| | |
| | | Function="UserMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | { |
| | | } |
| | | } |
| | | }, |
| | |
| | | Function="MenuMgr", |
| | | }; |
| | | if(!IsExistPage(guid,true)) |
| | | { |
| | | { |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Menu |
| | | |
| | | #endregion TileNavPane 相关处理 |
| | | |
| | |
| | | } |
| | | this.tabbedView1.DocumentGroupProperties.ShowTabHeader = !this.tabbedView1.DocumentGroupProperties.ShowTabHeader; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |