public void Insert(string TenNCC, string Diachi, string Email, DateTime?Ngaycapnhap, int?MaNVchinhsua, string Status) { NhaCungCap item = new NhaCungCap(); item.TenNCC = TenNCC; item.Diachi = Diachi; item.Email = Email; item.Ngaycapnhap = Ngaycapnhap; item.MaNVchinhsua = MaNVchinhsua; item.Status = Status; item.Save(UserName); }
public void Update(int MaNCC, string TenNCC, string Diachi, string Email, DateTime?Ngaycapnhap, int?MaNVchinhsua, string Status) { NhaCungCap item = new NhaCungCap(); item.MarkOld(); item.IsLoaded = true; item.MaNCC = MaNCC; item.TenNCC = TenNCC; item.Diachi = Diachi; item.Email = Email; item.Ngaycapnhap = Ngaycapnhap; item.MaNVchinhsua = MaNVchinhsua; item.Status = Status; item.Save(UserName); }
public NhaCungCap Update(NhaCungCap item2) { NhaCungCap item = new NhaCungCap(); item.MarkOld(); item.IsLoaded = true; item.MaNCC = item2.MaNCC; item.TenNCC = item2.TenNCC; item.Diachi = item2.Diachi; item.Email = item2.Email; item.Ngaycapnhap = item2.Ngaycapnhap; item.MaNVchinhsua = item2.MaNVchinhsua; item.Status = item2.Status; item.Save(UserName); return(item); }
public NhaCungCap Insert(NhaCungCap item) { item.Save(UserName); return(item); }
public bool Destroy(object MaNCC) { return(NhaCungCap.Destroy(MaNCC) == 1); }
public bool Delete(object MaNCC) { return(NhaCungCap.Delete(MaNCC) == 1); }