Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            manipulatorinfoSet manipulatorinfoSet = db.manipulatorinfoSet.Find(id);

            db.manipulatorinfoSet.Remove(manipulatorinfoSet);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "Id,code,name,status,x,y,speed,catchnum,buildtime,lineinfoSetId")] manipulatorinfoSet manipulatorinfoSet)
 {
     if (ModelState.IsValid)
     {
         db.Entry(manipulatorinfoSet).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.lineinfoSetId = new SelectList(db.lineinfoSet, "Id", "code", manipulatorinfoSet.lineinfoSetId);
     return(View(manipulatorinfoSet));
 }
Ejemplo n.º 3
0
        // GET: manipulatorinfoSets/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            manipulatorinfoSet manipulatorinfoSet = db.manipulatorinfoSet.Find(id);

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

            if (manipulatorinfoSet == null)
            {
                return(HttpNotFound());
            }
            ViewBag.lineinfoSetId = new SelectList(db.lineinfoSet, "Id", "code", manipulatorinfoSet.lineinfoSetId);
            return(View(manipulatorinfoSet));
        }