using System; using System.ComponentModel.DataAnnotations; namespace GroupLine.App.ModelDto { [MetadataType(typeof(StaticDiscPressDto))] public class StaticDiscPressDto : ValidateModelBase { /// /// ID /// private long _Id; public long Id { get { return _Id; } set { _Id = value; RaisePropertyChanged(() => Id); } } private string _StaticDiskNo; /// /// 静盘编号 /// public string StaticDiskNo { get { return _StaticDiskNo; } set { _StaticDiskNo = value; RaisePropertyChanged(() => StaticDiskNo); } } private string _OpNo; /// /// 员工编号 /// public string OpNo { get { return _OpNo; } set { _OpNo = value; RaisePropertyChanged(() => OpNo); } } private decimal _PressValue; /// /// 压力值 /// public decimal PressValue { get { return _PressValue; } set { _PressValue = value; RaisePropertyChanged(() => PressValue); } } private decimal _PressDepth; /// /// 压入深度 /// public decimal PressDepth { get { return _PressDepth; } set { _PressDepth = value; RaisePropertyChanged(() => PressDepth); } } private string _PressStation; /// /// 压入工位 /// 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; /// /// 创建时间 /// public DateTime CreateTime { get { return _CreateTime; } set { _CreateTime = value; RaisePropertyChanged(() => CreateTime); } } } }