Exemplo n.º 1
0
        public static List <SeatType> SeatTypeCollection()
        {
            List <SeatType> list = new List <SeatType>();
            SeatType        item = new SeatType("0", "单座");

            list.Add(item);
            item = new SeatType("3", "残障座");
            list.Add(item);
            item = new SeatType("4", "残障护理");
            list.Add(item);
            item = new SeatType("5", "不事宜观看");
            list.Add(item);
            item = new SeatType("6", "停用");
            list.Add(item);
            item = new SeatType("7", "工作席");
            list.Add(item);
            item = new SeatType("8", "特殊");
            list.Add(item);
            return(list);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            bool result;

            if (null == obj)
            {
                result = false;
            }
            else
            {
                if (obj.GetType() != typeof(SeatType) && !obj.GetType().IsSubclassOf(typeof(SeatType)))
                {
                    result = false;
                }
                else
                {
                    SeatType seatType = (SeatType)obj;
                    result = (this._seatTypeCode == seatType._seatTypeCode);
                }
            }
            return(result);
        }