Warndialog veränderte Meldeklassen (5.7), Vorgriff
This commit is contained in:
parent
c6284eb06c
commit
4647eab8ad
@ -65,16 +65,19 @@ namespace ENI2
|
|||||||
// wenn in einer Meldeklasse zwar Daten vorhanden sind, eingespielt durch Excel import oder
|
// wenn in einer Meldeklasse zwar Daten vorhanden sind, eingespielt durch Excel import oder
|
||||||
// Handeingabe, diese aber NICHT gesendet wurden.
|
// Handeingabe, diese aber NICHT gesendet wurden.
|
||||||
// TODO: Hier wird noch ein Flag benötigt, dass die erfolgte Anzeige des Warndialogs speichert
|
// TODO: Hier wird noch ein Flag benötigt, dass die erfolgte Anzeige des Warndialogs speichert
|
||||||
|
|
||||||
/*
|
|
||||||
foreach (Message aMessage in _messages)
|
foreach (Message aMessage in _messages)
|
||||||
{
|
{
|
||||||
if ((aMessage.InternalStatus == Message.BSMDStatus.UPDATED) ||
|
if (((aMessage.InternalStatus == Message.BSMDStatus.UPDATED) ||
|
||||||
(aMessage.InternalStatus == Message.BSMDStatus.SAVED) ||
|
(aMessage.InternalStatus == Message.BSMDStatus.SAVED) ||
|
||||||
(aMessage.InternalStatus == Message.BSMDStatus.EXCEL))
|
(aMessage.InternalStatus == Message.BSMDStatus.EXCEL)) &&
|
||||||
|
!aMessage.UnsentMessageWarningShown)
|
||||||
|
{
|
||||||
|
aMessage.UnsentMessageWarningShown = true;
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -432,6 +435,7 @@ namespace ENI2
|
|||||||
message.SaveElements();
|
message.SaveElements();
|
||||||
|
|
||||||
message.IsDirty = false;
|
message.IsDirty = false;
|
||||||
|
message.UnsentMessageWarningShown = false;
|
||||||
|
|
||||||
if(message.MessageNotificationClass == Message.NotificationClass.ATA)
|
if(message.MessageNotificationClass == Message.NotificationClass.ATA)
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
5
nsw/Source/SQL/Update_5.6_To_5.7.sql
Normal file
5
nsw/Source/SQL/Update_5.6_To_5.7.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
PRINT N'Altering [dbo].[MessageHeader]...';
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[MessageHeader] ADD [Flags] INT NULL;
|
||||||
|
GO
|
||||||
@ -137,6 +137,7 @@ namespace bsmd.ExcelReadService
|
|||||||
{
|
{
|
||||||
message.CreatedBy = "EXCEL";
|
message.CreatedBy = "EXCEL";
|
||||||
message.InternalStatus = Message.BSMDStatus.EXCEL;
|
message.InternalStatus = Message.BSMDStatus.EXCEL;
|
||||||
|
message.UnsentMessageWarningShown = false;
|
||||||
DBManager.Instance.Save(message);
|
DBManager.Instance.Save(message);
|
||||||
message.SaveElements();
|
message.SaveElements();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -187,6 +187,14 @@ namespace bsmd.database
|
|||||||
DUDR_TEST
|
DUDR_TEST
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Late to the party: generic flags Enum/Field
|
||||||
|
|
||||||
|
public enum MessageFlags : int
|
||||||
|
{
|
||||||
|
UNSENT_WARNING_SHOWN = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Construction
|
#region Construction
|
||||||
@ -373,6 +381,17 @@ namespace bsmd.database
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? SendSuccess { get; set; }
|
public bool? SendSuccess { get; set; }
|
||||||
|
|
||||||
|
public bool UnsentMessageWarningShown
|
||||||
|
{
|
||||||
|
get { return this.IsFlagSet(MessageFlags.UNSENT_WARNING_SHOWN); }
|
||||||
|
set { this.SetFlag(value, MessageFlags.UNSENT_WARNING_SHOWN); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Speicher-Int für generische Flags
|
||||||
|
/// </summary>
|
||||||
|
public int Flags { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IDatabaseEntity implementation
|
#region IDatabaseEntity implementation
|
||||||
@ -862,5 +881,19 @@ namespace bsmd.database
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region private methods
|
||||||
|
|
||||||
|
private bool IsFlagSet(MessageFlags flag)
|
||||||
|
{
|
||||||
|
return (this.Flags & (int)flag) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetFlag(bool value, MessageFlags flag)
|
||||||
|
{
|
||||||
|
if (value) this.Flags |= (int)flag;
|
||||||
|
else this.Flags &= (int)~flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
[assembly: AssemblyCompany("schick Informatik")]
|
[assembly: AssemblyCompany("schick Informatik")]
|
||||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||||
[assembly: AssemblyInformationalVersion("5.6.0")]
|
[assembly: AssemblyInformationalVersion("5.7.0")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2014-2019 schick Informatik")]
|
[assembly: AssemblyCopyright("Copyright © 2014-2019 schick Informatik")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("5.6.0.*")]
|
[assembly: AssemblyVersion("5.7.0.*")]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user