添加项目文件。
This commit is contained in:
102
GroupLine.App/ModelDto/TermWeldDto.cs
Normal file
102
GroupLine.App/ModelDto/TermWeldDto.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GroupLine.App.ModelDto
|
||||
{
|
||||
[MetadataType(typeof(TermWeldDto))]
|
||||
public class TermWeldDto : ValidateModelBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
private long _Id;
|
||||
public long Id
|
||||
{
|
||||
get { return _Id; }
|
||||
set { _Id = value; RaisePropertyChanged(() => Id); }
|
||||
}
|
||||
|
||||
|
||||
private string _MachineModel;
|
||||
/// <summary>
|
||||
/// 机种名
|
||||
/// </summary>
|
||||
public string MachineModel
|
||||
{
|
||||
get { return _MachineModel; }
|
||||
set { _MachineModel = value; RaisePropertyChanged(() => MachineModel); }
|
||||
}
|
||||
private string _WeldStation;
|
||||
/// <summary>
|
||||
/// 焊接工位
|
||||
/// </summary>
|
||||
public string WeldStation
|
||||
{
|
||||
get { return _WeldStation; }
|
||||
set
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case "1":
|
||||
_WeldStation = "左工位";
|
||||
break;
|
||||
case "2":
|
||||
_WeldStation = "右工位";
|
||||
break;
|
||||
default:
|
||||
_WeldStation = "无";
|
||||
break;
|
||||
}
|
||||
RaisePropertyChanged(() => WeldStation);
|
||||
}
|
||||
}
|
||||
private string _OpNo;
|
||||
/// <summary>
|
||||
/// 员工编号
|
||||
/// </summary>
|
||||
public string OpNo
|
||||
{
|
||||
get { return _OpNo; }
|
||||
set { _OpNo = value; RaisePropertyChanged(() => OpNo); }
|
||||
}
|
||||
private decimal _Cur;
|
||||
/// <summary>
|
||||
/// 电流值
|
||||
/// </summary>
|
||||
public decimal Cur
|
||||
{
|
||||
get { return _Cur; }
|
||||
set { _Cur = value; RaisePropertyChanged(() => Cur); }
|
||||
}
|
||||
private int _ElectrodeModel;
|
||||
/// <summary>
|
||||
/// 电极型号
|
||||
/// </summary>
|
||||
public int ElectrodeModel
|
||||
{
|
||||
get { return _ElectrodeModel; }
|
||||
set { _ElectrodeModel = value; RaisePropertyChanged(() => ElectrodeModel); }
|
||||
}
|
||||
private DateTime _CreateTime;
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return _CreateTime; }
|
||||
set { _CreateTime = value; RaisePropertyChanged(() => CreateTime); }
|
||||
}
|
||||
|
||||
private decimal _WeldTime;
|
||||
/// <summary>
|
||||
/// 焊接时间
|
||||
/// </summary>
|
||||
public decimal WeldTime
|
||||
{
|
||||
get { return _WeldTime; }
|
||||
set { _WeldTime = value; RaisePropertyChanged(() => WeldTime); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user