Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyPublicClassUser.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyPublicClassUser.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyPublicClassUser" %> <%= new MyPublicClassNavInstance(this) { Local = MyPublicClassNavItem.?????????, PublicClass = this.PublicClass }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title"><%= Define.Get("Client_?????")%>?????<%= this.ListPublicClassUser.Count %>????????</span> </div> <div class="dataControl "><form> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal btn btn-warning" href="#">?????????</a> <%--<input type="button" value="?????????" onclick="ExprotExcelXML(this);" class="btn btn-warning" title="????????????"/>--%> <%= new HtmlButton("???", "PublicClassUserBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <form id="frmExprotExcelXML" method="post" action="<%= WebUrl.Exprot() %>"> <%= new HtmlHidden("ExprotExcelXMLParameter", this.PublicClass.Guid)%> <%= new HtmlHidden("ExprotKey","PublicClassUser") %> </form> </div> <script type="text/javascript"> //$(document).on("hidden", "#sharedModal", function () { // location.reload(); // //}); $(".add-item-by-modal").on("click", function () { var url = "/My/PublicClassUserAdd.aspx?Guid=<%= this.PublicClass.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()).css("height", $($("#iframeControl")[0].contentDocument).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="MyPublicClassUserData" 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" class="disabled" style="width: 100px;"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListPublicClassUser.Count - 1; i++) { var publicClassUser = this.ListPublicClassUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListPublicClassUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(publicClassUser.Guid, publicClassUser.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= publicClassUser.ParentUser.ParentDomain.Name %> <br /> <%= publicClassUser.ParentUser.TrueName %> <%= publicClassUser.ParentUser.UserName %> </td> <td class="action"> <%= publicClassUser.ParentUser.ParentDomain.Name %> </td> <td class="action"> <a href="#delete" onclick="PublicClassUserDelete(this,'<%= SetKey(publicClassUser.Guid, publicClassUser.Version) %>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyPublicClassUserData .trselall").click(function () { if (this.checked == true) { $("#MyPublicClassUserData .trsel").attr("checked", "checked"); } else { $("#MyPublicClassUserData .trsel").removeAttr("checked"); } }) function SelectMyPublicClassUserAll() { var bool = $("#MyPublicClassUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyPublicClassUserData .trsel").attr("checked", "checked"); $("#MyPublicClassUserData .trselall").attr("checked", "checked"); } else { $("#MyPublicClassUserData .trsel").removeAttr("checked"); $("#MyPublicClassUserData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function PublicClassUserBatchDelete(send) { var items = $("#MyPublicClassUserData .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_?????")%>??????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PublicClassUserBatchDelete", 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 PublicClassUserDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_?????")%>??????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PublicClassUserDelete", 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); } }); } }; </script> <div> <a onclick="SelectMyPublicClassUserAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de