Port may only be changed if the shipcall is created
This commit is contained in:
parent
0d9e4ac026
commit
184d15554b
@ -42,6 +42,8 @@ namespace BreCalClient
|
||||
|
||||
public ShipApi? ShipApi { get; set; }
|
||||
|
||||
public bool IsCreate { get; set; } = false;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Event handler
|
||||
@ -395,6 +397,7 @@ namespace BreCalClient
|
||||
this.datePickerETD.IsEnabled = isAgency || isBsmd;
|
||||
|
||||
this.labelBSMDGranted.Visibility = editRightGrantedForBSMD ? Visibility.Visible : Visibility.Hidden;
|
||||
this.comboBoxHarbour.IsEnabled = this.IsCreate;
|
||||
|
||||
this.comboBoxCategories_SelectionChanged(null, null);
|
||||
}
|
||||
|
||||
@ -247,7 +247,8 @@ namespace BreCalClient
|
||||
EditShipcallControl esc = new()
|
||||
{
|
||||
ShipEditingEnabled = App.Participant.IsTypeFlagSet(Extensions.ParticipantType.BSMD),
|
||||
ShipApi = _shipApi
|
||||
ShipApi = _shipApi,
|
||||
IsCreate = true
|
||||
};
|
||||
if (model != null)
|
||||
esc.ShipcallModel = model;
|
||||
|
||||
Reference in New Issue
Block a user