Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MyGroupApplication.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGroupApplication.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGroupApplication" %> <div class="well"> <div class="p_title"> <span class="title">????????</span>???<%= this.Query.RecordCount %>???????? </div> <div class="dataControl box"> <form id="frmGroupApplicationSearch" 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 HtmlSelect("Status", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum) }.InsertOption("::???::", "", 0).SelectValue(this.Status)%> <%= new HtmlHidden("Key","MyGroupApplication") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "GroupApplicationBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmGroupApplicationSearch [name=StartTime]").datetimepicker({ //maxDate: new Date($("#frmGroupApplicationSearch [name=EndTime]").val()), onClose: function () { //$("#frmGroupApplicationSearch [name=EndTime]").datetimepicker("option", "minDate", new Date(this.value)); } }); $("#frmGroupApplicationSearch [name=EndTime]").datetimepicker({ //minDate: new Date($("#frmGroupApplicationSearch [name=StartTime]").val()), onClose: function () { //$("#frmGroupApplicationSearch [name=StartTime]").datetimepicker("option", "maxDate", new Date(this.value)); } }); }); </script> </div> <div id="MyGroupApplicationData" 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> <% } %> </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> <% } 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> <% } else { %> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define()%> <% } %> </td> <td> <%= application.ApplicationDate.ToShortDate() %> <br /> <%= application.StartTime.ToShortTimeString() %> ?? <%= application.EndTime.ToShortTimeString()%> </td> <td> <% if (application.ApplicationDate.Date == DateTime.Now.Date) { %> <%= new HtmlAnchor("???") { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyGroupApplicationData .trselall").click(function () { if (this.checked == true) { $("#MyGroupApplicationData .trsel").attr("checked", "checked"); } else { $("#MyGroupApplicationData .trsel").removeAttr("checked"); } }) function SelectMyGroupApplicationAll() { var bool = $("#MyGroupApplicationData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyGroupApplicationData .trsel").attr("checked", "checked"); $("#MyGroupApplicationData .trselall").attr("checked", "checked"); } else { $("#MyGroupApplicationData .trsel").removeAttr("checked"); $("#MyGroupApplicationData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyGroupApplicationAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageRecordSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyGroupApplication(int.MaxValue, this.Name, this.StartTime.ToString(null), this.EndTime.ToString(null), this.Status.ToString(null)) }.ToHtml()%> <div class="dataControl box"> <%= new HtmlButton("???", "ApplicationBatchApply(this);")%> <%= new HtmlButton("???", "ApplicationBatchConfirm(this);")%> <%= new HtmlButton("???", "ApplicationBatchCancel(this);")%> <%= new HtmlButton("???", "ApplicationBatchDelete(this);")%> </div> </div> <script type="text/javascript"> //?????? function ApplicationBatchDelete(send) { var items = $("#MyGroupApplicationData .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); $("#frmGroupApplicationSearch").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 ApplicationBatchApply(send) { var items = $("#MyGroupApplicationData .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) { var dealRemark = window.prompt("??????????????", "") $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ApplicationBatchApply", data: key + "&DealRemark=" + encodeURIComponent(dealRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmGroupApplicationSearch").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 ApplicationBatchCancel(send) { var items = $("#MyGroupApplicationData .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) { var cancelRemark = window.prompt("??????????????", "") $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ApplicationBatchCancel", data: key + "&CancelRemark=" + encodeURIComponent(cancelRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmGroupApplicationSearch").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 ApplicationBatchConfirm(send) { var items = $("#MyGroupApplicationData .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) { var confirmRemark = window.prompt("??????????????", "") $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ApplicationBatchConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmGroupApplicationSearch").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("???????????????"); } }; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de