diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs index adee14f9..ef0d533e 100644 --- a/ENI2/DetailRootControl.xaml.cs +++ b/ENI2/DetailRootControl.xaml.cs @@ -690,7 +690,7 @@ namespace ENI2 vViolations.AddRange(violations); } - #region 12.11.18 / 6.3.21: globale Plausi-Prüfungen + #region 12.11.18 / 6.3.21 / 23.5.22: globale Plausi-Prüfungen Message crewaMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.CREW); Message crewdMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.CREWD); Message pasaMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.PAS); @@ -700,6 +700,7 @@ namespace ENI2 Message noanodMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.NOA_NOD); Message mdhMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.MDH); Message was_rcptMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.WAS_RCPT); + Message wasMessage = _messages.Find(message => message.MessageNotificationClass == Message.NotificationClass.WAS); #region CREW / PAS Count Plausibility @@ -1006,6 +1007,25 @@ namespace ENI2 #endregion + #region Waste disposal service provider for DEHAM + + if ((!this.Core.DisplayId.IsNullOrEmpty() && this.Core.DisplayId.StartsWith("DEHAM")) || + this.Core.PoC.Equals("DEHAM")) + { + if (wasMessage.Elements.Count > 0) + { + WAS was = wasMessage.Elements[0] as WAS; + if ((!was.WasteDisposalValidExemption ?? true) && (was.WasteDisposalServiceProvider.Count == 0)) + { + MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.NOT_NULL, "Check waste disposal service provider", null, "WAS service provider", null, "WAS"); + mv.MessageGroupName = Properties.Resources.textOverview; + vViolations.Add(mv); + } + } + } + + #endregion + #endregion foreach (MessageError me in vErrors) diff --git a/ENI2/EditControls/SelectImportClassesDialog.xaml b/ENI2/EditControls/SelectImportClassesDialog.xaml index e49a4a0a..19885b45 100644 --- a/ENI2/EditControls/SelectImportClassesDialog.xaml +++ b/ENI2/EditControls/SelectImportClassesDialog.xaml @@ -11,11 +11,11 @@ Title="{x:Static p:Resources.textSelectImportClasses}" Height="600" Width="250" Background="AliceBlue"> - + - + @@ -23,6 +23,6 @@