Beispiel #1
0
        public ActionResult DeleteObjective(string empleado, int axo, int consec)
        {
            t_objetidet t_objetidet = db.t_objetidet.Find(empleado, axo, consec);

            db.t_objetidet.Remove(t_objetidet);
            db.SaveChanges();
            return(RedirectToAction("Create", new { emplado = t_objetidet.axo, axo = t_objetidet.axo }));
        }
Beispiel #2
0
        public ActionResult DeleteConfirmed(string id)
        {
            t_objetidet t_objetidet = db.t_objetidet.Find(id);

            db.t_objetidet.Remove(t_objetidet);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #3
0
        public ActionResult Edit([Bind(Include = "empleado,axo,consec,planta,fecha,objetivo,descrip,peso,metrico,cancelado,nota_cancel,f_cancel,u_cancel,resultado1,nota_r1,f_r1,resultado2,nota_r2,f_r2,f_id")] t_objetidet t_objetidet)
        {
            t_objetidet.f_id = System.DateTime.Now;
            if (ModelState.IsValid)
            {
                db.Entry(t_objetidet).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Create", new { emplado = t_objetidet.axo, axo = t_objetidet.axo }));
            }

            ViewBag.planta = new SelectList(db.t_plantas, "planta", "nombre", t_objetidet.planta);
            return(View(t_objetidet));
        }
Beispiel #4
0
        // GET: t_objetidet/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            t_objetidet t_objetidet = db.t_objetidet.Find(id);

            if (t_objetidet == null)
            {
                return(HttpNotFound());
            }
            return(View(t_objetidet));
        }
Beispiel #5
0
        // GET: t_objetidet/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            t_objetidet t_objetidet = db.t_objetidet.Find(id);

            if (t_objetidet == null)
            {
                return(HttpNotFound());
            }
            ViewBag.planta = new SelectList(db.t_plantas, "planta", "nombre", t_objetidet.planta);
            return(View(t_objetidet));
        }