liteon/Model/ProductModel.cs
2025-07-12 14:05:35 +08:00

63 lines
1.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}
}
}