//
        // GET: /MaterialManagement/StorageOfSupplierPallet/
        public ActionResult Index()
        {
            ViewBag.ScreenId = Constants.PictureNo.TCRM121F;
            var model = new StorageOfSupplierPalletSearchViewModel
            {
                Grid = GenerateGrid()
            };

            return(View(model));
        }
        public ActionResult SearchByName(StorageOfSupplierPalletSearchViewModel model, GridSettings gridSettings)
        {
            if (string.IsNullOrEmpty(gridSettings.SortField))
            {
                gridSettings.SortField = "F31_ShelfRow";
                gridSettings.SortOrder = SortOrder.Asc;
            }
            var result = _storageOfSupplierPalletDomain.SearchCriteria(model.SupplierCode, model.MaxPallet, gridSettings);

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