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