Esempio n. 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);
        }
Esempio n. 2
0
 public ProductionOrder getTopOrder()
 {
     try
     {
         ProductionOrder productionOrder = productionOrderList[0];
         productionOrderList.Remove(productionOrder);
         return(productionOrder);
     }
     catch { return(null); }
 }
Esempio n. 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);
        }
Esempio n. 4
0
 public void StartProduction(ProductionOrder productionOrder)
 {
     CurrentProductionOrder  = productionOrder;
     ProcessingTimeRemaining = getProductionTime(productionOrder.Product);
     CurrentStatus           = ToolStatuses.Production;
 }
Esempio n. 5
0
 public void AddOrder(ProductionOrder ProductionOrder)
 {
     productionOrderList.Add(ProductionOrder);
 }
Esempio n. 6
0
        public override bool Equals(object obj)
        {
            ProductionOrder productionOrder = (ProductionOrder)obj;

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