63 lines
1.3 KiB
C#
63 lines
1.3 KiB
C#
using Community;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Model
|
||
{
|
||
/// <summary>
|
||
/// 产品类
|
||
/// </summary>
|
||
public class ProductModel : NotificationObject
|
||
{
|
||
|
||
|
||
private int number;
|
||
/// <summary>
|
||
/// 序号
|
||
/// </summary>
|
||
public int Number
|
||
{
|
||
get { return number; }
|
||
set { number = value; }
|
||
}
|
||
|
||
private string snCode;
|
||
/// <summary>
|
||
/// SN
|
||
/// </summary>
|
||
public string SnCode
|
||
{
|
||
get { return snCode; }
|
||
set
|
||
{
|
||
snCode = value;
|
||
RaisePropertyChanged("SnCode");
|
||
}
|
||
}
|
||
|
||
private string stateColour;
|
||
/// <summary>
|
||
/// 产品颜色状态 未知:Gray 待测:Blue 良品:Green 不良:red
|
||
/// </summary>
|
||
public string StateColour
|
||
{
|
||
get { return stateColour; }
|
||
set
|
||
{
|
||
stateColour = value;
|
||
RaisePropertyChanged("StateColour");
|
||
}
|
||
}
|
||
|
||
public ProductModel()
|
||
{
|
||
SnCode = "";
|
||
StateColour = ColorStr.Gray;
|
||
}
|
||
|
||
}
|
||
}
|