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 UserModel : QDGModel { public UserModel() { //设置页尺寸 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,CustomType = "NOCHS")] [InputType(inputType.text)] [DGColumn(frozenColumns=true,Sortable = true, Width = 100)] public string LoginUserID { get; set; } /// /// 员工号 /// [Description("员工号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 15, CustomType = "NOCHS")] [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, 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 = 60, DataAlign = DataAlign.left)] [ModelDictionary] public string UserType { get; set; } /// /// 激活 /// [Description("激活")] public bool CkActivateFlg { 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; } /// /// 删除标识 /// [InputType(inputType.hidden)] public string DelFlag { get; set; } /// /// 创建日期 /// [InputType(inputType.hidden)] public DateTime CreateTime { get; set; } /// /// 创建人 /// [InputType(inputType.hidden)] public string CreateUser { get; set; } /// /// 更新日期 /// [InputType(inputType.hidden)] public DateTime UpdateTime { get; set; } /// /// 更新人 /// [InputType(inputType.hidden)] public string UpdateUser { get; set; } /// /// 选择的角色 /// [InputType(inputType.hidden)] public string SelectedRoles { get; set; } ///// ///// 选择的权限 ///// //[InputType(inputType.hidden)] //public string SelectedPowers { get; set; } /// /// 已选择权限 /// public string SelectedPowers1 { get; set; } /// /// 已选择权限 /// public string SelectedPowers2 { get; set; } /// /// 已选择权限 /// public string SelectedPowers3 { get; set; } /// /// 已选择权限 /// public string SelectedPowers4 { get; set; } /// /// 已选择权限 /// public string SelectedPowers5 { get; set; } /// /// 选择的组织机构 /// [InputType(inputType.hidden)] public string SelectedOrgas { get; set; } /// /// 是否编辑画面 /// public string isEdit { get; set; } } }