예제 #1
0
        private void SetStatus(AutomationStatus status)
        {
            switch (status)
            {
            case AutomationStatus.TransportSucceeded:
                Status = "Transport succeeded";
                break;

            case AutomationStatus.InsertionSucceeded:
                Status = "Insertion succeeded";
                break;

            case AutomationStatus.DeletionSucceeded:
                Status = "Deletion succeeded";
                break;

            case AutomationStatus.InvalidOrderTargetSourceNotFound:
                Status = "Target or source not found";
                break;

            case AutomationStatus.WrongPartCount:
                Status = "Wrong part count";
                break;

            case AutomationStatus.ShippedNotAllItems:
                Status = "Shipped not all items";
                break;

            case AutomationStatus.InsertionFailed:
                Status = "Insertion failed";
                break;

            case AutomationStatus.CountIsZero:
                Status = "Count is zero";
                break;

            case AutomationStatus.OrderAlreadyExists:
                Status = "Order already exists";
                break;
            }
        }
예제 #2
0
 public Automation(int id, string name, AutomationStatus status)
 {
     Id     = id;
     Name   = name;
     Status = status;
 }