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