⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 team.cs

📁 酒店管理软件,c#版本可以选择不同的模式
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Hotel.Guest.Bll
{
    public class Team : GuestBase
    {
        /// <summary>
        /// 离开时间
        /// </summary>
        private string _LeaveTime;

        private ArrayList _myCustomer;

        public string LeaveTime
        {
            get { return _LeaveTime; }
            set { _LeaveTime = value; }
        }
        /// <summary>
        /// 到达时间
        /// </summary>
        private string _ToTime;

        public string ToTime
        {
            get { return _ToTime; }
            set { _ToTime = value; }
        }
        /// <summary>
        /// 团队名称
        /// </summary>
        private string _Name;

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        /// <summary>
        /// 国籍
        /// </summary>
        private string _CitizenShip;

        public string CitizenShip
        {
            get { return _CitizenShip; }
            set { _CitizenShip = value; }
        }
        /// <summary>
        /// 团队号码
        /// </summary>
        private string _No;

        public string No
        {
            get { return _No; }
            set { _No = value; }
        }

        /// <summary>
        /// 联系人
        /// </summary>
        private int _BondName;
        /// <summary>
        /// email
        /// </summary>
        private string _Mail;
        /// <summary>
        /// 邮编
        /// </summary>
        private string _PostCode;
        private int _Count;

        public Customer Find(string customerId)
        {
            foreach (Customer var in _myCustomer)
            {
                if (var.Name == customerId)
                    return var;
            }
            return null;

        }

        public GuestBase Find(int index)
        {
            Customer ct = new Customer();
            _myCustomer.IndexOf(ct, index);

            return ct;
        }


        public int Count
        {
            get { return _myCustomer.Count; }
        }

        public Team()
        {
            if (_myCustomer == null)
            {
                _myCustomer = new ArrayList();
            }
        }

        public Boolean Add(Customer gt)
        {
            if (_myCustomer == null)
            {
                _myCustomer = new ArrayList();
            }
            _myCustomer.Add(gt);

            return true;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -