From d2ccacb3317aa6310f1b1bb5eb19fbdecba39ff9 Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期四, 27 三月 2025 11:50:43 +0800 Subject: [PATCH] 增加设施最高楼层标高字段 --- Desktop/PBS.Desktop/MainForm.cs | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/Desktop/PBS.Desktop/MainForm.cs b/Desktop/PBS.Desktop/MainForm.cs index 9ad1267..5bca20a 100644 --- a/Desktop/PBS.Desktop/MainForm.cs +++ b/Desktop/PBS.Desktop/MainForm.cs @@ -1480,11 +1480,17 @@ { Modular = "ModelManage", MoudingType = eMoudingType.Tab, - Function = " ", + Function = "ModelEdit", }, svgImgItem32[4], new Size(18, 18), (caption, guid, svg, size) => { if (!IsExistPage(guid, true)) { + var page = new ModelEditPage(); + page.PageGuid = guid; + page.PageTitle.Caption = caption; + page.PageTitle.HeaderSvgImage = svg; + page.PageTitle.SvgImageSize = size; + CreatePage(page, guid); } }); list.Add(hydraulicScenario); @@ -1611,7 +1617,7 @@ 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(); @@ -1635,7 +1641,7 @@ 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)) { @@ -1652,7 +1658,7 @@ { Id = "monitor", Caption = "监测分析", - SvgImage = svgImgGroup32[0], + SvgImage = svgImageIBox[4], SvgImageSize = new Size(24, 24), AllowGlyphSkinning = true, Elements = new List<AccordionElement>() @@ -1662,7 +1668,7 @@ 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)) { @@ -1679,7 +1685,7 @@ 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)) { @@ -1698,7 +1704,7 @@ { Id = "management", Caption = "数据管理", - SvgImage = svgImgGroup32[0], + SvgImage = svgImageIBox[9], SvgImageSize = new Size(24, 24), AllowGlyphSkinning = true, Elements = new List<AccordionElement>() @@ -1708,7 +1714,7 @@ 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)) { @@ -1725,7 +1731,7 @@ 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)) { @@ -1742,7 +1748,7 @@ 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)) { @@ -1759,7 +1765,7 @@ 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)) { @@ -1812,7 +1818,7 @@ 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)) { @@ -1828,7 +1834,7 @@ 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)) { -- Gitblit v1.9.3