Пример #1
0
 public void UpdatCDBH(DAL.BHBANGTINHCHEDOBAOHIEM item)
 {
     DAL.BHBANGTINHCHEDOBAOHIEM bh = dataContext.BHBANGTINHCHEDOBAOHIEMs.Where(t => t.IDBangTinhCheDoBaoHiem == item.IDBangTinhCheDoBaoHiem).FirstOrDefault();
     bh.IDCheDoBaoHiem            = item.IDCheDoBaoHiem;
     bh.MaDieuKienHuong           = item.MaDieuKienHuong;
     bh.TenDieuKienHuong          = item.TenDieuKienHuong;
     bh.DKThoiGianToiDaHuongCheDo = item.DKThoiGianToiDaHuongCheDo;
     bh.DKThoiGianDongBH          = item.DKThoiGianDongBH;
     bh.CongThuc     = item.CongThuc;
     bh.YeuCauThuTuc = item.YeuCauThuTuc;
     bh.DienGiai     = item.DienGiai;
     Save();
 }
Пример #2
0
 public void Update(DAL.BHBANGTINHCHEDOBAOHIEM item)
 {
     DAL.BHBANGTINHCHEDOBAOHIEM tmp = dataContext.BHBANGTINHCHEDOBAOHIEMs.SingleOrDefault(p => p.IDBangTinhCheDoBaoHiem == item.IDBangTinhCheDoBaoHiem);
     tmp.IDCheDoBaoHiem            = item.IDCheDoBaoHiem;
     tmp.MaDieuKienHuong           = item.MaDieuKienHuong;
     tmp.TenDieuKienHuong          = item.TenDieuKienHuong;
     tmp.DKThoiGianToiDaHuongCheDo = item.DKThoiGianToiDaHuongCheDo;
     tmp.DKThoiGianDongBH          = item.DKThoiGianDongBH;
     tmp.CongThuc     = item.CongThuc;
     tmp.YeuCauThuTuc = item.YeuCauThuTuc;
     tmp.DienGiai     = item.DienGiai;
     dataContext.SubmitChanges();
     Save();
 }
Пример #3
0
 public void Insert(DAL.BHBANGTINHCHEDOBAOHIEM item)
 {
     dataContext.BHBANGTINHCHEDOBAOHIEMs.InsertOnSubmit(item);
     Save();
 }