diff --git a/ENI2/Controls/MaerskListControl.xaml b/ENI2/Controls/MaerskListControl.xaml
index 4972c931..fe07b036 100644
--- a/ENI2/Controls/MaerskListControl.xaml
+++ b/ENI2/Controls/MaerskListControl.xaml
@@ -32,13 +32,12 @@
-
+
-
@@ -50,7 +49,7 @@
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/ENI2/Controls/MaerskListControl.xaml.cs b/ENI2/Controls/MaerskListControl.xaml.cs
index 69920a4c..432f4269 100644
--- a/ENI2/Controls/MaerskListControl.xaml.cs
+++ b/ENI2/Controls/MaerskListControl.xaml.cs
@@ -208,7 +208,7 @@ namespace ENI2.Controls
private async void PerformSearch()
- {
+ {
busyControl.BusyState = Util.UIHelper.BusyStateEnum.BUSY;
Dictionary filterDict = new Dictionary();
@@ -221,7 +221,7 @@ namespace ENI2.Controls
// suche auslösen
List searchResult = DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).GetMessageCoresWithFilters(filterDict);
-
+
// alle anderen Häfen weg
searchResult.RemoveAll(item => (item.PoC == null) || (!item.PoC.Equals(PortLocode)));
@@ -239,6 +239,7 @@ namespace ENI2.Controls
}
}
+ this.SortItemSource();
this.dataGridPOCores.SelectedItem = null;
busyControl.BusyState = Util.UIHelper.BusyStateEnum.NEUTRAL;
}
@@ -258,6 +259,15 @@ namespace ENI2.Controls
return null;
}
+ private void SortItemSource()
+ {
+ ObservableCollection temp;
+ temp = new ObservableCollection(this.maerskDataList.OrderBy(p => p.ColA));
+ this.maerskDataList.Clear();
+ foreach (MaerskData md in temp)
+ this.maerskDataList.Add(md);
+ }
+
#endregion
#region button event handler
@@ -359,8 +369,7 @@ namespace ENI2.Controls
if (importData.Count > 0)
{
- busyControl.BusyState = Util.UIHelper.BusyStateEnum.BUSY;
- importData.Sort();
+ busyControl.BusyState = Util.UIHelper.BusyStateEnum.BUSY;
foreach (MaerskData md in importData)
{
@@ -384,6 +393,7 @@ namespace ENI2.Controls
maerskDataList.Add(md);
}
}
+ this.SortItemSource();
busyControl.BusyState = Util.UIHelper.BusyStateEnum.NEUTRAL;
}
diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj
index 97eceeb7..86851fa9 100644
--- a/ENI2/ENI2.csproj
+++ b/ENI2/ENI2.csproj
@@ -36,7 +36,7 @@
5.4.0.0
true
publish.html
- 6
+ 7
7.9.0.%2a
false
true
diff --git a/ENI2/EditControls/CopyDeclarationDialog.xaml.cs b/ENI2/EditControls/CopyDeclarationDialog.xaml.cs
index 2c9e5592..9bdeb82c 100644
--- a/ENI2/EditControls/CopyDeclarationDialog.xaml.cs
+++ b/ENI2/EditControls/CopyDeclarationDialog.xaml.cs
@@ -102,6 +102,10 @@ namespace ENI2.EditControls
{
this.comboBoxInitialHIS.SelectedValue = Message.NSWProvider.DBH;
}
+ else
+ {
+ this.comboBoxInitialHIS.SelectedValue = Message.NSWProvider.DUDR;
+ }
}
private void doubleUpDownIMO_ValueChanged(object sender, System.Windows.RoutedPropertyChangedEventArgs