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));