CSV 的报错的更改

This commit is contained in:
2026-04-29 20:51:27 +08:00
parent 53ded58da3
commit 74bf47ee62
10 changed files with 497 additions and 100 deletions

View File

@@ -139,11 +139,11 @@ namespace CapMachine.Wpf.Models
[Name("COND2温度[℃]")]
public double Cond2Temp { get; set; }
/// <summary>
/// EVAP出口温度[℃]
/// </summary>
[Name("EVAP出口温度[℃]")]
public double EVAPExpTemp { get; set; }
///// <summary>
///// EVAP出口温度[℃]
///// </summary>
//[Name("EVAP出口温度[℃]")]
//public double EVAPExpTemp { get; set; }
/// <summary>
/// 冷媒流量[kg/h]
@@ -175,11 +175,11 @@ namespace CapMachine.Wpf.Models
[Name("膨胀阀前温度[℃]")]
public double TxvFrTemp { get; set; }
/// <summary>
/// EVAP出口压力[BarA]
/// </summary>
[Name("EVAP出口压力[BarA]")]
public double EVAPExpPress { get; set; }
///// <summary>
///// EVAP出口压力[BarA]
///// </summary>
//[Name("EVAP出口压力[BarA]")]
//public double EVAPExpPress { get; set; }
/// <summary>
/// 腔内压力[BarA]
@@ -301,11 +301,11 @@ namespace CapMachine.Wpf.Models
[Name("液冷媒流量[kg/h]")]
public double LiqRefFlow { get; set; }
/// <summary>
/// 干度流量[kg/h]
/// </summary>
[Name("干度流量[kg/h]")]
public double DryFlow { get; set; }
///// <summary>
///// 干度流量[kg/h]
///// </summary>
//[Name("干度流量[kg/h]")]
//public double DryFlow { get; set; }
/// <summary>
/// H5吸气混合器温度[℃]
@@ -343,11 +343,11 @@ namespace CapMachine.Wpf.Models
[Name("S.C循环水温[℃]")]
public double SCCirWaterTemp { get; set; }
/// <summary>
/// EVAP循环水温[℃]
/// </summary>
[Name("EVAP循环水温[℃]")]
public double EvapCirWaterTemp { get; set; }
///// <summary>
///// EVAP循环水温[℃]
///// </summary>
//[Name("EVAP循环水温[℃]")]
//public double EvapCirWaterTemp { get; set; }
/// <summary>
/// 吸气混合器出口压力[BarA]
@@ -368,9 +368,9 @@ namespace CapMachine.Wpf.Models
public double GasFrTemp { get; set; }
/// <summary>
/// 干度[%]
/// 干度[-]
/// </summary>
[Name("干度[%]")]
[Name("干度[-]")]
public double Dryness { get; set; }
/// <summary>
@@ -394,7 +394,7 @@ namespace CapMachine.Wpf.Models
/// <summary>
/// 压缩机性能系数(制热)
/// </summary>
[Name("压缩机性能系数(制热)")]
[Name("压缩机性能系数(制热COP)")]
public double COPHeat { get; set; }
/// <summary>
@@ -412,7 +412,7 @@ namespace CapMachine.Wpf.Models
/// <summary>
/// 压缩机性能系数(制冷)
/// </summary>
[Name("压缩机性能系数(制冷)")]
[Name("压缩机性能系数(制冷COP)")]
public double COPCool { get; set; }
/// <summary>

View File

@@ -70,17 +70,17 @@ namespace CapMachine.Wpf.Models
Map(m => m.InhMixOutPress).Name("吸气混合器出口压力[BarA]");
Map(m => m.GasFrPress).Name("气路阀前压力[BarA]");
Map(m => m.GasFrTemp).Name("气路阀前温度[℃]");
Map(m => m.Dryness).Name("干度[%]");
Map(m => m.Dryness).Name("干度[-]", "干度[%]");
Map(m => m.Subcooling).Name("过冷度[K]");
Map(m => m.Superheat).Name("过热度[K]");
Map(m => m.HeatingCapacity).Name("制热量Qh[W]").TypeConverterOption.Format("0");
Map(m => m.COPHeat).Name("压缩机性能系数(制热)").TypeConverterOption.Format("0.0");
Map(m => m.COPHeat).Name("压缩机性能系数(制热COP)", "压缩机性能系数(制热)").TypeConverterOption.Format("0.0");
Map(m => m.IsentrpEff).Name("等熵效率ns[%]").TypeConverterOption.Format("0.0");
Map(m => m.CoolCapacity).Name("制冷量Qc[W]").TypeConverterOption.Format("0");
Map(m => m.COPCool).Name("压缩机性能系数(制冷)").TypeConverterOption.Format("0.0");
Map(m => m.COPCool).Name("压缩机性能系数(制冷COP)", "压缩机性能系数(制冷)").TypeConverterOption.Format("0.0");
Map(m => m.VoltricEff).Name("容积效率nv[%]").TypeConverterOption.Format("0.0");
Map(m => m.CreateTime).Name("时间");
Map(m => m.CreateTime).Name("时间", "创建时间");
}

View File

@@ -237,8 +237,8 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.OS2Temp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "COND2温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Cond2Temp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "EVAP出口温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.EVAPExpTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
//case "EVAP出口温度[℃]":
// return CurHistoryData.Select(a => new ChartPoint() { Value = a.EVAPExpTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "冷媒流量[kg/h]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.VRV, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "润滑油流量[kg/h]":
@@ -249,8 +249,8 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.TxvFrPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "膨胀阀前温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.TxvFrTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "EVAP出口压力[BarA]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.EVAPExpPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
//case "EVAP出口压力[BarA]":
// return CurHistoryData.Select(a => new ChartPoint() { Value = a.EVAPExpPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "腔内压力[BarA]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.IntrplPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "压缩机表面温度[℃]":
@@ -291,8 +291,8 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.ComPTCMdTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "液冷媒流量[kg/h]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.LiqRefFlow, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "干度流量[kg/h]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.DryFlow, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
//case "干度流量[kg/h]":
// return CurHistoryData.Select(a => new ChartPoint() { Value = a.DryFlow, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "H5吸气混合器温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.H5InhMixTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "COND循环水温[℃]":
@@ -305,15 +305,15 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.H1OutTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "S.C循环水温[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.SCCirWaterTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "EVAP循环水温[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.EvapCirWaterTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
//case "EVAP循环水温[℃]":
// return CurHistoryData.Select(a => new ChartPoint() { Value = a.EvapCirWaterTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "吸气混合器出口压力[BarA]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.InhMixOutPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "气路阀前压力[BarA]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.GasFrPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "气路阀前温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.GasFrTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "干度[%]":
case "干度[-]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Dryness, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "过冷度[K]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Subcooling, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
@@ -321,13 +321,13 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Superheat, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "制热量Qh[W]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.HeatingCapacity, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "压缩机性能系数(制热)":
case "压缩机性能系数(制热COP)":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.COPHeat, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "等熵效率ns[%]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.IsentrpEff, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "制冷量Qc[W]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.CoolCapacity, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "压缩机性能系数(制冷)":
case "压缩机性能系数(制冷COP)":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.COPCool, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "容积效率nv[%]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.VoltricEff, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();