Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            REPORTE_PRODUCCION reporte_produccion = db.REPORTE_PRODUCCION.Find(id);

            db.REPORTE_PRODUCCION.Remove(reporte_produccion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        //
        // GET: /Pedido/Details/5

        public ActionResult Details(int id = 0)
        {
            REPORTE_PRODUCCION reporte_produccion = db.REPORTE_PRODUCCION.Find(id);

            if (reporte_produccion == null)
            {
                return(HttpNotFound());
            }
            return(View(reporte_produccion));
        }
Exemple #3
0
        //
        // GET: /Pedido/Edit/5

        public ActionResult Edit(int id = 0)
        {
            REPORTE_PRODUCCION reporte_produccion = db.REPORTE_PRODUCCION.Find(id);

            if (reporte_produccion == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ID_OS = new SelectList(db.INCLUSIONs, "ID_OS", "COLOR", reporte_produccion.ID_OS);
            return(View(reporte_produccion));
        }
Exemple #4
0
 public ActionResult Edit(REPORTE_PRODUCCION reporte_produccion)
 {
     if (ModelState.IsValid)
     {
         db.Entry(reporte_produccion).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ID_OS = new SelectList(db.INCLUSIONs, "ID_OS", "COLOR", reporte_produccion.ID_OS);
     return(View(reporte_produccion));
 }
Exemple #5
0
        public ActionResult Create(REPORTE_PRODUCCION reporte_produccion)
        {
            if (ModelState.IsValid)
            {
                db.REPORTE_PRODUCCION.Add(reporte_produccion);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.ID_OS = new SelectList(db.INCLUSIONs, "ID_OS", "COLOR", reporte_produccion.ID_OS);
            return(View(reporte_produccion));
        }