Beispiel #1
0
        private ProductionOrder generateProductionOrder(InitDataLoad initDataLoad, string orderid)
        {
            ProductionOrder productionOrder = new ProductionOrder(orderid,
                                                                  initDataLoad.MetaData.ProductsMetaData.GetProduct("Product_01"),
                                                                  new DateTime(2017, 01, 01),
                                                                  new DateTime(2017, 01, 01));

            return(productionOrder);
        }
Beispiel #2
0
 public ProductionOrder getTopOrder()
 {
     try
     {
         ProductionOrder productionOrder = productionOrderList[0];
         productionOrderList.Remove(productionOrder);
         return(productionOrder);
     }
     catch { return(null); }
 }
Beispiel #3
0
        private ProductionOrderList generateProductionOrderList(InitDataLoad initDataLoad)
        {
            ProductionOrderList productionOrderList = new ProductionOrderList();

            for (int i = 0; i < 5; i++)
            {
                ProductionOrder productionOrder = generateProductionOrder(initDataLoad, "orderID" + i.ToString());
                productionOrderList.AddOrder(productionOrder);
            }


            return(productionOrderList);
        }
Beispiel #4
0
 public void StartProduction(ProductionOrder productionOrder)
 {
     CurrentProductionOrder  = productionOrder;
     ProcessingTimeRemaining = getProductionTime(productionOrder.Product);
     CurrentStatus           = ToolStatuses.Production;
 }
Beispiel #5
0
 public void AddOrder(ProductionOrder ProductionOrder)
 {
     productionOrderList.Add(ProductionOrder);
 }
Beispiel #6
0
        public override bool Equals(object obj)
        {
            ProductionOrder productionOrder = (ProductionOrder)obj;

            return(OrderID.Equals(productionOrder.OrderID));
        }