Beispiel #1
0
        public ActionResult DeleteConfirmed(int?id)
        {
            Gen_Mst_TabPage gen_Mst_TabPage = db.Gen_Mst_TabPage.FirstOrDefault(m => m.RowNum == id);

            db.Gen_Mst_TabPage.Remove(gen_Mst_TabPage);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "ProductCode,ModuleCode,ScreenCode,TabPagecode,TabPageName,Comments,TabPageOrder,CreatedBy,CreatedDate,RowNum")] Gen_Mst_TabPage gen_Mst_TabPage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(gen_Mst_TabPage).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ProductCode = new SelectList(db.Gen_Mst_Screen, "ProductCode", "ScreenName", gen_Mst_TabPage.ProductCode);
     return(View(gen_Mst_TabPage));
 }
Beispiel #3
0
        // GET: TabPage/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Gen_Mst_TabPage gen_Mst_TabPage = db.Gen_Mst_TabPage.FirstOrDefault(m => m.RowNum == id);

            if (gen_Mst_TabPage == null)
            {
                return(HttpNotFound());
            }
            return(View(gen_Mst_TabPage));
        }
Beispiel #4
0
        // GET: TabPage/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Gen_Mst_TabPage gen_Mst_TabPage = db.Gen_Mst_TabPage.FirstOrDefault(m => m.RowNum == id);

            if (gen_Mst_TabPage == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ScreenCode  = new SelectList(db.Gen_Mst_Screen, "ScreenCode", "ScreenName", gen_Mst_TabPage.ScreenCode);
            ViewBag.ModuleCode  = new SelectList(db.Gen_Mst_Module, "ModuleCode", "ModuleCode", gen_Mst_TabPage.ModuleCode);
            ViewBag.ProductCode = new SelectList(db.Gen_Mst_Product, "ProductCode", "ProductName", gen_Mst_TabPage.ProductCode);

            //ViewBag.ProductCode = new SelectList(db.Gen_Mst_Screen, "ProductCode", "ScreenName", gen_Mst_TabPage.ProductCode);
            return(View(gen_Mst_TabPage));
        }