Example #1
0
 public void processNotification(EasyMSXNotification notification)
 {
     if (notification.category == EasyMSXNotification.NotificationCategory.ORDER)
     {
         if (notification.type == EasyMSXNotification.NotificationType.NEW || notification.type == EasyMSXNotification.NotificationType.INITIALPAINT)
         {
             System.Console.WriteLine("EasyMSX Event (NEW/INITPAINT): " + notification.getOrder().field("EMSX_SEQUENCE").value());
             parseOrder(notification.getOrder());
         }
     }
 }
Example #2
0
 //EasyMSX Notification
 public void ProcessNotification(EMSXNotification notification)
 {
     if ((notification.category == EMSXNotification.NotificationCategory.ORDER) && (notification.type != EMSXNotification.NotificationType.UPDATE))
     {
         this.parseOrder(notification.getOrder());
     }
 }
Example #3
0
        //EasyMSX Notification
        public void ProcessNotification(EMSXNotification notification)
        {
            if ((notification.category == EMSXNotification.NotificationCategory.ORDER) && (notification.type != EMSXNotification.NotificationType.UPDATE))
            {
                //Create conflict set with all current orders.
                Order o = notification.getOrder();

                log("Creating conflict set for Order: " + o.field("EMSX_SEQUENCE").value().ToString());

                foreach (IOI i in eioi.iois)
                {
                    CreateConflictDataSet(i, o);
                }
            }
        }
Example #4
0
            public void processNotification(EasyMSXNotification notification)
            {
                // System.Console.WriteLine("Notification event: " + this.source.name() + " on " + getDataPoint().GetDataSet().getName());

                try {
                    System.Console.WriteLine("Category: " + notification.category.ToString() + "\tType: " + notification.type.ToString() + "\tOrder: " + notification.getOrder().field("EMSX_SEQUENCE").value());
                    foreach (EasyMSXFieldChange fc in notification.getFieldChanges())
                    {
                        System.Console.WriteLine("\tName: " + fc.field.name() + "\tOld: " + fc.oldValue + "\tNew: " + fc.newValue);
                    }
                }
                catch (Exception ex) {
                    System.Console.WriteLine("Failed!!: " + ex.ToString());
                }

                this.SetStale();
            }