Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MySubjectUserApply.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectUserApply.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectUserApply" %> <div class="well"> <div class="p_title"> <span class="title">???????????</span>???????????<span> <%= this.Subject._ListSubjectUserApply.Count %>?????? </span><span class="f_r"> <%= new MySubjectNavInstance(this) { Local = "?????" }.ToHtml()%> </span> </div> <div class="dataControl box"> <%= new HtmlButton("???", "SubjectUserApplyBatchDelete(this);")%> </div> <div id="MySubjectUserApplyData" 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">??? </td> <td valign="middle" class="disabled">??? </td> <td valign="middle" class="disabled">??? </td> <td valign="middle" class="disabled" style="width: 100px;">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubjectUserApply.Count - 1; i++) { var meetingUserApply = this.ListSubjectUserApply[i]; var user = this.ListSubjectUserApply[i].ParentUser; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectUserApply.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(meetingUserApply.Guid, meetingUserApply.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <%= user.ParentUserType.ParentDomain.Name %> <br /> <%= user.UserName %> ( <%= user.TrueName %> ) </td> <td> <%= user.ParentUserType.Name %> </td> <td> <%= user.MobilePhone %> <br /> <%= user.Email %> <br /> </td> <td> <%= meetingUserApply.ApplyTime %> <br /> <%= meetingUserApply.ApplyRemark %> </td> <td class="action"> <%= new HtmlSelect("ApplyStatus", "Value", "Key", "Key") { ID = "ApplyStatus" + SetKey(meetingUserApply.Guid, meetingUserApply.Version), SelectedValue = meetingUserApply.ApplyStatus, Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectUserApplyApplyStatusEnum) }%> <br /> <% if (meetingUserApply.ConfirmTime != null) { %> <%= meetingUserApply.ConfirmTime.ToLongDate() %> <br /> <% if (!string.IsNullOrEmpty(meetingUserApply.ConfirmRemark)) { //?????? %> <%= meetingUserApply.ConfirmRemark %> <br /> <% } } %> <a href="#Confirm" onclick="SubjectUserApplyConfirm(this,'<%= SetKey(meetingUserApply.Guid, meetingUserApply.Version) %>'); return false;">???</a>| <a href="#delete" onclick="SubjectUserApplyDelete(this,'<%= SetKey(meetingUserApply.Guid, meetingUserApply.Version) %>'); return false;">???</a></td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectUserApplyData .trselall").click(function () { if (this.checked == true) { $("#MySubjectUserApplyData .trsel").attr("checked", "checked"); } else { $("#MySubjectUserApplyData .trsel").removeAttr("checked"); } }) function SelectMySubjectUserApplyAll() { var bool = $("#MySubjectUserApplyData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectUserApplyData .trsel").attr("checked", "checked"); $("#MySubjectUserApplyData .trselall").attr("checked", "checked"); } else { $("#MySubjectUserApplyData .trsel").removeAttr("checked"); $("#MySubjectUserApplyData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function SubjectUserApplyBatchDelete(send) { var items = $("#MySubjectUserApplyData .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.SubjectUserApplyBatchDelete", 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 SubjectUserApplyDelete(send, pkid) { if (confirm("???????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserApplyDelete", 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 SubjectUserApplyConfirm(send, pkid) { if (confirm("???????????????????????????????????") == true) { var confirmRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectUserApplyConfirm", data: "key=" + pkid + "&ConfirmRemark=" + encodeURIComponent(confirmRemark) + "&ApplyStatus=" + $("#ApplyStatus" + pkid).val() + "&GuestType=" + $("#GuestType" + pkid).val(), 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); } }); } }; </script> <div> <a onclick="SelectMySubjectUserApplyAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de