diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml b/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml
index 2235de96..d3e9fad7 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml
@@ -17,6 +17,7 @@
+
@@ -49,7 +50,9 @@
-
+
+
diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs b/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs
index 85a388ea..be754703 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs
@@ -38,6 +38,7 @@ namespace ENI2.DetailViewControls
this.locodePoC.DataContext = this.Core;
this.dateTimePickerETA.DataContext = this.Core;
//this.dateTimePickerETD.DataContext = ..
+ this.labelCreated.Content = this.Core.Created?.ToString();
Binding vtBinding = new Binding();
vtBinding.Source = this.Core;
diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
index f0d16c16..4607f52a 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
@@ -55,7 +55,8 @@
-
+
+
diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
index 9cf1a0a2..9132a80b 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
@@ -99,9 +99,14 @@ namespace ENI2.DetailViewControls
_infoMessage.Elements.Add(info);
}
+ Dictionary portAreas = LocalizedLookup.getPortAreasForLocode(this.Core.PoC);
+ this.comboBoxPortArea.ItemsSource = portAreas;
+
this.comboBoxShippingArea.ItemsSource = shippingAreas;
this.infoGroupBox.DataContext = info;
+
+
#endregion
#region init SERV
diff --git a/ENI-2/ENI2/ENI2/ENI2.csproj b/ENI-2/ENI2/ENI2/ENI2.csproj
index b493935b..09141b91 100644
--- a/ENI-2/ENI2/ENI2/ENI2.csproj
+++ b/ENI-2/ENI2/ENI2/ENI2.csproj
@@ -35,7 +35,7 @@
3.5.1.0
true
publish.html
- 6
+ 7
3.5.7.%2a
false
true
diff --git a/ENI-2/ENI2/ENI2/LocalizedLookup.cs b/ENI-2/ENI2/ENI2/LocalizedLookup.cs
index c1f6f633..08974cb4 100644
--- a/ENI-2/ENI2/ENI2/LocalizedLookup.cs
+++ b/ENI-2/ENI2/ENI2/LocalizedLookup.cs
@@ -38,6 +38,27 @@ namespace ENI2
return result;
}
+ public static Dictionary getPortAreasForLocode(string locode)
+ {
+ Dictionary result = new Dictionary();
+ string query = string.Format("SELECT Code, PortArea FROM INFO_PortArea WHERE Locode = '{0}'", locode);
+ SQLiteCommand cmd = new SQLiteCommand(query, _con);
+ IDataReader reader = cmd.ExecuteReader();
+ while(reader.Read())
+ {
+ string code = null;
+ string portarea = null;
+ if (!reader.IsDBNull(0)) code = reader.GetString(0);
+ if (!reader.IsDBNull(1)) portarea = reader.GetString(1);
+ if((code != null) && (portarea != null))
+ {
+ result[code] = portarea;
+ }
+ }
+ reader.Close();
+ return result;
+ }
+
}
diff --git a/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs b/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
index 20b09781..5c120cca 100644
--- a/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
+++ b/ENI-2/ENI2/ENI2/Properties/Resources.Designer.cs
@@ -573,6 +573,15 @@ namespace ENI2.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Created.
+ ///
+ public static string textCreated {
+ get {
+ return ResourceManager.GetString("textCreated", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Declarations.
///
diff --git a/ENI-2/ENI2/ENI2/Properties/Resources.resx b/ENI-2/ENI2/ENI2/Properties/Resources.resx
index 2d3601ff..12c0e7a2 100644
--- a/ENI-2/ENI2/ENI2/Properties/Resources.resx
+++ b/ENI-2/ENI2/ENI2/Properties/Resources.resx
@@ -487,4 +487,7 @@
Changed by
+
+ Created
+
\ No newline at end of file
diff --git a/ENI-2/data/INFO_PortArea.xlsx b/ENI-2/data/INFO_PortArea.xlsx
new file mode 100644
index 00000000..5263ca35
Binary files /dev/null and b/ENI-2/data/INFO_PortArea.xlsx differ
diff --git a/Stundensheet.xlsx b/Stundensheet.xlsx
index a9ba985e..c03e2081 100644
Binary files a/Stundensheet.xlsx and b/Stundensheet.xlsx differ
diff --git a/nsw/Source/bsmd.database/Message.cs b/nsw/Source/bsmd.database/Message.cs
index efd28b87..282ea6eb 100644
--- a/nsw/Source/bsmd.database/Message.cs
+++ b/nsw/Source/bsmd.database/Message.cs
@@ -152,7 +152,8 @@ namespace bsmd.database
CONFIRMED,
VIOLATION,
ERROR,
- SUSPENDED = 8
+ SUSPENDED = 8,
+ IN_USE
}
///
diff --git a/nsw/Source/misc/db.sqlite b/nsw/Source/misc/db.sqlite
index 168bcc6f..9bda0f27 100644
Binary files a/nsw/Source/misc/db.sqlite and b/nsw/Source/misc/db.sqlite differ