Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MyApplication.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyApplication.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyApplication" %> <div class="box well"> <div class="p_title"> <span class="title">????????</span>???<%= this.Query.RecordCount%>????? </div> <div class="dataControl box"> <form id="frmApplicationSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlSelect("Name", "Name", "Guid", "Guid") { Option = this.ListRecordEquipment }.InsertOption("::???::", "", 0).SelectValue(this.Name)%> ????? <%= new HtmlText("StartTime", this.StartTime.ToLongDate()) { Width = 120 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 120 }%> <%= new HtmlHidden("Key","MyApplication") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("??????...", "window.location.href='" + WebUrl.MyApplicationAdd() + "';")%> <%= new HtmlButton("???", "ApplicationBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmApplicationSearch [name=StartTime]").datetimepicker({ //maxDate: new Date($("#frmApplicationSearch [name=EndTime]").val()), onClose: function () { //$("#frmApplicationSearch [name=EndTime]").datetimepicker("option", "minDate", new Date(this.value)); } }); $("#frmApplicationSearch [name=EndTime]").datetimepicker({ //minDate: new Date($("#frmApplicationSearch [name=StartTime]").val()), onClose: function () { //$("#frmApplicationSearch [name=StartTime]").datetimepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function ApplicationBatchDelete(send) { var items = $("#MyApplicationData .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.ApplicationBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmApplicationSearch").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 ApplicationDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ApplicationDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("?????????") Global.Disabled(send, false); $("#frmApplicationSearch").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="MyApplicationData" 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" class="disabled">???? </td> <td valign="middle" class="disabled">?????? </td> <td valign="middle" class="disabled">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListApplication.Count - 1; i++) { var application = this.ListApplication[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListApplication.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(application.Guid, application.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <ul> <li> <p> <%= new HtmlAnchor(application.ParentRecordEquipment.Name) { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%> <span> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationShareEnum)application.Share).Define() %> </span> <br /> <% if (!string.IsNullOrEmpty(application.Title) && !string.IsNullOrEmpty(application.Title)) { %> <span class="pass"> <%= application.Title%> (<%= application.Speaker%>) </span> <% } %> <br /> <%= ViewData.Val("ParentGrade.Name", application) %> </p> </li> </ul> </td> <td> <% if (application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.??? || application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.???) { %> <span class="pass"> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define() %> </span> <br /> <%= new HtmlSpan(application.DealRemark) { Title=application.DealTime.ToString() + ":" + application.DealRemark, WideWord= true,Suffix="...", TextLength=12 }%> <%= new HtmlSpan(application.ConfirmRemark) { Title = application.ConfirmTime.ToString() + ":" + application.ConfirmRemark, WideWord= true,Suffix="...", TextLength=12 }%> <% } else if (application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.??? || application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.???) { %> <span style="color: Red"> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define()%> </span> <br /> <%= new HtmlSpan(application.CancelRemark) { Title = application.CancelTime.ToString() + ":" + application.CancelRemark, WideWord= true,Suffix="...", TextLength=12 }%> <% } else { %> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define()%> <% } %> </td> <td> <%= application.ApplicationDate.ToShortDate() %> <br /> <%= application.StartTime.ToShortTimeString() %> ?? <%= application.EndTime.ToShortTimeString()%> </td> <td> <%= new HtmlAnchor("???") { Href = WebUrl.MyApplicationAttachmentList(application.Guid) }%> <% if (CreateInstance.ApplicationDao.TheEnd(application) == false) { %> | <%= new HtmlAnchor("???") { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%> <% } else { %> } <%= new HtmlAnchor("???") { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%> <% } %> <% if (DateTime.Now.Date <= application.EndTime.Date) { %> | <%= new HtmlAnchor("???") { Href = WebUrl.MyApplicationAdd(application.Guid) }%> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyApplicationData .trselall").click(function () { if (this.checked == true) { $("#MyApplicationData .trsel").attr("checked", "checked"); } else { $("#MyApplicationData .trsel").removeAttr("checked"); } }) function SelectMyApplicationAll() { var bool = $("#MyApplicationData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyApplicationData .trsel").attr("checked", "checked"); $("#MyApplicationData .trselall").attr("checked", "checked"); } else { $("#MyApplicationData .trsel").removeAttr("checked"); $("#MyApplicationData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyApplicationAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageRecordSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyApplication(int.MaxValue, this.Name, this.StartTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de