public void Insert(int?MaHD, int?MaSp, string TenSP, int?SoLuong, decimal?DonGiaBan) { Cthd item = new Cthd(); item.MaHD = MaHD; item.MaSp = MaSp; item.TenSP = TenSP; item.SoLuong = SoLuong; item.DonGiaBan = DonGiaBan; item.Save(UserName); }
public void Update(int MaCTHd, int?MaHD, int?MaSp, string TenSP, int?SoLuong, decimal?DonGiaBan) { Cthd item = new Cthd(); item.MarkOld(); item.IsLoaded = true; item.MaCTHd = MaCTHd; item.MaHD = MaHD; item.MaSp = MaSp; item.TenSP = TenSP; item.SoLuong = SoLuong; item.DonGiaBan = DonGiaBan; item.Save(UserName); }
public Cthd Update(Cthd item2) { Cthd item = new Cthd(); item.MarkOld(); item.IsLoaded = true; item.MaCTHd = item2.MaCTHd; item.MaHD = item2.MaHD; item.MaSp = item2.MaSp; item.TenSP = item2.TenSP; item.SoLuong = item2.SoLuong; item.DonGiaBan = item2.DonGiaBan; item.Save(UserName); return(item); }
public bool Destroy(object MaCTHd) { return(Cthd.Destroy(MaCTHd) == 1); }
public bool Delete(object MaCTHd) { return(Cthd.Delete(MaCTHd) == 1); }
public Cthd Insert(Cthd item) { item.Save(UserName); return(item); }