//Xoá
 public void XoaDuLieu(E_phongtro et)
 {
     sql.XoaDuLieu(et);
 }
 //Sửa
 public void SuaDuLieu(E_phongtro et)
 {
     sql.SuaDuLieu(et);
 }
 // Thêm Dữ Liệu
 public void ThemDuLieu(E_phongtro et)
 {
     sql.ThemDuLieu(et);
 }
示例#4
0
 //Xoá
 public void XoaDuLieu(E_phongtro et)
 {
     cn.ThucThiCauLenh(@"DELETE FROM phongtro  Where mapt='" + et.mapt + "'");
 }
示例#5
0
 //Sửa
 public void SuaDuLieu(E_phongtro et)
 {
     cn.ThucThiCauLenh(@"UPDATE phongtro SET tang = N'" + et.tang + "', tenphong =N'" + et.tenphong + "', loai ='" + et.loai + "', sltoida ='" + et.sltoida + "', trangthai ='" + et.trangthai + "' Where mapt='" + et.mapt + "'");
 }
示例#6
0
 // Thêm Dữ Liệu
 public void ThemDuLieu(E_phongtro et)
 {
     cn.ThucThiCauLenh(@"INSERT INTO phongtro (mapt, tang, tenphong, loai, sltoida, trangthai) VALUES  ('" + et.mapt + "',N'" + et.tang + "',N'" + et.tenphong + "',N'" + et.loai + "',N'" + et.sltoida + "',N'" + et.trangthai + "')");
 }