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); }
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); }
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); }
public bool Destroy(object MaHD) { return(Hd.Destroy(MaHD) == 1); }
public bool Delete(object MaHD) { return(Hd.Delete(MaHD) == 1); }
public Hd Insert(Hd item) { item.Save(UserName); return(item); }