예제 #1
0
        public List <Nguoi> GetKhachDoan()
        {
            List <Nguoi> list_tmp = new List <Nguoi>();

            foreach (CTDoan cT in listCTDoan)
            {
                if (cT.ChucVuTrongDoan.ToString().Trim() == "Khách")
                {
                    list_tmp.Add(DalNguoi.GetNguoiById(cT.MaNguoiThamGia));
                }
            }
            return(list_tmp);
        }
예제 #2
0
        public int Save()
        {
            if (Id == -1)
            {
                DalNguoi.Insert(this);
            }

            if (updated)
            {
                DalNguoi.Update(this);
            }

            return(this.Id);
        }
예제 #3
0
 public List <Tour> GetTourDaDi()
 {
     return(DalNguoi.getTourDaDi(this));
 }
예제 #4
0
 public List <DoanDL> GetDoanDaDi()
 {
     return(DalNguoi.getDoanDaDi(this));
 }
예제 #5
0
 public void Delete()
 {
     DalNguoi.Delete(this);
 }