From f14e758c98d3b9e0b495baa19de57eea570eb36e Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 15 Dec 2022 07:26:23 +0100 Subject: [PATCH] =?UTF-8?q?Defaults=20hinzugef=C3=BCgt=20f=C3=BCr=20fehlen?= =?UTF-8?q?de=20Felder=20im=20Excel=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENI2/Excel/ExcelUtil.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ENI2/Excel/ExcelUtil.cs b/ENI2/Excel/ExcelUtil.cs index 99c83bd1..8a9d79a0 100644 --- a/ENI2/Excel/ExcelUtil.cs +++ b/ENI2/Excel/ExcelUtil.cs @@ -2153,6 +2153,8 @@ namespace ENI2.Excel crew.CrewMemberIdentityDocumentType = ReadDocumentType(reader.ReadCellAsText(sheetTitle, string.Format("J{0}", i + 13)), out canceled); if (canceled) return true; + crew.CrewMemberIdentityDocumentIssuingState = "XX"; + crew.CrewMemberIdentityDocumentExpiryDate = new DateTime(2100, 12, 31); crew.CrewMemberIdentityDocumentId = reader.ReadCellAsText(sheetTitle, string.Format("K{0}", i + 13)); crew.CrewMemberVisaNumber = reader.ReadCellAsText(sheetTitle, string.Format("L{0}", i + 13)); @@ -2222,6 +2224,8 @@ namespace ENI2.Excel crewd.CrewMemberIdentityDocumentExpiryDate = new DateTime(2100, 12, 31); crewd.Effects = reader.ReadCellAsText("2. PORT", string.Format("C{0}", i + 142)); + + Util.UIHelper.SetBusyState(); // dialog might reset busy state } } else @@ -2256,9 +2260,13 @@ namespace ENI2.Excel crewd.CrewMemberIdentityDocumentType = ReadDocumentType(reader.ReadCellAsText(sheetTitle, string.Format("J{0}", i + 13)), out canceled); if (canceled) return true; + crewd.CrewMemberIdentityDocumentIssuingState = "XX"; + crewd.CrewMemberIdentityDocumentExpiryDate = new DateTime(2100, 12, 31); crewd.CrewMemberIdentityDocumentId = reader.ReadCellAsText(sheetTitle, string.Format("K{0}", i + 13)); crewd.CrewMemberVisaNumber = reader.ReadCellAsText(sheetTitle, string.Format("L{0}", i + 13)); + + Util.UIHelper.SetBusyState(); // dialog might reset busy state } } else @@ -2375,6 +2383,8 @@ namespace ENI2.Excel pas.PassengerIdentityDocumentType = ReadDocumentType(reader.ReadCellAsText(sheetTitle, string.Format("L{0}", i + 13)), out canceled); if (canceled) return true; pas.PassengerIdentityDocumentId = reader.ReadCellAsText(sheetTitle, string.Format("M{0}", i + 13)); + pas.PassengerIdentityDocumentExpiryDate = new DateTime(2100, 12, 31); + pas.PassengerVisaNumber = reader.ReadCellAsText(sheetTitle, string.Format("N{0}", i + 13)); Util.UIHelper.SetBusyState(); // dialog might reset busy state