diff --git a/Common/CommonConsole/Program.cs b/Common/CommonConsole/Program.cs
index 647b8fe2..99a71a11 100644
--- a/Common/CommonConsole/Program.cs
+++ b/Common/CommonConsole/Program.cs
@@ -17,27 +17,69 @@
{
// 01020304050607081112131415161718
// E6C88800DEB868C0D6A84880CE982840
- //var encryptionKey = new Byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 };
+ var encryptionKey = new Byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18 };
+ var task = new JusteRegisterTask
+ {
+ Cmd = JustSirtMessage.W_PAM,
+ P1 = new P811
+ {
+ DelPamSemi = true,
+ WakeUpCmd = true
+ },
+ Address = 4291305226,
+ // Address = 319020415,
+ Data = new Byte[]
+ {
+ // Change Key
+ // 0x6C, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
+
+ // LED on
+ 0x1F, 0x01, 0x08,
+
+ // Reboot
+ // 0x0E, 0x0,
+
+ // Provide Pin Auth Level I
+ // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
+
+ // Provide Pin Auth Level II
+ // 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
+
+ // Provide Pin Auth Level III
+ 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
+
+ // Reset credits
+ // 0x1F, 0x01, 0x03,
+ },
+ EncryptionKey = encryptionKey
+ };
+ programmingBatch.Run(task);
+ task.Wait();
+
+ // 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
+ // 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
+
//var task = new JusteRegisterTask
//{
// Cmd = JustSirtMessage.W_PAM,
// P1 = new P811
// {
- // DelPamSemi = true,
- // WakeUpCmd = true
+ // DelPamSemi = true
// },
- // Address = 4291305226,
- // // Address = 319020415,
+ // Address = 319020415,
// Data = new Byte[]
// {
- // // Change Key
- // // 0x6C, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
+ // // WUP - stay awake
+ // 0x00, 0x00,
- // // LED on
- // 0x1F, 0x01, 0x08,
+ // // LAT
+ // 0x02, 0x00,
- // // Reboot
- // // 0x0E, 0x0,
+ // // MBUS - 7
+ // 0x05, 0x07,
+
+ // // TX
+ // 0x10, 0x00, 0x03,
// // Provide Pin Auth Level I
// // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
@@ -50,85 +92,44 @@
// // Reset credits
// // 0x1F, 0x01, 0x03,
- // },
- // EncryptionKey = encryptionKey
+ // }
//};
+ //programmingBatch.Run(task);
+ //task.Wait();
- // 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
- // 55-81-14-00-FF-C8-1F-0A-0B-07-FA-E3-AA-EA-8A-7B-7B-D9-A7-D7-D5-B8-16
-
- var task = new JusteRegisterTask
- {
- Cmd = JustSirtMessage.W_PAM,
- P1 = new P811
- {
- DelPamSemi = true
- },
- Address = 319020415,
- Data = new Byte[]
- {
- // WUP - stay awake
- 0x00, 0x00,
-
- // LAT
- 0x02, 0x00,
-
- // MBUS - 7
- 0x05, 0x07,
-
- // TX
- 0x10, 0x00, 0x03,
-
- // Provide Pin Auth Level I
- // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
-
- // Provide Pin Auth Level II
- 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
-
- // Provide Pin Auth Level III
- // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
-
- // Reset credits
- // 0x1F, 0x01, 0x03,
- }
- };
- programmingBatch.Run(task);
- task.Wait();
-
- task = new JusteRegisterTask
- {
- Cmd = JustSirtMessage.W_PAM,
- P1 = new P811
- {
- DelPamSemi = true
- },
- Address = 319020415,
- Data = new Byte[]
- {
- // Parametersatz
+ //task = new JusteRegisterTask
+ //{
+ // Cmd = JustSirtMessage.W_PAM,
+ // P1 = new P811
+ // {
+ // DelPamSemi = true
+ // },
+ // Address = 319020415,
+ // Data = new Byte[]
+ // {
+ // // Parametersatz
- // Provide Pin Auth Level I
- // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
+ // // Provide Pin Auth Level I
+ // // 0x43, 0x01, 0x14, 0x30, 0x68, 0xD0,
- // Provide Pin Auth Level II
- 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
+ // // Provide Pin Auth Level II
+ // 0x43, 0x02, 0x14, 0x0E, 0x80, 0x40,
- // Provide Pin Auth Level III
- // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
+ // // Provide Pin Auth Level III
+ // // 0x43, 0x03, 0x63, 0x93, 0x73, 0x22,
- // Reset credits
- // 0x1F, 0x01, 0x03,
- }
- };
- programmingBatch.Run(task);
- task.Wait();
+ // // Reset credits
+ // // 0x1F, 0x01, 0x03,
+ // }
+ //};
+ //programmingBatch.Run(task);
+ //task.Wait();
Console.ReadKey();
programmingBatch.Stop();
}
- var x = "".Replace(' ', '%');
}
diff --git a/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLProgressModel.cs b/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLProgressModel.cs
index cefc412f..f04858c6 100644
--- a/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLProgressModel.cs
+++ b/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLProgressModel.cs
@@ -6,99 +6,203 @@
public class EOLProgressModel
{
+ ///
+ /// Automatically generated at first request of EOLProgress, cannot be changed
+ ///
public Int32 Id { get; set; }
+ ///
+ /// PcbId supplied with request, cannot be changed
+ ///
public Int32 PcbId { get; set; }
- public DateTime StartDate { get; set; }
+ ///
+ /// DateTime at initial request, automatically generated , cannot be changed
+ ///
+ [NotNull]
+ public DateTime? StartDate { get; set; }
+ ///
+ /// Requirement ID if standard requirement should be used, else leave as is (null)
+ ///
[NotNull]
public Int32? StandardRequirementId { get; set; }
+ ///
+ /// Version if standard requirement should be used, else leave as is (null)
+ ///
[NotNull]
public Int32? StandardRequirementVersion { get; set; }
+ ///
+ /// Requirement ID if special requirement should be used, else leave as is (null)
+ ///
public Int32? SpecialRequirementId { get; set; }
+ ///
+ /// Version if special requirement should be used, else leave as is (null)
+ ///
public Int32? SpecialRequirementVersion { get; set; }
- [NotFailed]
- public EOLStatus RequirementChecked { get; set; }
-
///
- /// 1. Production steps executed, like zero flow, calibration, FW version, LUT crc ... (requirements and production sequence)
+ /// Requirement could be loaded for this device
///
[NotFailed]
- public EOLStatus ProductionStatusChecked { get; set; }
+ public EOLStatus RequirementRequestChecked { get; set; }
///
- /// 2. Final configuration written with Vako, CSD ... parameters.
+ /// Requirement PcbId equals PcbId of EOLProgress and Cordonel
///
[NotFailed]
- public EOLStatus ParameterizationDone { get; set; }
+ public EOLStatus RequirementPcbIdChecked { get; set; }
///
- /// 3. Parameters saved in non volitile memory.
+ /// Requirement order equals Cordonel order
///
[NotFailed]
- public EOLStatus StoreConfigurationDone { get; set; }
+ public EOLStatus RequirementOrderChecked { get; set; }
///
- /// 4. Clears RAM and reloads values from flash.
+ /// Requirement region equals Cordonel region
///
[NotFailed]
- public EOLStatus RebootDone { get; set; }
+ public EOLStatus RequirementRegionChecked { get; set; }
///
- /// 5. Final configuration - read back and compared.
- ///
- [NotFailed]
- public EOLStatus ParameterizationChecked { get; set; }
-
- ///
- /// 6.1. ...
+ /// Installed LUT CRC, should never be null or empty
+ /// will only be set if requirement LUT CRC is equal to Cordonel LUT CRC
///
[NotNull]
- public Int64? RaioCheckId { get; set; }
+ public String ProductionStatusLutCrc { get; set; }
///
- /// 6.2. Password file generated and installed.
+ /// Installed FW, should never be null or empty,
+ /// will only be set if requirement FW is equal to Cordonel FW
+ ///
+ [NotNull]
+ public String ProductionStatusFwVersion { get; set; }
+
+ ///
+ /// Detected meter size, should never be null or empty
+ /// will only be set if requirement MeterSIze is equal to Cordonel MeterSize
+ ///
+ [NotNull]
+ public String ProductionStatusMeterSize { get; set; }
+
+ ///
+ /// Drained battery load at EOL, should never be null
+ ///
+ [NotNull]
+ public Int64? ProductionStatusDrainedBatteryLoad { get; set; }
+
+ ///
+ /// Battery load is in required range
///
[NotFailed]
- public EOLStatus PasswordFileInstalled { get; set; }
+ public EOLStatus ProductionStatusBatteryLoadChecked { get; set; }
///
- /// 6.3. Attachments like pulse adapter (CPA01) ... checked.
+ /// Remaining life time at EOL, should never be null
+ ///
+ [NotNull]
+ public Int64? ProductionStatusRemainingLifeTime { get; set; }
+
+ ///
+ /// Remaining life time is in required range
+ ///
+ [NotFailed]
+ public EOLStatus ProductionStatusRemainingLifeTimeChecked { get; set; }
+
+ ///
+ /// Zero flow process executed and parameter set
+ ///
+ [NotFailed]
+ public EOLStatus ProductionStatusZeroFlowChecked { get; set; }
+
+ ///
+ /// Calibration process executed and parameter set
+ ///
+ [NotFailed]
+ public EOLStatus ProductionStatusCalibrationChecked { get; set; }
+
+ ///
+ /// Final configuration written with Vako, CSD ... parameters.
+ ///
+ [NotFailed]
+ public EOLStatus ParametrizationDoneChecked { get; set; }
+
+ ///
+ /// Parameters saved to non volatile memory.
+ ///
+ [NotFailed]
+ public EOLStatus StoreConfigurationDoneChecked { get; set; }
+
+ ///
+ /// Reboot executed to clear RAM values and reload values from flash to RAM for check.
+ ///
+ [NotFailed]
+ public EOLStatus RebootDoneChecked { get; set; }
+
+ ///
+ /// Final configuration - read back and compared.
+ ///
+ [NotFailed]
+ public EOLStatus ParametrizationCompareChecked { get; set; }
+
+ ///
+ /// Id for radio check, can be null for NA region or if radio check has been skipped by requirement
+ ///
+ [NotNull]
+ public Int64? RadioCheckId { get; set; }
+
+ ///
+ /// Final radio system state, can be null for NA region
+ ///
+ [NotNull]
+ public Int64? FinalRadioSystemState { get; set; }
+
+ ///
+ /// Final radio system state is as required
+ ///
+ [NotFailed]
+ public EOLStatus FinalRadioSystemStateCheck { get; set; }
+
+ ///
+ /// Password file generated and installed.
+ ///
+ [NotFailed]
+ public EOLStatus PasswordFileInstalledCheck { get; set; }
+
+ ///
+ /// Attachments like pulse adapter checked.
///
[NotFailed]
public EOLStatus AttachmentsChecked { get; set; }
///
- /// 7. ...
- ///
- [NotFailed]
- public EOLStatus EOLCompleted { get; set; }
-
- ///
- /// 7. ...
+ /// Completion date of EOL process, should never be null
///
[NotNull]
public DateTime? EOLCompleteDate { get; set; }
-
+
+ ///
+ /// Name and version of EOL process, should never be null
+ ///
+ [NotNull]
public String EOLSoftwareNameAndVersion { get; set; }
///
- /// 8. ...
+ /// SAP export done, added by sentinel, never set by EOL process
///
public EOLStatus SAPExportDone { get; set; }
///
- /// 9. ...
+ /// Sentinel completed check, added by sentinel, never set by EOL process
///
public EOLStatus SentinelCompleted { get; set; }
///
- /// 9. ...
+ /// Sentinel execution and completion date, added by sentinel, never set by EOL process
///
public DateTime? SentinelCompletedDate { get; set; }
}
diff --git a/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLStatus.cs b/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLStatus.cs
index 90a67a66..3c5cd819 100644
--- a/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLStatus.cs
+++ b/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Models/EOLStatus.cs
@@ -78,5 +78,9 @@
{
return status?.option;
}
+
+ public static Boolean operator ==(EOLStatus left, EOLStatus right) => left?.option == right?.option;
+
+ public static Boolean operator !=(EOLStatus left, EOLStatus right) => left?.option != right?.option;
}
}
diff --git a/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Repositories/EOLProgressRepository.cs b/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Repositories/EOLProgressRepository.cs
index 88efc35e..bc73ebf0 100644
--- a/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Repositories/EOLProgressRepository.cs
+++ b/LaaProductionWeb/Data/LaaProduction.Data.Cordonel/Repositories/EOLProgressRepository.cs
@@ -30,27 +30,39 @@
return this.sqlConnection
.CreateCommand($@"
SELECT Id
- , PcbId
- , StartDate
- , StandardRequirementId
- , StandardRequirementV
- , SpecialRequirementId
- , SpecialRequirementV
- , RequirementChecked
- , ProductionStatusChecked
- , ParameterizationDone
- , StoreConfigurationDone
- , RebootDone
- , ParameterizationChecked
- , RaioCheckId
- , PasswordFileInstalled
- , AttachmentsChecked
- , EOLCompleted
- , EOLCompleteDate
- , EOLSoftwareNameAndVersion
- , SAPExportDone
- , SentinelCompleted
- , SentinelCompletedDate
+ , PcbId
+ , StartDate
+ , StandardRequirementId
+ , StandardRequirementVersion
+ , SpecialRequirementId
+ , SpecialRequirementVersion
+ , RequirementRequestChecked
+ , RequirementPcbIdChecked
+ , RequirementOrderChecked
+ , RequirementRegionChecked
+ , ProductionStatusLutCrc
+ , ProductionStatusFwVersion
+ , ProductionStatusMeterSize
+ , ProductionStatusDrainedBatteryLoad
+ , ProductionStatusBatteryLoadChecked
+ , ProductionStatusRemainingLifeTime
+ , ProductionStatusRemainingLifeTimeChecked
+ , ProductionStatusZeroFlowChecked
+ , ProductionStatusCalibrationChecked
+ , ParametrizationDoneChecked
+ , StoreConfigurationDoneChecked
+ , RebootDoneChecked
+ , ParametrizationCompareChecked
+ , RadioCheckId
+ , FinalRadioSystemState
+ , FinalRadioSystemStateCheck
+ , PasswordFileInstalledCheck
+ , AttachmentsChecked
+ , EOLCompleteDate
+ , EOLSoftwareNameAndVersion
+ , SAPExportDone
+ , SentinelCompleted
+ , SentinelCompletedDate
FROM Cordonel_EOL_Progress
WHERE PcbId = @{nameof(pcbId)}")
.SetParameter(nameof(pcbId), pcbId)
@@ -63,21 +75,33 @@
StandardRequirementVersion = reader.GetValue(4),
SpecialRequirementId = reader.GetValue(5),
SpecialRequirementVersion = reader.GetValue(6),
- RequirementChecked = reader.GetValue(7),
- ProductionStatusChecked = reader.GetValue(8),
- ParameterizationDone = reader.GetValue(9),
- StoreConfigurationDone = reader.GetValue(10),
- RebootDone = reader.GetValue(11),
- ParameterizationChecked = reader.GetValue(12),
- RaioCheckId = reader.GetValue(13),
- PasswordFileInstalled = reader.GetValue(14),
- AttachmentsChecked = reader.GetValue(15),
- EOLCompleted = reader.GetValue(16),
- EOLCompleteDate = reader.GetValue(17),
- EOLSoftwareNameAndVersion = reader.GetValue(18),
- SAPExportDone = reader.GetValue(19),
- SentinelCompleted = reader.GetValue(20),
- SentinelCompletedDate = reader.GetValue(21),
+ RequirementRequestChecked = reader.GetValue(7),
+ RequirementPcbIdChecked = reader.GetValue(8),
+ RequirementOrderChecked = reader.GetValue(9),
+ RequirementRegionChecked = reader.GetValue(10),
+ ProductionStatusLutCrc = reader.GetValue(11),
+ ProductionStatusFwVersion = reader.GetValue(12),
+ ProductionStatusMeterSize = reader.GetValue(13),
+ ProductionStatusDrainedBatteryLoad = reader.GetValue(14),
+ ProductionStatusBatteryLoadChecked = reader.GetValue(15),
+ ProductionStatusRemainingLifeTime = reader.GetValue(16),
+ ProductionStatusRemainingLifeTimeChecked = reader.GetValue(17),
+ ProductionStatusZeroFlowChecked = reader.GetValue(18),
+ ProductionStatusCalibrationChecked = reader.GetValue(19),
+ ParametrizationDoneChecked = reader.GetValue(20),
+ StoreConfigurationDoneChecked = reader.GetValue(21),
+ RebootDoneChecked = reader.GetValue(22),
+ ParametrizationCompareChecked = reader.GetValue(21),
+ RadioCheckId = reader.GetValue(23),
+ FinalRadioSystemState = reader.GetValue(24),
+ FinalRadioSystemStateCheck = reader.GetValue(25),
+ PasswordFileInstalledCheck = reader.GetValue(26),
+ AttachmentsChecked = reader.GetValue(27),
+ EOLCompleteDate = reader.GetValue(28),
+ EOLSoftwareNameAndVersion = reader.GetValue(29),
+ SAPExportDone = reader.GetValue(30),
+ SentinelCompleted = reader.GetValue(31),
+ SentinelCompletedDate = reader.GetValue(32),
});
}
@@ -86,39 +110,63 @@
this.sqlConnection
.CreateCommand($@"
UPDATE Cordonel_EOL_Progress
- SET StandardRequirementId = ISNULL(StandardRequirementId, @{nameof(model.StandardRequirementId)})
- , StandardRequirementV = ISNULL(StandardRequirementV, @{nameof(model.StandardRequirementVersion)})
- , SpecialRequirementId = ISNULL(SpecialRequirementId, @{nameof(model.SpecialRequirementId)})
- , SpecialRequirementV = ISNULL(SpecialRequirementV, @{nameof(model.SpecialRequirementVersion)})
- , RequirementChecked = ISNULL(RequirementChecked, @{nameof(model.RequirementChecked)})
- , ProductionStatusChecked = ISNULL(ProductionStatusChecked, @{nameof(model.ProductionStatusChecked)})
- , ParameterizationDone = ISNULL(ParameterizationDone, @{nameof(model.ParameterizationDone)})
- , StoreConfigurationDone = ISNULL(StoreConfigurationDone, @{nameof(model.StoreConfigurationDone)})
- , RebootDone = ISNULL(RebootDone, @{nameof(model.RebootDone)})
- , ParameterizationChecked = ISNULL(ParameterizationChecked, @{nameof(model.ParameterizationChecked)})
- , RaioCheckId = ISNULL(RaioCheckId, @{nameof(model.RaioCheckId)})
- , PasswordFileInstalled = ISNULL(PasswordFileInstalled, @{nameof(model.PasswordFileInstalled)})
- , AttachmentsChecked = ISNULL(AttachmentsChecked, @{nameof(model.AttachmentsChecked)})
- , EOLCompleted = ISNULL(EOLCompleted, @{nameof(model.EOLCompleted)})
- , EOLCompleteDate = ISNULL(EOLCompleteDate, @{nameof(model.EOLCompleteDate)})
- , EOLSoftwareNameAndVersion = ISNULL(EOLSoftwareNameAndVersion, @{nameof(model.EOLSoftwareNameAndVersion)})
- WHERE PcbId = @{nameof(model.PcbId)}
- AND EOLCompleted IS NULL")
+ SET StandardRequirementId = ISNULL(StandardRequirementId, @{nameof(model.StandardRequirementId)})
+ , StandardRequirementVersion = ISNULL(StandardRequirementVersion, @{nameof(model.StandardRequirementVersion)})
+ , SpecialRequirementId = ISNULL(SpecialRequirementId, @{nameof(model.SpecialRequirementId)})
+ , SpecialRequirementVersion = ISNULL(SpecialRequirementVersion, @{nameof(model.SpecialRequirementVersion)})
+ , RequirementRequestChecked = ISNULL(RequirementRequestChecked, @{nameof(model.RequirementRequestChecked)})
+ , RequirementPcbIdChecked = ISNULL(RequirementPcbIdChecked, @{nameof(model.RequirementPcbIdChecked)})
+ , RequirementOrderChecked = ISNULL(RequirementOrderChecked, @{nameof(model.RequirementOrderChecked)})
+ , RequirementRegionChecked = ISNULL(RequirementRegionChecked, @{nameof(model.RequirementRegionChecked)})
+ , ProductionStatusLutCrc = ISNULL(ProductionStatusLutCrc, @{nameof(model.ProductionStatusLutCrc)})
+ , ProductionStatusFwVersion = ISNULL(ProductionStatusFwVersion, @{nameof(model.ProductionStatusFwVersion)})
+ , ProductionStatusMeterSize = ISNULL(ProductionStatusMeterSize, @{nameof(model.ProductionStatusMeterSize)})
+ , ProductionStatusDrainedBatteryLoad = ISNULL(ProductionStatusDrainedBatteryLoad, @{nameof(model.ProductionStatusDrainedBatteryLoad)})
+ , ProductionStatusBatteryLoadChecked = ISNULL(ProductionStatusBatteryLoadChecked, @{nameof(model.ProductionStatusBatteryLoadChecked)})
+ , ProductionStatusRemainingLifeTime = ISNULL(ProductionStatusRemainingLifeTime, @{nameof(model.ProductionStatusRemainingLifeTime)})
+ , ProductionStatusRemainingLifeTimeChecked = ISNULL(ProductionStatusRemainingLifeTimeChecked, @{nameof(model.ProductionStatusRemainingLifeTimeChecked)})
+ , ProductionStatusZeroFlowChecked = ISNULL(ProductionStatusZeroFlowChecked, @{nameof(model.ProductionStatusZeroFlowChecked)})
+ , ProductionStatusCalibrationChecked = ISNULL(ProductionStatusCalibrationChecked, @{nameof(model.ProductionStatusCalibrationChecked)})
+ , ParametrizationDoneChecked = ISNULL(ParametrizationDoneChecked, @{nameof(model.ParametrizationDoneChecked)})
+ , StoreConfigurationDoneChecked = ISNULL(StoreConfigurationDoneChecked, @{nameof(model.StoreConfigurationDoneChecked)})
+ , RebootDoneChecked = ISNULL(RebootDoneChecked, @{nameof(model.RebootDoneChecked)})
+ , ParametrizationCompareChecked = ISNULL(ParametrizationCompareChecked, @{nameof(model.ParametrizationCompareChecked)})
+ , RadioCheckId = ISNULL(RadioCheckId, @{nameof(model.RadioCheckId)})
+ , FinalRadioSystemState = ISNULL(FinalRadioSystemState, @{nameof(model.FinalRadioSystemState)})
+ , FinalRadioSystemStateCheck = ISNULL(FinalRadioSystemStateCheck, @{nameof(model.FinalRadioSystemStateCheck)})
+ , PasswordFileInstalledCheck = ISNULL(PasswordFileInstalledCheck, @{nameof(model.PasswordFileInstalledCheck)})
+ , AttachmentsChecked = ISNULL(AttachmentsChecked, @{nameof(model.AttachmentsChecked)})
+ , EOLCompleteDate = ISNULL(EOLCompleteDate, @{nameof(model.EOLCompleteDate)})
+ , EOLSoftwareNameAndVersion = ISNULL(EOLSoftwareNameAndVersion, @{nameof(model.EOLSoftwareNameAndVersion)})
+ WHERE PcbId = @{nameof(model.PcbId)}
+ AND EOLCompleteDate IS NULL")
.SetParameter(nameof(model.PcbId), model.PcbId)
.SetParameter(nameof(model.StandardRequirementId), model.StandardRequirementId)
.SetParameter(nameof(model.StandardRequirementVersion), model.StandardRequirementVersion)
.SetParameter(nameof(model.SpecialRequirementId), model.SpecialRequirementId)
.SetParameter(nameof(model.SpecialRequirementVersion), model.SpecialRequirementVersion)
- .SetParameter(nameof(model.RequirementChecked), model.RequirementChecked?.ToString())
- .SetParameter(nameof(model.ProductionStatusChecked), model.ProductionStatusChecked?.ToString())
- .SetParameter(nameof(model.ParameterizationDone), model.ParameterizationDone?.ToString())
- .SetParameter(nameof(model.StoreConfigurationDone), model.StoreConfigurationDone?.ToString())
- .SetParameter(nameof(model.RebootDone), model.RebootDone?.ToString())
- .SetParameter(nameof(model.ParameterizationChecked), model.ParameterizationChecked?.ToString())
- .SetParameter(nameof(model.RaioCheckId), model.RaioCheckId)
- .SetParameter(nameof(model.PasswordFileInstalled), model.PasswordFileInstalled?.ToString())
+ .SetParameter(nameof(model.RequirementRequestChecked), model.RequirementRequestChecked?.ToString())
+ .SetParameter(nameof(model.RequirementPcbIdChecked), model.RequirementPcbIdChecked?.ToString())
+ .SetParameter(nameof(model.RequirementOrderChecked), model.RequirementOrderChecked?.ToString())
+ .SetParameter(nameof(model.RequirementRegionChecked), model.RequirementRegionChecked?.ToString())
+ .SetParameter(nameof(model.ProductionStatusLutCrc), model.ProductionStatusLutCrc)
+ .SetParameter(nameof(model.ProductionStatusFwVersion), model.ProductionStatusFwVersion)
+ .SetParameter(nameof(model.ProductionStatusMeterSize), model.ProductionStatusMeterSize)
+ .SetParameter(nameof(model.ProductionStatusDrainedBatteryLoad), model.ProductionStatusDrainedBatteryLoad)
+ .SetParameter(nameof(model.ProductionStatusBatteryLoadChecked), model.ProductionStatusBatteryLoadChecked?.ToString())
+ .SetParameter(nameof(model.ProductionStatusRemainingLifeTime), model.ProductionStatusRemainingLifeTime)
+ .SetParameter(nameof(model.ProductionStatusRemainingLifeTimeChecked), model.ProductionStatusRemainingLifeTimeChecked?.ToString())
+ .SetParameter(nameof(model.ProductionStatusZeroFlowChecked), model.ProductionStatusZeroFlowChecked?.ToString())
+ .SetParameter(nameof(model.ProductionStatusCalibrationChecked), model.ProductionStatusCalibrationChecked?.ToString())
+ .SetParameter(nameof(model.ParametrizationDoneChecked), model.ParametrizationDoneChecked?.ToString())
+ .SetParameter(nameof(model.StoreConfigurationDoneChecked), model.StoreConfigurationDoneChecked?.ToString())
+ .SetParameter(nameof(model.RebootDoneChecked), model.RebootDoneChecked?.ToString())
+ .SetParameter(nameof(model.ParametrizationCompareChecked), model.ParametrizationCompareChecked?.ToString())
+ .SetParameter(nameof(model.RadioCheckId), model.RadioCheckId)
+ .SetParameter(nameof(model.FinalRadioSystemState), model.FinalRadioSystemState)
+ .SetParameter(nameof(model.FinalRadioSystemStateCheck), model.FinalRadioSystemStateCheck?.ToString())
+ .SetParameter(nameof(model.PasswordFileInstalledCheck), model.PasswordFileInstalledCheck?.ToString())
.SetParameter(nameof(model.AttachmentsChecked), model.AttachmentsChecked?.ToString())
- .SetParameter(nameof(model.EOLCompleted), model.EOLCompleted?.ToString())
.SetParameter(nameof(model.EOLCompleteDate), model.EOLCompleteDate)
.SetParameter(nameof(model.EOLSoftwareNameAndVersion), model.EOLSoftwareNameAndVersion)
.ExecuteNonQuery();
@@ -167,4 +215,4 @@
return this.Read(model);
}
}
-}
+}
\ No newline at end of file
diff --git a/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLProgressController.cs b/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLProgressController.cs
index 639410cb..9b7809b3 100644
--- a/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLProgressController.cs
+++ b/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLProgressController.cs
@@ -61,7 +61,7 @@
}
[HttpPost]
- [Route("{pcbId}")]
+ [Route]
public IHttpActionResult Post([FromBody] EOLProgressModel model)
{
var actualEOLProgressModel = this.dbcontext.EOLProgress.Update(model);
diff --git a/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLSentinelController.cs b/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLSentinelController.cs
deleted file mode 100644
index 8c47cbce..00000000
--- a/LaaProductionWeb/LaaProductionWeb/API/Cordonel/EOLSentinelController.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-namespace LaaProductionWeb.API.Cordonel
-{
- using LaaProduction.SQL.Interfaces;
- using LaaProductionDI;
- using LaaProductionWeb.App_Infrastructure;
-
- using System;
- using System.Web.Http;
-
- [RoutePrefix(RoutePrefixes.API_CORDONEL_EOLSENTINEL)]
- public class EOLSentinelController : ApiController
- {
- private readonly ISQLConnection mssql;
-
- public EOLSentinelController()
- => this.mssql = LaaServiceProvider.GetService();
-
- [HttpGet]
- [Route(nameof(Check))]
- public IHttpActionResult Check(String pcbid)
- {
- var check = this.mssql
- .CreateCommand($@"
- SELECT CASE WHEN ceolp.StandardRequirementId IS NULL
- THEN 'Cordonel_EOL_Progress.StandardRequirementId'
- WHEN ceolp.RequirementChecked NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.RequirementChecked'
- WHEN ceolp.ProductionStatusChecked NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.ProductionStatusChecked'
- WHEN ceolp.ParameterizationDone NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.ParameterizationDone'
- WHEN ceolp.ParameterizationChecked NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.ParameterizationChecked'
- WHEN ceolp.StoreConfigurationDone NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.StoreConfigurationDone'
- WHEN ceolp.RebootDone NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.RebootDone'
- WHEN ceolp.PasswordFileInstalled NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.PasswordFileInstalled'
- WHEN ceolp.AttachmentsChecked NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.AttachmentsChecked'
- WHEN ceolp.EOLCompleted NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.EOLCompleted'
- WHEN ceolp.SAPExportDone NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.SAPExportDone'
- WHEN ceolp.SentinelCompleted NOT IN ('NA', 'OK')
- THEN 'Cordonel_EOL_Progress.SentinelCompleted'
- ELSE NULL
- END AS x
- FROM Cordonel_EOL_Progress AS ceolp
- WHERE ceolp.PcbId = @{nameof(pcbid)}")
- .SetParameter(nameof(pcbid), pcbid)
- .FirstOrDefault(reader => reader.GetValue());
-
- if (check is null)
- {
- return this.NotFound();
- }
- else if (check == String.Empty)
- {
- return this.Ok();
- }
- else
- {
- return this.BadRequest($"The following check has failed: {check}");
- }
- }
- }
-}
diff --git a/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/RoutePrefixes.cs b/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/RoutePrefixes.cs
index 3c932e08..49ec4ef6 100644
--- a/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/RoutePrefixes.cs
+++ b/LaaProductionWeb/LaaProductionWeb/App_Infrastructure/RoutePrefixes.cs
@@ -12,8 +12,6 @@ namespace LaaProductionWeb.App_Infrastructure
public const String API_CORDONEL_EOLPROGRESS = "api/cordonel/eolprogress";
- public const String API_CORDONEL_EOLSENTINEL = "api/cordonel/eolsentinel";
-
public const String API_CORDONEL_PRODUCTIONORDERS = "api/cordonel/productionorders";
public const String API_CORDONEL_REQUIREMENTS = "api/cordonel/requirements";
diff --git a/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj b/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj
index 2845ef28..3e103cf9 100644
--- a/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj
+++ b/LaaProductionWeb/LaaProductionWeb/LaaProductionWeb.csproj
@@ -198,7 +198,6 @@
-