Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyMessage.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMessage" %> <%= new MyMessageNavTopInstance(this) { Local= MyMessageNavTopItem.?????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title"><%= Define.Get("Client_??????") %>??</span> </div> <div class="dataControl box"> <form id="frmMessageSearch" method="post" action="<%= WebUrl.Proxy() %>"> ?????? <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> ????? <%= new HtmlSelect("IsRead", "Value", "Key", "Key") { Option=typeof(AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum) }.InsertOption("::???::","",0).SelectValue(this.IsRead)%> <%= new HtmlHidden("Key","MyMessage") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "MessageBatchDelete(this);")%> <%= new HtmlButton("????????", "MessageBatchReaded(this);") %> </form> <script type="text/javascript"> function MessageBatchReaded(send) { var items = $("#MyMessageData .trsel:checked"); var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { //if (confirm("?????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageBatchReaded", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, beforeSend: function () { $(send).val("??????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); //} } else { alert("???????????????"); } } //?????? function MessageBatchDelete(send) { var items = $("#MyMessageData .trsel:checked"); var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("?????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, beforeSend: function () { $(send).val("??????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } } else { alert("???????????????"); } }; //?????? function MessageDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, beforeSend: function () { $(send).html("?????"); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; </script> </div> <div id="MyMessageData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel" style="width: 20px;"> <input type="checkbox" class="trselall" /> </td> <td valign="middle">??????</td> <td valign="middle" width="60"> ???? </td> <td valign="middle" >??????</td> <td width="40">???</td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% 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 = ""; } %> <tr class='<%=classStatus %> <%= i == 0 ? "firstLine" : "" %> <%= i == this.ListMessage.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(message.Guid, message.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <p> <%= message.Description %> </td><td> <%= ((AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum)message.IsRead).Define() %> </td> <td> <%= message.AddTime.ToString("M/d/yyyy") %> </td> <td> <%--<a href="#delete" onclick="MessageDelete(this,'<%= SetKey(message.Guid, message.Version) %>'); return false;">???</a>--%> <% if (message.Title != null) { %> <%= new HtmlAnchor("???") { Href= WebUrl.MyMessageDetail(message.Guid) }%> <br /> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyMessageData .trselall").click(function () { if (this.checked == true) { $("#MyMessageData .trsel").attr("checked", "checked"); } else { $("#MyMessageData .trsel").removeAttr("checked"); } }) function SelectMyMessageAll() { var bool = $("#MyMessageData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyMessageData .trsel").attr("checked", "checked"); $("#MyMessageData .trselall").attr("checked", "checked"); } else { $("#MyMessageData .trsel").removeAttr("checked"); $("#MyMessageData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyMessageAll(); return false;">???? - ???</a> </div> <%= 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()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de