Пример #1
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);
        }
Пример #2
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);
        }