diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs index 1d11a210..ecb7c037 100644 --- a/ENI2/DetailRootControl.xaml.cs +++ b/ENI2/DetailRootControl.xaml.cs @@ -649,7 +649,7 @@ namespace ENI2 { aMessage.InternalStatus = Message.BSMDStatus.SUSPENDED; aMessage.ChangedBy = ""; - aMessage.StatusInfo = string.Format("Validation error: NOA_NOD must be sent before ATA"); + aMessage.StatusInfo = string.Format("Validation error 142: NOA_NOD must be sent before ATA"); DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(aMessage); } } @@ -660,7 +660,7 @@ namespace ENI2 { aMessage.InternalStatus = Message.BSMDStatus.SUSPENDED; aMessage.ChangedBy = ""; - aMessage.StatusInfo = string.Format("Validation error: NOA_NOD must be sent before ATD"); + aMessage.StatusInfo = string.Format("Validation error 142: NOA_NOD must be sent before ATD"); DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(aMessage); } @@ -668,7 +668,7 @@ namespace ENI2 { aMessage.InternalStatus = Message.BSMDStatus.SUSPENDED; aMessage.ChangedBy = ""; - aMessage.StatusInfo = string.Format("Validation error: ATA must be sent before ATD"); + aMessage.StatusInfo = string.Format("Validation error 143: ATA must be sent before ATD"); DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Save(aMessage); } } diff --git a/ENI2/DetailViewControls/PortCallDetailControl.xaml b/ENI2/DetailViewControls/PortCallDetailControl.xaml index 12abc521..75e598c0 100644 --- a/ENI2/DetailViewControls/PortCallDetailControl.xaml +++ b/ENI2/DetailViewControls/PortCallDetailControl.xaml @@ -47,7 +47,7 @@ - + diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj index 6da7b2e6..b8a4ae5e 100644 --- a/ENI2/ENI2.csproj +++ b/ENI2/ENI2.csproj @@ -36,8 +36,8 @@ 5.4.0.0 true publish.html - 12 - 7.5.0.%2a + 4 + 7.6.0.%2a false true true @@ -84,7 +84,7 @@ - F2C2D0164244EC89955EF50201EE24C2A300FF0B + 62DE8527C377957850DB503DA52FF66F664BD459 true diff --git a/ENI2/EditControls/EditCREWDialog.xaml.cs b/ENI2/EditControls/EditCREWDialog.xaml.cs index c9fcae97..5b1bea43 100644 --- a/ENI2/EditControls/EditCREWDialog.xaml.cs +++ b/ENI2/EditControls/EditCREWDialog.xaml.cs @@ -31,13 +31,13 @@ namespace ENI2.EditControls this.textBoxLastName.Text = this.CREW.CrewMemberLastName; this.textBoxFirstName.Text = this.CREW.CrewMemberFirstName; this.comboBoxGender.ItemsSource = GlobalStructures.GenderDict; - this.comboBoxGender.SelectedValue = (this.CREW.CrewMemberGender == null) ? null : this.CREW.CrewMemberGender.ToString(); + this.comboBoxGender.SelectedValue = this.CREW.CrewMemberGender?.ToString(); this.textBoxPlaceOfBirth.Text = this.CREW.CrewMemberPlaceOfBirth; this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict; this.comboBoxNationality.SelectedValue = this.CREW.CrewMemberNationality; this.datePickerDateOfBirth.SelectedDate = this.CREW.CrewMemberDateOfBirth; this.comboBoxIdDocType.ItemsSource = GlobalStructures.IDDocTypeDict; - this.comboBoxIdDocType.SelectedValue = (this.CREW.CrewMemberIdentityDocumentType == null) ? null : this.CREW.CrewMemberIdentityDocumentType.ToString(); + this.comboBoxIdDocType.SelectedValue = this.CREW.CrewMemberIdentityDocumentType?.ToString(); this.textBoxIdDocNumber.Text = this.CREW.CrewMemberIdentityDocumentId; this.textBoxVisaNumber.Text = this.CREW.CrewMemberVisaNumber; this.comboBoxIssuingState.ItemsSource = bsmd.database.CREW.NationalityDict; diff --git a/ENI2/EditControls/EditPasDialog.xaml.cs b/ENI2/EditControls/EditPasDialog.xaml.cs index fee66aac..50ec611e 100644 --- a/ENI2/EditControls/EditPasDialog.xaml.cs +++ b/ENI2/EditControls/EditPasDialog.xaml.cs @@ -30,13 +30,13 @@ namespace ENI2.EditControls this.textBoxLastName.Text = this.PAS.PassengerLastName; this.textBoxFirstName.Text = this.PAS.PassengerFirstName; this.comboBoxGender.ItemsSource = GlobalStructures.GenderDict; - this.comboBoxGender.SelectedValue = this.PAS.PassengerGender ?? -1; + this.comboBoxGender.SelectedValue = this.PAS.PassengerGender?.ToString(); this.textBoxPlaceOfBirth.Text = this.PAS.PassengerPlaceOfBirth; this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict; this.comboBoxNationality.SelectedValue = this.PAS.PassengerNationality; this.datePickerDateOfBirth.SelectedDate = this.PAS.PassengerDateOfBirth; this.comboBoxIdDocType.ItemsSource = GlobalStructures.IDDocTypeDict; - this.comboBoxIdDocType.SelectedValue = this.PAS.PassengerIdentityDocumentType ?? null; + this.comboBoxIdDocType.SelectedValue = this.PAS.PassengerIdentityDocumentType?.ToString(); this.textBoxIdDocNumber.Text = this.PAS.PassengerIdentityDocumentId; this.textBoxVisaNumber.Text = this.PAS.PassengerVisaNumber; this.locodePortOfEmbarkation.LocodeValue = this.PAS.PassengerPortOfEmbarkation; diff --git a/ENI2/EditControls/EditWasteDialog.xaml b/ENI2/EditControls/EditWasteDialog.xaml index 41f3372e..33f929b9 100644 --- a/ENI2/EditControls/EditWasteDialog.xaml +++ b/ENI2/EditControls/EditWasteDialog.xaml @@ -41,7 +41,7 @@ - +