diff --git a/ENI2/App.config b/ENI2/App.config
index 19aba5a3..45b58b7c 100644
--- a/ENI2/App.config
+++ b/ENI2/App.config
@@ -12,7 +12,7 @@
-
+
@@ -36,7 +36,7 @@
-
+
diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs
index db5af5e2..4f559589 100644
--- a/ENI2/DetailRootControl.xaml.cs
+++ b/ENI2/DetailRootControl.xaml.cs
@@ -750,7 +750,7 @@ namespace ENI2
vViolations.AddRange(violations);
}
- #region 12.11.18 / 6.3.21 / 23.5.22: globale Plausi-Prüfungen
+ #region 12.11.18 / 6.3.21 / 23.5.22 / 26.10.24: globale Plausi-Prüfungen
Message crewaMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.CREWA);
Message crewdMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.CREWD);
@@ -764,6 +764,8 @@ namespace ENI2
Message was_rcptMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.WAS_RCPT);
Message wasMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.WAS);
Message servMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.SERV);
+ Message statMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.STAT);
+ Message pre72hMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.PRE72H);
#region CREW / PAS Count Plausibility
@@ -1117,6 +1119,20 @@ namespace ENI2
#endregion
+ #region Tanker validation STAT/PRE72H
+
+ if ((statMessage.Elements[0] is STAT stat) && (pre72hMessage.Elements[0] is PRE72H pre72h))
+ {
+ if((pre72h.Tanker ?? false) != (stat.IsTanker ?? false))
+ {
+ MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.LIST_EMPTY, "Tanker: Please check PRE72H / STAT", null, "PRE72H / STAT", null, "STAT");
+ mv.MessageGroupName = Properties.Resources.textPortNotification;
+ vViolations.Add(mv);
+ }
+ }
+
+ #endregion
+
#endregion
foreach (MessageError me in vErrors)
diff --git a/ENI2/DetailViewControls/WasteDetailControl.xaml.cs b/ENI2/DetailViewControls/WasteDetailControl.xaml.cs
index 08bb0c24..871b5212 100644
--- a/ENI2/DetailViewControls/WasteDetailControl.xaml.cs
+++ b/ENI2/DetailViewControls/WasteDetailControl.xaml.cs
@@ -14,6 +14,7 @@ using System.IO;
using System;
using Microsoft.Win32;
using System.Diagnostics;
+using System.Threading.Tasks;
namespace ENI2.DetailViewControls
{
@@ -178,7 +179,7 @@ namespace ENI2.DetailViewControls
#region init WSDP provider
- InitTemplates();
+ await InitTemplates();
this.comboBox_WSDPTemplate.ItemsSource = _wsdpTemplates;
@@ -188,7 +189,7 @@ namespace ENI2.DetailViewControls
#region Waste receipt grid event handler
- private void DataGridWasteReceipt_CreateRequested()
+ private async void DataGridWasteReceipt_CreateRequested()
{
EditWasteReceiptDialog epd = new EditWasteReceiptDialog();
epd.WAS_RCPT = new WAS_RCPT();
@@ -219,7 +220,8 @@ namespace ENI2.DetailViewControls
this.dataGridWasteReceived.ItemsSource = null;
dataGridWasteReceipt_SelectionChanged(this, null);
}
- InitTemplates(); // templates might have changed in the dialog
+
+ await InitTemplates(); // templates might have changed in the dialog
}
private void DataGridWasteReceipt_DeleteRequested(DatabaseEntity obj)
@@ -238,7 +240,7 @@ namespace ENI2.DetailViewControls
}
}
- private void DataGridWasteReceipt_EditRequested(DatabaseEntity obj)
+ private async void DataGridWasteReceipt_EditRequested(DatabaseEntity obj)
{
EditWasteReceiptDialog epd = new EditWasteReceiptDialog();
epd.WAS_RCPT = obj as WAS_RCPT;
@@ -265,7 +267,7 @@ namespace ENI2.DetailViewControls
this.dataGridWasteReceipt.Items.Refresh();
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
dataGridWasteReceipt_SelectionChanged(this, null);
- InitTemplates(); // templates might have changed in the dialog
+ await InitTemplates(); // templates might have changed in the dialog
}
private void DataGridWasteReceipt_AddingNewItem(object sender, AddingNewItemEventArgs e)
@@ -595,10 +597,11 @@ namespace ENI2.DetailViewControls
#endregion
+
#region Waste disposal Service Provider templates event handler
- private async void InitTemplates()
+ private async Task InitTemplates()
{
_wsdpTemplates = await DBManagerAsync.GetWastDisposalServiceProviderTemplatesAsync();
_wsdpTemplates.Sort();
diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj
index 714c715e..44086faf 100644
--- a/ENI2/ENI2.csproj
+++ b/ENI2/ENI2.csproj
@@ -30,14 +30,14 @@
true
http://192.168.2.24/eni2.publish/
http://www.textbausteine.net/
- ENI 2
+ ENI
Informatikbüro Daniel Schick
NSW
5.4.0.0
true
publish.html
- 6
- 7.2.4.6
+ 3
+ 7.2.5.3
false
true
true
diff --git a/ENI2/EditControls/EditWasteDialog.xaml b/ENI2/EditControls/EditWasteDialog.xaml
index 33f929b9..11f36572 100644
--- a/ENI2/EditControls/EditWasteDialog.xaml
+++ b/ENI2/EditControls/EditWasteDialog.xaml
@@ -38,11 +38,11 @@
-
-
-
+
+
+
-
+
diff --git a/ENI2/EditControls/EditWasteReceivedDialog.xaml b/ENI2/EditControls/EditWasteReceivedDialog.xaml
index 21f99c39..002888c0 100644
--- a/ENI2/EditControls/EditWasteReceivedDialog.xaml
+++ b/ENI2/EditControls/EditWasteReceivedDialog.xaml
@@ -26,7 +26,7 @@
-
+
diff --git a/ENI2/MainWindow.xaml b/ENI2/MainWindow.xaml
index 85d655fb..02ab6d57 100644
--- a/ENI2/MainWindow.xaml
+++ b/ENI2/MainWindow.xaml
@@ -10,9 +10,9 @@
xmlns:util="clr-namespace:ENI2.Util"
xmlns:local="clr-namespace:ENI2"
mc:Ignorable="d"
- Title="ENI 2"
- Height="{util:SettingBinding Height}" Width="{util:SettingBinding Width}"
- Icon="Resources/logo_schwarz.ico" Loaded="Window_Loaded" Closing="Window_Closing"
+ Title="ENI 2"
+ Height="{util:SettingBinding Height}" Width="{util:SettingBinding Width}"
+ Icon="Resources/logo_schwarz.ico" Loaded="Window_Loaded" Closing="Window_Closing"
SourceInitialized="Window_SourceInitialized">
diff --git a/ENI2/Report/ReportDocument.cs b/ENI2/Report/ReportDocument.cs
index 0e474a6d..5b5da75c 100644
--- a/ENI2/Report/ReportDocument.cs
+++ b/ENI2/Report/ReportDocument.cs
@@ -101,7 +101,7 @@ namespace ENI2.Report
string migraTempFile = string.Format("{1}\\{0}.mdddl", filenameCore, Path.GetDirectoryName(filename));
MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToFile(document, migraTempFile);
- PdfDocumentRenderer renderer = new PdfDocumentRenderer(true);
+ PdfDocumentRenderer renderer = new PdfDocumentRenderer();
renderer.Document = document;
renderer.RenderDocument();
@@ -1250,8 +1250,9 @@ namespace ENI2.Report
private static void CreateWAS_RCPTTable(Document document, Message message)
{
- foreach (WAS_RCPT was_rpct in message.Elements)
+ for (int i = 0; i < message.Elements.Count; i++)
{
+ WAS_RCPT was_rpct = (WAS_RCPT)message.Elements[i];
document.LastSection.AddParagraph("");
Table table = AddGrayTable(document);
diff --git a/SendNSWMessageService/SendNSWMessageService.csproj b/SendNSWMessageService/SendNSWMessageService.csproj
index 4a3ea542..7e10e56b 100644
--- a/SendNSWMessageService/SendNSWMessageService.csproj
+++ b/SendNSWMessageService/SendNSWMessageService.csproj
@@ -40,8 +40,8 @@
..\bsmdKey.snk
-
- ..\packages\log4net.2.0.17\lib\net45\log4net.dll
+
+ ..\packages\log4net.3.0.1\lib\net462\log4net.dll
diff --git a/SendNSWMessageService/packages.config b/SendNSWMessageService/packages.config
index 9c122143..6bae6f53 100644
--- a/SendNSWMessageService/packages.config
+++ b/SendNSWMessageService/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/bsmd.dakosy/bsmd.dakosy.csproj b/bsmd.dakosy/bsmd.dakosy.csproj
index 7e54f7c1..54ab41d4 100644
--- a/bsmd.dakosy/bsmd.dakosy.csproj
+++ b/bsmd.dakosy/bsmd.dakosy.csproj
@@ -40,8 +40,8 @@
..\bsmdKey.snk
-
- ..\packages\log4net.2.0.17\lib\net45\log4net.dll
+
+ ..\packages\log4net.3.0.1\lib\net462\log4net.dll
@@ -52,8 +52,8 @@
-
- ..\packages\WinSCP.6.3.4\lib\net40\WinSCPnet.dll
+
+ ..\packages\WinSCP.6.3.5\lib\net40\WinSCPnet.dll
@@ -93,12 +93,12 @@
-
+
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
+