Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "MaLoaiDG,TenLoaiDG")] LOAI_DOCGIA lOAI_DOCGIA)
 {
     if (ModelState.IsValid)
     {
         db.Entry(lOAI_DOCGIA).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(lOAI_DOCGIA));
 }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "MaTG,TenTG")] TAC_GIA tAC_GIA)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tAC_GIA).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tAC_GIA));
 }
Exemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "MaDG,MaLoaiDG,HoTen,NgaySinh,DiaChi,Email,NgayLapThe,TienNo,HanThe")] DOC_GIA dOC_GIA)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dOC_GIA).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaLoaiDG = new SelectList(db.LOAI_DOCGIA, "MaLoaiDG", "TenLoaiDG", dOC_GIA.MaLoaiDG);
     return(View(dOC_GIA));
 }
Exemplo n.º 4
0
 public ActionResult Edit([Bind(Include = "MaPhieu,MaDG,SoTienThu")] PHIEU_THU_PHAT pHIEU_THU_PHAT)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pHIEU_THU_PHAT).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaDG = new SelectList(db.DOC_GIA, "MaDG", "HoTen", pHIEU_THU_PHAT.MaDG);
     return(View(pHIEU_THU_PHAT));
 }
Exemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "MaBaoCaoMuon,MaLoaiSach,SoLuotMuon,TiLe")] BAOCAOMUONSACH bAOCAOMUONSACH)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bAOCAOMUONSACH).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaLoaiSach = new SelectList(db.LOAI_SACH, "MaLoaiSach", "TenLoaiSach", bAOCAOMUONSACH.MaLoaiSach);
     return(View(bAOCAOMUONSACH));
 }
Exemplo n.º 6
0
 public ActionResult Edit([Bind(Include = "MaBaoCaoSachTraTre,MaSach,GhiChu,SoNgayTraTre")] BAOCAOSACHTRATRE bAOCAOSACHTRATRE)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bAOCAOSACHTRATRE).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaSach = new SelectList(db.SACHes, "MaSach", "TenSach", bAOCAOSACHTRATRE.MaSach);
     return(View(bAOCAOSACHTRATRE));
 }
Exemplo n.º 7
0
 public ActionResult Edit([Bind(Include = "MaPhieuMuon,MaDG,MaSach,NgayMuon")] PHIEU_MUON_SACH pHIEU_MUON_SACH)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pHIEU_MUON_SACH).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaDG   = new SelectList(db.DOC_GIA, "MaDG", "HoTen", pHIEU_MUON_SACH.MaDG);
     ViewBag.MaSach = new SelectList(db.SACHes, "MaSach", "TenSach", pHIEU_MUON_SACH.MaSach);
     return(View(pHIEU_MUON_SACH));
 }
Exemplo n.º 8
0
 public ActionResult Edit([Bind(Include = "MaSach,MaTG,MaLoaiSach,TenSach,NamXuatBan,NhaXuatBan,HanTra,TinhTrang")] SACH sACH)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sACH).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaLoaiSach = new SelectList(db.LOAI_SACH, "MaLoaiSach", "TenLoaiSach", sACH.MaLoaiSach);
     ViewBag.MaTG       = new SelectList(db.TAC_GIA, "MaTG", "TenTG", sACH.MaTG);
     return(View(sACH));
 }