Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MySubjectApplication.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectApplication.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectApplication" %> <div class="well"> <div class="p_title"> <span class="title">???????????</span><%= this.Subject.Name %><span>??<%= this.Query.RecordCount %>?????</span><span class="f_r"> <%= new MySubjectNavInstance(this) { Local = "???" }.ToHtml()%> </span> </div> <div class="dataControl box"> <form id="frmSubjectApplicationSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("StartTime", this.StartTime.ToLongDate()) { Width = 120 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 120 }%> ???????? <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum) }.InsertOption("::???::", "", 0).SelectValue(this.ConfirmStatus)%> <%= new HtmlHidden("Key","MySubjectApplication") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("??????", "window.location.href='" + WebUrl.MySubjectApplicationAdd(this.Subject.Guid) + "';")%> <%= new HtmlButton("???", "SubjectApplicationBatchConfirm(this);")%> <%= new HtmlButton("???", "SubjectApplicationBatchUnConfirm(this);")%> <%= new HtmlButton("???", "SubjectApplicationBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmSubjectApplicationSearch [name=StartTime]").datetimepicker({ //maxDate: new Date($("#frmSubjectApplicationSearch [name=EndTime]").val()), onClose: function () { //$("#frmSubjectApplicationSearch [name=EndTime]").datetimepicker("option", "minDate", new Date(this.value)); } }); $("#frmSubjectApplicationSearch [name=EndTime]").datetimepicker({ //minDate: new Date($("#frmSubjectApplicationSearch [name=StartTime]").val()), onClose: function () { //$("#frmSubjectApplicationSearch [name=StartTime]").datetimepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function SubjectApplicationBatchDelete(send) { var items = $("#MySubjectApplicationData .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.SubjectApplicationBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectApplicationSearch").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 SubjectApplicationDelete(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectApplicationDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectApplicationSearch").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); } }); } }; //?????? function SubjectApplicationBatchConfirm(send) { var items = $("#MySubjectApplicationData .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.SubjectApplicationBatchConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectApplicationSearch").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 SubjectApplicationBatchUnConfirm(send) { var items = $("#MySubjectApplicationData .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.SubjectApplicationBatchUnConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectApplicationSearch").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> </div> <div id="MySubjectApplicationData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel"> <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> <td valign="middle" class="disabled">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubjectApplication.Count - 1; i++) { var subjectApplication = this.ListSubjectApplication[i]; var subject = this.ListSubjectApplication[i].ParentSubject; var application = this.ListSubjectApplication[i].ParentApplication; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectApplication.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(subjectApplication.Guid, subjectApplication.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <p> <%= new HtmlAnchor(application.ParentRecordEquipment.Name) { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%> <br /> <% 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()%> <% } %> <br /> <% if (!string.IsNullOrEmpty(application.Title) && !string.IsNullOrEmpty(application.Title)) { %> <span class="pass"> <%= application.Title%> (<%= application.Speaker%>) </span> <% } %> </p> </td> <td> <%= application.ParentUser.ParentUserType.ParentDomain.Name %> <br /> <%= new HtmlAnchor(application.ParentUser.TrueName) { Href = WebUrl.Show(application.ParentUser.ParentUserType.ParentDomain.Code, application.ParentUser.UserName) }%> ( <%= new HtmlAnchor(application.ParentUser.UserName) { Href = WebUrl.Show(application.ParentUser.ParentUserType.ParentDomain.Code, application.ParentUser.UserName) }%> ) </td> <td> <%= application.ApplicationDate.ToShortDate() %> <br /> <%= application.StartTime.ToShortTimeString() %> ?? <%= application.EndTime.ToShortTimeString()%> </td> <td><span>?????</span> <%= new HtmlSpan(subjectApplication.SubmissionTime.ToShortDate()) { Title = subjectApplication.SubmissionRemark }%> <br /> <% if (subjectApplication.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum.???) { %> <span class="pass">?????</span> <% } else if (subjectApplication.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum.???) { %> <span style="color: Red;">?????</span> <% } else if (subjectApplication.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum.?????) { %> <span>??????</span> <% } %> <%= new HtmlSpan(subjectApplication.ConfirmTime.ToShortDate()) { Title = subjectApplication.ConfirmRemark }%> </td> <td> <nobr> <a href="#delete" onclick="SubjectApplicationDelete(this,'<%= SetKey(subjectApplication.Guid, subjectApplication.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href = WebUrl.SubjectPlay(subject.Guid, application.Guid) }%> </nobr> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectApplicationData .trselall").click(function () { if (this.checked == true) { $("#MySubjectApplicationData .trsel").attr("checked", "checked"); } else { $("#MySubjectApplicationData .trsel").removeAttr("checked"); } }) function SelectMySubjectApplicationAll() { var bool = $("#MySubjectApplicationData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectApplicationData .trsel").attr("checked", "checked"); $("#MySubjectApplicationData .trselall").attr("checked", "checked"); } else { $("#MySubjectApplicationData .trsel").removeAttr("checked"); $("#MySubjectApplicationData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySubjectApplicationAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageRecordSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectApplication(this.Subject.Guid, int.MaxValue, this.StartTime.ToString(null), this.EndTime.ToString(null), this.ConfirmStatus.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de