kleine Korrekturen für 7.5.0.6
This commit is contained in:
parent
6513762adc
commit
3722223c64
@ -853,7 +853,6 @@ namespace ENI2.DetailViewControls
|
|||||||
this.tabControlPositions.SelectedIndex = 4;
|
this.tabControlPositions.SelectedIndex = 4;
|
||||||
MARPOL_Annex_I_Position marpolPos = new MARPOL_Annex_I_Position();
|
MARPOL_Annex_I_Position marpolPos = new MARPOL_Annex_I_Position();
|
||||||
marpolPos.FlashpointInformation = selectedTemplate.Flashpoint;
|
marpolPos.FlashpointInformation = selectedTemplate.Flashpoint;
|
||||||
marpolPos.Flashpoint_CEL = selectedTemplate.FP1;
|
|
||||||
marpolPos.Identifier = DatabaseEntity.GetNewIdentifier(haz.MARPOLPositions, "MARPOL-");
|
marpolPos.Identifier = DatabaseEntity.GetNewIdentifier(haz.MARPOLPositions, "MARPOL-");
|
||||||
marpolPos.HAZ = haz;
|
marpolPos.HAZ = haz;
|
||||||
haz.MARPOLPositions.Add(marpolPos);
|
haz.MARPOLPositions.Add(marpolPos);
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
||||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||||
<WebPage>publish.html</WebPage>
|
<WebPage>publish.html</WebPage>
|
||||||
<ApplicationRevision>5</ApplicationRevision>
|
<ApplicationRevision>6</ApplicationRevision>
|
||||||
<ApplicationVersion>7.5.0.%2a</ApplicationVersion>
|
<ApplicationVersion>7.5.0.%2a</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
|
|||||||
@ -2214,6 +2214,8 @@ namespace ENI2.Excel
|
|||||||
pas.PassengerIdentityDocumentId = reader.ReadCellAsText(sheetTitle, string.Format("N{0}", i + 17));
|
pas.PassengerIdentityDocumentId = reader.ReadCellAsText(sheetTitle, string.Format("N{0}", i + 17));
|
||||||
|
|
||||||
pas.PassengerIdentityDocumentExpiryDate = reader.ReadCellAsDateTime(sheetTitle, string.Format("P{0}", i + 17));
|
pas.PassengerIdentityDocumentExpiryDate = reader.ReadCellAsDateTime(sheetTitle, string.Format("P{0}", i + 17));
|
||||||
|
if(!pas.PassengerIdentityDocumentExpiryDate.HasValue)
|
||||||
|
pas.PassengerIdentityDocumentExpiryDate = new DateTime(2100, 12, 31);
|
||||||
|
|
||||||
pas.PassengerVisaNumber = reader.ReadCellAsText(sheetTitle, string.Format("Q{0}", i + 17));
|
pas.PassengerVisaNumber = reader.ReadCellAsText(sheetTitle, string.Format("Q{0}", i + 17));
|
||||||
pas.EmergencyCare = reader.ReadCellAsText(sheetTitle, string.Format("R{0}", i + 17));
|
pas.EmergencyCare = reader.ReadCellAsText(sheetTitle, string.Format("R{0}", i + 17));
|
||||||
@ -2273,7 +2275,7 @@ namespace ENI2.Excel
|
|||||||
pas.PassengerFirstName = reader.ReadText(pasFirstName);
|
pas.PassengerFirstName = reader.ReadText(pasFirstName);
|
||||||
pas.PassengerGender = reader.ReadGender(pasGender);
|
pas.PassengerGender = reader.ReadGender(pasGender);
|
||||||
pas.PassengerNationality = reader.ReadNationality(pasNationality);
|
pas.PassengerNationality = reader.ReadNationality(pasNationality);
|
||||||
// TODO: Nicht klar ob hier LOCODEs kommen oder nicht
|
|
||||||
pas.PassengerPortOfEmbarkation = reader.ReadTextNoWhitespace(pasEmbarkation);
|
pas.PassengerPortOfEmbarkation = reader.ReadTextNoWhitespace(pasEmbarkation);
|
||||||
pas.PassengerPortOfDisembarkation = reader.ReadTextNoWhitespace(pasDebarkation);
|
pas.PassengerPortOfDisembarkation = reader.ReadTextNoWhitespace(pasDebarkation);
|
||||||
pas.PassengerInTransit = reader.ReadBoolean(pasTransit);
|
pas.PassengerInTransit = reader.ReadBoolean(pasTransit);
|
||||||
@ -2284,6 +2286,8 @@ namespace ENI2.Excel
|
|||||||
pas.PassengerVisaNumber = reader.ReadText(pasVisaNo);
|
pas.PassengerVisaNumber = reader.ReadText(pasVisaNo);
|
||||||
pas.PassengerIdentityDocumentIssuingState = reader.ReadNationality(pasIssuing);
|
pas.PassengerIdentityDocumentIssuingState = reader.ReadNationality(pasIssuing);
|
||||||
pas.PassengerIdentityDocumentExpiryDate = reader.ReadDate(pasExpiryDate);
|
pas.PassengerIdentityDocumentExpiryDate = reader.ReadDate(pasExpiryDate);
|
||||||
|
if (!pas.PassengerIdentityDocumentExpiryDate.HasValue)
|
||||||
|
pas.PassengerIdentityDocumentExpiryDate = new DateTime(2100, 12, 31);
|
||||||
pas.PassengerCountryOfBirth = reader.ReadNationality(pasCountryOfBirth);
|
pas.PassengerCountryOfBirth = reader.ReadNationality(pasCountryOfBirth);
|
||||||
pas.EmergencyCare = reader.ReadText(pasEmergencyCare);
|
pas.EmergencyCare = reader.ReadText(pasEmergencyCare);
|
||||||
pas.EmergencyContactNumber = reader.ReadText(pasEmergencyContact);
|
pas.EmergencyContactNumber = reader.ReadText(pasEmergencyContact);
|
||||||
@ -2478,6 +2482,10 @@ namespace ENI2.Excel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = 5; // OTHER_LEGAL_IDENTITY_DOCUMENT (CH, 17.10.22)
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -2486,8 +2494,11 @@ namespace ENI2.Excel
|
|||||||
{
|
{
|
||||||
string result = null;
|
string result = null;
|
||||||
nationality = nationality.Trim();
|
nationality = nationality.Trim();
|
||||||
|
if (nationality.IsNullOrEmpty())
|
||||||
if(CREW.NationalityDict.ContainsKey(nationality))
|
{
|
||||||
|
result = "XX";
|
||||||
|
}
|
||||||
|
else if(CREW.NationalityDict.ContainsKey(nationality))
|
||||||
{
|
{
|
||||||
result = nationality;
|
result = nationality;
|
||||||
}
|
}
|
||||||
@ -2524,7 +2535,7 @@ namespace ENI2.Excel
|
|||||||
|
|
||||||
val = val.ToUpper();
|
val = val.ToUpper();
|
||||||
|
|
||||||
if (val.IsNullOrEmpty()) return val;
|
if (val.IsNullOrEmpty()) return "ZZUKN";
|
||||||
|
|
||||||
// check if this is a legitimate Locode
|
// check if this is a legitimate Locode
|
||||||
if (!LocodeDB.LocationNameFromLocode(val).IsNullOrEmpty()) return val;
|
if (!LocodeDB.LocationNameFromLocode(val).IsNullOrEmpty()) return val;
|
||||||
|
|||||||
@ -44,10 +44,6 @@ namespace bsmd.database
|
|||||||
|
|
||||||
public string IMOClass { get; set; }
|
public string IMOClass { get; set; }
|
||||||
|
|
||||||
public string FP1 { get; set; }
|
|
||||||
|
|
||||||
public string FP2 { get; set; }
|
|
||||||
|
|
||||||
public string Comment { get; set; }
|
public string Comment { get; set; }
|
||||||
|
|
||||||
public SublistType TemplateType { get; set; }
|
public SublistType TemplateType { get; set; }
|
||||||
@ -60,7 +56,7 @@ namespace bsmd.database
|
|||||||
|
|
||||||
public static string GetQuery()
|
public static string GetQuery()
|
||||||
{
|
{
|
||||||
return "SELECT Beschreibung, HAZARD_ENUM, FP_ENUM, \"15.19?\", Typ, MHB, IMSBC_HAZ, \"UN-Nr.\", \"IMO-Cl.\", POLLUTION_CATEGORY_ENUM, \"FP.1\", \"FP.2\", Bemerkung FROM GEFAHRGUTLISTE ORDER BY Beschreibung";
|
return "SELECT Beschreibung, HAZARD_ENUM, FP_ENUM, \"15.19?\", Typ, MHB, IMSBC_HAZ, \"UN-Nr.\", \"IMO-Cl.\", POLLUTION_CATEGORY_ENUM, Bemerkung FROM GEFAHRGUTLISTE ORDER BY Beschreibung";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<HAZPosTemplate> LoadList(IDataReader reader)
|
public static List<HAZPosTemplate> LoadList(IDataReader reader)
|
||||||
@ -110,11 +106,7 @@ namespace bsmd.database
|
|||||||
if (!reader.IsDBNull(9))
|
if (!reader.IsDBNull(9))
|
||||||
hpt.PollutionCategory = (byte) reader.GetDouble(9);
|
hpt.PollutionCategory = (byte) reader.GetDouble(9);
|
||||||
if (!reader.IsDBNull(10))
|
if (!reader.IsDBNull(10))
|
||||||
hpt.FP1 = reader.GetString(10);
|
hpt.Comment = reader.GetString(10);
|
||||||
if (!reader.IsDBNull(11))
|
|
||||||
hpt.FP2 = reader.GetString(11);
|
|
||||||
if (!reader.IsDBNull(12))
|
|
||||||
hpt.Comment = reader.GetString(12);
|
|
||||||
|
|
||||||
result.Add(hpt);
|
result.Add(hpt);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user