Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MySubjectUserAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectUserAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectUserAdd" %> <%--<%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.?????????, Subject = this.Subject }.ToHtml()%>--%> <div class="flat data-box"> <%--<div class="head"> <span class="title">?????????<%= Define.Get("Client_??????")%>"<%= this.Subject.Name %>" </span> <span></span> </div>--%> <div class="dataControl "> <form id="frmUserSearch" method="post" action="<%= WebUrl.Proxy() %>"> ?????? <%= new HtmlText("UserName", this.UserName) { Width = 80 }%> ????? <%= new HtmlText("TrueName", this.TrueName) { Width = 80 }%> <%= new HtmlHidden("Key","MySubjectUserAdd") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "SubjectUserBatchAdd(this);"){ Class="btn btn-warning pull-right" }%> </form> <script type="text/javascript"> function ChangeUnit(send) { var unitMasterGuid = $("#frmUserSearch [name=UnitMasterGuid]").val(); if (unitMasterGuid != "") { $("#spanUnit").html("????????????"); Global.HtmlControl("<%= ControlPath("/User/SelectUnit")%>", "ParentUnitMaster=" + encodeURIComponent(unitMasterGuid), null, function (result) { $("#spanUnit").html(result.Html); }); } else { //?????? $("#spanUnit").html('<input type="text" name="Msg" value="????????????" readonly="readonly" style="width:115px;" />'); } } $(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 SubjectUserBatchAdd(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("????????????????<%= Define.Get("Client_???") %>??????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserBatchAdd", data: key + "&" + guestType, async: true, dataType: 'json', success: function (result) { $(send).val("?????<%= Define.Get("Client_???") %>???"); flash("<%= Define.Get("Client_??????") %>?????????") Global.Disabled(send, false); //window.location.href = "<%= WebUrl.MySTUserList(this.Subject.Guid) %>"; window.location.href = "<%= WebUrl.MySubjectUserAdd(this.Subject.Guid) %>"; }, beforeSend: function () { $(send).val("??????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("?????<%= Define.Get("Client_???") %>???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } //} else { flash("???????????????"); } }; //?????? function SubjectUserAdd(send, pkid) { //if (confirm("??????????????<%= Define.Get("Client_???") %>??????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserAdd", data: "key=" + pkid + "&GuestType=" + $(send).parent().parent().find("[Name=GuestType]").val(), async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_??????") %>?????????") Global.Disabled(send, false); //window.location.href = "<%= WebUrl.MySTUserList(this.Subject.Guid) %>"; window.location.href = "<%= WebUrl.MySubjectUserAdd(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" 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> </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 %>?? <%= user.TrueName %> </td> <td> <%= user.ParentUserType.Name %> </td> <td> <%= user.MobilePhone %> </td> <td class="action"> <a href="#add" onclick="SubjectUserAdd(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.MySubjectUserAdd(this.Subject.Guid, int.MaxValue, this.DomainGuid, this.UserName, this.TrueName,this.ParentUnitGuid) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de