<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMessage" %> <%= new MyCommentManagerNavTopInstance(this) { Local= MyCommentManagerNavTopItem.系统消息 }.ToHtml()%>
系统消息
关键字: <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> 状态: <%= new HtmlSelect("IsRead", "Value", "Key", "Key") { Option=typeof(AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum), OnChange="ExcuteQuery();" }.InsertOption("::全部::","",0).SelectValue(this.IsRead)%> <%= new HtmlHidden("Key","MyMessage") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("删除", "MessageBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> <%= new HtmlButton("标记为已读", "MessageBatchReaded(this);") %> <%= new HtmlButton("全部已读", "MessageAllReaded(this);") %>
<% for (int i = 0; i <= this.ListMessage.Count - 1; i++) { var message = this.ListMessage[i]; var classStatus = ""; if (message.IsRead == (int)AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum.已查看) { classStatus = "readed"; } else { classStatus = ""; } %> <% } %>
消息信息  状态 消息日期 操作
<%= new HtmlCheckBox() { Value = SetKey(message.Guid, message.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>

<%= message.Description %>

<%= ((AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum)message.IsRead).Define() %> <%= message.AddTime.ToShortDate() %> 删除 <%-- <% if (message.Title != null) { %> 查看
<% } %> --%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyMessage(int.MaxValue, this.KeyWord, this.IsRead) }.ToHtml()%>