From 09faf3ad813b902e2d277630fbaa17bfa823ed41 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Wed, 4 Jan 2023 11:39:56 +0100 Subject: [PATCH] no CREW effects warning for DE arrivals --- ENI2/DetailRootControl.xaml.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs index c73543d5..adc79dc8 100644 --- a/ENI2/DetailRootControl.xaml.cs +++ b/ENI2/DetailRootControl.xaml.cs @@ -716,7 +716,7 @@ namespace ENI2 // XXX : TODO wegmachen wenn CREWD/PASD kommt if ((aMessage.MessageNotificationClass == Message.NotificationClass.PASD) || (aMessage.MessageNotificationClass == Message.NotificationClass.CREWD)) - continue; + continue; if (!aMessage.EvaluateForValidation(this.Core.IsTransit)) continue; @@ -892,6 +892,18 @@ namespace ENI2 #endregion + #region 4.1.23 no CREW effects warning for DE + { + MessageViolation mv = crewaMessage.ViolationList.Find((x) => x.PropertyName.Equals("Effects") && (x.ViolationCode == (int)ValidationCode.TRUNCATE)); + if ((mv != null) && !Core.IsDK) + crewaMessage.ViolationList.Remove(mv); + + MessageViolation mvd = crewdMessage.ViolationList.Find((x) => x.PropertyName.Equals("Effects") && (x.ViolationCode == (int)ValidationCode.TRUNCATE)); + if ((mvd != null) && !Core.IsDK) + crewdMessage.ViolationList.Remove(mvd); + } + #endregion + #region WAS_RCPT double numbers Dictionary identDict = new Dictionary();