コード例 #1
0
        MachineTool GetMachineTool(IXLRow row)
        {
            MachineTool tool = new MachineTool
            {
                Id   = row.Cell(1).GetValue <int>(),
                Name = row.Cell(2).GetValue <string>()
            };

            return(tool);
        }
コード例 #2
0
        Operation GetOperation(Party party)
        {
            Operation operation = new Operation
            {
                PartyId          = party.Id,
                NomenclatureName = _nomenclatures.Find(x => x.Id == party.NomenclatureId).NomenclatureName
            };
            List <Time> times = _times.FindAll(x => x.NomenclatureId == party.NomenclatureId);
            Time        time  = Time.FindMinTime(times, _machineTools);
            MachineTool tool  = _machineTools.Find(x => x.Id == time.MachineToolId);

            operation.MachineToolName = tool.Name;
            operation.StartTime       = tool.Time;
            tool.Time        += time.OperationTime;
            operation.EndTime = tool.Time;
            return(operation);
        }