using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc.Html; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI; using System.Web.Mvc; using QMAPP.Entity.Sys; namespace QMAPP.Web.Models.Sys { /// /// 通知模型 /// 创建者:王丹丹 /// 创建日期:2015-03-09 /// public class NoticeInfoModel : QDGModel { public List listModel { get; set; } public List listNoticeModel { get; set; } public UserOrgaizationModel UOModel { get; set; } public NoticeInfoModel() { listModel = new List(); 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 NOTICEID { get; set; } /// ///通知标题 /// [Description("通知标题")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.left, Linked = true)] public string NOTICETITLE { get; set; } /// ///通知类型(1:即时通知,2:普通通知) /// [Description("通知类型")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, JsonUtl = "/Notice/GetEquComboxSource")] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string NOTICETYPE { get; set; } /// ///通知内容 /// [Description("通知内容")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8000, Height = 90, Width = 400)] [InputType(inputType.textArea)] [DGColumn(frozenColumns = true, Hidden = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string NOTICECONTEXT { 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")] public DateTime USETIME { get; set; } /// ///通知日期开始 /// [Description("通知日期开始")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)] [InputType(inputType.datebox)] public string USETIMESTART { get; set; } /// ///通知日期结束 /// [Description("通知日期结束")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)] [InputType(inputType.datebox)] public string USETIMEEND { 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")] public DateTime OUTTIME { get; set; } /// ///附件 /// [Description("附件")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 100)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Hidden = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string ATTACHFILE { get; set; } //附件名称 public string ATTACHFILETXT { get; set; } /// ///是否可回复(0:不回复,1:回复) /// [Description("是否回复")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)] [InputType(inputType.hidden)] [DGColumn(frozenColumns = false, Sortable = true, Width = 80, DataAlign = DataAlign.left)] public string CANREPLY { get; set; } /// ///发送标志 /// [Description("发送标志")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Hidden = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string SENDFLG { get; set; } /// ///发送目标 /// [Description("发送目标")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2000, Height = 30, Width = 400)] [InputType(inputType.textArea)] [DGColumn(frozenColumns = false, Hidden = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string SENDAIM { get; set; } /// ///发送目标 /// [Description("发送目标")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 2000, Height = 30, Width = 400)] [InputType(inputType.textArea)] public string SENDAIMNAME { get; set; } /// ///发送时间 /// [Description("发送时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)] [InputType(inputType.datebox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime SENDTIME { get; set; } /// ///创建人 /// [Description("创建人")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string CREATEUSER { get; set; } /// ///创建时间 /// [Description("创建时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime CREATEDATE { get; set; } /// ///修改人 /// [Description("修改人")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string UPDATEUSER { get; set; } /// ///修改时间 /// [Description("修改时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime UPDATEDATE { get; set; } /// ///回复数量 /// [Description("回复数量")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string REPLYCOUNT { get; set; } /// /// 通知浏览记录列表字符串 /// public string INFOLIST { get; set; } ///发送目标ID /// [Description("发送目标ID")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 1000)] [InputType(inputType.hidden)] public string UserID { get; set; } /// /// 组织机构ID /// public string CorpID { get; set; } } }