示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 public NhaCungCap Insert(NhaCungCap item)
 {
     item.Save(UserName);
     return(item);
 }
示例#5
0
 public bool Destroy(object MaNCC)
 {
     return(NhaCungCap.Destroy(MaNCC) == 1);
 }
示例#6
0
 public bool Delete(object MaNCC)
 {
     return(NhaCungCap.Delete(MaNCC) == 1);
 }