fixed CREWD Import for Dakosy sheets
This commit is contained in:
parent
5a7346de43
commit
8e6d9aa0c0
@ -1182,7 +1182,7 @@ namespace ENI2.Excel
|
|||||||
crewMessage.Elements.Add(crew);
|
crewMessage.Elements.Add(crew);
|
||||||
}
|
}
|
||||||
|
|
||||||
crew.NotificationSchengen = reader.ReadCellAsBool("crew departure", "C10");
|
crew.NotificationSchengen = true;
|
||||||
crew.NotificationPAX = reader.ReadCellAsBool("crew departure", "C11");
|
crew.NotificationPAX = reader.ReadCellAsBool("crew departure", "C11");
|
||||||
|
|
||||||
crew.CrewMemberLastName = lastName;
|
crew.CrewMemberLastName = lastName;
|
||||||
@ -1196,8 +1196,6 @@ namespace ENI2.Excel
|
|||||||
crew.CrewMemberNationality = ExcelUtil.ReadNationality(reader.ReadCellAsText("crew departure", string.Format("H{0}", i + 15)), out canceled);
|
crew.CrewMemberNationality = ExcelUtil.ReadNationality(reader.ReadCellAsText("crew departure", string.Format("H{0}", i + 15)), out canceled);
|
||||||
if (canceled) return false;
|
if (canceled) return false;
|
||||||
|
|
||||||
if (crew.NotificationSchengen ?? false)
|
|
||||||
{
|
|
||||||
string idDocType = reader.ReadCellAsText("crew departure", string.Format("I{0}", i + 15));
|
string idDocType = reader.ReadCellAsText("crew departure", string.Format("I{0}", i + 15));
|
||||||
crew.CrewMemberIdentityDocumentType = ParseDocumentType(idDocType);
|
crew.CrewMemberIdentityDocumentType = ParseDocumentType(idDocType);
|
||||||
crew.CrewMemberIdentityDocumentId = reader.ReadCellAsText("crew departure", string.Format("J{0}", i + 15));
|
crew.CrewMemberIdentityDocumentId = reader.ReadCellAsText("crew departure", string.Format("J{0}", i + 15));
|
||||||
@ -1205,7 +1203,6 @@ namespace ENI2.Excel
|
|||||||
crew.CrewMemberIdentityDocumentIssuingState = ExcelUtil.ReadNationality(reader.ReadCellAsText("crew departure", string.Format("M{0}", i + 15)), out canceled);
|
crew.CrewMemberIdentityDocumentIssuingState = ExcelUtil.ReadNationality(reader.ReadCellAsText("crew departure", string.Format("M{0}", i + 15)), out canceled);
|
||||||
if (canceled) return false;
|
if (canceled) return false;
|
||||||
crew.CrewMemberIdentityDocumentExpiryDate = reader.ReadCellAsDateTime("crew departure", string.Format("N{0}", i + 15));
|
crew.CrewMemberIdentityDocumentExpiryDate = reader.ReadCellAsDateTime("crew departure", string.Format("N{0}", i + 15));
|
||||||
}
|
|
||||||
|
|
||||||
crew.CrewMemberDuty = reader.ReadCellAsText("crew departure", string.Format("L{0}", i + 15));
|
crew.CrewMemberDuty = reader.ReadCellAsText("crew departure", string.Format("L{0}", i + 15));
|
||||||
|
|
||||||
@ -1234,7 +1231,7 @@ namespace ENI2.Excel
|
|||||||
crewMessage.Elements.Add(crew);
|
crewMessage.Elements.Add(crew);
|
||||||
}
|
}
|
||||||
|
|
||||||
crew.NotificationSchengen = reader.ReadCellAsBool("crew arrival", "C10");
|
crew.NotificationSchengen = true;
|
||||||
crew.NotificationPAX = reader.ReadCellAsBool("crew arrival", "C11") ?? false;
|
crew.NotificationPAX = reader.ReadCellAsBool("crew arrival", "C11") ?? false;
|
||||||
|
|
||||||
crew.CrewMemberLastName = lastName;
|
crew.CrewMemberLastName = lastName;
|
||||||
@ -1247,6 +1244,7 @@ namespace ENI2.Excel
|
|||||||
crew.CrewMemberGender = ParseGender(gender);
|
crew.CrewMemberGender = ParseGender(gender);
|
||||||
crew.CrewMemberNationality = ExcelUtil.ReadNationality(reader.ReadCellAsText("crew arrival", string.Format("H{0}", i + 15)), out canceled);
|
crew.CrewMemberNationality = ExcelUtil.ReadNationality(reader.ReadCellAsText("crew arrival", string.Format("H{0}", i + 15)), out canceled);
|
||||||
if (canceled) return false;
|
if (canceled) return false;
|
||||||
|
|
||||||
string idDocType = reader.ReadCellAsText("crew arrival", string.Format("I{0}", i + 15));
|
string idDocType = reader.ReadCellAsText("crew arrival", string.Format("I{0}", i + 15));
|
||||||
crew.CrewMemberIdentityDocumentType = ParseDocumentType(idDocType);
|
crew.CrewMemberIdentityDocumentType = ParseDocumentType(idDocType);
|
||||||
crew.CrewMemberIdentityDocumentId = reader.ReadCellAsText("crew arrival", string.Format("J{0}", i + 15));
|
crew.CrewMemberIdentityDocumentId = reader.ReadCellAsText("crew arrival", string.Format("J{0}", i + 15));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user