Spezielle Abfrage für DEBRE / DEBRV wenn bestimmte Meldeklassen noch nicht versandt wurden
This commit is contained in:
parent
894aadc2d9
commit
217dbcfcde
@ -113,8 +113,14 @@ namespace ENI2
|
|||||||
|
|
||||||
if(this.Core.PoC.Equals("DEBRV") || this.Core.PoC.Equals("DEBRE"))
|
if(this.Core.PoC.Equals("DEBRV") || this.Core.PoC.Equals("DEBRE"))
|
||||||
{
|
{
|
||||||
|
foreach(Message aMessage in _messages)
|
||||||
|
{
|
||||||
|
if((aMessage.MessageNotificationClass == Message.NotificationClass.NOA_NOD) && (aMessage.InternalStatus != Message.BSMDStatus.CONFIRMED)) { messageText = "NOA_NOD"; return true; }
|
||||||
|
if ((aMessage.MessageNotificationClass == Message.NotificationClass.AGNT) && (aMessage.InternalStatus != Message.BSMDStatus.CONFIRMED)) { messageText = "AGNT"; return true; }
|
||||||
|
if ((aMessage.MessageNotificationClass == Message.NotificationClass.INFO) && (aMessage.InternalStatus != Message.BSMDStatus.CONFIRMED)) { messageText = "INFO"; return true; }
|
||||||
|
if ((aMessage.MessageNotificationClass == Message.NotificationClass.SEC) && (aMessage.InternalStatus != Message.BSMDStatus.CONFIRMED)) { messageText = "SEC"; return true; }
|
||||||
|
if ((aMessage.MessageNotificationClass == Message.NotificationClass.TIEFA) && (aMessage.InternalStatus != Message.BSMDStatus.CONFIRMED)) { messageText = "TIEFA"; return true; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -83,7 +83,7 @@ namespace ENI2
|
|||||||
{
|
{
|
||||||
if (!openTabs.ContainsKey(aMessageCore.Id.Value))
|
if (!openTabs.ContainsKey(aMessageCore.Id.Value))
|
||||||
{
|
{
|
||||||
ClosableTabItem searchResultItem = new ClosableTabItem();
|
ClosableTabItem searchResultItem = new ClosableTabItem();
|
||||||
|
|
||||||
// try to lock the item
|
// try to lock the item
|
||||||
Guid lockedUserId = Guid.Empty;
|
Guid lockedUserId = Guid.Empty;
|
||||||
@ -207,6 +207,17 @@ namespace ENI2
|
|||||||
e.Cancel = true;
|
e.Cancel = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dez.22: Special case for BRE/BRV: Warning if some messages are not "confirmed"
|
||||||
|
if(drc.Core.PoC.Equals("DEBRE")||drc.Core.PoC.Equals("DEBRV"))
|
||||||
|
{
|
||||||
|
if(drc.HasCriticalInfoMissing(out string missingClass))
|
||||||
|
{
|
||||||
|
if (MessageBox.Show(string.Format(Properties.Resources.textSpecialCaseBREBRV, missingClass), Properties.Resources.textConfirmation, MessageBoxButton.YesNo,
|
||||||
|
MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.No)
|
||||||
|
e.Cancel = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!e.Cancel)
|
if (!e.Cancel)
|
||||||
{
|
{
|
||||||
if (lockedCores.ContainsKey(tabItem))
|
if (lockedCores.ContainsKey(tabItem))
|
||||||
|
|||||||
9
ENI2/Properties/Resources.Designer.cs
generated
9
ENI2/Properties/Resources.Designer.cs
generated
@ -4551,6 +4551,15 @@ namespace ENI2.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to One or more important classes haven't been sent for DEBRE/DEBRV: {0} Close anyway?.
|
||||||
|
/// </summary>
|
||||||
|
public static string textSpecialCaseBREBRV {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textSpecialCaseBREBRV", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Special requirements.
|
/// Looks up a localized string similar to Special requirements.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -1858,4 +1858,7 @@
|
|||||||
<data name="textSearchNST" xml:space="preserve">
|
<data name="textSearchNST" xml:space="preserve">
|
||||||
<value>Search NST2007 list</value>
|
<value>Search NST2007 list</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="textSpecialCaseBREBRV" xml:space="preserve">
|
||||||
|
<value>One or more important classes haven't been sent for DEBRE/DEBRV: {0} Close anyway?</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Loading…
Reference in New Issue
Block a user