Esempio n. 1
0
 public ActionResult Edit(SET_BOOK_GROUP set_book_group)
 {
     if (ModelState.IsValid)
     {
         /*db.SET_BOOK_GROUP.Attach(set_book_group);
          * db.ObjectStateManager.ChangeObjectState(set_book_group, EntityState.Modified);
          * db.SaveChanges();*/
         db.SET_BOOK_GROUP_UPDATE(set_book_group.BOOK_GROUP_NO,
                                  decimal.Parse(Session["sess_USER_NO"].ToString()),
                                  decimal.Parse(Session["sess_LOGON_NO"].ToString()),
                                  set_book_group.BOOK_GROUP_NAME,
                                  set_book_group.BOOK_GROUP_DESC,
                                  set_book_group.BOOK_PROJ_TYPE_NO,
                                  set_book_group.IS_ACTIVE,
                                  set_book_group.ACTIVE_FROM,
                                  set_book_group.ACTIVE_TO,
                                  set_book_group.SL_NUM);
         return(RedirectToAction("Index"));
     }
     ViewBag.BOOK_PROJ_TYPE_NO = new SelectList(db.SET_BOOK_PROJ_TYPE, "BOOK_PROJ_TYPE_NO", "LAST_ACTION", set_book_group.BOOK_PROJ_TYPE_NO);
     return(View(set_book_group));
 }