using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; namespace IStation.Model { /// /// Get /// public partial class ProductInspectionTemplateItem : System.ICloneable { /// /// /// public ProductInspectionTemplateItem() { } /// /// /// /// public ProductInspectionTemplateItem(ProductInspectionTemplateItem rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.ProductType = rhs.ProductType; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.ValueType = rhs.ValueType; this.ValueNullAble = rhs.ValueNullAble; this.ValueRangeMin = rhs.ValueRangeMin; this.ValueRangeMax = rhs.ValueRangeMax; this.TipInfo = rhs.TipInfo; this.MonitorPointID = rhs.MonitorPointID; } /// /// / /// /// public void Reset(ProductInspectionTemplateItem rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.ProductType = rhs.ProductType; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.ValueType = rhs.ValueType; this.ValueNullAble = rhs.ValueNullAble; this.ValueRangeMin = rhs.ValueRangeMin; this.ValueRangeMax = rhs.ValueRangeMax; this.TipInfo = rhs.TipInfo; this.MonitorPointID = rhs.MonitorPointID; } #region Model /// /// 标识 /// public long ID { get; set; } /// /// CorpID /// public long CorpID { get; set; } /// /// 测点标识 /// public long MonitorPointID { get; set; } /// /// 设备标识 /// public long ProductType { get; set; } /// /// 使用状态 /// public ProductInspectionContentItem.eUseStatus UseStatus { get { return _useStatus; } set { _useStatus = value; } } private ProductInspectionContentItem.eUseStatus _useStatus = ProductInspectionContentItem.eUseStatus.有效; /// /// 排序码 /// public int SortCode { get; set; } /// /// 分组标识 /// public long GroupID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 值类型(数值,文字,枚举) /// public ProductInspectionContentItem.eValueType ValueType { get; set; } /// /// (是否可空) /// public ProductInspectionContentItem.eValueNullAble ValueNullAble { get; set; } = ProductInspectionContentItem.eValueNullAble.否; /// /// 值上限(数值) /// public double? ValueRangeMin { get; set; } = null; /// /// 值下限(数值) /// public double? ValueRangeMax { get; set; } = null; /// /// (提示信息) /// public string TipInfo { get; set; } /// /// 创建用户标识 /// public long CreateUserID { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 更新用户标识 /// public long? UpdateUserID { get; set; } /// /// 更新时间 /// public DateTime? UpdateTime { get; set; } #endregion /// /// /// /// public ProductInspectionTemplateItem Clone() { return (ProductInspectionTemplateItem)this.MemberwiseClone(); } /// /// /// /// object ICloneable.Clone() { return this.MemberwiseClone(); } } }