| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace IMCS.DefaultList{    public enum EnumPlateNum    {        /// <summary>        /// 没有托盘,可能用到的地方在AGV接驳位        /// </summary>        Plate_Zero,        /// <summary>        /// 一个托盘,主要用于打标机,清洗机,机床等,或AGV接驳位        /// </summary>        Plate_One,        /// <summary>        /// 主要用于AGV接驳位        /// </summary>        Plate_Two,        /// <summary>        /// 主要用于机器人,        /// </summary>        Plate_Third,        /// <summary>        /// 扩展,没有使用的地方        /// </summary>        Plate_Four    }    /// <summary>    /// 设备运行状态    /// </summary>    public enum EnumDeviceRunState    {        /// <summary>        /// 默认        /// </summary>        RunState_None,        /// <summary>        /// 空闲        /// </summary>        RunState_Wait,        /// <summary>        /// 运行中        /// </summary>        RunState_Run,        /// <summary>        /// 故障        /// </summary>        RunState_Err    }    public class DeviceStateDefaultList : Notify    {        private void NotiP(ref object ob, object ob1, string value)        {            if (ob != ob1)            {                ob = ob1;                NotifyProper(value);            }        }        private EnumPlateNum _Device_Plate = EnumPlateNum.Plate_Four;        /// <summary>        /// 托盘数量,        /// </summary>        public EnumPlateNum Device_Pan        {            get { return _Device_Plate; }            set            {                if (_Device_Plate != value)                {                    _Device_Plate = value;                    NotifyProper("Device_Pan");                }            }        }        private bool _Device_OnLine = false;        /// <summary>        /// 是否在线        /// </summary>        public bool Device_OnLine        {            get { return _Device_OnLine; }            set            {                if (_Device_OnLine != value)                {                    _Device_OnLine = value;                    NotifyProper("Device_OnLine");                }            }        }        private bool _Device_ConnectionMes = false;        /// <summary>        /// 系统监管,是否连接到MES        /// </summary>        public bool Device_ConnectionMes        {            get { return _Device_ConnectionMes; }            set            {                if (_Device_ConnectionMes != value)                {                    _Device_ConnectionMes = value;                    NotifyProper("Device_ConnectionMes");                }            }        }        private EnumDeviceRunState _Device_Runing = EnumDeviceRunState.RunState_None;        /// <summary>        /// 是否在运行,值包含运行中,空闲        /// </summary>        public EnumDeviceRunState Device_Runing        {            get { return _Device_Runing; }            set            {                if (_Device_Runing != value)                {                    _Device_Runing = value;                    NotifyProper("Device_Runing");                }            }        }        private string _Device_Name = "";        /// <summary>        /// 设备名称,AGV接驳位,打标机,清洗机,六轴机器人等内容        /// </summary>        public string Device_Name        {            get { return _Device_Name; }            set            {                if (_Device_Name != value)                {                    _Device_Name = value;                    NotifyProper("Device_Name");                }            }        }    }}
 |