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