コード例 #1
0
        public ActionResult DeleteConfirmed(decimal id)
        {
            HITOS_NO_LABORALES hITOS_NO_LABORALES = db.HITOS_NO_LABORALES.Find(id);

            db.HITOS_NO_LABORALES.Remove(hITOS_NO_LABORALES);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "ID_HITOS,RUT_EMPRESA_PROV,DESCRIPCION_HITONL,FECHA_INICO_HITONL,FECHA_TERMINO_HITONL,HORA_INICIO_HITONL,HORA_TERMNO_HITONL")] HITOS_NO_LABORALES hITOS_NO_LABORALES)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hITOS_NO_LABORALES).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.RUT_EMPRESA_PROV = new SelectList(db.EMPRESA, "RUT_EMPRESA_PROV", "NOMBRE_EMPRESA", hITOS_NO_LABORALES.RUT_EMPRESA_PROV);
     return(View(hITOS_NO_LABORALES));
 }
コード例 #3
0
        // GET: HITOS_NO_LABORALES/Details/5
        public ActionResult Details(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HITOS_NO_LABORALES hITOS_NO_LABORALES = db.HITOS_NO_LABORALES.Find(id);

            if (hITOS_NO_LABORALES == null)
            {
                return(HttpNotFound());
            }
            return(View(hITOS_NO_LABORALES));
        }
コード例 #4
0
        // GET: HITOS_NO_LABORALES/Edit/5
        public ActionResult Edit(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HITOS_NO_LABORALES hITOS_NO_LABORALES = db.HITOS_NO_LABORALES.Find(id);

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