using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc.Html; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; namespace QMAPP.FJC.Web.Models { /// /// 用户信息模型 /// public class ExampleUserInfoModel : QDGModel { public ExampleUserInfoModel() { this.propertyParameter = new Dictionary(); //this.propertyParameter.Add("view", "detailview"); //this.propertyParameter.Add("detailFormatter", "function (rowIndex, rowData) { return showDetail(rowIndex, rowData); } "); //this.propertyParameter.Add("onExpandRow", "function (rowIndex,rowData){ openDetailView(rowIndex,rowData); }"); } /// /// 用户主键 /// [Description("用户主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden=true, PrimaryKey = true)] public string UserID { get; set; } /// /// 用户名 /// [Description("用户名")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string UserName { get; set; } /// /// 用户姓名 /// [Description("用户姓名")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 200, DataAlign = DataAlign.left)] public string UserDes { get; set; } /// /// 性别 /// [Description("性别")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1,Width=155)] [InputType(inputType.combobox)] [DGColumn(Sortable = true, Width = 40, DataAlign = DataAlign.left)] [ModelDictionary] public string Sex { get; set; } /// /// 组织机构 /// [Description("组织机构")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36, JsonUtl = "/Dict/GetOrganComboxDataSource", multiple = false,Width=155)] [InputType(inputType.combobox)] [DGColumn(Sortable = true, Width = 40, DataAlign = DataAlign.left)] public string OrganID { get; set; } /// /// 年龄 /// [Description("年龄")] [HTMLInput(UpdateRead = false, MaxLength = 3,NumberMax=100000000,NumberMin=0)] [InputType(inputType.text)] [DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center)] public int Age { get; set; } /// /// 职务 /// [Description("职务")] [HTMLInput(UpdateRead = false, MaxLength = 36)] [InputType(inputType.text)] public string PostInfo { get; set; } /// /// 出生日期 /// [Description("出生日期")] [HTMLInput(UpdateRead = false, MaxLength = 20)] [InputType(inputType.datebox)] [DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] public DateTime BirthDate { get; set; } /// /// 备注 /// [Description("备注")] [HTMLInput(UpdateRead = false,MaxLength = 100, Width = 150, Height = 50)] [InputType(inputType.textArea)] [DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center)] public string Remark { get; set; } [Description("创建时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] public DateTime CreateTime { get; set; } [Description("更新时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] [DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")] public DateTime UpdateTime { get; set; } } }