Bumped version and changed sendall button preselection behavior

This commit is contained in:
Daniel Schick 2025-10-06 09:13:51 +02:00
parent eae9b42266
commit 1d44b156f4
2 changed files with 11 additions and 21 deletions

View File

@ -843,14 +843,14 @@ namespace ENI2.DetailViewControls
{
addToSend = true;
if ((message.ErrorCount ?? 0) > 0) continue; // skip selection if there are any errors left
// if ((message.ErrorCount ?? 0) > 0) continue; // skip selection if there are any errors left
switch(message.MessageNotificationClass)
{
case NotificationClass.HAZA:
addToSend = XtraSendLogic.ShouldSendMessage(message) && ((message.ViolationCount ?? 0) == 0); break;
addToSend = XtraSendLogic.ShouldSendMessage(message); break;
case NotificationClass.HAZD:
addToSend = XtraSendLogic.ShouldSendMessage(message) && ((message.ViolationCount ?? 0) == 0); break;
addToSend = XtraSendLogic.ShouldSendMessage(message); break;
case NotificationClass.BPOL:
if (message.Elements.Count > 0)
{
@ -858,26 +858,16 @@ namespace ENI2.DetailViewControls
{
if (bpol.PortOfItineraries.Count == 0) addToSend = false;
}
if((message.ViolationCount ?? 0) > 0) addToSend = false;
}
break;
case NotificationClass.WAS:
// if ((message.PositionViolationCount ?? 0) > 0) addToSend = false;
break; // WAS will be selected even if there are (any) violations left
case NotificationClass.WAS_RCPT:
addToSend = false;
break;
case NotificationClass.NOA_NOD:
if ((message.PositionViolationCount ?? 0) > 0) addToSend = false;
break;
case NotificationClass.INFO:
if (Core.PoC == "DEHAM") addToSend = false;
else addToSend = !((message.ViolationCount ?? 0) > 0);
break;
default:
if((message.ViolationCount ?? 0) > 0) addToSend = false;
if(Message.IsListClass(message.MessageNotificationClass) && (message.Elements.Count == 0)) addToSend = false;
break;
}

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.12.1</ApplicationVersion>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationVersion>7.2.12.2</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>