Equipment.cs 2.35 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHECS.Model.Entities
{
    public class Equipment :BaseModel
    {
        private string code;

        public string Code
        {
            get { return code; }
            set { code = value; HandlerPropertyChanged("Code"); }
        }

        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; HandlerPropertyChanged("Name"); }
        }

        private string ip;

        public string IP
        {
            get { return ip; }
            set { ip = value; HandlerPropertyChanged("IP"); }
        }

        private string connectName;

        public string ConnectName
        {
            get { return connectName; }
            set { connectName = value; HandlerPropertyChanged("ConnectName"); }
        }

        private string groupName;

        public string GroupName
        {
            get { return groupName; }
            set { groupName = value; HandlerPropertyChanged("GroupName"); }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value;HandlerPropertyChanged("Description"); }
        }

        private bool disable;

        public bool Disable
        {
            get { return disable; }
            set { disable = value; HandlerPropertyChanged("Disable"); }
        }


        private int equipmentTypeId;

        public int EquipmentTypeId
        {
            get { return equipmentTypeId; }
            set { equipmentTypeId = value; HandlerPropertyChanged("EquipmentTypeId"); }
        }

        private string selfAddress;

        public string SelfAddress
        {
            get { return selfAddress; }
            set { selfAddress = value; HandlerPropertyChanged("SelfAddress"); }
        }

        public string BackAddress { get; set; }

        //逻辑外键
        public EquipmentType EquipmentType { get; set; }

        public List<EquipmentProp> EquipmentProps { get; set; }

        /// <summary>
        /// 站台对应的起点或终点linecode
        /// </summary>
        public string LineCode { get; set; }
        //public int RoadWay { get; set; }
        //public int StationIndex { get; set; }
    }
}