using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlnMesnac.WPF.Model { public class Real_DataInfo : INotifyPropertyChanged { public string LineNo { get; set; } public string OrderNo { get; set; } public string ProductType { get; set; } = "整芯带"; public string RfidCount { get; set; } = "20"; public string WriteCount { get; set; } = "0"; public string ProductStatus { get; set; } = "生产中"; private string _RfidASCII = ""; public string RfidASCII { get { return _RfidASCII; } set { if (_RfidASCII != value) { _RfidASCII = value; OnPropertyChanged(nameof(RfidASCII)); } } } private string _RfidEPC = ""; public string RfidEPC { get { return _RfidEPC; } set { if (_RfidEPC != value) { _RfidEPC = value; OnPropertyChanged(nameof(RfidEPC)); } } } public string WriteTime { get; set; } public string WriteStatus { get; set; } private string _ReadTime = ""; public string ReadTime { get { return _ReadTime; } set { if (_ReadTime != value) { _ReadTime = value; OnPropertyChanged(nameof(ReadTime)); } } } /// /// 备 注: /// 默认值: /// public string Deviceid { get; set; } = null!; /// /// 备 注: /// 默认值: /// public string? Name { get; set; } /// /// 备 注: /// 默认值: /// public string? Connectstr { get; set; } private string _isOnline ="未连接"; public string IsOnline { get { return _isOnline; } set { if (_isOnline != value) { _isOnline = value; OnPropertyChanged(nameof(IsOnline)); } } } public event PropertyChangedEventHandler? PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }