Bug fix : Serving events from components, FlowMeter a BalanceDev calibration due date, ver. 2.26.1450
This commit is contained in:
@@ -126,8 +126,10 @@ namespace TBF.UI.Calendar
|
||||
{
|
||||
IList<Events.Entities.Event> eventsToTrigger = new List<Events.Entities.Event>();
|
||||
|
||||
foreach (var calEvent in eventsFromComponents)
|
||||
for (int i = eventsFromComponents.Count - 1; i >= 0; i--)
|
||||
{
|
||||
ICalendarEvent calEvent = eventsFromComponents[i];
|
||||
|
||||
AutoAction a = calEvent.AutoAction;
|
||||
if (a == AutoAction.Notification || a == AutoAction.Warning || a == AutoAction.Error || a == AutoAction.FatalErr)
|
||||
{
|
||||
@@ -160,8 +162,10 @@ namespace TBF.UI.Calendar
|
||||
var session = (parentSession != null) ? parentSession : Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config);
|
||||
var customEvents = (customEventsFromDB != null) ? customEventsFromDB : session.QueryOver<CustomEvent>() .List();
|
||||
|
||||
foreach (var calEvent in customEvents)
|
||||
for (int i = customEvents.Count - 1; i >= 0; i--)
|
||||
{
|
||||
CustomEvent calEvent = customEvents[i];
|
||||
|
||||
AutoAction a = calEvent.AutoAction;
|
||||
if (a == AutoAction.Notification || a == AutoAction.Warning || a == AutoAction.Error || a == AutoAction.FatalErr)
|
||||
{
|
||||
@@ -234,8 +238,9 @@ namespace TBF.UI.Calendar
|
||||
ISession session = Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config);
|
||||
var customEventsFromDB = session.QueryOver<CustomEvent>().List();
|
||||
|
||||
foreach (var calEvent in customEventsFromDB)
|
||||
for (int i = customEventsFromDB.Count - 1; i >= 0; i--)
|
||||
{
|
||||
CustomEvent calEvent = customEventsFromDB[i];
|
||||
if (calEvent.AutoAction == selectedAction && Config.CalendarEvent.Utils.IsCalendarEventTrigerred(calEvent, currentTime))
|
||||
{
|
||||
parametersList.Add(calEvent.Parameters);
|
||||
|
||||
Reference in New Issue
Block a user