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.Web.Models.Sys { public class UserListModel : QDGModel { public UserListModel() { //设置页尺寸 this.pageSize = MvcApplication.PageSize.ToString(); } /// /// 用户主键 /// [Description("用户编号")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden = true, PrimaryKey = true)] public string UserID { get; set; } /// /// 用户名 /// [Description("用户名 ")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns=true,Sortable = true, Width = 100)] public string LoginUserID { get; set; } /// /// 员工号 /// [Description("员工号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 100)] public string EmployeeNo { get; set; } /// /// 员工姓名 /// [Description("员工姓名")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 100)] public string UserName { get; set; } /// /// 密码 /// [Description("密码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50,Width=150)] [InputType(inputType.password)] public string PassWord { get; set; } /// /// 确认密码 /// [Description("确认密码")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50,Width=150)] [InputType(inputType.password)] public string RepartPassWord { get; set; } /// /// 组织结构 /// [Description("组织机构")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/User/GetOrgaList", Width = 155)] [InputType(inputType.combobox)] public string OrgaID { get; set; } /// /// 组织机构 /// [Description("组织机构")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 200)] public string OrgaDESC { get; set; } /// /// 用户类别 /// [Description("用户类别")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2, Width = 155)] [InputType(inputType.combobox)] [DGColumn(Sortable = true, Width = 100, DataAlign = DataAlign.left)] [ModelDictionary] public string UserType { get; set; } /// /// 激活 /// [Description("激活")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1,Width=155)] [InputType(inputType.combobox)] [DGColumn(Hidden = false, Sortable = true, Width = 40,DataAlign=DataAlign.center)] [ModelDictionary] public string ActivateFlg { get; set; } /// /// 电话 /// [Description("电话")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 200)] public string Tel { get; set; } /// /// 电子邮件 /// [Description("电子邮件")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 200)] public string Email { get; set; } } }