diff --git a/ENI-2/ENI2/ENI2/Controls/POListControl.xaml.cs b/ENI-2/ENI2/ENI2/Controls/POListControl.xaml.cs
index 2e72b9b6..eaa6a8a8 100644
--- a/ENI-2/ENI2/ENI2/Controls/POListControl.xaml.cs
+++ b/ENI-2/ENI2/ENI2/Controls/POListControl.xaml.cs
@@ -3,6 +3,7 @@
//
using System;
+using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
@@ -115,6 +116,22 @@ namespace ENI2.Controls
editedCore.IsDirty = true;
}
}
+ if(e.Column == gridColumnGroup)
+ {
+ var el = e.EditingElement as ComboBox;
+ DictionaryEntry selectedItem = (DictionaryEntry) el.SelectedItem;
+ MessageCore.CoreFlags coreFlag = (MessageCore.CoreFlags) Enum.Parse(typeof(MessageCore.CoreFlags), selectedItem.Value.ToString());
+ MessageCore editedCore = this.filteredResult[e.Row.GetIndex()];
+ // clear all first
+ editedCore.SetFlag(false, MessageCore.CoreFlags.MAERSK_BHV);
+ editedCore.SetFlag(false, MessageCore.CoreFlags.SEAGO_BHV);
+ editedCore.SetFlag(false, MessageCore.CoreFlags.SEAGO_WHV);
+ if (coreFlag != MessageCore.CoreFlags.NONE)
+ {
+ editedCore.SetFlag(true, coreFlag);
+ }
+ editedCore.IsDirty = true;
+ }
}
}
diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
index b72cc59f..defe4282 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
@@ -8,9 +8,18 @@
xmlns:util="clr-namespace:ENI2.Util"
xmlns:enictrl="clr-namespace:ENI2.Controls"
xmlns:p="clr-namespace:ENI2.Properties"
+ xmlns:col="clr-namespace:System.Collections;assembly=mscorlib"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
d:DesignHeight="800" d:DesignWidth="800">
+
+
+
+
+
+
+
+
@@ -48,6 +57,7 @@
+
@@ -57,7 +67,8 @@
-
+
+
diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
index d4fa6218..eaf800a2 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
@@ -1,4 +1,5 @@
// Copyright (c) 2017 schick Informatik
+
// Description: Detailansicht Gruppe Port Notification
//
@@ -149,6 +150,13 @@ namespace ENI2.DetailViewControls
#endregion
+ #region init helper Maersk / SeaGo Field
+
+ if (this.Core.IsFlagSet(MessageCore.CoreFlags.MAERSK_BHV)) this.comboBoxGroup.SelectedIndex = 1;
+ if (this.Core.IsFlagSet(MessageCore.CoreFlags.SEAGO_BHV)) this.comboBoxGroup.SelectedIndex = 2;
+ if (this.Core.IsFlagSet(MessageCore.CoreFlags.SEAGO_WHV)) this.comboBoxGroup.SelectedIndex = 3;
+
+ #endregion
}
#region datagrid LADG
@@ -350,5 +358,22 @@ namespace ENI2.DetailViewControls
#endregion
+ #region Spezialbalkon für die Gruppenauswahl im Core (Maersk BHV / Seago usw.)
+
+ private void comboBoxGroup_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ // clear all
+ this.Core.SetFlag(false, MessageCore.CoreFlags.MAERSK_BHV);
+ this.Core.SetFlag(false, MessageCore.CoreFlags.SEAGO_BHV);
+ this.Core.SetFlag(false, MessageCore.CoreFlags.SEAGO_WHV);
+ if((int) this.comboBoxGroup.SelectedValue != 0)
+ {
+ this.Core.SetFlag(true, (MessageCore.CoreFlags)this.comboBoxGroup.SelectedValue);
+ }
+ DBManager.Instance.Save(this.Core);
+ }
+
+ #endregion
+
}
}
diff --git a/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs b/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
index d101d73a..c5c11dc7 100644
--- a/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
+++ b/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
@@ -2891,6 +2891,15 @@ namespace ENI2.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Maersk / SeaGo.
+ ///
+ public static string textMaerskSeago {
+ get {
+ return ResourceManager.GetString("textMaerskSeago", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Male.
///
diff --git a/ENI-2/ENI2/ENI2/Properties/Resources.resx b/ENI-2/ENI2/ENI2/Properties/Resources.resx
index 81ca615d..316b30d5 100644
--- a/ENI-2/ENI2/ENI2/Properties/Resources.resx
+++ b/ENI-2/ENI2/ENI2/Properties/Resources.resx
@@ -1714,4 +1714,7 @@
PO numbers
+
+ Maersk / SeaGo
+
\ No newline at end of file
diff --git a/Stundensheet.xlsx b/Stundensheet.xlsx
index 7eb99327..88e0f42c 100644
Binary files a/Stundensheet.xlsx and b/Stundensheet.xlsx differ