if wrong values keep empty, if missing: use default placeholders
This commit is contained in:
parent
ce97aeca27
commit
4eacf85d8d
@ -128,7 +128,7 @@ namespace ENI2.Excel
|
||||
if (portName.IsNullOrEmpty())
|
||||
{
|
||||
_log.WarnFormat("unknown Locode {0}", val);
|
||||
val = "";
|
||||
val = null;
|
||||
}
|
||||
}
|
||||
return val;
|
||||
|
||||
@ -1286,10 +1286,10 @@ namespace ENI2.Excel
|
||||
|
||||
waste.WasteDisposalPort = reader.ReadSSNLocode(wastePort); // aka RemainingWasteDisposalPort
|
||||
|
||||
//if (waste.WasteDisposalPort.IsNullOrEmpty())
|
||||
//{
|
||||
// waste.WasteDisposalPort = "ZZUKN";
|
||||
//}
|
||||
if ((waste.WasteDisposalPort != null) && (waste.WasteDisposalPort == string.Empty))
|
||||
{
|
||||
waste.WasteDisposalPort = "ZZUKN";
|
||||
}
|
||||
|
||||
waste.WasteAmountGeneratedTillNextPort_MTQ = reader.ReadNumber(amountGen);
|
||||
|
||||
@ -1299,7 +1299,7 @@ namespace ENI2.Excel
|
||||
}
|
||||
}
|
||||
|
||||
// was.AddMissingWaste();
|
||||
was.AddMissingWaste();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user