Results.Entities.WaterMetrData.Medium added, woda zimna/goraca, ver. 2.18.876
This commit is contained in:
@@ -80,9 +80,14 @@ namespace Config.Entities
|
|||||||
|
|
||||||
public enum Medium
|
public enum Medium
|
||||||
{
|
{
|
||||||
[Description("")] NotSpecified,
|
[Description("")] NotSpecified,
|
||||||
ColdWater,
|
#if LANG_PL
|
||||||
HotWater,
|
[Description("Zimna")] ColdWater,
|
||||||
|
[Description("Gorąca")] HotWater,
|
||||||
|
#else
|
||||||
|
[Description("cold")] ColdWater,
|
||||||
|
[Description("hot")] HotWater,
|
||||||
|
#endif
|
||||||
Count
|
Count
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.18.870.0")]
|
[assembly: AssemblyVersion("2.18.876.0")]
|
||||||
[assembly: AssemblyFileVersion("2.18.870.0")]
|
[assembly: AssemblyFileVersion("2.18.876.0")]
|
||||||
|
|||||||
@@ -305,7 +305,12 @@ namespace Results.Entities
|
|||||||
/// <summary> Wrapper </summary>
|
/// <summary> Wrapper </summary>
|
||||||
public virtual string ErrorFlagsStr()
|
public virtual string ErrorFlagsStr()
|
||||||
{
|
{
|
||||||
return Utils.ErrorFlagsStr(ErrorFlags);
|
string eFlags = Utils.ErrorFlagsStr(ErrorFlags);
|
||||||
|
#if LANG_PL
|
||||||
|
return string.IsNullOrEmpty(eFlags) ? "brak" : eFlags;
|
||||||
|
#else
|
||||||
|
return eFlags;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
|||||||
@@ -145,6 +145,15 @@ namespace Results.Entities
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LANG_PL
|
||||||
|
public virtual string PassedOrErrorFlagsStr()
|
||||||
|
{
|
||||||
|
ErrorFlagsMode errorFlagsMode;
|
||||||
|
string eFlags = Utils.ErrorFlagsStr(ErrorFlagsFromTestsAndWM(out errorFlagsMode));
|
||||||
|
return string.IsNullOrEmpty(eFlags) ? (WaterMeterData.Text4 + PassedColorStr()) : eFlags;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert failed tests and combined errorFlags of all tests to string
|
/// Convert failed tests and combined errorFlags of all tests to string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -208,6 +217,8 @@ namespace Results.Entities
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Not mapped to the database
|
/// Not mapped to the database
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ namespace Results.Entities
|
|||||||
public virtual string MetrologicalClassAux { get; set; }
|
public virtual string MetrologicalClassAux { get; set; }
|
||||||
public virtual string ApprovalInfoAux { get; set; }
|
public virtual string ApprovalInfoAux { get; set; }
|
||||||
|
|
||||||
|
public virtual Config.Entities.Medium Medium { get; set; }
|
||||||
|
|
||||||
public virtual string Text1 { get; set; }
|
public virtual string Text1 { get; set; }
|
||||||
public virtual string Text2 { get; set; }
|
public virtual string Text2 { get; set; }
|
||||||
public virtual string Text3 { get; set; }
|
public virtual string Text3 { get; set; }
|
||||||
@@ -96,6 +98,8 @@ namespace Results.Entities
|
|||||||
if (MetrologicalClassAux != wmd.MetrologicalClassAux) return false;
|
if (MetrologicalClassAux != wmd.MetrologicalClassAux) return false;
|
||||||
if (ApprovalInfoAux != wmd.ApprovalInfoAux) return false;
|
if (ApprovalInfoAux != wmd.ApprovalInfoAux) return false;
|
||||||
|
|
||||||
|
if (Medium != wmd.Medium) return false;
|
||||||
|
|
||||||
if (Text1 != wmd.Text1) return false;
|
if (Text1 != wmd.Text1) return false;
|
||||||
if (Text2 != wmd.Text2) return false;
|
if (Text2 != wmd.Text2) return false;
|
||||||
if (Text3 != wmd.Text3) return false;
|
if (Text3 != wmd.Text3) return false;
|
||||||
|
|||||||
+3
-1
@@ -241,7 +241,9 @@ namespace Results
|
|||||||
P_delta_mean_from_up_down_per_mtr, /// 209
|
P_delta_mean_from_up_down_per_mtr, /// 209
|
||||||
Timestamp_start, /// 210
|
Timestamp_start, /// 210
|
||||||
Timestamp_end, /// 211
|
Timestamp_end, /// 211
|
||||||
P_PMax_test_mean, /// 212 PMax test pressure mean of (Pup + Pdown)/2
|
P_PMax_test_mean, /// 212 PMax test pressure mean of (Pup + Pdown)/2
|
||||||
|
|
||||||
|
Medium, /// 213 Woda zimna/tepla
|
||||||
|
|
||||||
Count,
|
Count,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,27 +193,27 @@ namespace Results.Output.Printers.OnePerMeter
|
|||||||
TableStyle commonTableStyle = new TableStyle { Font = font, MarginX = 5, MarginY = 3 };
|
TableStyle commonTableStyle = new TableStyle { Font = font, MarginX = 5, MarginY = 3 };
|
||||||
|
|
||||||
Table table1 = new Table(2) { Style = commonTableStyle };
|
Table table1 = new Table(2) { Style = commonTableStyle };
|
||||||
foreach (var v in commonItems1)
|
foreach (var item in commonItems1)
|
||||||
{
|
{
|
||||||
string[] row = new string[] { v.Caption, (batch.WaterMeters.Count > 0) ? v.Print(batch.WaterMeters[0]) : string.Empty };
|
string[] row = new string[] { item.Caption, (batch.WaterMeters.Count > 0) ? item.Print(batch.WaterMeters[0]).Split(new char[] { '|' })[0] : string.Empty };
|
||||||
table1.AddRow(row, horizAlgn, vertAlgn);
|
table1.AddRow(row, horizAlgn, vertAlgn);
|
||||||
}
|
}
|
||||||
float bodyTop1 = table1.Draw(e, leftMarginCommon1, commonTop);
|
float bodyTop1 = table1.Draw(e, leftMarginCommon1, commonTop);
|
||||||
|
|
||||||
|
|
||||||
table1 = new Table(2) { Style = commonTableStyle };
|
table1 = new Table(2) { Style = commonTableStyle };
|
||||||
foreach (var v in commonItems2)
|
foreach (var item in commonItems2)
|
||||||
{
|
{
|
||||||
string[] row = new string[] { v.Caption, (batch.WaterMeters.Count > 0) ? v.Print(batch.WaterMeters[0]) : string.Empty };
|
string[] row = new string[] { item.Caption, (batch.WaterMeters.Count > 0) ? item.Print(batch.WaterMeters[0]).Split(new char[] { '|' })[0] : string.Empty };
|
||||||
table1.AddRow(row, horizAlgn, vertAlgn);
|
table1.AddRow(row, horizAlgn, vertAlgn);
|
||||||
}
|
}
|
||||||
float bodyTop2 = table1.Draw(e, leftMarginCommon2, commonTop);
|
float bodyTop2 = table1.Draw(e, leftMarginCommon2, commonTop);
|
||||||
|
|
||||||
|
|
||||||
table1 = new Table(2) { Style = commonTableStyle };
|
table1 = new Table(2) { Style = commonTableStyle };
|
||||||
foreach (var v in commonItems3)
|
foreach (var item in commonItems3)
|
||||||
{
|
{
|
||||||
string[] row = new string[] { v.Caption, (batch.WaterMeters.Count > 0) ? v.Print(batch.WaterMeters[0]) : string.Empty };
|
string[] row = new string[] { item.Caption, (batch.WaterMeters.Count > 0) ? item.Print(batch.WaterMeters[0]).Split(new char[] { '|' })[0] : string.Empty };
|
||||||
table1.AddRow(row, horizAlgn, vertAlgn);
|
table1.AddRow(row, horizAlgn, vertAlgn);
|
||||||
}
|
}
|
||||||
float bodyTop3 = table1.Draw(e, leftMarginCommon3, commonTop);
|
float bodyTop3 = table1.Draw(e, leftMarginCommon3, commonTop);
|
||||||
@@ -301,27 +301,27 @@ namespace Results.Output.Printers.OnePerMeter
|
|||||||
TableStyle commonTableStyle = new TableStyle { Font = font, MarginX = 5, MarginY = 3 };
|
TableStyle commonTableStyle = new TableStyle { Font = font, MarginX = 5, MarginY = 3 };
|
||||||
|
|
||||||
Table table2 = new Table(2) { Style = commonTableStyle };
|
Table table2 = new Table(2) { Style = commonTableStyle };
|
||||||
foreach (var v in belowItems1)
|
foreach (var item in belowItems1)
|
||||||
{
|
{
|
||||||
string[] row = new string[] { v.Caption, (batch.WaterMeters.Count > 0) ? v.Print(batch.WaterMeters[0]) : string.Empty };
|
string[] row = new string[] { item.Caption, (batch.WaterMeters.Count > 0) ? item.Print(batch.WaterMeters[0]).Split(new char[] { '|' })[0] : string.Empty };
|
||||||
table2.AddRow(row, horizAlgn, vertAlgn);
|
table2.AddRow(row, horizAlgn, vertAlgn);
|
||||||
}
|
}
|
||||||
table2.Draw(e, leftMarginBelow1, belowTop);
|
table2.Draw(e, leftMarginBelow1, belowTop);
|
||||||
|
|
||||||
|
|
||||||
table2 = new Table(2) { Style = commonTableStyle };
|
table2 = new Table(2) { Style = commonTableStyle };
|
||||||
foreach (var v in belowItems2)
|
foreach (var item in belowItems2)
|
||||||
{
|
{
|
||||||
string[] row = new string[] { v.Caption, (batch.WaterMeters.Count > 0) ? v.Print(batch.WaterMeters[0]) : string.Empty };
|
string[] row = new string[] { item.Caption, (batch.WaterMeters.Count > 0) ? item.Print(batch.WaterMeters[0]).Split(new char[] { '|' })[0] : string.Empty };
|
||||||
table2.AddRow(row, horizAlgn, vertAlgn);
|
table2.AddRow(row, horizAlgn, vertAlgn);
|
||||||
}
|
}
|
||||||
table2.Draw(e, leftMarginBelow2, belowTop);
|
table2.Draw(e, leftMarginBelow2, belowTop);
|
||||||
|
|
||||||
|
|
||||||
table2 = new Table(2) { Style = commonTableStyle };
|
table2 = new Table(2) { Style = commonTableStyle };
|
||||||
foreach (var v in belowItems3)
|
foreach (var item in belowItems3)
|
||||||
{
|
{
|
||||||
string[] row = new string[] { v.Caption, (batch.WaterMeters.Count > 0) ? v.Print(batch.WaterMeters[0]) : string.Empty };
|
string[] row = new string[] { item.Caption, (batch.WaterMeters.Count > 0) ? item.Print(batch.WaterMeters[0]).Split(new char[] { '|' })[0] : string.Empty };
|
||||||
table2.AddRow(row, horizAlgn, vertAlgn);
|
table2.AddRow(row, horizAlgn, vertAlgn);
|
||||||
}
|
}
|
||||||
table2.Draw(e, leftMarginBelow3, belowTop);
|
table2.Draw(e, leftMarginBelow3, belowTop);
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ namespace Results
|
|||||||
#endif
|
#endif
|
||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.Passed, Strings.Result, Quantity.Boolean, ItemCategory.MeterResult, (w, t, u, f, p) => string.IsNullOrEmpty(t) ? w.PassedColorStr() : ((w.GetMeterTestRslt(t) == null) ? "" : w.GetMeterTestRslt(t).PassedColorStr())));
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Passed, Strings.Result, Quantity.Boolean, ItemCategory.MeterResult, (w, t, u, f, p) => string.IsNullOrEmpty(t) ? w.PassedColorStr() : ((w.GetMeterTestRslt(t) == null) ? "" : w.GetMeterTestRslt(t).PassedColorStr())));
|
||||||
|
|
||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.ResultOrErrorFlags, "Winiki lub E", Quantity.String, ItemCategory.MeterResult, (w, t, u, f, p) => FormatStr(f, string.IsNullOrEmpty(w.ErrorFlagsStr()) ? (w.WaterMeterData.Text4 + w.PassedColorStr()) : w.ErrorFlagsStr()))); /// PL specific result
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.ResultOrErrorFlags, "Winiki lub E", Quantity.String, ItemCategory.MeterResult, (w, t, u, f, p) => FormatStr(f, w.PassedOrErrorFlagsStr()))); /// PL specific result
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Water meter info
|
/// Water meter info
|
||||||
@@ -328,6 +328,7 @@ namespace Results
|
|||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.Flow_profile_sensitivity_class, "Flow profile sensitivity class", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.FlowProfileSensitivityClass.ToDescription())));
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Flow_profile_sensitivity_class, "Flow profile sensitivity class", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.FlowProfileSensitivityClass.ToDescription())));
|
||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.Approval_info, Strings.Approval, Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.ApprovalInfo)));
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Approval_info, Strings.Approval, Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.ApprovalInfo)));
|
||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.Certificate, "Certificate", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Certificate)));
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Certificate, "Certificate", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Certificate)));
|
||||||
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Medium, "Water cold/hot", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Medium.ToDescription())));
|
||||||
|
|
||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.Text1, "Text1", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Text1)));
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Text1, "Text1", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Text1)));
|
||||||
AllItems.Add(new WMeterRsltItemSpec(ItemID.Text2, "Text2", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Text2)));
|
AllItems.Add(new WMeterRsltItemSpec(ItemID.Text2, "Text2", Quantity.String, ItemCategory.MeterData, (w, t, u, f, p) => FormatStr(f, w.WaterMeterData.Text2)));
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ namespace TBF.BenchControl.GenericDevices
|
|||||||
|
|
||||||
double PulsesPerLtr { get; }
|
double PulsesPerLtr { get; }
|
||||||
|
|
||||||
|
Medium Medium { get; }
|
||||||
|
|
||||||
string Text1 { get; }
|
string Text1 { get; }
|
||||||
string Text2 { get; }
|
string Text2 { get; }
|
||||||
string Text3 { get; }
|
string Text3 { get; }
|
||||||
|
|||||||
@@ -1381,7 +1381,7 @@ namespace TBF.BenchControl.Sequences
|
|||||||
Certificate = WaterMeters[ix].Certificate,
|
Certificate = WaterMeters[ix].Certificate,
|
||||||
|
|
||||||
PulsesPerLtr = WaterMeters[ix].PulsesPerLtr,
|
PulsesPerLtr = WaterMeters[ix].PulsesPerLtr,
|
||||||
|
Medium = WaterMeters[ix].Medium,
|
||||||
Text1 = WaterMeters[ix].Text1,
|
Text1 = WaterMeters[ix].Text1,
|
||||||
Text2 = WaterMeters[ix].Text2,
|
Text2 = WaterMeters[ix].Text2,
|
||||||
Text3 = WaterMeters[ix].Text3,
|
Text3 = WaterMeters[ix].Text3,
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ namespace TBF.BenchControl.WaterMeters.Munich
|
|||||||
public string ApprovalInfo { get { return waterMeterCfg.ProcParams.ApprovalInfo; } }
|
public string ApprovalInfo { get { return waterMeterCfg.ProcParams.ApprovalInfo; } }
|
||||||
public string Certificate { get { return string.Empty; } }
|
public string Certificate { get { return string.Empty; } }
|
||||||
|
|
||||||
|
public Medium Medium { get { return Medium.ColdWater; } }
|
||||||
|
|
||||||
public string Text1 { get { return string.Empty; } }
|
public string Text1 { get { return string.Empty; } }
|
||||||
public string Text2 { get { return string.Empty; } }
|
public string Text2 { get { return string.Empty; } }
|
||||||
public string Text3 { get { return string.Empty; } }
|
public string Text3 { get { return string.Empty; } }
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ namespace TBF.BenchControl.WaterMeters.WaterMeter
|
|||||||
public string Text5 { get { return waterMeterCfg.ProcParams.Text5; } }
|
public string Text5 { get { return waterMeterCfg.ProcParams.Text5; } }
|
||||||
|
|
||||||
/// <summary>Water: cold / hot</summary>
|
/// <summary>Water: cold / hot</summary>
|
||||||
public Config.Entities.Medium WaterTemp { get { return waterMeterCfg.ProcParams.WaterTemp; } }
|
public Config.Entities.Medium Medium { get { return waterMeterCfg.ProcParams.WaterTemp; } }
|
||||||
|
|
||||||
#if IPERL
|
#if IPERL
|
||||||
public ushort OriginalCalibFactor;
|
public ushort OriginalCalibFactor;
|
||||||
|
|||||||
Reference in New Issue
Block a user