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