| | |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraLayout; |
| | | using DevExpress.XtraLayout.Utils; |
| | | using DevExpress.XtraRichEdit.Model; |
| | | using NPOI.HPSF; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraLayout.Utils; |
| | | using Yw.Model; |
| | | using Yw.Vmo; |
| | | |
| | |
| | | } |
| | | |
| | | private SimulationProjectTitleCtrl _titleCtrl = null; |
| | | private SimulationPumpSingleWorkingChartCtrl _workingChart = null; |
| | | private HydroSingleWorkingLossCurveCtrl _lossCurve = null; |
| | | private HydroSingleWorkingLossStatisticsCtrl _lossStatistics = null; |
| | | private SimulationEnergyAnalyChartCtrl _workingChart = null; |
| | | private HydroLossCurveCtrl _lossCurve = null; |
| | | private HydroLossStatisticsCtrl _lossStatistics = null; |
| | | |
| | | private XhsProjectVmo _project = null; |
| | | private Yw.Model.HydroModelInfo _hydroInfo = null; |
| | |
| | | energyGroup.Expanded = true; |
| | | energyGroup.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText; |
| | | energyGroup.ExpandOnDoubleClick = true; |
| | | _workingChart = new SimulationPumpSingleWorkingChartCtrl(); |
| | | _workingChart.SetBindingData(working, hydroInfo, allMonitorList, calcuResult); |
| | | _workingChart = new SimulationEnergyAnalyChartCtrl(); |
| | | //_workingChart.SetBindingData(working, hydroInfo, allMonitorList, calcuResult); |
| | | var energyItem = energyGroup.AddItem("能耗分析", _workingChart); |
| | | energyItem.TextVisible = false; |
| | | energyItem.Height = 250; |
| | |
| | | lossCurveGroup.Expanded = false; |
| | | lossCurveGroup.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText; |
| | | lossCurveGroup.ExpandOnDoubleClick = true; |
| | | _lossCurve = new HydroSingleWorkingLossCurveCtrl(); |
| | | _lossCurve.SetBindingData(hydroInfo, calcuResult, visual); |
| | | _lossCurve = new HydroLossCurveCtrl(); |
| | | //_lossCurve.SetBindingData(hydroInfo, calcuResult, visual); |
| | | var lossCurveItem = lossCurveGroup.AddItem("损失曲线", _lossCurve); |
| | | lossCurveItem.TextVisible = false; |
| | | lossCurveItem.Height = 250; |
| | |
| | | lossStatisticsGroup.Expanded = false; |
| | | lossStatisticsGroup.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText; |
| | | lossStatisticsGroup.ExpandOnDoubleClick = true; |
| | | _lossStatistics = new HydroSingleWorkingLossStatisticsCtrl(); |
| | | _lossStatistics.SetBindingData(hydroInfo, calcuResult); |
| | | _lossStatistics = new HydroLossStatisticsCtrl(); |
| | | _lossStatistics.SetBindingData(hydroInfo, working, calcuResult); |
| | | var lossStatisticsItem = lossStatisticsGroup.AddItem("损失统计", _lossStatistics); |
| | | lossStatisticsItem.TextVisible = false; |
| | | lossStatisticsItem.Height = 250; |
| | |
| | | pumpItem.Name = pump.Name; |
| | | pumpItem.ModelType = pumpItem.ModelType; |
| | | pumpItem.SerialNO = (_hydroInfo.Pumps.IndexOf(pump) + 1).ToString(); |
| | | pumpItem.RatedQ = $"{pump.RatedQ ?? 0}m³/h"; |
| | | pumpItem.RatedH = $"{pump.RatedH ?? 0}m"; |
| | | pumpItem.RatedQ = $"{pump.RatedQ}m³/h"; |
| | | pumpItem.RatedH = $"{pump.RatedH}m"; |
| | | pumpItem.RatedP = $"{pump.RatedP}kW"; |
| | | pumpItem.RatedN = $"{pump.RatedN ?? 0}r/min"; |
| | | pumpItem.RatedN = $"{pump.RatedN}r/min"; |
| | | vm.Pumps.Add(pumpItem); |
| | | var pumpDb = await BLLFactory<HStation.BLL.AssetsPumpMain>.Instance.GetByIDEx(long.Parse(pump.DbId)); |
| | | if (pumpDb != null) |
| | |
| | | vm.Working.EnergyInputImagePath = GetImageFilePath(_energyInputImageFileName); |
| | | _lossStatistics.ExportInputToImage(vm.Working.EnergyInputImagePath); |
| | | vm.Working.EnergyLossImagePath = GetImageFilePath(_energyLossImageFileName); |
| | | _lossStatistics.ExportLossToImage(vm.Working.EnergyLossImagePath); |
| | | _lossStatistics.ExportCatalogToImage(vm.Working.EnergyLossImagePath); |
| | | vm.Working.EnergyStatisticsImagePath = GetImageFilePath(_energyStatisticsImageFileName); |
| | | _lossStatistics.ExportStatisticsToImage(vm.Working.EnergyStatisticsImagePath); |
| | | _lossStatistics.ExportCategoryToImage(vm.Working.EnergyStatisticsImagePath); |
| | | |
| | | vm.PumpChart = new Yw.DiagramFile.PumpChartViewModel(); |
| | | |