duheng
2024-09-26 88c13046c69ebeb0bc323c8d81501f5933f5a81f
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/HomeXhsProjectPage.cs
@@ -1,5 +1,6 @@
using DevExpress.Utils.Svg;
using HStation.Vmo;
using HStation.WinFrmUI.Assets;
using HStation.WinFrmUI.Xhs.PumpProduct;
using Yw.WinFrmUI.Page;
@@ -43,6 +44,7 @@
        {
            _allProjectList = await BLLFactory<HStation.BLL.XhsProject>.Instance.GetAll();
            var allPump = await _bllPump.Value.GetAll();
            var allValveList = await new BLL.ValveMain().GetAll();
            var vm = new CurrentViewModel()
            {
                Name = "项目数量",
@@ -60,7 +62,7 @@
            var vm3 = new CurrentViewModel()
            {
                Name = "阀门型号数量",
                Count = 0,
                Count = allValveList?.Count ?? 0,
                Image = ImageLib.Valve
            };
            var vm4 = new CurrentViewModel()
@@ -143,7 +145,7 @@
                if (!IsExistPage(guid, true))
                {
                    // var page = new XhsSchemeMultiMgrPage();
                    // await page.SetBindingData(obj.ID);
                    // await page.SetMatching(obj.ID);
                    var page = new XhsProjectSimulationMgrPage();
                    await page.SetBindingData(PrjID);
@@ -185,7 +187,7 @@
                    {
                        Modular = "Xhs",
                        MoudingType = eMoudingType.Tab,
                        Function = "PumpMgr",
                        Function = "pumpMgr",
                    };
                    if (!IsExistPage(pumpGuid, true))
                    {
@@ -195,6 +197,17 @@
                    break;
                case "阀门型号数量":
                    var valveGuid = new PageGuid()
                    {
                        Modular = "Xhs",
                        MoudingType = eMoudingType.Tab,
                        Function = "ValveMgr",
                    };
                    if (!IsExistPage(valveGuid, true))
                    {
                        var page = new ValveManageMainPanel();
                        CreatePage(page, valveGuid);
                    }
                    break;
            }
        }