Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            WoFDetail woFDetail = db.WoFDetails.Find(id);

            db.WoFDetails.Remove(woFDetail);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "WoFDetailId,WorkDate,WoResponsible,Objective,StartTime,FinishTime,TotalTime,Risk,RiskAction,Productive,Notes,WorkOrderFId")] WoFDetail woFDetail)
 {
     if (ModelState.IsValid)
     {
         db.Entry(woFDetail).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("WoFDetails", "WoFDetails"));
     }
     ViewBag.WorkOrderFId = new SelectList(db.WorkOrderFs, "WorkOrderFId", "WorkOrderFId", woFDetail.WorkOrderFId);
     return(View(woFDetail));
 }
Exemplo n.º 3
0
        // GET: WoFDetails/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            WoFDetail woFDetail = db.WoFDetails.Find(id);

            if (woFDetail == null)
            {
                return(HttpNotFound());
            }
            return(View(woFDetail));
        }
Exemplo n.º 4
0
        // GET: WoFDetails/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            WoFDetail woFDetail = db.WoFDetails.Find(id);

            if (woFDetail == null)
            {
                return(HttpNotFound());
            }
            ViewBag.WorkOrderFId = new SelectList(db.WorkOrderFs, "WorkOrderFId", "WorkOrderFId", woFDetail.WorkOrderFId);
            return(View(woFDetail));
        }