Compare commits
No commits in common. "1d44b156f4ef11b495639e3c633af16e31f70275" and "284d669dc7020bc08103b2a75fd2bc5f122db26a" have entirely different histories.
1d44b156f4
...
284d669dc7
@ -843,31 +843,41 @@ namespace ENI2.DetailViewControls
|
|||||||
{
|
{
|
||||||
addToSend = true;
|
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)
|
switch(message.MessageNotificationClass)
|
||||||
{
|
{
|
||||||
case NotificationClass.HAZA:
|
case NotificationClass.HAZA:
|
||||||
addToSend = XtraSendLogic.ShouldSendMessage(message); break;
|
addToSend = XtraSendLogic.ShouldSendMessage(message) && ((message.ViolationCount ?? 0) == 0); break;
|
||||||
case NotificationClass.HAZD:
|
case NotificationClass.HAZD:
|
||||||
addToSend = XtraSendLogic.ShouldSendMessage(message); break;
|
addToSend = XtraSendLogic.ShouldSendMessage(message) && ((message.ViolationCount ?? 0) == 0); break;
|
||||||
case NotificationClass.BPOL:
|
case NotificationClass.BPOL:
|
||||||
if (message.Elements.Count > 0)
|
if (message.Elements.Count > 0)
|
||||||
{
|
{
|
||||||
if (message.Elements[0] is BPOL bpol)
|
if (message.Elements[0] is BPOL bpol)
|
||||||
{
|
{
|
||||||
if (bpol.PortOfItineraries.Count == 0) addToSend = false;
|
if (bpol.PortOfItineraries.Count == 0) addToSend = false;
|
||||||
}
|
}
|
||||||
|
if((message.ViolationCount ?? 0) > 0) addToSend = false;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case NotificationClass.WAS_RCPT:
|
||||||
addToSend = false;
|
addToSend = false;
|
||||||
break;
|
|
||||||
case NotificationClass.INFO:
|
|
||||||
if (Core.PoC == "DEHAM") addToSend = false;
|
|
||||||
break;
|
break;
|
||||||
default:
|
case NotificationClass.NOA_NOD:
|
||||||
if(Message.IsListClass(message.MessageNotificationClass) && (message.Elements.Count == 0)) addToSend = false;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -390,7 +390,7 @@ namespace ENI2.DetailViewControls
|
|||||||
this.textBox_AgentPostalCode.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
this.textBox_AgentPostalCode.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||||
this.textBox_AgentStreetAndNumber.Text = this._currentTemplate.AgentStreetAndNumber;
|
this.textBox_AgentStreetAndNumber.Text = this._currentTemplate.AgentStreetAndNumber;
|
||||||
this.textBox_AgentStreetAndNumber.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
this.textBox_AgentStreetAndNumber.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||||
if ((this._currentTemplate.WasteDisposalServiceProviderName ?? "") != this.textBox_WasteDisposalServiceProvider.Text)
|
if (this._currentTemplate.WasteDisposalServiceProviderName != this.textBox_WasteDisposalServiceProvider.Text)
|
||||||
{
|
{
|
||||||
this.textBox_WasteDisposalServiceProvider.Text = this._currentTemplate.WasteDisposalServiceProviderName;
|
this.textBox_WasteDisposalServiceProvider.Text = this._currentTemplate.WasteDisposalServiceProviderName;
|
||||||
this.textBox_WasteDisposalServiceProvider.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
this.textBox_WasteDisposalServiceProvider.GetBindingExpression(TextBox.TextProperty).UpdateSource();
|
||||||
|
|||||||
@ -36,8 +36,8 @@
|
|||||||
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
||||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||||
<WebPage>publish.html</WebPage>
|
<WebPage>publish.html</WebPage>
|
||||||
<ApplicationRevision>2</ApplicationRevision>
|
<ApplicationRevision>1</ApplicationRevision>
|
||||||
<ApplicationVersion>7.2.12.2</ApplicationVersion>
|
<ApplicationVersion>7.2.12.1</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user