示例#1
0
        public void Insert(string TenLoai, double?Uudai, DateTime?Ngaycapnhap, int?MaNVchinhsua)
        {
            LoaiThanhVien item = new LoaiThanhVien();

            item.TenLoai = TenLoai;

            item.Uudai = Uudai;

            item.Ngaycapnhap = Ngaycapnhap;

            item.MaNVchinhsua = MaNVchinhsua;


            item.Save(UserName);
        }
示例#2
0
        public void Update(int MaLoaitv, string TenLoai, double?Uudai, DateTime?Ngaycapnhap, int?MaNVchinhsua)
        {
            LoaiThanhVien item = new LoaiThanhVien();

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

            item.MaLoaitv = MaLoaitv;

            item.TenLoai = TenLoai;

            item.Uudai = Uudai;

            item.Ngaycapnhap = Ngaycapnhap;

            item.MaNVchinhsua = MaNVchinhsua;

            item.Save(UserName);
        }
示例#3
0
        public LoaiThanhVien Update(LoaiThanhVien item2)
        {
            LoaiThanhVien item = new LoaiThanhVien();

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

            item.MaLoaitv = item2.MaLoaitv;

            item.TenLoai = item2.TenLoai;

            item.Uudai = item2.Uudai;

            item.Ngaycapnhap = item2.Ngaycapnhap;

            item.MaNVchinhsua = item2.MaNVchinhsua;

            item.Save(UserName);
            return(item);
        }
示例#4
0
 public bool Destroy(object MaLoaitv)
 {
     return(LoaiThanhVien.Destroy(MaLoaitv) == 1);
 }
示例#5
0
 public bool Delete(object MaLoaitv)
 {
     return(LoaiThanhVien.Delete(MaLoaitv) == 1);
 }
示例#6
0
 public LoaiThanhVien Insert(LoaiThanhVien item)
 {
     item.Save(UserName);
     return(item);
 }