public async Task <IActionResult> Create([Bind("ID,Name,DateStarted,ExpectedFinishDate,AmountOfWash,ExpectedWashPercent,ExpectedYield,ActualYield,PercentDiff,Notes")] Batch batch) { if (ModelState.IsValid) { _context.Add(batch); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(batch)); }
public async Task <IActionResult> Create([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 (ModelState.IsValid) { _context.Add(batchReport); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(batchReport)); }
public async Task <IActionResult> Create([Bind("PcsTempTargetsId,RecipeType,Recipe,Target,UpperLimit,LowerLimit")] PcsTempTargets pcsTempTargets) { if (ModelState.IsValid) { _context.Add(pcsTempTargets); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(pcsTempTargets)); }
public async Task <IActionResult> Create([Bind("RecipeLimitsId,RecipeType,LimitTypes,Min,Max,GuageMax,Target,Tolerance")] RecipeLimits recipeLimits) { if (ModelState.IsValid) { _context.Add(recipeLimits); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(recipeLimits)); }
private OperatorShiftLog CreateNewShift(DateTime dateTime) { //dateTime = AdjustDateIfAfter12OClock(dateTime); OperatorShiftLog newLog = new OperatorShiftLog() { Date = dateTime, DaysNights = GetShiftDayNight(dateTime), }; _batchContext.Add(newLog); _batchContext.SaveChanges(); return(newLog); }
public void Add(BatchReport report) { _context.Add(report); }
public void Add(PcsReworkParameters pcsReworkParameters) { _batchContext.Add(pcsReworkParameters); }
public void Add(PcsWeightParameters parameter) { _batchContext.Add(parameter); }