Пример #1
0
 public static bool capNhatThongTinKH(DTO.DTO_KhachHang kh)
 {
     return(DAO.DAO_KhachHang.capNhatThongTinKH(kh));
 }
Пример #2
0
 public void XoaKhachHang(DTO_KhachHang khDTO)
 {
     helper.ThucHienCauLenhSQL("DELETE from KHACHHANG Where MaKH=N'" + khDTO.MaKH + "'");
 }
Пример #3
0
 public static bool themKhachHang(DTO.DTO_KhachHang kh)
 {
     return(DAO.DAO_KhachHang.themKhachHang(kh));
 }
Пример #4
0
 public void ThemKhachHang(DTO_KhachHang khDTO)
 {
     helper.ThucHienCauLenhSQL("INSERT INTO KHACHHANG (MaKH, HoTen, DiaChi, Sdt) VALUES (N'" + khDTO.MaKH + "',N'" + khDTO.HoTen + "',N'" + khDTO.DiaChi + "',N'" + khDTO.SoDienThoai + "')");
 }
Пример #5
0
 public void CapNhatKhachHang(DTO_KhachHang khDTO)
 {
     helper.ThucHienCauLenhSQL("UPDATE KHACHHANG SET HoTen =N'" + khDTO.HoTen + "', DiaChi = N'" + khDTO.DiaChi + "', Sdt = N'" + khDTO.SoDienThoai + "' where MaKH = N'" + khDTO.MaKH + "'");
 }
Пример #6
0
 public void XoadulieuKhachHang(DTO_KhachHang et)
 {
     kh.XoaKhachHang(et);
 }
Пример #7
0
 public void ThemdulieuKhachHang(DTO_KhachHang et)
 {
     //truyền vào đối tượng thôi.
     kh.ThemKhachHang(et);
 }
Пример #8
0
 public void SuadulieuKhachHang(DTO_KhachHang et)
 {
     kh.CapNhatKhachHang(et);
 }