Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyApplication.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyApplication.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyApplication" %> <%= new MyApplicationNavTopInstance(this) { Local= MyApplicationNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">???<%= this.Query.RecordCount %>?????????</span> </div> <div class="dataControl "> <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() + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("???", "ApplicationBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <script type="text/javascript"> $(function () { $("#frmApplicationSearch [name=StartTime]").datepicker({ //maxDate: new Date($("#frmApplicationSearch [name=EndTime]").val()), onClose: function () { //$("#frmApplicationSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmApplicationSearch [name=EndTime]").datepicker({ //minDate: new Date($("#frmApplicationSearch [name=StartTime]").val()), onClose: function () { //$("#frmApplicationSearch [name=StartTime]").datepicker("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("???"); flash("????????????") 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 { flash("??????????????????"); } }; //?????? 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("???"); flash("????????????") 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 >?????? </td> <td >?????? </td> <td >??? </td> <td >???? </td> <td >??? </td> <td >????? </td> <td >??? </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 > <% if (!string.IsNullOrEmpty(application.Title) && !string.IsNullOrEmpty(application.Title)) { %> <span class="pass"> <%= new HtmlAnchor(application.Title) { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank", Suffix="..", TextLength=10 }%> <%--(<%= application.Speaker%>)--%> </span> <% } %> </td> <td> <%--<%= new HtmlAnchor(application.ParentRecordEquipment.Name) { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%>--%> <%= application.ParentRecordEquipment.Name %> <%-- [ <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationShareEnum)application.Share).Define() %>] --%> </td> <td> <span><%--<%= application.ParentRecordEquipment.Name %>--%> <%--[ <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationShareEnum)application.Share).Define() %>]--%> <%= ViewData.Val("ParentGrade.Name", application) %> </span> </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() %> <%= application.StartTime.ToShortTimeString() %> ??<%= application.EndTime.ToShortTimeString()%> </td> <td> <%= application.Chatper %> </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, PageSize = 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