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 { public class UserWithMachineModel : QDGModel { /// /// 主键 /// [Description("主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden = true)] public string PID { get; set; } /// /// 用户主键 /// [Description("用户名")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.combobox)] [DGColumn(Hidden = true, PrimaryKey = true)] public string USERID { get; set; } /// /// 用户名称 /// [Description("用户名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string USERNAME { get; set; } /// /// 用户编号 /// [Description("用户编号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string USERCODE { get; set; } /// /// 设备主键 /// [Description("设备编号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.combobox)] public string MACHINEID { get; set; } public string MACHINENAME { get; set; } public string MACHINECODDE { 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; } /// /// 设备id /// [Description("设备id")] public string MachineIds { get; set; } /// /// 编辑标记 /// [Description("编辑标记")] public string EDITFLAG { get; set; } } }