public ActionResult Index()
        {
            ViewBag.ScreenId = Constants.PictureNo.TCRM081F;
            var model = new StockTakingOfMaterialViewModel
            {
                Grid = GenerateGrid()
            };

            return(View(model));
        }
        public ActionResult SearchMaterial(StockTakingOfMaterialViewModel model, GridSettings gridSettings)
        {
            //if (!string.IsNullOrEmpty(model.ShelfNoFrom) && !string.IsNullOrEmpty(model.ShelfNoTo))
            //{
            var results = _stockTakingOfMaterialDomain.SearchMaterialStock(model.ShelfNoFrom, model.ShelfNoTo,
                                                                           gridSettings);

            if (!results.IsSuccess)
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
            return(Json(results.Data, JsonRequestBehavior.AllowGet));
            //}
            //return Json(null, JsonRequestBehavior.AllowGet);
        }