Beispiel #1
0
        public ActionResult DeleteConfirmed(decimal id)
        {
            SET_BOOK_BRAND_TYPE set_book_brand_type = db.SET_BOOK_BRAND_TYPE.Single(s => s.BOOK_BRAND_TYPE_NO == id);

            db.SET_BOOK_BRAND_TYPE_DELETE(set_book_brand_type.BOOK_BRAND_TYPE_NO,
                                          decimal.Parse(Session["sess_USER_NO"].ToString()),
                                          decimal.Parse(Session["sess_LOGON_NO"].ToString()));
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        //
        // GET: /SetBookBrandType/Edit/5

        public ActionResult Edit(decimal id = 0)
        {
            SET_BOOK_BRAND_TYPE set_book_brand_type = db.SET_BOOK_BRAND_TYPE.Single(s => s.BOOK_BRAND_TYPE_NO == id);

            if (set_book_brand_type == null)
            {
                return(HttpNotFound());
            }
            return(View(set_book_brand_type));
        }
Beispiel #3
0
 public ActionResult Edit(SET_BOOK_BRAND_TYPE set_book_brand_type)
 {
     if (ModelState.IsValid)
     {
         db.SET_BOOK_BRAND_TYPE_UPDATE(set_book_brand_type.BOOK_BRAND_TYPE_NO,
                                       decimal.Parse(Session["sess_USER_NO"].ToString()),
                                       decimal.Parse(Session["sess_LOGON_NO"].ToString()),
                                       set_book_brand_type.BOOK_BRAND_TYPE_NAME,
                                       set_book_brand_type.BOOK_BRAND_TYPE_DESC,
                                       set_book_brand_type.IS_ACTIVE,
                                       set_book_brand_type.ACTIVE_FROM,
                                       set_book_brand_type.ACTIVE_TO, set_book_brand_type.SL_NUM);
         return(RedirectToAction("Index"));
     }
     return(View(set_book_brand_type));
 }