101 lines
2.5 KiB
C#
101 lines
2.5 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace GroupLine.App.ModelDto
|
|
{
|
|
[MetadataType(typeof(StaticDiscPressDto))]
|
|
public class StaticDiscPressDto : ValidateModelBase
|
|
{
|
|
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
private long _Id;
|
|
public long Id
|
|
{
|
|
get { return _Id; }
|
|
set { _Id = value; RaisePropertyChanged(() => Id); }
|
|
}
|
|
|
|
private string _StaticDiskNo;
|
|
/// <summary>
|
|
/// 静盘编号
|
|
/// </summary>
|
|
public string StaticDiskNo
|
|
{
|
|
get { return _StaticDiskNo; }
|
|
set
|
|
{
|
|
_StaticDiskNo = value; RaisePropertyChanged(() => StaticDiskNo);
|
|
}
|
|
}
|
|
private string _OpNo;
|
|
/// <summary>
|
|
/// 员工编号
|
|
/// </summary>
|
|
public string OpNo
|
|
{
|
|
get { return _OpNo; }
|
|
set { _OpNo = value; RaisePropertyChanged(() => OpNo); }
|
|
}
|
|
|
|
private decimal _PressValue;
|
|
/// <summary>
|
|
/// 压力值
|
|
/// </summary>
|
|
public decimal PressValue
|
|
{
|
|
get { return _PressValue; }
|
|
set { _PressValue = value; RaisePropertyChanged(() => PressValue); }
|
|
}
|
|
|
|
private decimal _PressDepth;
|
|
/// <summary>
|
|
/// 压入深度
|
|
/// </summary>
|
|
public decimal PressDepth
|
|
{
|
|
get { return _PressDepth; }
|
|
set { _PressDepth = value; RaisePropertyChanged(() => PressDepth); }
|
|
}
|
|
|
|
private string _PressStation;
|
|
/// <summary>
|
|
/// 压入工位
|
|
/// </summary>
|
|
public string PressStation
|
|
{
|
|
get { return _PressStation; }
|
|
set
|
|
{
|
|
switch (value)
|
|
{
|
|
case "1":
|
|
_PressStation = "左工位";
|
|
break;
|
|
case "2":
|
|
_PressStation = "右工位";
|
|
break;
|
|
default:
|
|
_PressStation = "无";
|
|
break;
|
|
}
|
|
RaisePropertyChanged(() => PressStation);
|
|
}
|
|
}
|
|
|
|
private DateTime _CreateTime;
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
public DateTime CreateTime
|
|
{
|
|
get { return _CreateTime; }
|
|
set { _CreateTime = value; RaisePropertyChanged(() => CreateTime); }
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|