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.MD.Web.Models { /// /// 模块名称:设备 /// 作 者:郭兆福 /// 编写日期:2017年05月10日 /// public class EquipmentModel : QDGModel { /// ///设备信息主键 /// [Description("设备信息主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 工作中心 /// [Description("工作中心")] [DGColumn(frozenColumns = true, Sortable = true, Width = 240, DataAlign = DataAlign.left)] public string WORKCENTER_NAME { get; set; } /// ///设备编码 /// [Description("设备编码")] [HTMLInput(UpdateRead =true, required = true, MaxLength = 10)] [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 = 30, Width = 240)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 240, DataAlign = DataAlign.left)] public string EQUIPMENT_NAME { get; set; } /// ///设备类型 /// [Description("设备类型")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1,Width = 244, JsonUtl = "/Dict/GetFixedComboxSource?kind=EquipmentType&WithEmpty=false")] [InputType(inputType.combobox)] public string EQUIPMENT_TYPE { get; set; } /// /// 设备类型名称 /// [Description("设备类型")] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string EQUIPMENT_TYPE_NAME { get; set; } /// ///关键设备 /// [Description("关键设备")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1, Width = 244, JsonUtl = "/Dict/GetFixedComboxSource?kind=EquipmentFlag&WithEmpty=false")] [InputType(inputType.combobox)] public string FLAG_EQUIPMENT { get; set; } /// /// 关键设备 /// [Description("关键设备")] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string FLAG_EQUIPMENT_NAME { get; set; } /// /// 工作中心编号 /// [Description("工作中心")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 10, Width = 244, JsonUtl = "/Dict/GetAllWorkCenterComboxSource")] [InputType(inputType.combobox)] public string WORKCENTER_CODE { get; set; } /// ///设备编码 /// [Description("工序编码")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20, Width = 244, JsonUtl = "/Dict/GetALLWorkCellComboxSource")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCELL_CODE { get; set; } /// ///设备名称 /// [Description("工序名称")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 60, Width = 240)] //[InputType(inputType.combobox)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 240, DataAlign = DataAlign.left)] public string WORKCELL_NAME { get; set; } /// ///备注 /// [Description("备注")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 100, Width = 240, Height = 50)] [InputType(inputType.textArea)] [DGColumn(frozenColumns = false, Sortable = true, Width = 240, DataAlign = DataAlign.left)] public string REMARK { get; set; } /// ///删除标识 /// [Description("删除标识")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)] [InputType(inputType.hidden)] public string FLGDEL { get; set; } /// /// 创建用户 /// [Description("创建用户")] public string CREATEUSER { get; set; } /// /// 创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public DateTime CREATEDATE { get; set; } /// /// 更新用户 /// [Description("更新用户")] public string UPDATEUSER { get; set; } /// /// 更新时间 /// [Description("更新时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public DateTime UPDATEDATE { get; set; } } }