default for planned works/operations as n
This commit is contained in:
parent
d36d625681
commit
8e0fdfa4ff
@ -636,6 +636,8 @@ namespace ENI2.Excel
|
||||
pre72h.PlannedWorks = reader.ReadCellAsText("port state control", "C15");
|
||||
pre72h.DateOfLastExpandedInspection = reader.ReadCellAsDateTime("port state control", "C16");
|
||||
pre72h.PlannedPeriodOfStay_HUR = reader.ReadCellAsDecimal("port state control", "C17");
|
||||
if (pre72h.PlannedOperations.IsNullOrEmpty()) pre72h.PlannedOperations = "n";
|
||||
if (pre72h.PlannedWorks.IsNullOrEmpty()) pre72h.PlannedWorks = "n";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -1867,7 +1867,7 @@ namespace ENI2.Excel
|
||||
#region PRE72H
|
||||
|
||||
private static bool ScanPRE72H(Message pre72hMessage, ExcelReader reader)
|
||||
{
|
||||
{
|
||||
if (pre72hMessage.Elements.Count == 0)
|
||||
{
|
||||
PRE72H newPRE72H = new PRE72H();
|
||||
@ -1880,6 +1880,8 @@ namespace ENI2.Excel
|
||||
pre72h.ConditionCargoBallastTanks = reader.ReadConditionTanks("PRE72H.ConditionCargoBallastTanks");
|
||||
pre72h.TankerHullConfiguration = reader.ReadHullConfiguration("PRE72H.TankerHullConfiguration");
|
||||
pre72h.PlannedWorks = reader.ReadText("PRE72H.PlannedWorks");
|
||||
if (pre72h.PlannedOperations.IsNullOrEmpty()) pre72h.PlannedOperations = "n";
|
||||
if (pre72h.PlannedWorks.IsNullOrEmpty()) pre72h.PlannedWorks = "n";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user