private void AddOrder(Contract.Instruction.StartOrder m) { var op = m.GetObjectFromMessage; var order = new SimulationOrder() { CreationTime = op.CustomerOrder.CreationTime , DueTime = op.CustomerOrder.DueTime , State = DB.Enums.State.Created , BusinessPartnerId = op.CustomerOrder.BusinessPartnerId , Name = op.CustomerOrder.Name , OriginId = op.CustomerOrder.Id , SimulationNumber = Collector.simulationNumber.Value , SimulationType = Collector.simulationKind.Value , SimulationConfigurationId = Collector.simulationId.Value }; // TODO System.Diagnostics.Debug.WriteLine($"Order created {op.CustomerOrder.Id}", "CollectorAgent"); simulationOrders.Add(item: order); openOrderParts++; newOrderParts++; }
private void AddOrder(Contract.Instruction.StartOrder m) { var op = m.GetObjectFromMessage; var order = new SimulationOrder() { CreationTime = op.CustomerOrder.CreationTime , DueTime = op.CustomerOrder.DueTime , State = State.Created , BusinessPartnerId = op.CustomerOrder.BusinessPartnerId , Name = op.CustomerOrder.Name , OriginId = op.CustomerOrder.Id , SimulationNumber = Collector.simulationNumber.Value , SimulationType = Collector.simulationKind.Value , SimulationConfigurationId = Collector.simulationId.Value }; simulationOrders.Add(item: order); openOrderParts++; newOrderParts++; }