You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
2.7 KiB
C#

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));
}
}
}
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
public string Deviceid { get; set; } = null!;
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
public string? Name { get; set; }
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
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));
}
}
}