Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "IdTypeProcess,Name,Descriptionq,Active,UseType")] TypeProcess typeProcess)
 {
     if (ModelState.IsValid)
     {
         db.Entry(typeProcess).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(typeProcess));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "IdCheck,Name,Description,Active")] Check check)
 {
     if (ModelState.IsValid)
     {
         db.Entry(check).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(check));
 }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "IdType,Name,Description,Active")] Data.Type type)
 {
     if (ModelState.IsValid)
     {
         db.Entry(type).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(type));
 }
 public ActionResult Edit([Bind(Include = "IdDocument,Name,Description,Active")] Document document)
 {
     if (ModelState.IsValid)
     {
         db.Entry(document).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(document));
 }
 public ActionResult Edit([Bind(Include = "IdProject,CodProject,NameProject,IdRepresent,DateCreate,UseProject,Active,Avance")] Project project)
 {
     if (ModelState.IsValid)
     {
         db.Entry(project).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdRepresent = new SelectList(db.Directory, "IdDirectory", "Acronym", project.IdRepresent);
     return(View(project));
 }
 public ActionResult Edit([Bind(Include = "IdCheckProcess,IdExpendient,IdCheckType,Complete,Active")] CheckProcess checkProcess)
 {
     if (ModelState.IsValid)
     {
         db.Entry(checkProcess).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdCheckType  = new SelectList(db.CheckType, "IdCheckType", "IdCheckType", checkProcess.IdCheckType);
     ViewBag.IdExpendient = new SelectList(db.Expedient, "IdExpendient", "FileExpendient", checkProcess.IdExpendient);
     return(View(checkProcess));
 }
 public ActionResult Edit([Bind(Include = "IdCheckType,IdTypeProcess,IdChecck,Active")] CheckType checkType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(checkType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdChecck      = new SelectList(db.Check, "IdCheck", "Name", checkType.IdChecck);
     ViewBag.IdTypeProcess = new SelectList(db.TypeProcess, "IdTypeProcess", "Name", checkType.IdTypeProcess);
     return(View(checkType));
 }
 public ActionResult Edit([Bind(Include = "IdExpendient,IdProject,FileExpendient,Predial,NameDemandant,IdTypeProcess,Settled,Court,Magistrate,Resposible,Amount,appraise,DateCreate,Advance,Active")] Expedient expedient)
 {
     if (ModelState.IsValid)
     {
         db.Entry(expedient).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdProject     = new SelectList(db.Project, "IdProject", "CodProject", expedient.IdProject);
     ViewBag.IdTypeProcess = new SelectList(db.TypeProcess, "IdTypeProcess", "Name", expedient.IdTypeProcess);
     return(View(expedient));
 }
 public ActionResult Edit([Bind(Include = "IdDocumentProcess,IdDocumentCheck,IdExpedient,IdState,IdType,Requiered,Active")] DocumentProcess documentProcess)
 {
     if (ModelState.IsValid)
     {
         db.Entry(documentProcess).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdDocumentCheck = new SelectList(db.DocumentCheck, "IdDocumentCheck", "IdDocumentCheck", documentProcess.IdDocumentCheck);
     ViewBag.IdExpedient     = new SelectList(db.Expedient, "IdExpendient", "FileExpendient", documentProcess.IdExpedient);
     return(View(documentProcess));
 }
 public ActionResult Edit([Bind(Include = "IdDocumentCheck,IdDocument,IdCheckType,IdState,IdType,Requiered,Active")] DocumentCheck documentCheck)
 {
     if (ModelState.IsValid)
     {
         db.Entry(documentCheck).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdCheckType = new SelectList(db.CheckType, "IdCheckType", "IdCheckType", documentCheck.IdCheckType);
     ViewBag.IdDocument  = new SelectList(db.Document, "IdDocument", "Name", documentCheck.IdDocument);
     ViewBag.IdState     = new SelectList(db.State, "IdState", "Name", documentCheck.IdState);
     ViewBag.IdType      = new SelectList(db.Type, "IdType", "Name", documentCheck.IdType);
     return(View(documentCheck));
 }