Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MySubjectUser.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectUser.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectUser" %> <div class="well"> <div class="p_title"> <span class="title">????????????????????</span> <span> <%= this.ListSubjectUser.Count %>????? </span><span class="f_r"> <%= new MySubjectNavInstance(this) { Local = "???" }.ToHtml()%> </span> </div> <div class="dataControl box"> <%= new HtmlButton("???...", "window.location.href='" + WebUrl.MySubjectUserAdd(this.Subject.Guid) + "';")%> <%= new HtmlButton("???", "SubjectUserBatchDelete(this);")%> </div> <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" 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.ParentUserType.ParentDomain.Name %> <br /> <%= subjectUser.ParentUser.TrueName %> <%= subjectUser.ParentUser.UserName %> </td> <td class="action"> <a href="#delete" onclick="SubjectUserDelete(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("???????????????????????") == 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("???"); alert("???????????????") 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 { alert("?????????????????????"); } }; //?????? function SubjectUserDelete(send, pkid) { if (confirm("?????????????????????") == 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("???"); alert("???????????????") 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) { alert("????????????") $("#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> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de