using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI.Attribute;
using QMFrameWork.WebUI;
namespace QMAPP.FJC.Web.Models.Basic
{
public class DAIValidationModel : QDGModel
{
///
/// 主键
///
[Description("主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(Hidden = true, PrimaryKey = true)]
public string PID { get; set; }
///
/// 采集点主键
///
[Description("采集点主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.hidden)]
public string DAI_PID { get; set; }
///
/// 采集项编码
///
public string ITEM_CODE { get; set; }
///
/// 标准值
///
public string STD_VALUE { get; set; }
///
/// 创建人
///
public string CREATEUSER { get; set; }
///
/// 创建时间
///
public DateTime CREATEDATE { get; set; }
///
/// 更新人
///
public string UPDATEUSER { get; set; }
///
/// 更新时间
///
public DateTime UPDATEDATE { get; set; }
///
/// 禁用
///
public string DISABLE { get; set; }
[Description("工序名称")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 150, DataAlign = DataAlign.left)]
public string WORKCELL_NAME { get; set; }
[Description("工序代码")]
[InputType(inputType.combobox)]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 220,Width=300, JsonUtl = "/Dict/GetALLWorkCellComboxSource")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 120, DataAlign = DataAlign.left)]
public string WORKCELL_CODE { get; set; }
[Description("采集点名称")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 150, DataAlign = DataAlign.left)]
public string DA_NAME { get; set; }
[Description("采集点代码")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 120, DataAlign = DataAlign.left)]
public string DA_CODE { get; set; }
[Description("校验名称")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 150, DataAlign = DataAlign.left)]
public string VALIDATOR_NAME { get; set; }
///
/// 验证代码
///
[Description("校验代码")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 120, DataAlign = DataAlign.left)]
public string VALIDATION_CODE { get; set; }
[Description("启用状态")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 70, DataAlign = DataAlign.left)]
public string DISABLE_TEXT
{
get
{
if (string.Equals(DISABLE, "1"))
{ return "禁用"; }
else
{ return "启用"; };
}
set { }
}
///
/// 下限值
///
[Description("下限值")]
[InputType(inputType.numberbox)]
[HTMLInput(UpdateRead = false, required = true, DataType = QDataType.number, NumberMax = 10000)]
[DGColumn(frozenColumns = false, Sortable = false, Width = 70, DataAlign = DataAlign.left)]
public decimal LOWER_LMT { get; set; }
///
/// 上限值
///
[Description("上限值")]
[InputType(inputType.numberbox)]
[HTMLInput(UpdateRead = false, required = true, DataType = QDataType.number,NumberMax=10000)]
[DGColumn(frozenColumns = false, Sortable = false, Width = 70, DataAlign = DataAlign.left)]
public decimal UPPER_LMT { get; set; }
///
/// 描述
///
[Description("描述验证")]
[DGColumn(frozenColumns = false, Sortable = false, Width = 200, DataAlign = DataAlign.left)]
public string REMARK { get; set; }
}
}