Esempio n. 1
0
 public ActionResult AddNote(string noteMessage, string coilId, string workCenterId)
 {
     var result = new ResponseDataModel();
     var data = new JobStatusModel();
     try
     {
         axService.AddNote(noteMessage, coilId, workCenterId);
         data.Id = coilId;
         data.Message = "Note added successfully.";
     }
     catch (Exception ex)
     {
         result.Error = true;
         result.Message = ex.Message;
     }
     result.Data = data;
     return View(result);
 }
Esempio n. 2
0
        public ActionResult GenerateNcm(string coilId, string problem, int defectiveLbs)
        {
            var result = new ResponseDataModel();
            var data = new JobStatusModel();

            try
            {
                workCenterService.GenerateMcn(coilId, problem, defectiveLbs);
                data.Id = coilId;
                data.Message = "NCM generated successfully.";
            }
            catch (Exception ex)
            {
                result.Error = true;
                result.Message = ex.Message;
            }

            result.Data = data;
            return Json(result);
        }