Пример #1
0
 public void XoaDuLieu(ECtblHoaDon et)
 {
     cn.ThucThiCauLenhSQL(@"DELETE from tblHoaDon where MaHD=N'" + et.MaHD + "'");
 }
Пример #2
0
 public void SuaDuLieu(ECtblHoaDon et)
 {
     cn.ThucThiCauLenhSQL(@"UPDATE  tblHoaDon SET NgayLap ='" + et.NgayLap + "', MaKH ='" + et.MaKH + "', MaNV ='" + et.MaNV + "' where MaHD='" + et.MaHD + "'");
 }
Пример #3
0
 public void ThemDuLieu(ECtblHoaDon et)
 {
     cn.ThucThiCauLenhSQL(@"INSERT INTO tblHoaDon (MaHD, NgayLap, MaKH, MaNV) VALUES  (N'" + et.MaHD + "',N'" + et.NgayLap + "',N'" + et.MaKH + "',N'" + et.MaNV + "')");
 }
Пример #4
0
 public void XoaDuLieu(ECtblHoaDon et)
 {
     sql.XoaDuLieu(et);
 }
Пример #5
0
 public void SuaDuLieu(ECtblHoaDon et)
 {
     sql.SuaDuLieu(et);
 }
Пример #6
0
 public void ThemDuLieu(ECtblHoaDon et)
 {
     sql.ThemDuLieu(et);
 }