public async Task<HttpResponseMessage> CompletePlasticSequencingStation(int aisleId, int employeeId) { PlasticScheduleFactory maker = new PlasticScheduleFactory(); Log.Logging.Debug("Request|CompletePlasticSequencingStation({0}, {1})", aisleId, employeeId); var result = await maker.CompletePlasticSeqByLocationId(aisleId, employeeId); Log.Logging.Debug("Complete Request|CompletePlasticSequencingStation({0}, {1})", aisleId, employeeId); return new HttpResponseMessage(HttpStatusCode.OK); }
public IEnumerable<PlasticSeqSchedule> GetPlasticScheduleHistoryDetailByLocationId(int locationId, int scheduleNum) { PlasticScheduleFactory factory = new PlasticScheduleFactory(); PlasticSeqDatabase db = new PlasticSeqDatabase(); List<PlasticSeqSchedule> listPlasticHistory = new List<PlasticSeqSchedule>(); var seqStations = db.GetSequencingStationsBySequencingLocationId(locationId); foreach (var station in seqStations) { var schedule = factory.GetPlasticSeqScheduleHistoryDetail(station, scheduleNum); listPlasticHistory.Add(schedule); } return listPlasticHistory; }
public HttpResponseMessage CompleteSeqStationSchedule(int seqId) { PlasticScheduleFactory maker = new PlasticScheduleFactory(); SequencingFactory seqFactory = new SequencingFactory(); var station = seqFactory.UpdateNextBoxBySequencingId(seqId); maker.CompletePlasticSeqByStation(station); return new HttpResponseMessage(HttpStatusCode.OK); }
public async Task<List<PlasticSeqSchedule>> GetPlasticSeqSchedulesByLocationId(int locationId) { PlasticScheduleFactory factory = new PlasticScheduleFactory(); return await factory.GetPlasticSeqSchedulesByLocationIdAsync(locationId); }