Ejemplo n.º 1
0
 public static void RecordEntryChange(object sender, EventNotificationEventArgs e)
 {
     BfEventManager.SendToBF(
         sender.GetOriginalType().Name
         , "Entry changed"
         , e.ToString());
 }
Ejemplo n.º 2
0
        // ...this one is old, have IOrderRepositoryCallback
        public static void RecordOrderGroupEvent(object sender, OrderGroupEventArgs e)
        {
            var o  = sender.GetType();
            var e1 = e.OrderGroupId;
            var e2 = e.OrderGroupType;

            BfEventManager.SendToBF("OrderGroup", e1.ToString(), o.ToString());
        }
Ejemplo n.º 3
0
        // need to do more here, like take care of what keys went updated
        public static void RecordPriceEvent(object sender, PriceUpdateEventArgs e)
        {
            var s  = sender.GetType();
            var e1 = e.CatalogKeys.First().ToString();
            var e2 = e.CatalogKeys.First().CatalogEntryCode;

            BfEventManager.SendToBF("Pricing", e1 + ":" + e2, s.ToString());
        }
Ejemplo n.º 4
0
 public static void RecordInventoryEvent(object sender, InventoryUpdateEventArgs e)
 {
     if (e.CatalogKeys.Count() > 0)
     {
         var i  = sender.GetType().Name;
         var e1 = e.ApplicationHasContentModelTypes.ToString();
         var e2 = e.CatalogKeys.First().CatalogEntryCode;
         BfEventManager.SendToBF("Inventory", e1 + ":" + e2, i.ToString()); // ...i was too long (max 100)
     }
 }
Ejemplo n.º 5
0
 internal static void RecordCatalogItemApprovalRequest(object sender, ContentEventArgs e)
 {
     BfEventManager.SendToBF(sender.GetOriginalType().Name, e.TargetLink.ToString(), e.Content.ParentLink.ID.ToString());
 }
Ejemplo n.º 6
0
 public static void RecordNewOrderEvents(OrderReference orderReference)
 {
     BfEventManager.SendToBF("FrontEnd", orderReference.OrderGroupId.ToString() + " was changed", "NewOrderEvents");
 }