Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MySTUserAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySTUserAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTUserAdd" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.????????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">????????</span> <span>??????????????"<%= this.Subject.Name %>" </span><span class="f_r"> </span> </div> <div class="dataControl box"> <form id="frmUserSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlSelect("DomainGuid", "Name", "Guid", "Guid") { Width=120, Option = this.ListDomain, DefaultSelectValue = "", SelectedValue = this.DomainGuid }.InsertOption("::???::", "", 0)%> ?????? <%= new HtmlText("UserName", this.UserName) { Width = 80 }%> ???????? <%= new HtmlText("TrueName", this.TrueName) { Width = 80 }%> <%= new HtmlHidden("Key","MySTUserAdd") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???????????", "STUserBatchAdd(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmUserSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmUserSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmUserSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmUserSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmUserSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmUserSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function STUserBatchAdd(send) { var items = $("#MyUserData .trsel:checked"); var key = ""; var guestType = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); guestType += "GuestType=" + $(items[i]).parent().parent().find("[Name=GuestType]").val(); if (i != items.length - 1) { key += "&"; guestType += "&"; } } if (key != "") { //if (confirm("?????????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserBatchAdd", data: key + "&" + guestType, async: true, dataType: 'json', success: function (result) { $(send).val("???????????"); alert("????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MySTUserList(this.Subject.Guid) %>"; }, 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 STUserAdd(send, pkid) { //if (confirm("???????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserAdd", data: "key=" + pkid + "&GuestType=" + $(send).parent().parent().find("[Name=GuestType]").val(), async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MySTUserList(this.Subject.Guid) %>"; }, 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> <div id="MyUserData"> <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> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListUser.Count - 1; i++) { var user = this.ListUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(user.Guid + "," + this.Subject.Guid, user.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <%= user.ParentDomain.Name %> <br /> <%= user.UserName %> ( <%= user.TrueName %> ) </td> <td> <%= user.ParentUserType.Name %> </td> <td> <%= user.MobilePhone %> <br /> <%= user.Email %> </td> <td class="action"> <a href="#add" onclick="STUserAdd(this,'<%= SetKey(user.Guid + "," + this.Subject.Guid, user.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href = WebUrl.Show(user.ParentDomain.Guid, user.Guid) }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyUserData .trselall").click(function () { if (this.checked == true) { $("#MyUserData .trsel").attr("checked", "checked"); } else { $("#MyUserData .trsel").removeAttr("checked"); } }) function SelectMyUserAll() { var bool = $("#MyUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyUserData .trsel").attr("checked", "checked"); $("#MyUserData .trselall").attr("checked", "checked"); } else { $("#MyUserData .trsel").removeAttr("checked"); $("#MyUserData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyUserAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySTUserAdd(this.Subject.Guid, int.MaxValue, this.DomainGuid, this.UserName, this.TrueName) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de