Changes for iPERL, builds OK when TURA_IPERL;IPERL;ORACLE_DB are defined in Config, Results and TBF projects.
This commit is contained in:
@@ -76,8 +76,6 @@ namespace Results.Entities
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Data from a production test bench (in case of tests on iPerl special)
|
/// Data from a production test bench (in case of tests on iPerl special)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual int AssignedSerialNr { get; set; }
|
|
||||||
public virtual string CompleteSerialNr { get; set; }
|
|
||||||
public virtual string RadioAddress { get; set; }
|
public virtual string RadioAddress { get; set; }
|
||||||
public virtual int PaletteNr { get; set; }
|
public virtual int PaletteNr { get; set; }
|
||||||
public virtual int UmkartonNr { get; set; }
|
public virtual int UmkartonNr { get; set; }
|
||||||
@@ -91,9 +89,13 @@ namespace Results.Entities
|
|||||||
public virtual int ProdQ2CorrLR { get; set; } /// iPerl Q2 correction for the L-flow written to iPerl
|
public virtual int ProdQ2CorrLR { get; set; } /// iPerl Q2 correction for the L-flow written to iPerl
|
||||||
#endif
|
#endif
|
||||||
#if ORACLE_DB
|
#if ORACLE_DB
|
||||||
|
public virtual int AssignedSerialNr { get; set; }
|
||||||
|
public virtual string Prefix { get; set; }
|
||||||
|
public virtual string Suffix { get; set; }
|
||||||
|
public virtual string CompleteSerialNr { get; set; }
|
||||||
|
public virtual int WMTypeRevision { get; set; }
|
||||||
public virtual int Pruefindex { get; set; } /// >= 1 ... pruefindex
|
public virtual int Pruefindex { get; set; } /// >= 1 ... pruefindex
|
||||||
public virtual int HydrPruefung { get; set; }
|
public virtual int HydrPruefung { get; set; }
|
||||||
public virtual int WMTypeRevision { get; set; } /// Not mapped to DB !!!
|
|
||||||
public virtual object RawTestInfos { get; set; } /// IList<SensusTestInfo> fetched from Oracle at the beginning of the cycle, not mapped to DB !!!
|
public virtual object RawTestInfos { get; set; } /// IList<SensusTestInfo> fetched from Oracle at the beginning of the cycle, not mapped to DB !!!
|
||||||
public virtual object CompleteTestInfos { get; set; } /// SensusTestInfo[] obtained as a best match at the beginning of the cycle, not mapped to DB !!!
|
public virtual object CompleteTestInfos { get; set; } /// SensusTestInfo[] obtained as a best match at the beginning of the cycle, not mapped to DB !!!
|
||||||
#endif
|
#endif
|
||||||
@@ -419,9 +421,13 @@ namespace Results.Entities
|
|||||||
{
|
{
|
||||||
MeterTestRslts = new List<MeterTestRslt>();
|
MeterTestRslts = new List<MeterTestRslt>();
|
||||||
#if ORACLE_DB
|
#if ORACLE_DB
|
||||||
|
AssignedSerialNr = 0;
|
||||||
|
Prefix = string.Empty;
|
||||||
|
Suffix = string.Empty;
|
||||||
|
CompleteSerialNr = string.Empty;
|
||||||
|
WMTypeRevision = 0;
|
||||||
Pruefindex = 1;
|
Pruefindex = 1;
|
||||||
HydrPruefung = 0;
|
HydrPruefung = 0;
|
||||||
WMTypeRevision = 0;
|
|
||||||
RawTestInfos = null;
|
RawTestInfos = null;
|
||||||
CompleteTestInfos = null;
|
CompleteTestInfos = null;
|
||||||
#endif
|
#endif
|
||||||
@@ -439,7 +445,6 @@ namespace Results.Entities
|
|||||||
ArchivePath = string.Empty;
|
ArchivePath = string.Empty;
|
||||||
Remark = string.Empty;
|
Remark = string.Empty;
|
||||||
#if TURA_SPECIAL
|
#if TURA_SPECIAL
|
||||||
CompleteSerialNr = string.Empty;
|
|
||||||
RadioAddress = string.Empty;
|
RadioAddress = string.Empty;
|
||||||
ProdUserName = string.Empty;
|
ProdUserName = string.Empty;
|
||||||
ProdPurchaseOrder = string.Empty;
|
ProdPurchaseOrder = string.Empty;
|
||||||
@@ -483,8 +488,6 @@ namespace Results.Entities
|
|||||||
FWVersion = src.FWVersion;
|
FWVersion = src.FWVersion;
|
||||||
#endif
|
#endif
|
||||||
#if TURA_SPECIAL
|
#if TURA_SPECIAL
|
||||||
AssignedSerialNr = src.AssignedSerialNr;
|
|
||||||
CompleteSerialNr = src.CompleteSerialNr;
|
|
||||||
RadioAddress = src.RadioAddress;
|
RadioAddress = src.RadioAddress;
|
||||||
PaletteNr = src.PaletteNr;
|
PaletteNr = src.PaletteNr;
|
||||||
UmkartonNr = src.UmkartonNr;
|
UmkartonNr = src.UmkartonNr;
|
||||||
@@ -498,9 +501,13 @@ namespace Results.Entities
|
|||||||
ProdQ2CorrLR = src.ProdQ2CorrLR;
|
ProdQ2CorrLR = src.ProdQ2CorrLR;
|
||||||
#endif
|
#endif
|
||||||
#if ORACLE_DB
|
#if ORACLE_DB
|
||||||
|
AssignedSerialNr = src.AssignedSerialNr;
|
||||||
|
Prefix = src.Prefix;
|
||||||
|
Suffix = src.Suffix;
|
||||||
|
CompleteSerialNr = src.CompleteSerialNr;
|
||||||
|
WMTypeRevision = src.WMTypeRevision;
|
||||||
Pruefindex = src.Pruefindex;
|
Pruefindex = src.Pruefindex;
|
||||||
HydrPruefung = src.HydrPruefung;
|
HydrPruefung = src.HydrPruefung;
|
||||||
WMTypeRevision = src.WMTypeRevision;
|
|
||||||
RawTestInfos = src.RawTestInfos;
|
RawTestInfos = src.RawTestInfos;
|
||||||
CompleteTestInfos = src.CompleteTestInfos;
|
CompleteTestInfos = src.CompleteTestInfos;
|
||||||
#endif
|
#endif
|
||||||
@@ -662,8 +669,6 @@ namespace Results.Entities
|
|||||||
writer.Write((FWVersion != null) ? FWVersion : string.Empty);
|
writer.Write((FWVersion != null) ? FWVersion : string.Empty);
|
||||||
#endif
|
#endif
|
||||||
#if TURA_SPECIAL
|
#if TURA_SPECIAL
|
||||||
writer.Write(AssignedSerialNr);
|
|
||||||
writer.Write((CompleteSerialNr != null) ? CompleteSerialNr : string.Empty);
|
|
||||||
writer.Write((RadioAddress != null) ? RadioAddress : string.Empty);
|
writer.Write((RadioAddress != null) ? RadioAddress : string.Empty);
|
||||||
writer.Write(PaletteNr);
|
writer.Write(PaletteNr);
|
||||||
writer.Write(UmkartonNr);
|
writer.Write(UmkartonNr);
|
||||||
@@ -677,9 +682,13 @@ namespace Results.Entities
|
|||||||
writer.Write(ProdQ2CorrLR);
|
writer.Write(ProdQ2CorrLR);
|
||||||
#endif
|
#endif
|
||||||
#if ORACLE_DB
|
#if ORACLE_DB
|
||||||
|
writer.Write(AssignedSerialNr);
|
||||||
|
writer.Write((Prefix != null) ? Prefix : string.Empty);
|
||||||
|
writer.Write((Suffix != null) ? Suffix : string.Empty);
|
||||||
|
writer.Write((CompleteSerialNr != null) ? CompleteSerialNr : string.Empty);
|
||||||
|
writer.Write(WMTypeRevision);
|
||||||
writer.Write(Pruefindex);
|
writer.Write(Pruefindex);
|
||||||
writer.Write(HydrPruefung);
|
writer.Write(HydrPruefung);
|
||||||
writer.Write(WMTypeRevision);
|
|
||||||
|
|
||||||
/// Write RawTestInfos
|
/// Write RawTestInfos
|
||||||
IList<Results.Output.SensusTestInfo> rawTestInfos = RawTestInfos as IList<Results.Output.SensusTestInfo>;
|
IList<Results.Output.SensusTestInfo> rawTestInfos = RawTestInfos as IList<Results.Output.SensusTestInfo>;
|
||||||
@@ -755,8 +764,6 @@ namespace Results.Entities
|
|||||||
FWVersion = reader.ReadString();
|
FWVersion = reader.ReadString();
|
||||||
#endif
|
#endif
|
||||||
#if TURA_SPECIAL
|
#if TURA_SPECIAL
|
||||||
AssignedSerialNr = reader.ReadInt32();
|
|
||||||
CompleteSerialNr = reader.ReadString();
|
|
||||||
RadioAddress = reader.ReadString();
|
RadioAddress = reader.ReadString();
|
||||||
PaletteNr = reader.ReadInt32();
|
PaletteNr = reader.ReadInt32();
|
||||||
UmkartonNr = reader.ReadInt32();
|
UmkartonNr = reader.ReadInt32();
|
||||||
@@ -770,9 +777,13 @@ namespace Results.Entities
|
|||||||
ProdQ2CorrLR = reader.ReadInt32();
|
ProdQ2CorrLR = reader.ReadInt32();
|
||||||
#endif
|
#endif
|
||||||
#if ORACLE_DB
|
#if ORACLE_DB
|
||||||
|
AssignedSerialNr = reader.ReadInt32();
|
||||||
|
Prefix = reader.ReadString();
|
||||||
|
Suffix = reader.ReadString();
|
||||||
|
CompleteSerialNr = reader.ReadString();
|
||||||
|
WMTypeRevision = reader.ReadInt32();
|
||||||
Pruefindex = reader.ReadInt32();
|
Pruefindex = reader.ReadInt32();
|
||||||
HydrPruefung = reader.ReadInt32();
|
HydrPruefung = reader.ReadInt32();
|
||||||
WMTypeRevision = reader.ReadInt32();
|
|
||||||
|
|
||||||
/// Read RawTestInfos
|
/// Read RawTestInfos
|
||||||
int rawTestInfosCount = reader.ReadInt32();
|
int rawTestInfosCount = reader.ReadInt32();
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ namespace Results.Mappings
|
|||||||
Map(x => x.FWVersion);
|
Map(x => x.FWVersion);
|
||||||
#endif
|
#endif
|
||||||
#if TURA_SPECIAL
|
#if TURA_SPECIAL
|
||||||
Map(x => x.AssignedSerialNr);
|
|
||||||
Map(x => x.CompleteSerialNr);
|
|
||||||
Map(x => x.RadioAddress);
|
Map(x => x.RadioAddress);
|
||||||
Map(x => x.PaletteNr);
|
Map(x => x.PaletteNr);
|
||||||
Map(x => x.UmkartonNr);
|
Map(x => x.UmkartonNr);
|
||||||
@@ -58,8 +56,13 @@ namespace Results.Mappings
|
|||||||
Map(x => x.ProdQ2CorrLR);
|
Map(x => x.ProdQ2CorrLR);
|
||||||
#endif
|
#endif
|
||||||
#if ORACLE_DB
|
#if ORACLE_DB
|
||||||
|
Map(x => x.AssignedSerialNr);
|
||||||
|
Map(x => x.Prefix);
|
||||||
|
Map(x => x.Suffix);
|
||||||
|
Map(x => x.CompleteSerialNr);
|
||||||
Map(x => x.Pruefindex);
|
Map(x => x.Pruefindex);
|
||||||
Map(x => x.HydrPruefung);
|
Map(x => x.HydrPruefung);
|
||||||
|
Map(x => x.WMTypeRevision);
|
||||||
#endif
|
#endif
|
||||||
References(x => x.WaterMeterData);
|
References(x => x.WaterMeterData);
|
||||||
References(x => x.Batch);
|
References(x => x.Batch);
|
||||||
|
|||||||
Reference in New Issue
Block a user