| | |
| | | namespace HStation.WinFrmUI |
| | | using HStation.Assets; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class test : DocumentPage |
| | | { |
| | |
| | | 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" }); |