no CREW effects warning for DE arrivals

This commit is contained in:
Daniel Schick 2023-01-04 11:39:56 +01:00
parent bfb5fd2f60
commit 09faf3ad81

View File

@ -716,7 +716,7 @@ namespace ENI2
// XXX : TODO wegmachen wenn CREWD/PASD kommt // XXX : TODO wegmachen wenn CREWD/PASD kommt
if ((aMessage.MessageNotificationClass == Message.NotificationClass.PASD) || if ((aMessage.MessageNotificationClass == Message.NotificationClass.PASD) ||
(aMessage.MessageNotificationClass == Message.NotificationClass.CREWD)) (aMessage.MessageNotificationClass == Message.NotificationClass.CREWD))
continue; continue;
if (!aMessage.EvaluateForValidation(this.Core.IsTransit)) continue; if (!aMessage.EvaluateForValidation(this.Core.IsTransit)) continue;
@ -892,6 +892,18 @@ namespace ENI2
#endregion #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 #region WAS_RCPT double numbers
Dictionary<string, string> identDict = new Dictionary<string, string>(); Dictionary<string, string> identDict = new Dictionary<string, string>();