bugs von der 6.5 korrigiert
This commit is contained in:
parent
e6ec05cdc0
commit
70bda5ee1d
@ -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>2</ApplicationRevision>
|
<ApplicationRevision>3</ApplicationRevision>
|
||||||
<ApplicationVersion>7.6.0.%2a</ApplicationVersion>
|
<ApplicationVersion>7.6.0.%2a</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
|
|||||||
@ -31,13 +31,13 @@ namespace ENI2.EditControls
|
|||||||
this.textBoxLastName.Text = this.CREW.CrewMemberLastName;
|
this.textBoxLastName.Text = this.CREW.CrewMemberLastName;
|
||||||
this.textBoxFirstName.Text = this.CREW.CrewMemberFirstName;
|
this.textBoxFirstName.Text = this.CREW.CrewMemberFirstName;
|
||||||
this.comboBoxGender.ItemsSource = GlobalStructures.GenderDict;
|
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.textBoxPlaceOfBirth.Text = this.CREW.CrewMemberPlaceOfBirth;
|
||||||
this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict;
|
this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict;
|
||||||
this.comboBoxNationality.SelectedValue = this.CREW.CrewMemberNationality;
|
this.comboBoxNationality.SelectedValue = this.CREW.CrewMemberNationality;
|
||||||
this.datePickerDateOfBirth.SelectedDate = this.CREW.CrewMemberDateOfBirth;
|
this.datePickerDateOfBirth.SelectedDate = this.CREW.CrewMemberDateOfBirth;
|
||||||
this.comboBoxIdDocType.ItemsSource = GlobalStructures.IDDocTypeDict;
|
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.textBoxIdDocNumber.Text = this.CREW.CrewMemberIdentityDocumentId;
|
||||||
this.textBoxVisaNumber.Text = this.CREW.CrewMemberVisaNumber;
|
this.textBoxVisaNumber.Text = this.CREW.CrewMemberVisaNumber;
|
||||||
this.comboBoxIssuingState.ItemsSource = bsmd.database.CREW.NationalityDict;
|
this.comboBoxIssuingState.ItemsSource = bsmd.database.CREW.NationalityDict;
|
||||||
|
|||||||
@ -30,13 +30,13 @@ namespace ENI2.EditControls
|
|||||||
this.textBoxLastName.Text = this.PAS.PassengerLastName;
|
this.textBoxLastName.Text = this.PAS.PassengerLastName;
|
||||||
this.textBoxFirstName.Text = this.PAS.PassengerFirstName;
|
this.textBoxFirstName.Text = this.PAS.PassengerFirstName;
|
||||||
this.comboBoxGender.ItemsSource = GlobalStructures.GenderDict;
|
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.textBoxPlaceOfBirth.Text = this.PAS.PassengerPlaceOfBirth;
|
||||||
this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict;
|
this.comboBoxNationality.ItemsSource = bsmd.database.CREW.NationalityDict;
|
||||||
this.comboBoxNationality.SelectedValue = this.PAS.PassengerNationality;
|
this.comboBoxNationality.SelectedValue = this.PAS.PassengerNationality;
|
||||||
this.datePickerDateOfBirth.SelectedDate = this.PAS.PassengerDateOfBirth;
|
this.datePickerDateOfBirth.SelectedDate = this.PAS.PassengerDateOfBirth;
|
||||||
this.comboBoxIdDocType.ItemsSource = GlobalStructures.IDDocTypeDict;
|
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.textBoxIdDocNumber.Text = this.PAS.PassengerIdentityDocumentId;
|
||||||
this.textBoxVisaNumber.Text = this.PAS.PassengerVisaNumber;
|
this.textBoxVisaNumber.Text = this.PAS.PassengerVisaNumber;
|
||||||
this.locodePortOfEmbarkation.LocodeValue = this.PAS.PassengerPortOfEmbarkation;
|
this.locodePortOfEmbarkation.LocodeValue = this.PAS.PassengerPortOfEmbarkation;
|
||||||
|
|||||||
@ -134,18 +134,18 @@ namespace ENI2.Util
|
|||||||
{
|
{
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
else if (o is string)
|
else if (o is string str)
|
||||||
{
|
{
|
||||||
if (((string)o).Contains(cmb.Text, StringComparison.OrdinalIgnoreCase)) result = true;
|
if (str.Contains(cmb.Text, StringComparison.OrdinalIgnoreCase)) result = true;
|
||||||
}
|
}
|
||||||
else if (o is System.Collections.Generic.KeyValuePair<string, string>)
|
else if (o is System.Collections.Generic.KeyValuePair<string, string> kvsPair)
|
||||||
{
|
{
|
||||||
if (((System.Collections.Generic.KeyValuePair<string, string>)o).Value.StartsWith(cmb.Text, StringComparison.OrdinalIgnoreCase))
|
if (kvsPair.Value.StartsWith(cmb.Text, StringComparison.OrdinalIgnoreCase))
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
else if (o is System.Collections.Generic.KeyValuePair<int, string>)
|
else if (o is System.Collections.Generic.KeyValuePair<int, string> kviPair)
|
||||||
{
|
{
|
||||||
if (((System.Collections.Generic.KeyValuePair<int, string>)o).Value.StartsWith(cmb.Text, StringComparison.OrdinalIgnoreCase))
|
if (kviPair.Value.StartsWith(cmb.Text, StringComparison.OrdinalIgnoreCase))
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user