Compare commits

..

No commits in common. "a34c5b19efcd1abb34502a4efdd4002518828b9e" and "5932630635bf2bfec576979ba8de6e38efc3daf4" have entirely different histories.

3 changed files with 14 additions and 27 deletions

View File

@ -871,7 +871,7 @@ namespace ENI2
vViolations.AddRange(violations);
}
#region 12.11.18 / 6.3.21 / 23.5.22 / 26.10.24 / 27.1.26: globale Plausi-Prüfungen
#region 12.11.18 / 6.3.21 / 23.5.22 / 26.10.24: globale Plausi-Prüfungen
Message crewaMessage = messagesSnapshot.Find(message => message.MessageNotificationClass == Message.NotificationClass.CREWA);
Message crewdMessage = messagesSnapshot.Find(message => message.MessageNotificationClass == Message.NotificationClass.CREWD);
@ -1243,8 +1243,6 @@ namespace ENI2
#region WAS special max capa rules regarding next port
{
string wasMessageGroup = this.MessageGroupForMessage(wasMessage);
// see WAS-Regulation.docx in parent projects misc folder
if ((noanodMessage?.Elements.Count > 0) && wasMessage?.Elements.Count > 0)
{
@ -1268,7 +1266,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.5)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1286,7 +1284,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.25)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1295,7 +1293,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.75)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1316,7 +1314,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.25)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1324,7 +1322,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.5)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1342,7 +1340,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.2)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1351,7 +1349,7 @@ namespace ENI2
if (waste.WasteAmountRetained_MTQ > waste.WasteCapacity_MTQ * 0.25)
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Acc. to EU Regulation 2022/89 the amount retained on board is noticeably", null, "WAS", waste.Identifier, "WAS");
mv.MessageGroupName = wasMessageGroup;
mv.MessageGroupName = Properties.Resources.textPortNotification;
vViolations.Add(mv);
}
break;
@ -1461,12 +1459,6 @@ namespace ENI2
MessageBox.Show(Properties.Resources.textValidationOK, Properties.Resources.textValidation, MessageBoxButton.OK, MessageBoxImage.Information);
}
}
if (controlCache.TryGetValue(Properties.Resources.textOverview, out DetailBaseControl overviewControl) &&
overviewControl is OverViewDetailControl ovdc)
{
ovdc.RefreshMessageGrid();
}
}
private void ApplyCrewEffectsWarningSuppression()

View File

@ -341,8 +341,8 @@ namespace ENI2.DetailViewControls
}
}
public void UpdateCore()
{
public void UpdateCore()
{
this.UnregisterTextboxChange(this.textBoxDisplayId);
this.textBoxDisplayId.DataContext = null;
@ -367,13 +367,8 @@ namespace ENI2.DetailViewControls
//};
//sid.UpdateId(this.Core.DisplayId);
//sid.Show();
this.Core.IsDirty = false; // ist ja schon gespeichert..
}
internal void RefreshMessageGrid()
{
this.dataGridMessages?.Items?.Refresh();
}
this.Core.IsDirty = false; // ist ja schon gespeichert..
}
#endregion

View File

@ -36,8 +36,8 @@
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.html</WebPage>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>7.2.14.1</ApplicationVersion>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>7.2.14.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>