Beispiel #1
0
 public ActionResult Edit([Bind(Include = "MaLoaiCauThu,LoaiCauThu1")] LOAICAUTHU lOAICAUTHU)
 {
     if (ModelState.IsValid)
     {
         db.Entry(lOAICAUTHU).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(lOAICAUTHU));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "MaTrongTai,TenTrongTai,QuocTich")] TRONGTAI tRONGTAI)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tRONGTAI).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tRONGTAI));
 }
Beispiel #3
0
 public ActionResult Edit([Bind(Include = "MaSan,TenSan,Diachi")] SAN sAN)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sAN).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sAN));
 }
Beispiel #4
0
 public ActionResult Edit([Bind(Include = "MaLoaiBanThang,BanThang1")] BANTHANG bANTHANG)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bANTHANG).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bANTHANG));
 }
Beispiel #5
0
 public ActionResult Edit([Bind(Include = "MaTS,TuoiTT,TuoiTD,SoCauThuTT,SoCauThuTD,SoCauThuNgoaiTD,ThoiDiemTT,ThoiDiemTD,DiemThang,DiemHoa,DiemThua")] THAMSO tHAMSO)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tHAMSO).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tHAMSO));
 }
Beispiel #6
0
 public ActionResult Edit([Bind(Include = "MaDoi,TenDoi,MaSan,NgayThanhLap")] DOIBONG dOIBONG)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dOIBONG).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaSan = new SelectList(db.SANs, "MaSan", "TenSan", dOIBONG.MaSan);
     return(View(dOIBONG));
 }
Beispiel #7
0
 public ActionResult Edit([Bind(Include = "MaMua,TenMua,NgayBatDau,NgayKetThuc,MaTS,MaTTUT")] MUAGIAI mUAGIAI)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mUAGIAI).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaTS = new SelectList(db.THAMSOes, "MaTS", "MaTS", mUAGIAI.MaTS);
     return(View(mUAGIAI));
 }
Beispiel #8
0
 public ActionResult Edit([Bind(Include = "MaDoi,MaMua,TongHieuSo,SoTranThang,SoTranThua,SoTranHoa,BanThangSanKhach")] BXH bXH)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bXH).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaMua = new SelectList(db.MUAGIAIs, "MaMua", "TenMua", bXH.MaMua);
     return(View(bXH));
 }
Beispiel #9
0
 public ActionResult Edit([Bind(Include = "MaTranDau,MaMua,MaDoi1,MaDoi2,Luot,MaSan,MaTrongTai,Ngay,gio,SoBanThangDoi1,SoBanThangDoi2")] TRAUDAU tRAUDAU)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tRAUDAU).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaMua      = new SelectList(db.MUAGIAIs, "MaMua", "TenMua", tRAUDAU.MaMua);
     ViewBag.MaTrongTai = new SelectList(db.TRONGTAIs, "MaTrongTai", "TenTrongTai", tRAUDAU.MaTrongTai);
     return(View(tRAUDAU));
 }
Beispiel #10
0
 public ActionResult Edit([Bind(Include = "MaCauThu,MaDoi,TenCauThu,NgaySinh,MaLoaiCauThu,QuocTich,GhiChu,HinhAnh")] CAUTHU cAUTHU)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cAUTHU).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaDoi        = new SelectList(db.DOIBONGs, "MaDoi", "TenDoi", cAUTHU.MaDoi);
     ViewBag.MaLoaiCauThu = new SelectList(db.LOAICAUTHUs, "MaLoaiCauThu", "LoaiCauThu1", cAUTHU.MaLoaiCauThu);
     return(View(cAUTHU));
 }
Beispiel #11
0
 public ActionResult Edit([Bind(Include = "MaCTGB,MaTranDau,MaCauThu,ThoiDiem,MaLoaiBanThang")] CAUTHU_GHIBAN cAUTHU_GHIBAN)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cAUTHU_GHIBAN).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaLoaiBanThang = new SelectList(db.BANTHANGs, "MaLoaiBanThang", "BanThang1", cAUTHU_GHIBAN.MaLoaiBanThang);
     ViewBag.MaCauThu       = new SelectList(db.CAUTHUs, "MaCauThu", "MaDoi", cAUTHU_GHIBAN.MaCauThu);
     ViewBag.MaTranDau      = new SelectList(db.TRAUDAUs, "MaTranDau", "MaMua", cAUTHU_GHIBAN.MaTranDau);
     return(View(cAUTHU_GHIBAN));
 }