Exemple #1
0
        public ActionResult Load()
        {
            PI_DAL.DAL dal = new PI_DAL.DAL();
            IEnumerable <InventoryItem> model = dal.GetInventoryItemsByLocation("Cooler");

            return(View(model));
        }
Exemple #2
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));
        }
Exemple #3
0
        public ActionResult HandHeld()
        {
            Handheld model = new Handheld();

            PI_DAL.DAL dal = new PI_DAL.DAL();
            model = dal.GetHandHeld(1000);
            return(View(model));
        }
Exemple #4
0
        // GET: ASN
        public ActionResult Create()
        {
            AdvancedShipingNotice model = new AdvancedShipingNotice();

            PI_DAL.DAL dal = new PI_DAL.DAL();
            model = dal.CreateASN();
            return(View(model));
        }
Exemple #5
0
        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));
        }
Exemple #6
0
        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));
        }