battery limits & productionData
This commit is contained in:
Binary file not shown.
@@ -320,10 +320,7 @@
|
||||
ON cluster.FileId = filemap.FileMapToCluster_FileClusterId
|
||||
LEFT JOIN [File] AS __files
|
||||
ON filemap.FileMapToCluster_FileId = __files.FileId
|
||||
WHERE fw.Metersize = @meterSize
|
||||
AND fw.RadioFrequencyMhz = @frequency
|
||||
AND fw.CurrentForProd = 1
|
||||
AND fw.IsReleased = 1)
|
||||
WHERE fw.Name = @fwVersion)
|
||||
AS _files)
|
||||
AS files
|
||||
ON apps.AppId = files.FilesAppId
|
||||
@@ -404,67 +401,67 @@
|
||||
/// Contains placeholder for the pcbId variable name at positon: 0
|
||||
/// </summary>
|
||||
private const string RSSI_SETUP_DEFAULTS_RESULTS_BY_PCB = @"
|
||||
SELECT DISTINCT TOP 1
|
||||
settings.RadioAddress
|
||||
, settings.Frequency
|
||||
, settings.Nennweite
|
||||
, settings.Baulaenge
|
||||
, settings.PulseModule
|
||||
, settings.DruckSensor
|
||||
, rssiLimits.id AS LimitId
|
||||
, rssiLimits.RSSI_PAM_Min
|
||||
, rssiLimits.RSSI_PAM_Max
|
||||
, rssiLimits.RSSI_SEMI_Min
|
||||
, rssiLimits.RSSI_SEMI_Max
|
||||
, rssiHistory.id AS RadioId
|
||||
, rssiHistory.LimitId AS RadioLimitId
|
||||
, rssiHistory.RSSI_PAM
|
||||
, rssiHistory.RSSI_SEMI
|
||||
, rssiHistory.Datum
|
||||
SELECT settings.RadioAddress
|
||||
, settings.Frequency
|
||||
, settings.Nennweite
|
||||
, settings.Baulaenge
|
||||
, settings.PulseModule
|
||||
, settings.DruckSensor
|
||||
, rssiLimits.id AS LimitId
|
||||
, rssiLimits.RSSI_PAM_Min
|
||||
, rssiLimits.RSSI_PAM_Max
|
||||
, rssiLimits.RSSI_SEMI_Min
|
||||
, rssiLimits.RSSI_SEMI_Max
|
||||
, rssiHistory.id AS RadioId
|
||||
, rssiHistory.LimitId AS RadioLimitId
|
||||
, rssiHistory.RSSI_PAM
|
||||
, rssiHistory.RSSI_SEMI
|
||||
, rssiHistory.Datum
|
||||
FROM (SELECT DISTINCT TOP 1
|
||||
gm.Adresse % 10000000000 AS RadioAddress
|
||||
, ISNULL(idn.Nennweite, CAST(cms.Dn_RealSize AS INT)) AS Nennweite
|
||||
, ISNULL(idn.Baulaenge, CAST(_baulaengen.Wert AS INT)) AS Baulaenge
|
||||
, CASE WHEN _druckSensors.Charcode = 'X' THEN 0 ELSE 1 END AS DruckSensor
|
||||
, CASE WHEN _frequencies.Charcode = 'A' THEN 868 WHEN _frequencies.Charcode = 'B' THEN 433 ELSE NULL END AS Frequency
|
||||
, CASE WHEN _pulseModules.Charcode = 'X' THEN 0 ELSE 1 END AS PulseModule
|
||||
FROM MapPcbIdToSerialNumber AS map
|
||||
JOIN AuftragPositionSerienNr AS aps
|
||||
ON map.MapPcbIdToSerialNumber_SerialNumber = aps.SerienNr
|
||||
LEFT JOIN Genesis_Meter AS gm
|
||||
ON aps.SerienNr = gm.Seriennummer
|
||||
JOIN AlleAuftragPositionen AS aap
|
||||
ON aps.AuftragNr = aap.AuftragNr
|
||||
AND aps.PositionNr = aap.PositionNr
|
||||
JOIN Identnr AS idn
|
||||
ON aap.IdentNr = idn.IdentNr
|
||||
JOIN AlleIdentNrVakoMerkmale AS _nennweiten
|
||||
ON aap.IdentNr = _nennweiten.IdentNr
|
||||
AND _nennweiten.Stelle = 4
|
||||
JOIN CordonelMeterSizes AS cms
|
||||
ON _nennweiten.Charcode = cms.Dn_VakoID
|
||||
JOIN AlleIdentNrVakoMerkmale AS _baulaengen
|
||||
ON aap.IdentNr = _baulaengen.IdentNr
|
||||
AND _baulaengen.Stelle = 14
|
||||
JOIN AlleIdentNrVakoMerkmale AS _druckSensors
|
||||
ON aap.IdentNr = _druckSensors.IdentNr
|
||||
AND _druckSensors.Stelle = 22
|
||||
JOIN AlleIdentNrVakoMerkmale AS _frequencies
|
||||
ON aap.IdentNr = _frequencies.IdentNr
|
||||
AND _frequencies.Stelle = 43
|
||||
JOIN AlleIdentNrVakoMerkmale AS _pulseModules
|
||||
ON aap.IdentNr = _pulseModules.IdentNr
|
||||
AND _pulseModules.Stelle = 91
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = @{0})
|
||||
AS settings
|
||||
LEFT JOIN Cordonel_Radio_RSSI_Limits AS rssiLimits
|
||||
ON settings.Frequency = rssiLimits.Frequency
|
||||
AND settings.Nennweite = rssiLimits.Nennweite
|
||||
AND (settings.Baulaenge = rssiLimits.Baulaenge OR rssiLimits.Baulaenge = 0)
|
||||
AND (settings.PulseModule = rssiLimits.Variant_o OR rssiLimits.Variant_o = 0)
|
||||
AND (settings.DruckSensor = rssiLimits.Variant_p OR rssiLimits.Variant_p = 0)
|
||||
LEFT JOIN Cordonel_Radio_RSSI_History AS rssiHistory
|
||||
ON settings.RadioAddress = rssiHistory.RadioAdress
|
||||
ORDER BY rssiHistory.Datum DESC";
|
||||
gm.Adresse % 10000000000 AS RadioAddress
|
||||
, ISNULL(idn.Nennweite, CAST(cms.Dn_RealSize AS INT)) AS Nennweite
|
||||
, ISNULL(idn.Baulaenge, CAST(_baulaengen.Wert AS INT)) AS Baulaenge
|
||||
, CASE WHEN _druckSensors.Charcode = 'X' THEN 0 ELSE 1 END AS DruckSensor
|
||||
, CASE WHEN _frequencies.Charcode = 'A' THEN 868 WHEN _frequencies.Charcode = 'B' THEN 433 ELSE NULL END AS Frequency
|
||||
, CASE WHEN _pulseModules.Charcode = 'X' THEN 0 ELSE 1 END AS PulseModule
|
||||
FROM MapPcbIdToSerialNumber AS map
|
||||
JOIN AuftragPositionSerienNr AS aps
|
||||
ON map.MapPcbIdToSerialNumber_SerialNumber = aps.SerienNr
|
||||
LEFT JOIN Genesis_Meter AS gm
|
||||
ON aps.SerienNr = gm.Seriennummer
|
||||
JOIN AlleAuftragPositionen AS aap
|
||||
ON aps.AuftragNr = aap.AuftragNr
|
||||
AND aps.PositionNr = aap.PositionNr
|
||||
JOIN Identnr AS idn
|
||||
ON aap.IdentNr = idn.IdentNr
|
||||
JOIN AlleIdentNrVakoMerkmale AS _nennweiten
|
||||
ON aap.IdentNr = _nennweiten.IdentNr
|
||||
AND _nennweiten.Stelle = 4
|
||||
JOIN CordonelMeterSizes AS cms
|
||||
ON _nennweiten.Charcode = cms.Dn_VakoID
|
||||
JOIN AlleIdentNrVakoMerkmale AS _baulaengen
|
||||
ON aap.IdentNr = _baulaengen.IdentNr
|
||||
AND _baulaengen.Stelle = 14
|
||||
JOIN AlleIdentNrVakoMerkmale AS _druckSensors
|
||||
ON aap.IdentNr = _druckSensors.IdentNr
|
||||
AND _druckSensors.Stelle = 22
|
||||
JOIN AlleIdentNrVakoMerkmale AS _frequencies
|
||||
ON aap.IdentNr = _frequencies.IdentNr
|
||||
AND _frequencies.Stelle = 43
|
||||
JOIN AlleIdentNrVakoMerkmale AS _pulseModules
|
||||
ON aap.IdentNr = _pulseModules.IdentNr
|
||||
AND _pulseModules.Stelle = 91
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = @{0})
|
||||
AS settings
|
||||
JOIN Cordonel_Radio_RSSI_History AS rssiHistory --> RadioLimitId
|
||||
ON settings.RadioAddress = rssiHistory.RadioAdress
|
||||
JOIN Cordonel_Radio_RSSI_Limits AS rssiLimits --> LimitId
|
||||
ON rssiHistory.LimitId = rssiLimits.id
|
||||
-- AND rssiLimits.Baulaenge = settings.Baulaenge
|
||||
-- AND rssiLimits.Frequency = settings.Frequency
|
||||
-- AND rssiLimits.Nennweite = settings.Nennweite
|
||||
-- AND rssiLimits.Variant_o = settings.PulseModule
|
||||
-- AND rssiLimits.Variant_p = settings.DruckSensor
|
||||
ORDER BY rssiHistory.id DESC";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,26 +50,117 @@
|
||||
#region Virtual methods used from the Sentinel and Unit Testing
|
||||
|
||||
internal virtual IEnumerable<CordonelProductionData> GetProductionData(int pcbId)
|
||||
=> this.SqlConnection
|
||||
.CreateCommand(string.Format(ALL_PRODUCTION_DATA_BY_PCB, nameof(pcbId)))
|
||||
{
|
||||
var map = this.SqlConnection
|
||||
.CreateCommand($@"
|
||||
SELECT DISTINCT
|
||||
cap.CordonelAssignedPicking_FertigungsAuftragsNr
|
||||
, map.MapPcbIdToSerialNumber_SerialNumber
|
||||
, map.MapPcbIdToSerialNumber_PcbId
|
||||
FROM MapPcbIdToSerialNumber AS map
|
||||
LEFT JOIN Cordonel_AssignedPicking AS cap
|
||||
ON map.MapPcbIdToSerialNumber_PcbId = cap.CordonelAssignedPicking_PcbId
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = @{nameof(pcbId)}
|
||||
AND map.MapPcbIdToSerialNumber_Deleted = 0
|
||||
AND cap.CordonelAssignedPicking_IsDeleted = 0")
|
||||
.SetParameter(nameof(pcbId), pcbId)
|
||||
.ExecuteReader(x => new CordonelProductionData
|
||||
.ExecuteReader(x => new
|
||||
{
|
||||
AuftragNr = x.GetValue<int>(0),
|
||||
PositionNr = x.GetValue<int>(1),
|
||||
FertigungsauftragNr = x.GetValue<int>(2),
|
||||
IdentNr = x.GetValue<int>(3),
|
||||
RegionSizeKey = x.GetValue<string>(4),
|
||||
MeterSizeName = x.GetValue<string>(5),
|
||||
MeterSizeValue = x.GetValue<byte>(6),
|
||||
KundeneigeneSerienNr = x.GetValue<string>(7),
|
||||
SerienNr = x.GetValue<int>(8),
|
||||
PcbId = x.GetValue<int>(9),
|
||||
Address = x.GetValue<ulong>(10),
|
||||
PruefgangNr = x.GetValue<int>(11),
|
||||
StatusFertigung = x.GetValue<int>(12),
|
||||
EncryptionKeyKind = x.GetValue<CordonelEncryptionKeyKind>(13)
|
||||
FertigungsauftragNr = x.GetValue<int>(0),
|
||||
SerienNr = x.GetValue<int>(1),
|
||||
PcbId = x.GetValue<int>(2),
|
||||
});
|
||||
var productionDataList = new List<CordonelProductionData>();
|
||||
|
||||
foreach (var item in map)
|
||||
{
|
||||
var productionData = this.SqlConnection
|
||||
.CreateCommand($@"
|
||||
SELECT TOP 1
|
||||
aps.AuftragNr
|
||||
, aps.PositionNr
|
||||
, aps.SerienNr
|
||||
, aps.KundeneigeneSerienNr
|
||||
, aps.StatusFertigung
|
||||
, aps.Pruefgangnr
|
||||
, aap.FertigungsauftragNr
|
||||
, aap.IdentNr
|
||||
, gm.Adresse % 10000000000
|
||||
, reg.Charcode
|
||||
, ms.Dn_Name
|
||||
, ms.Dn_InternalId
|
||||
, CASE WHEN fs.Charcode = 'X'
|
||||
THEN 'None'
|
||||
WHEN fs.Charcode = '1'
|
||||
THEN 'Standard'
|
||||
WHEN fs.Charcode = '2'
|
||||
THEN 'Random'
|
||||
WHEN fs.Charcode = '3'
|
||||
THEN 'CSD'
|
||||
END AS EncryptionKeyKind
|
||||
FROM AuftragPositionSerienNr AS aps
|
||||
LEFT JOIN AlleAuftragPositionen AS aap
|
||||
ON aps.AuftragNr = aap.AuftragNr
|
||||
AND aps.PositionNr = aap.PositionNr
|
||||
LEFT JOIN Genesis_Meter AS gm
|
||||
ON aps.SerienNr = gm.Seriennummer
|
||||
LEFT JOIN AlleIdentNrVakoMerkmale AS reg
|
||||
ON aap.IdentNr = reg.IdentNr
|
||||
AND reg.Stelle = 4
|
||||
AND reg.Laenge = 2
|
||||
LEFT JOIN CordonelMeterSizes AS ms
|
||||
ON reg.Charcode = ms.Dn_VakoID
|
||||
LEFT JOIN AlleIdentNrVakoMerkmale AS fs
|
||||
ON aap.IdentNr = fs.IdentNr
|
||||
AND fs.Stelle = 46
|
||||
AND fs.Laenge = 1
|
||||
WHERE aps.SerienNr = @{nameof(item.SerienNr)}
|
||||
ORDER BY aps.Pruefgangnr DESC")
|
||||
.SetParameter(nameof(item.SerienNr), item.SerienNr)
|
||||
.FirstOrDefault(x => new CordonelProductionData
|
||||
{
|
||||
PcbId = item.PcbId,
|
||||
AuftragNr = x.GetValue<int>(0),
|
||||
PositionNr = x.GetValue<int>(1),
|
||||
SerienNr = x.GetValue<int>(2),
|
||||
KundeneigeneSerienNr = x.GetValue<string>(3),
|
||||
StatusFertigung = x.GetValue<StatusFertigung>(4),
|
||||
PruefgangNr = x.GetValue<int>(5),
|
||||
FertigungsauftragNr = x.GetValue<int>(6),
|
||||
IdentNr = x.GetValue<int>(7),
|
||||
Address = x.GetValue<ulong>(8),
|
||||
RegionSizeKey = x.GetValue<string>(9),
|
||||
MeterSizeName = x.GetValue<string>(10),
|
||||
MeterSizeValue = x.GetValue<byte>(11),
|
||||
EncryptionKeyKind = x.GetValue<CordonelEncryptionKeyKind>(12)
|
||||
});
|
||||
|
||||
productionDataList.Add(productionData);
|
||||
}
|
||||
|
||||
return productionDataList;
|
||||
|
||||
//return this.SqlConnection
|
||||
// .CreateCommand(string.Format(ALL_PRODUCTION_DATA_BY_PCB, nameof(pcbId)))
|
||||
// .SetParameter(nameof(pcbId), pcbId)
|
||||
// .ExecuteReader(x => new CordonelProductionData
|
||||
// {
|
||||
// AuftragNr = x.GetValue<int>(0),
|
||||
// PositionNr = x.GetValue<int>(1),
|
||||
// FertigungsauftragNr = x.GetValue<int>(2),
|
||||
// IdentNr = x.GetValue<int>(3),
|
||||
// RegionSizeKey = x.GetValue<string>(4),
|
||||
// MeterSizeName = x.GetValue<string>(5),
|
||||
// MeterSizeValue = x.GetValue<byte>(6),
|
||||
// KundeneigeneSerienNr = x.GetValue<string>(7),
|
||||
// SerienNr = x.GetValue<int>(8),
|
||||
// PcbId = x.GetValue<int>(9),
|
||||
// Address = x.GetValue<ulong>(10),
|
||||
// PruefgangNr = x.GetValue<int>(11),
|
||||
// StatusFertigung = x.GetValue<StatusFertigung>(12),
|
||||
// EncryptionKeyKind = x.GetValue<CordonelEncryptionKeyKind>(13)
|
||||
// });
|
||||
}
|
||||
|
||||
internal virtual EOLProgressModel GetEOLProgressModel(int pcbId)
|
||||
=> this.EOLProgress.Read(pcbId);
|
||||
@@ -113,10 +204,11 @@
|
||||
FileName = reader.GetValue<string>(15),
|
||||
});
|
||||
|
||||
internal virtual IEnumerable<CordonelAppVeriosnCrc> GetLatestAppsWithVersions(int pcbId)
|
||||
internal virtual IEnumerable<CordonelAppVeriosnCrc> GetLatestAppsWithVersions(int pcbId, string fwVersion, bool isSpecial)
|
||||
=> this.SqlConnection
|
||||
.CreateCommand(string.Format(LATEST_APPS_VERSIONS_CRC_BY_PCB, nameof(pcbId)))
|
||||
.CreateCommand(string.Format(LATEST_APPS_VERSIONS_CRC_BY_PCB, nameof(pcbId), nameof(fwVersion)))
|
||||
.SetParameter(nameof(pcbId), pcbId)
|
||||
.SetParameter(nameof(fwVersion), fwVersion)
|
||||
.ExecuteReader(reader => new CordonelAppVeriosnCrc
|
||||
{
|
||||
AppsPcbId = reader.GetValue<int>(0),
|
||||
|
||||
@@ -46,21 +46,21 @@
|
||||
try
|
||||
{
|
||||
// Data loading
|
||||
this.TryGetUniqueProductionData(pcbId, out var productionData); // Tested
|
||||
this.TryGetEOLProgressModel(pcbId, out var eolProgress); // Tested
|
||||
this.TryGetCordonelRequirements(pcbId, out var requirements); // Tested
|
||||
this.TryGetProgrammingParameters(pcbId, out var parameters);
|
||||
this.TryGetCordonelAppsAndRegisterValues(pcbId, out var apps); // Tested
|
||||
this.TryGetCordonelAppsAndFWVersionValues(pcbId, requirements.FwVersion, out var appsVersionsCrcs); // Tested
|
||||
this.TryGetCordonelMetrologyValues(pcbId, requirements.SkipCalibration, out var metrologyValues); // Tested
|
||||
this.TryGetCordonelRadioDefaults(pcbId, requirements.SkipRadioCheck, out var rssiValues); // Tested
|
||||
this.TryGetPasswordFileContent(pcbId, out var passwordFile);
|
||||
this.TryGetUniqueProductionData(pcbId, out var productionData);
|
||||
this.TryGetEOLProgressModel(pcbId, out var eolProgress);
|
||||
this.TryGetCordonelRequirements(pcbId, out var requirements);
|
||||
this.TryGetProgrammingParameters(pcbId, out var parameters); // slow
|
||||
this.TryGetCordonelAppsAndRegisterValues(pcbId, out var apps); // slow
|
||||
this.TryGetCordonelAppsAndFWVersionValues(pcbId, requirements, out var appsVersionsCrcs); // slow
|
||||
this.TryGetCordonelMetrologyValues(pcbId, requirements.SkipCalibration, out var metrologyValues); // very slow
|
||||
this.TryGetCordonelRadioDefaults(pcbId, requirements.SkipRadioCheck, out var rssiValues);
|
||||
this.TryGetPasswordFileContent(pcbId, out var passwordFile); // ~ slow
|
||||
|
||||
// Data comparison
|
||||
this.TryCompareRequirementsIdAndVersion(eolProgress, requirements); // Tested
|
||||
this.TryCompareRequirementsIdAndVersion(eolProgress, requirements);
|
||||
this.TryCompareAllPcbIds(pcbId, productionData, requirements, apps, eolProgress, metrologyValues);
|
||||
this.TryCompareProductionOrderNumber(productionData, requirements, eolProgress);
|
||||
this.TryCompareRegionSizeKey(productionData, requirements, eolProgress); // Tested
|
||||
this.TryCompareRegionSizeKey(productionData, requirements, eolProgress);
|
||||
this.TryCompareMeterSize(productionData, requirements, eolProgress, apps, metrologyValues);
|
||||
this.TryCompareLUTCRCVersion(requirements, eolProgress, apps);
|
||||
this.TryCompareAppsAndFWVersion(requirements, eolProgress, apps, appsVersionsCrcs);
|
||||
@@ -287,26 +287,29 @@
|
||||
}
|
||||
|
||||
var utcNow = DateTime.UtcNow;
|
||||
var utcMonth = utcNow.Month;
|
||||
var kitronProductionDate = utcNow.AddSeconds(-exceededLifeTime_seconds);
|
||||
var kitronMonth = kitronProductionDate.Month;
|
||||
var year = utcNow.Year;
|
||||
var days = 0;
|
||||
var kitronDateUtc = utcNow.AddSeconds(-exceededLifeTime_seconds);
|
||||
var kitronTotalDays = (utcNow - kitronDateUtc).TotalDays;
|
||||
var kitronMonths = 0;
|
||||
|
||||
for (var month = kitronMonth; month < utcMonth; month++)
|
||||
while (true)
|
||||
{
|
||||
days += DateTime.DaysInMonth(year, month);
|
||||
year = utcNow.AddMonths(1).Year;
|
||||
var daysInMonth = DateTime.DaysInMonth(kitronDateUtc.Year, kitronDateUtc.Month);
|
||||
kitronTotalDays -= daysInMonth;
|
||||
|
||||
if (kitronTotalDays < 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
kitronMonths++;
|
||||
}
|
||||
|
||||
var storageMonths = (utcMonth - kitronMonth + 1.0) / days * 100;
|
||||
|
||||
if (storageMonths > requirements.MaxStorageMonths)
|
||||
if (kitronMonths > requirements.MaxStorageMonths)
|
||||
{
|
||||
this.ThrowSentinelException(
|
||||
nameof(Apps.POWERMON)
|
||||
, nameof(POWERMON.TotalUsedSeconds)
|
||||
, kitronProductionDate
|
||||
, kitronDateUtc
|
||||
, ">"
|
||||
, nameof(CordonelRequirements)
|
||||
, nameof(CordonelRequirements.MaxStorageMonths)
|
||||
@@ -415,7 +418,8 @@
|
||||
var genesisFlowApp = apps[Apps.GENESISFLOW];
|
||||
var lookupFileCrcReg = genesisFlowApp[GENESISFLOW.LookupFileCrc];
|
||||
var lookUpFileCrcValue = lookupFileCrcReg.GetValue<ushort>();
|
||||
var appLutCrcName = $"0x{lookUpFileCrcValue:X2}";
|
||||
var lookUpFileCrcBytes = BitConverter.GetBytes(lookUpFileCrcValue);
|
||||
var appLutCrcName = $"0x{lookUpFileCrcBytes[1]:X2}{lookUpFileCrcBytes[0]:X2}";
|
||||
|
||||
if (requirements.LutCrc != eolProgress.ProductionStatusLutCrc)
|
||||
{
|
||||
@@ -502,7 +506,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (productionData.StatusFertigung != 30)
|
||||
if (productionData.StatusFertigung != StatusFertigung.OK)
|
||||
{
|
||||
this.ThrowSentinelException(nameof(TryGetUniqueProductionData), $"{nameof(productionData.StatusFertigung)} != 30");
|
||||
}
|
||||
@@ -692,16 +696,16 @@
|
||||
, nameof(CordonelRSSIValues.RadioCheckId)
|
||||
, rssiValues.RadioCheckId);
|
||||
}
|
||||
else if (rssiValues.LimitId != rssiValues.RadioLimitId)
|
||||
{
|
||||
this.ThrowSentinelException(
|
||||
nameof(CordonelRSSIValues)
|
||||
, nameof(CordonelRSSIValues.LimitId)
|
||||
, rssiValues.LimitId
|
||||
, nameof(CordonelRSSIValues)
|
||||
, nameof(CordonelRSSIValues.RadioLimitId)
|
||||
, rssiValues.RadioLimitId);
|
||||
}
|
||||
//else if (rssiValues.LimitId != rssiValues.RadioLimitId)
|
||||
//{
|
||||
// this.ThrowSentinelException(
|
||||
// nameof(CordonelRSSIValues)
|
||||
// , nameof(CordonelRSSIValues.LimitId)
|
||||
// , rssiValues.LimitId
|
||||
// , nameof(CordonelRSSIValues)
|
||||
// , nameof(CordonelRSSIValues.RadioLimitId)
|
||||
// , rssiValues.RadioLimitId);
|
||||
//}
|
||||
else if (rssiValues.RSSI_PAM_Min > rssiValues.RSSI_PAM || rssiValues.RSSI_PAM > rssiValues.RSSI_PAM_Max)
|
||||
{
|
||||
this.ThrowSentinelException($"{nameof(CordonelRSSIValues)}.{nameof(rssiValues.RSSI_PAM)}({rssiValues.RSSI_PAM}) ist auserhalb der bereich: {rssiValues.RSSI_PAM} <= x <= {rssiValues.RSSI_PAM_Max}");
|
||||
@@ -844,7 +848,9 @@
|
||||
this.ThrowSentinelException(nameof(TryGetCordonelAppsAndRegisterValues), $"{nameof(CordonelAppsDictionary)} ist erforderlich");
|
||||
}
|
||||
|
||||
var registerHistoryValues = this.cordonelDbContext.GetLatestRegistersWithValues(pcbId);
|
||||
var registerHistoryValues = this.cordonelDbContext
|
||||
.GetLatestRegistersWithValues(pcbId)
|
||||
.ToArray();
|
||||
|
||||
if (registerHistoryValues is null)
|
||||
{
|
||||
@@ -861,10 +867,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
internal void TryGetCordonelAppsAndFWVersionValues(int pcbId, string version, out CordonelAppVeriosnCrc[] appsVersionsCrc)
|
||||
internal void TryGetCordonelAppsAndFWVersionValues(int pcbId, CordonelRequirements requirements, out CordonelAppVeriosnCrc[] appsVersionsCrc)
|
||||
{
|
||||
var fwVersion = requirements?.FwVersion;
|
||||
var isSpecial = requirements?.IsSpecialActive == true && requirements?.IsSpecialApproved == true;
|
||||
|
||||
appsVersionsCrc = this.cordonelDbContext
|
||||
?.GetLatestAppsWithVersions(pcbId)
|
||||
?.GetLatestAppsWithVersions(pcbId, fwVersion, isSpecial)
|
||||
?.ToArray();
|
||||
|
||||
if (appsVersionsCrc is null)
|
||||
@@ -882,7 +891,7 @@
|
||||
metrologyValues = this.meterProcessState?.GetLatestGenesisFlowValues(pcbId);
|
||||
//TODO: Sentinel: load values from independent source (this.cordonelDbContext?.GetLatestGenesisFlowValues(pcbId));
|
||||
|
||||
if (metrologyValues is null)
|
||||
if (metrologyValues is null && skipMetrology != true)
|
||||
{
|
||||
this.ThrowSentinelException(nameof(TryGetCordonelMetrologyValues), $"{nameof(CordonelMetrologyValues)} für PcbId: {pcbId} nicht verfügbar");
|
||||
}
|
||||
@@ -977,9 +986,11 @@
|
||||
"GENESISFLOW_TriggerActive", // Does NOT respond
|
||||
"SENSUSRADIO_CurrentLoopMax", // Does NOT respond
|
||||
"SENSUSRADIO_CurrentLoopSource", // Does NOT respond
|
||||
"SENSUSRADIO_CustomerText" // Does NOT respond
|
||||
"SENSUSRADIO_CustomerText", // Does NOT respond
|
||||
"CUSTOMER_AlarmEnableMask", // 2025-02-13 FW (R1.3.10, R1.4.15) issue
|
||||
"CUSTOMER_AlarmVisualMask", // 2025-02-13 FW (R1.3.10, R1.4.15) issue
|
||||
};
|
||||
|
||||
|
||||
var results = this.meterProcessState
|
||||
.GetCordonelProgrammingParameters(pcbId)
|
||||
.OrderBy(x => x.Source);
|
||||
|
||||
Submodule LaaProductionWeb/LaaPackages updated: fc6d1c6014...50a1e5bb60
@@ -471,7 +471,8 @@
|
||||
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets'))" />
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>$(SolutionDir)RoutesBuilder\bin\Debug\RoutesBuilder.exe</PreBuildEvent>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>del "$(TargetDir)*.pdb"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
var prefixes = new StringBuilder();
|
||||
|
||||
var solutionDirectory = new DirectoryInfo(@"..\..\..\").FullName;
|
||||
var laaProductionWeb = Path.Combine(solutionDirectory, @"LaaProductionWeb\LaaProductionWeb");
|
||||
var laaProductionWeb = Path.Combine(solutionDirectory, @"LaaProductionWeb");
|
||||
var appInfrastructure = Path.Combine(laaProductionWeb, "App_Infrastructure");
|
||||
var apiControllers = new DirectoryInfo(Path.Combine(laaProductionWeb, "API"));
|
||||
var controllers = apiControllers
|
||||
|
||||
Reference in New Issue
Block a user