Esempio n. 1
0
        public ActionResult Search(LotDataSamplingModel model)
        {
            var result = _LotDataSamplingDomain.Search(model.Product, ConvertHelper.ConvertToDateTimeFull(model.Date),
                                                       model.Mode, model.LotNo);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        // 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));
        }
Esempio n. 3
0
        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));
        }