Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyClassUserAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyClassUserAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyClassUserAdd" %> <%--<%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorktNavItem.??????, ClassInfo = this.ClassInfo }.ToHtml()%>--%> <div class="flat data-box"> <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","MyClassUserAdd") %> <%= new HtmlHidden("ParentClassInfo",this.ClassInfo.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "ClassUserBatchAdd(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 ClassUserBatchAdd(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 != "") { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ClassUserBatchAdd", data: key + "&" + guestType, async: true, dataType: 'json', success: function (result) { $(send).val("????????"); flash("????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyClassUserAdd(this.ClassInfo.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 { flash("???????????????"); } }; //??? function ClassUserAdd(send, pkid) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ClassUserAdd", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyClassUserAdd(this.ClassInfo.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.ClassInfo.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="ClassUserAdd(this,'<%= SetKey(user.Guid + "," + this.ClassInfo.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.MyClassUserAdd(this.ClassInfo.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