Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(decimal id)
        {
            HORAS_TURNOS hORAS_TURNOS = db.HORAS_TURNOS.Find(id);

            db.HORAS_TURNOS.Remove(hORAS_TURNOS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "HRS_TRABAJO_SEM,ID_TURNO,RUT_EMPRESA_PROV,HORA_INICIO_LABORAL,HORA_TERMINO_LABORAL,HORAS_TRABAJADAS")] HORAS_TURNOS hORAS_TURNOS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hORAS_TURNOS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.RUT_EMPRESA_PROV = new SelectList(db.EMPRESA, "RUT_EMPRESA_PROV", "NOMBRE_EMPRESA", hORAS_TURNOS.RUT_EMPRESA_PROV);
     return(View(hORAS_TURNOS));
 }
Ejemplo n.º 3
0
        // GET: HORAS_TURNOS/Details/5
        public ActionResult Details(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HORAS_TURNOS hORAS_TURNOS = db.HORAS_TURNOS.Find(id);

            if (hORAS_TURNOS == null)
            {
                return(HttpNotFound());
            }
            return(View(hORAS_TURNOS));
        }
Ejemplo n.º 4
0
        // GET: HORAS_TURNOS/Edit/5
        public ActionResult Edit(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HORAS_TURNOS hORAS_TURNOS = db.HORAS_TURNOS.Find(id);

            if (hORAS_TURNOS == null)
            {
                return(HttpNotFound());
            }
            ViewBag.RUT_EMPRESA_PROV = new SelectList(db.EMPRESA, "RUT_EMPRESA_PROV", "NOMBRE_EMPRESA", hORAS_TURNOS.RUT_EMPRESA_PROV);
            return(View(hORAS_TURNOS));
        }