public ActionResult Search(LotDataSamplingModel model) { var result = _LotDataSamplingDomain.Search(model.Product, ConvertHelper.ConvertToDateTimeFull(model.Date), model.Mode, model.LotNo); return(Json(result, JsonRequestBehavior.AllowGet)); }
// GET: EnvironmentManagement/LotDataSampling public ActionResult Index() { ViewBag.ListLotNo = _LotDataSamplingDomain.GetLotNo("", true); ViewBag.ListProduct = _LotDataSamplingDomain.GetProduct(); var model = new LotDataSamplingModel() { Grid = GenerateGrid(), Date = DateTime.Now.ToString("dd/MM/yyyy") }; return(View(model)); }
public ActionResult Add(LotDataSamplingModel model) { var result = _LotDataSamplingDomain.Add(model.Product, model.LotNo, ConvertHelper.ConvertToDateTimeFull(model.Date), model.Time, model.Temperature); return (Json( new { Success = result.IsSuccess, Message = result.IsSuccess ? Resources.MessageResource.MSG6 : result.ErrorMessages[0] }, JsonRequestBehavior.AllowGet)); }