using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Html; using QMAPP.Web; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; namespace QMAPP.Web.Models.Sys { /// /// 作 用:文件信息页面模型 /// 作 者:王丹丹 /// 编写日期:2015年03月17日 /// public class FileInfoModel : QDGModel { public FileInfoModel() { this.propertyParameter = new Dictionary(); //添加表格点击事件 this.propertyParameter.Add("onClickCell", "function (rowIndex, field, value) {ClickGridCell(rowIndex, field, value);}"); } /// ///文件信息主键 /// [Description("文件信息主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// ///文件名 /// [Description("文件名")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200, Width = 275)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left, Linked = true)] public string FILENAME { get; set; } /// ///文件名 /// [Description("文件名")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] [InputType(inputType.text)] public string FILENAMETXT { get; set; } /// ///文件存储名 /// [Description("文件存储名")] [InputType(inputType.hidden)] public string FileStorageNameTxt { get; set; } /// ///文件存储名 /// [Description("文件存储名")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] [InputType(inputType.text)] public string FILESTORAGENAME { get; set; } //附件名称 public string ATTACHFILETXT { get; set; } /// ///文件描述 /// [Description("文件描述")] [HTMLInput(UpdateRead = false, MaxLength = 300, Width = 275, Height = 80)] [InputType(inputType.textArea)] [DGColumn(Sortable = true, Width = 200, DataAlign = DataAlign.left)] public string REMARK { get; set; } /// ///分类 /// [Description("分类")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 10, Width = 280, JsonUtl = "/FileInfo/GetTypeComboxSource")] [InputType(inputType.combobox)] public string TYPENO { get; set; } /// /// 分类 /// [Description("分类")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string TYPENAME { get; set; } /// /// 用户编号 /// [Description("用户编号")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(Hidden = true)] public string OrgaID { get; set; } /// /// 是否编辑画面 /// public string isEdit { get; set; } /// /// 创建人 /// [Description("创建人")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] public string CREATEUSER { get; set; } /// /// 创建人 /// [Description("创建人")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CREATEUSERNAME { get; set; } /// /// 创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)] [InputType(inputType.datebox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime CREATEDATE { get; set; } } }