public async Task <IActionResult> EditPcsScoring(int id, [Bind("PcsScoringId,Score2Target,Score1Lower")] PcsScoring pcsScoring) { if (id != pcsScoring.PcsScoringId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(pcsScoring); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PcsScoringExists(pcsScoring.PcsScoringId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(pcsScoring)); }
public async Task <IActionResult> Edit(int id, [Bind("ID,Name,DateStarted,ExpectedFinishDate,AmountOfWash,ExpectedWashPercent,ExpectedYield,ActualYield,PercentDiff,Notes")] Batch batch) { if (id != batch.ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(batch); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BatchExists(batch.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(batch)); }
public async Task <IActionResult> Edit(int id, [Bind("BatchReportId,OriginalReport,StreamName,Recipe,Campaign,BatchNo,WeekNo,StartTime,MakingTime,QATime,PreQaTemp,Visco,Ph,SG,Appearance,VisualColour,MeasuredColour,Odour,OverallQAStatus,StockTankAllocationTime,AllocatedTo,DropTime,TotalRecipeWeight,TotalActualWeight,VesselWeightIncrease,RecipeType,NewMakeTime")] BatchReport batchReport) { if (id != batchReport.BatchReportId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(batchReport); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BatchReportExists(batchReport.BatchReportId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(batchReport)); }
public async Task <IActionResult> Edit(int id, [Bind("PcsTempTargetsId,RecipeType,Recipe,Target,UpperLimit,LowerLimit")] PcsTempTargets pcsTempTargets) { if (id != pcsTempTargets.PcsTempTargetsId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(pcsTempTargets); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PcsTempTargetsExists(pcsTempTargets.PcsTempTargetsId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(pcsTempTargets)); }
public async Task <IActionResult> Edit(int id, [Bind("RecipeLimitsId,RecipeType,LimitTypes,Min,Max,GuageMax,Target,Tolerance")] RecipeLimits recipeLimits) { if (id != recipeLimits.RecipeLimitsId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(recipeLimits); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RecipeLimitsExists(recipeLimits.RecipeLimitsId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(recipeLimits)); }
public void AddEffluentToShiftLog(int shiftId, double effluentLevel) { var shiftLog = _batchContext.ShiftLog.Where(x => x.OperatorShiftLogId == shiftId).FirstOrDefault(); shiftLog.EffluentAtStartOfShift = effluentLevel; _batchContext.Update(shiftLog); _batchContext.SaveChanges(); }
public EntityEntry <PcsReworkParameters> Update(PcsReworkParameters pcsReworkParameters) { return(_batchContext.Update(pcsReworkParameters)); }
public EntityEntry <MaterialDetails> Update(MaterialDetails materialDetails) { return(_context.Update(materialDetails)); }