Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }