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.Common.Web.Models { /// /// 查询模板编辑模型 /// 创建者:李炳海 /// 创建日期:2014.8.13 /// public class TemplateEditModel { /// /// 模板主键 /// [Description("模板主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] public string TEMPLATEID { get; set; } /// /// 模板名称 /// [Description("模板名称")] [HTMLInput(required = true, MaxLength = 50)] [InputType(inputType.text)] public string TEMPLATENAME { get; set; } /// /// 对应查询模板 /// [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.hidden)] public string QUERYPROGRAM { get; set; } /// /// 分页尺寸 /// [Description("分页尺寸")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/QueryTL/GetPageSizeList",multiple = false,Width=155)] [InputType(inputType.combobox)] public string PAGESIZE { get; set; } /// /// 是否公开 /// [Description("公开")] [HTMLInput(MaxLength = 1)] [InputType(inputType.combobox)] [ModelDictionary] public string ISPUBLISH { get; set; } /// /// 备注 /// [Description("备注")] [HTMLInput(MaxLength = 100, Width = 370, Height = 50)] [InputType(inputType.textArea)] public string REMARK { get; set; } /// /// 创建人 /// [Description("创建人")] [HTMLInput(UpdateRead = true, MaxLength = 36)] [InputType(inputType.text)] public string CREATEUSER { get; set; } /// /// 创建用户名称 /// [Description("创建用户")] [HTMLInput(UpdateRead = true, MaxLength = 50)] [InputType(inputType.text)] public string CREATEUSERNAME { get; set; } /// /// 创建日期 /// [Description("创建日期")] [HTMLInput(UpdateRead = true, MaxLength = 20,FormatDate="yyyy-MM-dd")] [InputType(inputType.text)] public DateTime CREATEDATE { get; set; } /// /// 更新人 /// [Description("更新人")] [HTMLInput(UpdateRead = true, MaxLength = 36)] [InputType(inputType.hidden)] public string UPDATEUSER { get; set; } /// /// 更新日期 /// [Description("更新日期")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.hidden)] public DateTime UPDATEDATE { get; set; } /// /// 对齐方式 /// [Description("公开")] [HTMLInput(MaxLength = 10)] [InputType(inputType.combobox)] [ModelDictionary] public string DATAALIGN { get; set; } /// /// 查询条件设置信息 /// public List Wheres { get; set; } /// /// 列设置信息 /// public List Columns { get; set; } /// /// 未选排序字段 /// public List UnSorts { get; set; } /// /// 已选排序字段 /// public List EnSorts { get; set; } } }