diff --git a/ENI-2/ENI2/ENI2/DetailViewControls/WasteDetailControl.xaml b/ENI-2/ENI2/ENI2/DetailViewControls/WasteDetailControl.xaml
index c0894fae..2f4b38f8 100644
--- a/ENI-2/ENI2/ENI2/DetailViewControls/WasteDetailControl.xaml
+++ b/ENI-2/ENI2/ENI2/DetailViewControls/WasteDetailControl.xaml
@@ -50,7 +50,7 @@
-
+
diff --git a/ENI-2/ENI2/ENI2/SucheControl.xaml b/ENI-2/ENI2/ENI2/SucheControl.xaml
index 2f9050ef..c5d27073 100644
--- a/ENI-2/ENI2/ENI2/SucheControl.xaml
+++ b/ENI-2/ENI2/ENI2/SucheControl.xaml
@@ -55,8 +55,9 @@
-
-
+
+
+
filterDict = new Dictionary();
+
+ bool latestIdsSearch = false;
+ if (sender == this.buttonLast10Ids)
+ {
+ filterDict.Add(MessageCore.SearchFilterType.FILTER_LATESTIDS, null);
+ latestIdsSearch = true;
+ }
+
if (!this.textBoxHafen.Text.Trim().IsNullOrEmpty())
filterDict.Add(MessageCore.SearchFilterType.FILTER_PORT, this.textBoxHafen.Text.Trim());
if (!this.textBoxId.Text.Trim().IsNullOrEmpty())
@@ -134,7 +143,8 @@ namespace ENI2
int? expectedResultNum = DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).GetNumCoresWithFilters(filterDict);
if ((expectedResultNum ?? 0) > 100)
resultLimit = 100;
-
+ if (latestIdsSearch)
+ resultLimit = 10;
Util.UIHelper.SetBusyState();
diff --git a/Stundensheet.xlsx b/Stundensheet.xlsx
index 486ebb88..35fbabbc 100644
Binary files a/Stundensheet.xlsx and b/Stundensheet.xlsx differ
diff --git a/nsw/Source/bsmd.database/MessageCore.cs b/nsw/Source/bsmd.database/MessageCore.cs
index 159fe748..e20bf7b7 100644
--- a/nsw/Source/bsmd.database/MessageCore.cs
+++ b/nsw/Source/bsmd.database/MessageCore.cs
@@ -81,7 +81,8 @@ namespace bsmd.database
FILTER_IMO,
FILTER_SHIPNAME,
FILTER_ETA,
- FILTER_TICKETNO
+ FILTER_TICKETNO,
+ FILTER_LATESTIDS
}
[Flags]
@@ -455,7 +456,7 @@ namespace bsmd.database
"[{0}].[OwnNotificationClasses], [{0}].[StatusCheckErrorCode], [{0}].[StatusCheckErrorMessage], [{0}].[QueryNSWStatus], " +
"[{0}].[ExcelImportComplete], [{0}].[PONumber], [{0}].Flags, [{0}].POATA",
this.Tablename);
-
+
if(filter == Message.LoadFilter.SEARCH_CORE_FILTERS)
{
if (criteria[0] is Dictionary searchDict && (searchDict.Count > 0))
@@ -639,6 +640,11 @@ namespace bsmd.database
((SqlCommand)cmd).Parameters.AddWithValue("@TICKETNO", searchDict[key]);
break;
}
+ case SearchFilterType.FILTER_LATESTIDS:
+ {
+ sb.Append(" ((DATALENGTH(VisitId) > 0) OR (DATALENGTH(TransitId) > 0)) ");
+ break;
+ }
}
if (!moreThanOne) moreThanOne = true;
}