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));
        }
Example #3
0
        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));
        }
Example #4
0
        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));
        }
Example #5
0
        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);
 }
Example #7
0
 public void Add(PcsReworkParameters pcsReworkParameters)
 {
     _batchContext.Add(pcsReworkParameters);
 }
Example #8
0
 public void Add(PcsWeightParameters parameter)
 {
     _batchContext.Add(parameter);
 }