using Prism.Mvvm; using System; namespace TeamAAS_VP.Models { /// /// 设备信息配置,用于保存线别/站别/机台号以及 MES 相关配置。 /// public class DeviceInfo : BindableBase { private string _line; /// /// 当前作业的线别 /// public string Line { get => _line; set => SetProperty(ref _line, value); } private string _station; /// /// 当前作业的站别 /// public string Station { get => _station; set => SetProperty(ref _station, value); } private string _fixtureId; /// /// 当前作业的机台编号 /// public string FixtureId { get => _fixtureId; set => SetProperty(ref _fixtureId, value); } private bool _enableMes; /// /// 是否启用 MES 通信功能 /// public bool EnableMES { get => _enableMes; set => SetProperty(ref _enableMes, value); } private string _mesStationUrl; /// /// MES 过站 URL /// public string MesStationUrl { get => _mesStationUrl; set => SetProperty(ref _mesStationUrl, value); } private string _mesSubmitUrl; /// /// MES 提交 URL /// public string MesSubmitUrl { get => _mesSubmitUrl; set => SetProperty(ref _mesSubmitUrl, value); } public DeviceInfo() { Line = string.Empty; Station = string.Empty; FixtureId = string.Empty; EnableMES = false; MesStationUrl = string.Empty; MesSubmitUrl = string.Empty; } } }