Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyShiXunNoWork.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyShiXunNoWork" %> <%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorkNavItem.???????????, Subject = this.Subject }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title"><%= Define.Get("Client_??????")%>?????<%= this.Query.RecordCount %>??<%= Define.Get("Client_??????")%>????????</span> </div> <div class="dataControl "> <form id="frmShiXunNoWork" method="post" action="<%= WebUrl.Proxy() %>"> ????????<%= new HtmlSelect("ClassGuid", "Name", "Guid", "Guid") { Option=this.ListClassInfo,SelectedValue=this.ClassGuid }.InsertOption("???",null,0)%> <%= new HtmlHidden("Key","MyShiXunNoWork") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlButton("???", "SubjectUserBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> <%= new HtmlButton("???", "RemindBatchUser(this);") { Class = "btn btn-warning pull-right" }.Style(new {Margin_Right="20px;" })%> </form> <form id="frmExprotExcelXML" method="post" action="<%= WebUrl.Exprot() %>"> <%= new HtmlHidden("ExprotExcelXMLParameter", this.Subject.Guid)%> <%= new HtmlHidden("ExprotKey","SubjectUser") %> </form> </div> <script type="text/javascript"> $(document).on("hidden", "#sharedModal", function () { location.reload(); }); $(".add-item-by-modal").on("click", function () { var url = "/My/SubjectUserAdd.aspx?Guid=<%= this.Subject.Guid%>"; $("#sharedModal #sharedModalLabel").html("????<%= Define.Get("Client_??????")%>"); $(".modal-body").css("height", $(window).height() * .7); $("#sharedModal").width($(window).width() * .9) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", "98%"); }); }); $(".add-classuser-item-by-modal").on("click", function () { var url = "/My/SubjectClassUserAdd.aspx?Guid=<%= this.Subject.Guid%>"; $("#sharedModal #sharedModalLabel").html("??????????"); $(".modal-body").css("height", $(window).height() * .7); $("#sharedModal").width($(window).width() * .9) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", "98%"); }); }); //????????? function ExprotExcelXML() { if (confirm("??????????????????????????") == false) { return false; } document.getElementById('frmExprotExcelXML').submit(); } </script> <div id="MySubjectUserData" 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"> ??????? </td> <td valign="middle"> ??????? </td> <td valign="middle" class="disabled" style="width: 100px;"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubjectUser.Count - 1; i++) { var subjectUser = this.ListSubjectUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(subjectUser.Guid, subjectUser.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> ??????<%= subjectUser.ParentUser.TrueName %><br /> ??????<%= subjectUser.ParentUser.UserName %> </td> <td class="action"> <%= subjectUser.ParentUser.ParentDomain.Name %> <td class="action"> <% var classUser = CreateInstance.ClassStudentDao.Where(l => l.ParentUser == subjectUser.ParentUser).FirstResult(); %> <%= classUser == null ? "??????" : classUser.ParentClassInfo.Name %> </td> <td class="action"> <a href="#delete" onclick="SubjectUserDelete(this,'<%= SetKey(subjectUser.Guid, subjectUser.Version) %>'); return false;">???</a><br /> <a href="#notice" onclick="RemindUser(this,'<%= SetKey(subjectUser.Guid, subjectUser.Version) %>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectUserData .trselall").click(function () { if (this.checked == true) { $("#MySubjectUserData .trsel").attr("checked", "checked"); } else { $("#MySubjectUserData .trsel").removeAttr("checked"); } }) function SelectMySubjectUserAll() { var bool = $("#MySubjectUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectUserData .trsel").attr("checked", "checked"); $("#MySubjectUserData .trselall").attr("checked", "checked"); } else { $("#MySubjectUserData .trsel").removeAttr("checked"); $("#MySubjectUserData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function SubjectUserBatchDelete(send) { var items = $("#MySubjectUserData .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("???????????<%= Define.Get("Client_??????") %><%= Define.Get("Client_??????")%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_??????") %>?????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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("???????????<%= Define.Get("Client_??????") %>????????"); } }; //?????? function SubjectUserDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_??????") %>?????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_??????") %>?????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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 RemindBatchUser(send) { var items = $("#MySubjectUserData .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 != "") { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.RemindBatchUser", data: key + "&SubjectGuid=<%=this.Subject.Guid%>", async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("??????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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("???????????<%= Define.Get("Client_??????") %>????????"); } }; //?????? function RemindUser(send, pkid) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.RemindUser", data: "key=" + pkid +"&SubjectGuid=<%=this.Subject.Guid%>", async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("??????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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 SubjectUserChangeGuestTypeClient(pkid, send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserChangeGuestType", data: "key=" + pkid + "&GuestType=" + $(send).val(), async: true, dataType: 'json', success: function (result) { flash("????????????") $("#GuestType" + pkid).val($(send).val()); Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); $(send).val($("#GuestType" + pkid).val()); var message = XMLHttpRequest.responseText; Global.Error(message); } }); }; </script> <div> <a onclick="SelectMySubjectUserAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyShiXunNoWork(this.Subject.Guid, int.MaxValue, this.ClassGuid) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de