public ActionResult Load() { PI_DAL.DAL dal = new PI_DAL.DAL(); IEnumerable <InventoryItem> model = dal.GetInventoryItemsByLocation("Cooler"); return(View(model)); }
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)); }
public ActionResult HandHeld() { Handheld model = new Handheld(); PI_DAL.DAL dal = new PI_DAL.DAL(); model = dal.GetHandHeld(1000); return(View(model)); }
// GET: ASN public ActionResult Create() { AdvancedShipingNotice model = new AdvancedShipingNotice(); PI_DAL.DAL dal = new PI_DAL.DAL(); model = dal.CreateASN(); return(View(model)); }
public ActionResult Stock(string locationCode) { //return RedirectToAction("Stock", new { LocationCode = x.locationCode }); PI_DAL.DAL dal = new PI_DAL.DAL(); IEnumerable <InventoryItem> model = from stock in dal.GetInventoryItemsByLocation(locationCode) where (stock.intransit == null || stock.intransit == "N") && (stock.status == "Pending" || stock.status == "Stock") orderby stock.itemID select stock; ViewBag.Count = model.Count(); return(View(model)); }
public ActionResult Locations() { if (TempData.ContainsKey("lastloc")) { try { ViewBag.locationcode = TempData["lastloc"].ToString(); } catch { } } PI_DAL.DAL dal = new PI_DAL.DAL(); IEnumerable <Location> model = dal.GetLocations(false); return(View(model)); }