using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
namespace IStation.Model
{
///
///
///
public class ProductInspectionContentViewModel
{
///
///
///
public ProductInspectionContentViewModel() { }
///
///
///
///
public ProductInspectionContentViewModel(ProductInspectionContentItem rhs)
{
this.ItemID = rhs.ID;
this.GroupID = rhs.GroupID;
this.ItemName = rhs.Name;
this.ValueType = (int)rhs.ValueType;
this.ValueNullAble = (int)rhs.ValueNullAble;
this.ValueRangeMin = rhs.ValueRangeMin;
this.ValueRangeMax = rhs.ValueRangeMax;
this.TipInfo = rhs.TipInfo;
this.MonitorPointID = rhs.MonitorPointID;
this.ProductID = rhs.ProductID;
// this.ValueList = rhs.ValueList;
}
#region Model
///
/// 标识
///
public long ItemID { get; set; }
///
/// 标识
///
public long ProductID { get; set; }
///
/// 测点标识
///
public long MonitorPointID { get; set; }
///
/// 分组标识
///
public long GroupID { get; set; }
///
/// 名称
///
public string GroupName { get; set; }
///
/// 名称
///
public string ItemName { get; set; }
///
/// 值类型(数值,文字,枚举)
///
public int ValueType { get; set; }
///
/// (是否可空)
///
public int ValueNullAble { get; set; }
///
/// 值上限(数值)
///
public double? ValueRangeMin { get; set; } = null;
///
/// 值下限(数值)
///
public double? ValueRangeMax { get; set; } = null;
///
/// (提示信息)
///
public string TipInfo { get; set; }
///
/// (待选列表)
///
public List ValueList { get; set; }
#endregion
}
}