コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
0
 public bool Destroy(object MaCTHd)
 {
     return(Cthd.Destroy(MaCTHd) == 1);
 }
コード例 #5
0
 public bool Delete(object MaCTHd)
 {
     return(Cthd.Delete(MaCTHd) == 1);
 }
コード例 #6
0
 public Cthd Insert(Cthd item)
 {
     item.Save(UserName);
     return(item);
 }