using System; using System.Web.Mvc; using System.Web.Mvc.Html; using QMAPP.Web; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; namespace QMAPP.MD.Web.Models { /// /// 模块名称:采集数据借口 /// 作 者:QMMES /// 编写日期:2017年09月05日 /// public class DaiModel : QDGModel { /// ///采集点主键 /// [Description("采集点主键")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 工厂编号 /// [Description("工厂")] [HTMLInput(UpdateRead = true, required = true, JsonUtl = "/Dict/GetFactoryComboxSource", MaxLength = 20, Width = 160)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string FACTORY_CODE { get; set; } /// /// 工厂名称 /// [Description("工厂名称")] [DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.left)] public string FACTORY_NAME { get; set; } /// ///工序编码 /// [Description("工序编码")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCELL_CODE { get; set; } [Description("工序名称")] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCELL_NAME { get; set; } /// ///设备编码 /// [Description("设备编码")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 10, Width = 160)] [InputType(inputType.text)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string EQUIPMENT_CODE { get; set; } /// ///采集点编码 /// [Description("采集点编码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string DA_CODE { get; set; } /// ///采集点名称 /// [Description("采集点名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 60, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string DA_NAME { get; set; } /// ///采集点状态 /// [Description("采集点状态")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 1)] [InputType(inputType.text)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string DA_STATUS { get; set; } /// ///物料种类 /// [Description("物料种类")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MATERIAL_TYPE { get; set; } [Description("物料种类名称")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MATERIAL_TYPE_NAME { get; set; } /// ///物料号 /// [Description("物料")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 20, Width = 160, JsonUtl = "/Dict/GetMaterialTree")] [InputType(inputType.combotree)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MATERIAL_CODE { get; set; } [Description("物料名称")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MATERIAL_CODE_NAME { get; set; } /// ///解析类别 /// [Description("解析类别")] [HTMLInput(UpdateRead = false, required = true, Width = 160, JsonUtl = "/Dict/GetAnalyzerComboxSource")] [InputType(inputType.combobox)] public string ANALYZE_CODE { get; set; } [Description("解析类别")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ANALYZE_CODE_NAME { get; set; } /// ///采集类型 /// [Description("采集类型")] [HTMLInput(UpdateRead = false, required = true, Width = 160, JsonUtl = "/Dict/GetFixedComboxSource?kind=DataType&WithEmpty=false")] [InputType(inputType.combobox)] public string DATA_TYPE { get; set; } [Description("采集类型")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string DATA_TYPE_NAME { get; set; } /// ///状态码 /// [Description("状态码")] [HTMLInput(UpdateRead = false, required = false, Width = 160)] [InputType(inputType.combobox)] public string STATE_CODE { get; set; } [Description("状态码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string STATE_NAME { get; set; } /// ///采集点顺序 /// [Description("采集点顺序")] [HTMLInput(UpdateRead = false, required = true, Width = 160)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public int DA_SEQ { get; set; } /// ///关键数据项 /// [Description("关键数据项")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 1)] [InputType(inputType.text)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PIVOTAL { get; set; } /// ///采集方式 /// [Description("采集方式")] [HTMLInput(UpdateRead = false, required = true, Width = 160, JsonUtl = "/Dict/GetFixedComboxSource?kind=DaMode&WithEmpty=false")] [InputType(inputType.combobox)] public string DA_MODE { get; set; } [Description("采集方式")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string DA_MODE_NAME { get; set; } /// ///是否作为过程码 /// [Description("过程主码")] [HTMLInput(UpdateRead = false, required = true, Width = 160, JsonUtl = "/Dict/GetFixedComboxSource?kind=IsProcessCode&WithEmpty=false")] [InputType(inputType.combobox)] public string ISPROCESSCODE { get; set; } [Description("过程主码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ISPROCESSCODE_NAME { get; set; } /// ///区分模具 /// [Description("区分模具")] [HTMLInput(UpdateRead = false, required = true, Width = 160, JsonUtl = "/Dict/GetFixedComboxSource?kind=DivbyMould&WithEmpty=false")] [InputType(inputType.combobox)] public string DIVBY_MOULD { get; set; } [Description("区分模具")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string DIVBY_MOULD_NAME { get; set; } /// ///描述 /// [Description("描述")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 200)] [InputType(inputType.textArea)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string REMARK { get; set; } /// ///创建用户 /// [Description("创建用户")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 36)] [InputType(inputType.text)] public string CREATEUSER { get; set; } [Description("创建用户")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string CREATEUSER_NAME { get; set; } /// ///创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = false,required = false, MaxLength = 8)] [InputType(inputType.datebox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] public DateTime CREATEDATE { get; set; } /// ///更新用户 /// [Description("更新用户")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 36)] [InputType(inputType.text)] public string UPDATEUSER { get; set; } [Description("更新用户")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string UPDATEUSER_NAME { get; set; } /// ///更新时间 /// [Description("更新时间")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 8)] [InputType(inputType.datebox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] public DateTime UPDATEDATE { get; set; } /// ///删除标识 /// //[Description("删除标识")] //[HTMLInput(UpdateRead = false, required = false, MaxLength = 1)] //[InputType(inputType.text)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] //public string FLGDEL { get; set; } /// /// 明细数据 /// //public string DetailValue { get; set; } } }