예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public Ctpn Insert(Ctpn item)
 {
     item.Save(UserName);
     return(item);
 }
예제 #5
0
 public bool Destroy(object MaCTPn)
 {
     return(Ctpn.Destroy(MaCTPn) == 1);
 }
예제 #6
0
 public bool Delete(object MaCTPn)
 {
     return(Ctpn.Delete(MaCTPn) == 1);
 }