Merge branch 'release/1.6.0' of ssh://lager/mnt/ext/git/git_brcal into release/1.6.0
This commit is contained in:
commit
864e023495
@ -1 +1 @@
|
|||||||
1.6.0.6
|
1.6.0.8
|
||||||
@ -8,8 +8,8 @@
|
|||||||
<SignAssembly>True</SignAssembly>
|
<SignAssembly>True</SignAssembly>
|
||||||
<StartupObject>BreCalClient.App</StartupObject>
|
<StartupObject>BreCalClient.App</StartupObject>
|
||||||
<AssemblyOriginatorKeyFile>..\..\misc\brecal.snk</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>..\..\misc\brecal.snk</AssemblyOriginatorKeyFile>
|
||||||
<AssemblyVersion>1.6.0.6</AssemblyVersion>
|
<AssemblyVersion>1.6.0.8</AssemblyVersion>
|
||||||
<FileVersion>1.6.0.6</FileVersion>
|
<FileVersion>1.6.0.8</FileVersion>
|
||||||
<Title>Bremen calling client</Title>
|
<Title>Bremen calling client</Title>
|
||||||
<Description>A Windows WPF client for the Bremen calling API.</Description>
|
<Description>A Windows WPF client for the Bremen calling API.</Description>
|
||||||
<ApplicationIcon>containership.ico</ApplicationIcon>
|
<ApplicationIcon>containership.ico</ApplicationIcon>
|
||||||
|
|||||||
@ -188,6 +188,8 @@ namespace BreCalClient
|
|||||||
|
|
||||||
void CheckForCompletion()
|
void CheckForCompletion()
|
||||||
{
|
{
|
||||||
|
if (this.ShipcallModel.Shipcall?.Canceled ?? false) return; // Cancelled shipcall never clicks ok
|
||||||
|
|
||||||
bool isEnabled = true;
|
bool isEnabled = true;
|
||||||
|
|
||||||
isEnabled &= this.comboBoxShip.SelectedItem != null;
|
isEnabled &= this.comboBoxShip.SelectedItem != null;
|
||||||
@ -378,6 +380,8 @@ namespace BreCalClient
|
|||||||
|
|
||||||
bool editRightGrantedForBSMD = false;
|
bool editRightGrantedForBSMD = false;
|
||||||
|
|
||||||
|
if (this.ShipcallModel.Shipcall?.Canceled ?? false) return; // do not allow edit on canceled shipcall
|
||||||
|
|
||||||
// Special case: Selected Agency allows BSMD to edit their fields
|
// Special case: Selected Agency allows BSMD to edit their fields
|
||||||
if (this.comboBoxAgency.SelectedIndex >= 0)
|
if (this.comboBoxAgency.SelectedIndex >= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -366,7 +366,7 @@ namespace BreCalClient
|
|||||||
|
|
||||||
private void CheckOKButton()
|
private void CheckOKButton()
|
||||||
{
|
{
|
||||||
this.buttonOK.IsEnabled = _editing && RequiredFieldsSet();
|
this.buttonOK.IsEnabled = _editing && RequiredFieldsSet() && !(this.ShipcallModel.Shipcall?.Canceled ?? false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@ -356,7 +356,7 @@ namespace BreCalClient
|
|||||||
|
|
||||||
private void CheckOKButton()
|
private void CheckOKButton()
|
||||||
{
|
{
|
||||||
this.buttonOK.IsEnabled = _editing && RequiredFieldsSet();
|
this.buttonOK.IsEnabled = _editing && RequiredFieldsSet() && !(this.ShipcallModel.Shipcall?.Canceled ?? false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@ -394,7 +394,7 @@ namespace BreCalClient
|
|||||||
|
|
||||||
private void CheckOKButton()
|
private void CheckOKButton()
|
||||||
{
|
{
|
||||||
this.buttonOK.IsEnabled = _editing && RequiredFieldsSet();
|
this.buttonOK.IsEnabled = _editing && RequiredFieldsSet() && !(this.ShipcallModel.Shipcall?.Canceled ?? false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@ -259,7 +259,7 @@ namespace BreCalClient
|
|||||||
|
|
||||||
// setting en/dis-abled
|
// setting en/dis-abled
|
||||||
|
|
||||||
if (this.Times.ParticipantId != App.Participant.Id)
|
if ((this.Times.ParticipantId != App.Participant.Id) || (this.ShipcallModel.Shipcall?.Canceled ?? false))
|
||||||
{
|
{
|
||||||
this.buttonFixedOrder.IsEnabled = false;
|
this.buttonFixedOrder.IsEnabled = false;
|
||||||
this.buttonOK.IsEnabled = false;
|
this.buttonOK.IsEnabled = false;
|
||||||
|
|||||||
@ -217,7 +217,7 @@ namespace BreCalClient
|
|||||||
|
|
||||||
private void EnableControls()
|
private void EnableControls()
|
||||||
{
|
{
|
||||||
if (this.Times.ParticipantId != App.Participant.Id)
|
if ((this.Times.ParticipantId != App.Participant.Id) || (this.ShipcallModel.Shipcall?.Canceled ?? false))
|
||||||
{
|
{
|
||||||
this.buttonOK.IsEnabled = false;
|
this.buttonOK.IsEnabled = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationRevision>6</ApplicationRevision>
|
<ApplicationRevision>6</ApplicationRevision>
|
||||||
<ApplicationVersion>1.6.0.6</ApplicationVersion>
|
<ApplicationVersion>1.6.0.8</ApplicationVersion>
|
||||||
<BootstrapperEnabled>True</BootstrapperEnabled>
|
<BootstrapperEnabled>True</BootstrapperEnabled>
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<CreateDesktopShortcut>True</CreateDesktopShortcut>
|
<CreateDesktopShortcut>True</CreateDesktopShortcut>
|
||||||
@ -41,7 +41,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||||||
<PublishDir>bin\Debug\net6.0-windows\win-x64\app.publish\</PublishDir>
|
<PublishDir>bin\Debug\net6.0-windows\win-x64\app.publish\</PublishDir>
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
<SkipPublishVerification>false</SkipPublishVerification>
|
<SkipPublishVerification>false</SkipPublishVerification>
|
||||||
<MinimumRequiredVersion>1.6.0.6</MinimumRequiredVersion>
|
<MinimumRequiredVersion>1.6.0.8</MinimumRequiredVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PublishFile Include="containership.ico">
|
<PublishFile Include="containership.ico">
|
||||||
|
|||||||
@ -498,7 +498,7 @@ class InputValidationShipcall():
|
|||||||
|
|
||||||
# if the *existing* shipcall in the database is canceled, it may not be changed
|
# if the *existing* shipcall in the database is canceled, it may not be changed
|
||||||
if shipcall.get("canceled", False):
|
if shipcall.get("canceled", False):
|
||||||
raise ValidationError({"canceled":f"The shipcall with id 'shipcall_id' is canceled. A canceled shipcall may not be changed."})
|
raise ValidationError({"canceled":f"The shipcall with id {shipcall_id} is canceled. A canceled shipcall may not be changed."})
|
||||||
return
|
return
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user