Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public Cthd Insert(Cthd item)
 {
     item.Save(UserName);
     return(item);
 }