Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Inventory_Supplier_Order inventory_Supplier_Order = db.Inventory_Supplier_Order.Find(id);

            db.Inventory_Supplier_Order.Remove(inventory_Supplier_Order);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "InvSuppOrder_ID,InvSupplier_ID,SuppOrder_Status_ID,Order_Date")] Inventory_Supplier_Order inventory_Supplier_Order)
 {
     if (ModelState.IsValid)
     {
         db.Entry(inventory_Supplier_Order).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.InvSupplier_ID      = new SelectList(db.Inventory_Supplier, "InvSupplier_ID", "InvSupp_Name", inventory_Supplier_Order.InvSupplier_ID);
     ViewBag.SuppOrder_Status_ID = new SelectList(db.Order_Status, "SuppOrder_Status_ID", "Order_Status_Description", inventory_Supplier_Order.SuppOrder_Status_ID);
     return(View(inventory_Supplier_Order));
 }
Esempio n. 3
0
        // GET: Inventory_Supplier_Order/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Inventory_Supplier_Order inventory_Supplier_Order = db.Inventory_Supplier_Order.Find(id);

            if (inventory_Supplier_Order == null)
            {
                return(HttpNotFound());
            }
            return(View(inventory_Supplier_Order));
        }
Esempio n. 4
0
        // GET: Inventory_Supplier_Order/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Inventory_Supplier_Order inventory_Supplier_Order = db.Inventory_Supplier_Order.Find(id);

            if (inventory_Supplier_Order == null)
            {
                return(HttpNotFound());
            }
            ViewBag.InvSupplier_ID      = new SelectList(db.Inventory_Supplier, "InvSupplier_ID", "InvSupp_Name", inventory_Supplier_Order.InvSupplier_ID);
            ViewBag.SuppOrder_Status_ID = new SelectList(db.Order_Status, "SuppOrder_Status_ID", "Order_Status_Description", inventory_Supplier_Order.SuppOrder_Status_ID);
            return(View(inventory_Supplier_Order));
        }