diff --git a/ENI2/AnmeldungenControl.xaml.cs b/ENI2/AnmeldungenControl.xaml.cs index be34290f..47a77da1 100644 --- a/ENI2/AnmeldungenControl.xaml.cs +++ b/ENI2/AnmeldungenControl.xaml.cs @@ -1,20 +1,8 @@ // Copyright (c) 2017 Informatibüro Daniel Schick -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; using bsmd.database; +using System.Windows.Controls; +using System.Windows.Input; namespace ENI2 { @@ -62,7 +50,7 @@ namespace ENI2 { if((this.MessageCoreSelected != null) && (aMessageCore != null)) { - this.MessageCoreSelected(aMessageCore); + this.MessageCoreSelected(aMessageCore, DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].ShipcallDisplayMode); } } diff --git a/ENI2/Controls/MaerskListControl.xaml.cs b/ENI2/Controls/MaerskListControl.xaml.cs index 1026f49a..20e69a3b 100644 --- a/ENI2/Controls/MaerskListControl.xaml.cs +++ b/ENI2/Controls/MaerskListControl.xaml.cs @@ -607,7 +607,7 @@ namespace ENI2.Controls MaerskData md = grid.SelectedItem as MaerskData; if(md.MessageCore != null) { Util.UIHelper.SetBusyState(); - this.MessageCoreSelected?.Invoke(md.MessageCore); + this.MessageCoreSelected?.Invoke(md.MessageCore, DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].ShipcallDisplayMode); } } } diff --git a/ENI2/DetailViewControls/DepartureNotificationDetailControl.xaml.cs b/ENI2/DetailViewControls/DepartureNotificationDetailControl.xaml.cs index c139a318..1f78a706 100644 --- a/ENI2/DetailViewControls/DepartureNotificationDetailControl.xaml.cs +++ b/ENI2/DetailViewControls/DepartureNotificationDetailControl.xaml.cs @@ -40,7 +40,7 @@ namespace ENI2.DetailViewControls this.RegisterIntegerUpDownChange(this.integerUpDownPassengersOnBoard, Message.NotificationClass.POBD); this.RegisterIntegerUpDownChange(this.integerUpDownPersonsOnBoard, Message.NotificationClass.POBD); this.RegisterIntegerUpDownChange(this.integerUpDownStowawaysOnBoard, Message.NotificationClass.POBD); - this.dataGridBKRD.CellEditEnding += (obj, ev) => { this.OnNotificationClassChanged(Message.NotificationClass.BKRD); }; + this.dataGridBKRD.CellEditEnding += (obj, ev) => { this.SublistElementChanged(Message.NotificationClass.BKRD); }; startupComplete = true; } diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj index 04a692c9..2b1fcb11 100644 --- a/ENI2/ENI2.csproj +++ b/ENI2/ENI2.csproj @@ -36,8 +36,8 @@ 5.4.0.0 true publish.html - 3 - 7.2.7.3 + 4 + 7.2.7.4 false true true diff --git a/ENI2/MainWindow.xaml.cs b/ENI2/MainWindow.xaml.cs index 01bcc4b2..6bf2551b 100644 --- a/ENI2/MainWindow.xaml.cs +++ b/ENI2/MainWindow.xaml.cs @@ -135,7 +135,7 @@ namespace ENI2 this._dbWatchDog.Register(aMessageCore); drc.HighlightReset += Drc_HighlightReset; - drc.OpenNewCoreRequested += (core) => this.AnmeldungenControl_MessageCoreSelected(core); + drc.OpenNewCoreRequested += (core) => this.AnmeldungenControl_MessageCoreSelected(core, DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].ShipcallDisplayMode); drc.ReloadCoreRequested += Drc_ReloadCoreRequested; } @@ -472,7 +472,7 @@ namespace ENI2 if (((ShowIdDialog)sid).OpenCore) { Dispatcher.BeginInvoke((Action)(() => { - this.AnmeldungenControl_MessageCoreSelected(closedDialog.Core); // in einem neuen Reiter öffnen + this.AnmeldungenControl_MessageCoreSelected(closedDialog.Core, DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].ShipcallDisplayMode); // in einem neuen Reiter öffnen })); } @@ -540,7 +540,7 @@ namespace ENI2 // Meldeklassen für neuen Anlauf erzeugen: bsmd.database.Util.CreateMessagesForCore(newCore, null, userEntity); - this.AnmeldungenControl_MessageCoreSelected(newCore); // in einem neuen Reiter öffnen + this.AnmeldungenControl_MessageCoreSelected(newCore, DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].ShipcallDisplayMode); // in einem neuen Reiter öffnen // watchdog registrieren, damit die "grüne" Markierung erscheint, sobald die Anmeldung durch den Excel-Prozess gelaufen ist. this._dbWatchDog.Register(newCore); @@ -612,7 +612,7 @@ namespace ENI2 showIdDialog.Closed += (sid, showIdArgs) => { if (((ShowIdDialog)sid).OpenCore) - this.AnmeldungenControl_MessageCoreSelected(changedCore); + this.AnmeldungenControl_MessageCoreSelected(changedCore, DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].ShipcallDisplayMode); }; showIdDialog.Show(); showIdDialog.Activate(); diff --git a/ENI2/Properties/Resources.Designer.cs b/ENI2/Properties/Resources.Designer.cs index 67a8f811..ffaba11f 100644 --- a/ENI2/Properties/Resources.Designer.cs +++ b/ENI2/Properties/Resources.Designer.cs @@ -4008,6 +4008,15 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to MDH simplification available. + /// + public static string textMDHSimplification { + get { + return ResourceManager.GetString("textMDHSimplification", resourceCulture); + } + } + /// /// Looks up a localized string similar to Was a medical practitioner consulted?. /// @@ -5205,6 +5214,15 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to SEC simplification available. + /// + public static string textSECSimplification { + get { + return ResourceManager.GetString("textSECSimplification", resourceCulture); + } + } + /// /// Looks up a localized string similar to Security. /// diff --git a/ENI2/Properties/Resources.resx b/ENI2/Properties/Resources.resx index a012feb6..1da7b6ab 100644 --- a/ENI2/Properties/Resources.resx +++ b/ENI2/Properties/Resources.resx @@ -2227,4 +2227,10 @@ Repeat new password + + MDH simplification available + + + SEC simplification available + \ No newline at end of file diff --git a/ENI2/SheetDisplayControls/PortControl.xaml b/ENI2/SheetDisplayControls/PortControl.xaml index 1164b36f..52f75260 100644 --- a/ENI2/SheetDisplayControls/PortControl.xaml +++ b/ENI2/SheetDisplayControls/PortControl.xaml @@ -304,7 +304,7 @@