93 lines
2.2 KiB
C#
93 lines
2.2 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 FixtureModel : NotificationObject
|
|
{
|
|
|
|
public int ID { get; set; }
|
|
|
|
private int fixtureColonyNo;
|
|
/// <summary>
|
|
/// 治具编号集群编号
|
|
/// </summary>
|
|
public int FixtureColonyNo
|
|
{
|
|
get { return fixtureColonyNo; }
|
|
set
|
|
{
|
|
fixtureColonyNo = value;
|
|
this.RaisePropertyChanged("FixtureColonyNo");
|
|
}
|
|
}
|
|
|
|
private int fixtureNo;
|
|
/// <summary>
|
|
/// 治具编号
|
|
/// </summary>
|
|
public int FixtureNo
|
|
{
|
|
get { return fixtureNo; }
|
|
set
|
|
{
|
|
fixtureNo = value;
|
|
this.RaisePropertyChanged("FixtureNo");
|
|
}
|
|
}
|
|
|
|
private ProductModel product1;
|
|
/// <summary>
|
|
/// 产品1
|
|
/// </summary>
|
|
public ProductModel Product1
|
|
{
|
|
get { return product1; }
|
|
set { product1 = value;
|
|
this.RaisePropertyChanged("Product1");
|
|
}
|
|
}
|
|
|
|
private ProductModel product2;
|
|
/// <summary>
|
|
/// 产品2
|
|
/// </summary>
|
|
public ProductModel Product2
|
|
{
|
|
get { return product2; }
|
|
set { product2 = value;
|
|
this.RaisePropertyChanged("Product2");
|
|
}
|
|
}
|
|
|
|
private ShowInfo message;
|
|
/// <summary>
|
|
/// 数据提示信息
|
|
/// </summary>
|
|
public ShowInfo Message
|
|
{
|
|
get { return message; }
|
|
set
|
|
{
|
|
message = value;
|
|
this.RaisePropertyChanged("Message");
|
|
}
|
|
}
|
|
|
|
public FixtureModel()
|
|
{
|
|
Product1 = new ProductModel();
|
|
Product2 = new ProductModel();
|
|
Message = new ShowInfo();
|
|
Message.StatusBackground = ColorStr.Transparent;
|
|
}
|
|
}
|
|
}
|