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 { /// /// 模块编号: /// 作 用:设备信息页面模型 /// 作 者:gzf /// 编写日期:2018年04月19日 /// public class MachineInfoModel : 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 = true, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string MACHINENAME { get; set; } /// ///设备编码 /// [Description("设备编码")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string MACHINECODDE { get; set; } /// ///设备编码 /// [Description("设备编码")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 50)] [InputType(inputType.hidden)] public string MACHINENUM { get; set; } /// /// 接收控制指令 0:不发送不读取 1:只发送不读取 2:不发送至读取 3:即发送也读取 /// [Description("接收控制指令")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/Dict/GetFixedComboxSource?kind=ISCONTROL", MaxLength = 1)] [InputType(inputType.combobox)] public string ISCONTROL { get; set; } [Description("接收控制指令")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ISCONTROLTXT { get; set; } /// ///生产线 /// [Description("生产线")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.hidden)] public string PRODUCELINE { get; set; } /// ///操作类别 /// [Description("操作类别")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.hidden)] public string OPERATETYPE { get; set; } /// ///设备状态 0:正常 1:异常 /// [Description("设备状态")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/Dict/GetFixedComboxSource?kind=STATUS", MaxLength = 1)] [InputType(inputType.combobox)] public string STATUS { get; set; } [Description("设备状态")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string STATUSTXT { get; set; } /// ///工序 /// [Description("工序")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 20, JsonUtl = "/Dict/GetALLWorkCellComboxSource?kind=WORKCELL_CODE")] [InputType(inputType.combobox)] public string WORKCELL_CODE { get; set; } /// ///工位 /// [Description("工位")] //[HTMLInput(UpdateRead = false, required = true,MaxLength = 20)] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/Dict/GetWorkLocFromWorkCellComboxSource?kind=WORKLOC_CODE", MaxLength = 20)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKLOC_CODE { get; set; } [Description("工位")] //[DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string WORKLOC_CODETXT { get; set; } /// ///IP地址 /// [Description("IP地址")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 30)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string IPADDRESS { get; set; } /// ///端口号 /// [Description("端口号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 5)] [InputType(inputType.text)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string TERMINALPORT { get; set; } [Description("上料口")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 5)] [InputType(inputType.hidden)] public string MATERAILPORT { get; set; } [Description("上料顺序")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 5)] [InputType(inputType.hidden)] public string MATERAILINDEX { get; set; } /// ///设备读取时间设置 /// [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] public int READINTERVAL { get; set; } /// ///是否有模具位置扫描 /// [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] public int ISSTATION { get; set; } /// ///备注 /// [Description("备注")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 100, Width = 153, Height = 70)] [InputType(inputType.textArea)] [DGColumn(frozenColumns = false, Sortable = true, Width = 120, DataAlign = DataAlign.left)] public string MEMO { get; set; } /// /// 创建用户 /// [Description("创建用户")] public string CREATEUSER { get; set; } /// /// 创建用户 /// [Description("创建用户")] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CREATEUSERNAME { get; set; } /// /// 创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime CREATEDATE { get; set; } /// /// 更新用户 /// [Description("更新用户")] public string UPDATEUSER { get; set; } /// /// 更新用户 /// [Description("更新用户")] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string UPDATEUSERNAME { get; set; } /// /// 更新时间 /// [Description("更新时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime UPDATEDATE { get; set; } [Description("设备登录用户名")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public string USERNAME { get; set; } [Description("设备登录密码")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public string PASSWORD { get; set; } [Description("")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public string EQUIPMENT_TYPE_CODE { get; set; } [Description("")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public string EQUIPMENT_DIRECTORY { get; set; } public string MachineIds { get; set; } } }