From ea6f8ac97a2f72feb41f92debf56ce03941f81f6 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Fri, 16 Dec 2022 07:33:42 +0100 Subject: [PATCH] noch ein kleiner Fix.. --- ENI2/ENI2.csproj | 2 +- ENI2/Excel/ExcelUtil.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj index abd659fd..c9e11fa9 100644 --- a/ENI2/ENI2.csproj +++ b/ENI2/ENI2.csproj @@ -36,7 +36,7 @@ 5.4.0.0 true publish.html - 5 + 6 7.7.0.%2a false true diff --git a/ENI2/Excel/ExcelUtil.cs b/ENI2/Excel/ExcelUtil.cs index 8a9d79a0..5bb5be88 100644 --- a/ENI2/Excel/ExcelUtil.cs +++ b/ENI2/Excel/ExcelUtil.cs @@ -2313,7 +2313,8 @@ namespace ENI2.Excel if (canceled) return true; pas.PassengerIdentityDocumentIssuingState = ReadNationality(reader.ReadCellAsText(sheetTitle, string.Format("O{0}", i + 17)), out canceled); if (canceled) return true; - if (pas.PassengerIdentityDocumentIssuingState == null) return true; + if (pas.PassengerIdentityDocumentIssuingState.IsNullOrEmpty()) + pas.PassengerIdentityDocumentIssuingState = "XX"; pas.PassengerGender = ReadGender(reader.ReadCellAsText(sheetTitle, string.Format("E{0}", i + 17)), out canceled); if (canceled) return true; @@ -2384,6 +2385,7 @@ namespace ENI2.Excel if (canceled) return true; pas.PassengerIdentityDocumentId = reader.ReadCellAsText(sheetTitle, string.Format("M{0}", i + 13)); pas.PassengerIdentityDocumentExpiryDate = new DateTime(2100, 12, 31); + pas.PassengerIdentityDocumentIssuingState = "XX"; pas.PassengerVisaNumber = reader.ReadCellAsText(sheetTitle, string.Format("N{0}", i + 13));