public void DeleteChiTietCheDoBaoHiem(BHCHITIETCHEDOBAOHIEM chitiet)
 {
     DAL.BHCHITIETCHEDOBAOHIEM item = new DAL.BHCHITIETCHEDOBAOHIEM();
     item = dataContext.BHCHITIETCHEDOBAOHIEMs.SingleOrDefault(p => p.IDChiTietCheDoBaoHiem == chitiet.IDChiTietCheDoBaoHiem);
     dataContext.BHCHITIETCHEDOBAOHIEMs.DeleteOnSubmit(item);
     Save();
 }
 public void CapNhatChiTietCheDoBaoHiem(BHCHITIETCHEDOBAOHIEM chitiet)
 {
     DAL.BHCHITIETCHEDOBAOHIEM item = dataContext.BHCHITIETCHEDOBAOHIEMs.SingleOrDefault(p => p.IDChiTietCheDoBaoHiem == chitiet.IDChiTietCheDoBaoHiem);
     item.IDBangTinhCheDoBaoHiem     = chitiet.IDBangTinhCheDoBaoHiem;
     item.IDChiTietCheDoBaoHiem      = chitiet.IDChiTietCheDoBaoHiem;
     item.IDNhanVien_BaoHiem         = chitiet.IDNhanVien_BaoHiem;
     item.MucDoSuyGiamKhaNangLaoDong = chitiet.MucDoSuyGiamKhaNangLaoDong;
     item.NgayBatDau         = chitiet.NgayBatDau;
     item.NgayKetThuc        = chitiet.NgayKetThuc;
     item.SoNgayNghi         = chitiet.SoNgayNghi;
     item.SoTienDeNghi       = chitiet.SoTienDeNghi;
     item.TinhTrangThanhToan = chitiet.TinhTrangThanhToan;
     item.GhiChu             = chitiet.GhiChu;
     Save();
 }