Exemple #1
0
        public PartialViewResult GetStorage(string LocationID)
        {
            List <tbl_Storage> subCategories = StorageBL.GetByID(LocationID.Trim());

            ViewBag.Storages = subCategories.Select(s => new SelectListItem()
            {
                Text  = s.StorageID,
                Value = s.StorageID,
            }).ToList();
            return(PartialView("~/Views/Shared/Dropdown.cshtml"));
        }
Exemple #2
0
        public PartialViewResult GetStorageId(string locationID)
        {
            List <tbl_Storage> locationId = StorageBL.GetByID(locationID.Trim()).ToList();
            bool IsExsit = false;

            if (locationId == null || locationId.Count == 0)
            {
                locationId = new List <tbl_Storage>();
                IsExsit    = true;
            }
            LocationStorageModel LSM = new LocationStorageModel();

            if (!IsExsit)
            {
                LSM.LocationID   = locationId[0].ToString();
                LSM.LocationDesc = locationId[1].ToString();
                LSM.StorageID    = locationId[2].ToString();
            }
            return(PartialView("~/Views/Storage/Partial/_StorageDetailsPartial.cshtml", LSM));
        }