duheng
2024-12-20 ab65b0ac21e7fabfd8548538142d9a1b66a2ad3d
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/12-report/test.cs
@@ -1,4 +1,6 @@
namespace HStation.WinFrmUI
using HStation.Assets;
namespace HStation.WinFrmUI
{
    public partial class test : DocumentPage
    {
@@ -7,12 +9,19 @@
            InitializeComponent();
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        private async void simpleButton1_Click(object sender, EventArgs e)
        {
            var bll = new BLL.AssetsPumpMain().GetByIDEx(1845041966958645248);
            var allList = await new BLL.AssetsPumpMain().GetByIDEx(1845041966958645248);
            foreach (var item in allList.PropContent)
            {
                if (item.TagName == PumpDataType.RatedCurrent)
                {
                    var value = item.PropValue;
                }
            }
            SimulationWordReport word = new SimulationWordReport();
            var test1 = new ReportViewModel();
            test1.Description = "制氮循环水模拟测试";
            test1.ValveOpens = new List<ValveOpen>();
            test1.ValveOpens.Add(new ValveOpen { Name = "测试1", MinorLoss = "20" });
            test1.ValveOpens.Add(new ValveOpen { Name = "测试2", MinorLoss = "20" });