Exemplo n.º 1
0
        public ActionResult LocationItems(string locationCode)
        {
            PI_DAL.DAL       dal   = new PI_DAL.DAL();
            HandHeldLocation model = dal.GetHandHeldForLocation(locationCode);

            ViewBag.records = model.location.items.Count;
            return(View(model));
        }
Exemplo n.º 2
0
        public HandHeldLocation GetHandHeldForLocation(string locationCode)
        {
            HandHeldLocation hh = new HandHeldLocation();

            hh.location      = GetLocations().Where(l => l.locationCode == locationCode).SingleOrDefault();
            hh.locationsList = GeltSelectListForLocations();

            return(hh);
        }
Exemplo n.º 3
0
        public ActionResult LocationItems(HandHeldLocation model)
        {
            if (ModelState.IsValid)
            {
                var x = model;

                var z = x.location.items;
                TempData["lastloc"] = model.location.locationCode;

                return(RedirectToAction("Locations"));
            }
            else
            {
                return(View(model));
            }
        }