Exemple #1
0
        public void Insert(DateTime?NgayDat, int?MaKH, int?MaNV, string Status)
        {
            Hd item = new Hd();

            item.NgayDat = NgayDat;

            item.MaKH = MaKH;

            item.MaNV = MaNV;

            item.Status = Status;


            item.Save(UserName);
        }
Exemple #2
0
        public void Update(int MaHD, DateTime?NgayDat, int?MaKH, int?MaNV, string Status)
        {
            Hd item = new Hd();

            item.MarkOld();
            item.IsLoaded = true;

            item.MaHD = MaHD;

            item.NgayDat = NgayDat;

            item.MaKH = MaKH;

            item.MaNV = MaNV;

            item.Status = Status;

            item.Save(UserName);
        }
Exemple #3
0
        public Hd Update(Hd item2)
        {
            Hd item = new Hd();

            item.MarkOld();
            item.IsLoaded = true;

            item.MaHD = item2.MaHD;

            item.NgayDat = item2.NgayDat;

            item.MaKH = item2.MaKH;

            item.MaNV = item2.MaNV;

            item.Status = item2.Status;

            item.Save(UserName);
            return(item);
        }
Exemple #4
0
 public bool Destroy(object MaHD)
 {
     return(Hd.Destroy(MaHD) == 1);
 }
Exemple #5
0
 public bool Delete(object MaHD)
 {
     return(Hd.Delete(MaHD) == 1);
 }
Exemple #6
0
 public Hd Insert(Hd item)
 {
     item.Save(UserName);
     return(item);
 }