| | |
| | | using HStation.WinFrmUI.Assets; |
| | | using HStation.WinFrmUI.Basic; |
| | | using HStation.WinFrmUI.Dict; |
| | | using IBox.WinFrmUI; |
| | | using PBS.WinFrmUI; |
| | | using PBS.WinFrmUI.Box; |
| | | using PBS.WinFrmUI.DataAnalysis; |
| | |
| | | ctrl_ele.OwnerElement.Expanded = true; |
| | | this.accordionControlFunction.Refresh(); |
| | | } |
| | | //if (!IsExistPage(pguid, true)) |
| | | //{ |
| | | // ele.Click.Invoke(); |
| | | //} |
| | | return true; |
| | | } |
| | | else |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "AssetsCouplingMgr", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImgItem32[41], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | }); |
| | | coupling.Elements = new List<AccordionElement>() |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "AssetsBluntheadMgr", |
| | | }, svgImgItem32[8], new Size(18, 18), (caption,guid,svg,size) => |
| | | }, svgImgItem32[43], new Size(18, 18), (caption,guid,svg,size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "AssetsEmitterMgr", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImgItem32[37], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | }); |
| | | emitter.Elements = new List<AccordionElement>() |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "waterSupplySource", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImgItem32[40], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | }); |
| | | waterSupplySource.Elements = new List<AccordionElement>() |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "AssetsTankMgr", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImgItem32[39], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "waterSupply", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImgItem32[38], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | }); |
| | | waterSupply.Elements = new List<AccordionElement>() |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "FacilityNetwork", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImgItem32[36], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | }); |
| | | FacilityNetwork.Elements = new List<AccordionElement>() |
| | |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "AssetsValveMgr", |
| | | }, svgImgItem32[7], new Size(18, 18), (caption,guid,svg,size) => |
| | | }, svgImgItem32[42], new Size(18, 18), (caption,guid,svg,size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | /* var page = new DocumentPage(); |
| | | var page=new AssetsManufacturerMainPage(); |
| | | page.PageGuid = guid; |
| | | page.PageTitle.Caption = caption; |
| | | page.PageTitle.HeaderSvgImage = svg; |
| | | page.PageTitle.SvgImageSize = size; |
| | | CreatePage(page, guid);*/ |
| | | CreatePage(page,guid); |
| | | } |
| | | }), |
| | | waterSupplySource, |
| | |
| | | CreatePage(page,guid); |
| | | } |
| | | }), |
| | | } |
| | | Get("电费配置",new PageGuid() |
| | | { |
| | | Modular = "BasicData", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "ElecPriceMgr", |
| | | }, svgImgItem32[12], new Size(18, 18), (caption,guid,svg,size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page=new ElecPriceMgr(); |
| | | page.PageGuid = guid; |
| | | page.PageTitle.Caption = caption; |
| | | page.PageTitle.HeaderSvgImage = svg; |
| | | page.PageTitle.SvgImageSize = size; |
| | | CreatePage(page,guid); |
| | | } |
| | | }), |
| | | } |
| | | }; |
| | | |
| | | var auth_config_ele = new AccordionElement() |
| | |
| | | page.PageTitle.HeaderSvgImage = svg; |
| | | page.PageTitle.SvgImageSize = size; |
| | | CreatePage(page, guid); |
| | | |
| | | } |
| | | }); |
| | | var modelEdit = Get("模型编辑", new PageGuid() |
| | |
| | | page.PageTitle.Caption = caption; |
| | | page.PageTitle.HeaderSvgImage = svg; |
| | | page.PageTitle.SvgImageSize = size; |
| | | CreatePage(page, guid); |
| | | CreatePage(page, guid); |
| | | } |
| | | }); |
| | | list.Add(hydraulicScenario); |
| | |
| | | CreatePage(page, guid); |
| | | } |
| | | }); |
| | | //var simulationDrill = Get("模拟调度", new PageGuid() |
| | | //{ |
| | | // Modular = "WaterSupplyAnalysis", |
| | | // MoudingType = eMoudingType.Tab, |
| | | // Function = "SimulationSchedule", |
| | | //}, svgImgItem32[4], new Size(18, 18), (caption, guid, svg, size) => |
| | | //{ |
| | | // if (!IsExistPage(guid, true)) |
| | | // { |
| | | // var page = new SimulationSchedulePage(); |
| | | // page.PageGuid = guid; |
| | | // page.PageTitle.Caption = caption; |
| | | // page.PageTitle.HeaderSvgImage = svg; |
| | | // page.PageTitle.SvgImageSize = size; |
| | | // CreatePage(page, guid); |
| | | // } |
| | | //}); |
| | | var forecastWater = Get("水量预测", new PageGuid() |
| | | { |
| | | Modular = "WaterSupplyAnalysis", |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "FlowPressAnalysis", |
| | | }, svgImgItem32[4], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[7], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | var dlg = new PBS.WinFrmUI.Box.ChoiceFacilityDlg(); |
| | | dlg.SetDataSource(); |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "IBoxInfo", |
| | | }, svgImgItem32[4], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[10], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | { |
| | | Id = "monitor", |
| | | Caption = "监测分析", |
| | | SvgImage = svgImgGroup32[0], |
| | | SvgImage = svgImageIBox[4], |
| | | SvgImageSize = new Size(24, 24), |
| | | AllowGlyphSkinning = true, |
| | | Elements = new List<AccordionElement>() |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "MonitorMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[3], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "AnalysisMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[1], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | { |
| | | Id = "management", |
| | | Caption = "数据管理", |
| | | SvgImage = svgImgGroup32[0], |
| | | SvgImage = svgImageIBox[9], |
| | | SvgImageSize = new Size(24, 24), |
| | | AllowGlyphSkinning = true, |
| | | Elements = new List<AccordionElement>() |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "ProtocolMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[11], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "MonitorConfigurationMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[5], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "DataFilterMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | },svgImageIBox[8], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "ParameterMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[0], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | page.PageTitle.Caption = caption; |
| | | page.PageTitle.HeaderSvgImage = svg; |
| | | page.PageTitle.SvgImageSize = size; |
| | | |
| | | CreatePage(page, guid); |
| | | } |
| | | }),/*Get("智控数据", new PageGuid() |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "BasicInfoMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | |
| | | Modular = "SmartHardware", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "LogManagentMgr", |
| | | }, svgImgItem32[2], new Size(18, 18), (caption, guid, svg, size) => |
| | | }, svgImageIBox[6], new Size(18, 18), (caption, guid, svg, size) => |
| | | { |
| | | if (!IsExistPage(guid, true)) |
| | | { |