Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyGroupMeeting.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGroupMeeting.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGroupMeeting" %> <div class="box well"> <div class="p_title"> <span class="title">????????</span> ???<%= this.Query.RecordCount %>???????? </div> <div class="dataControl box"> <form id="frmGroupMeetingSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 80 }%> ??? <%= new HtmlSelect("LockMeeting", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum) }.InsertOption("::???::", "", 0).SelectValue(this.LockMeeting)%> ????? <%= new HtmlSelect("Examine", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum) }.InsertOption("::???::", "", 0).SelectValue(this.Examine)%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToLongDate()) { Width = 120 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 120 }%> <%= new HtmlHidden("Key","MyGroupMeeting") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> </form> <script type="text/javascript"> $(function () { $("#frmGroupMeetingSearch [name=BeginTime]").datetimepicker({ //maxDate: new Date($("#frmGroupMeetingSearch [name=EndTime]").val()), onClose: function () { //$("#frmGroupMeetingSearch [name=EndTime]").datetimepicker("option", "minDate", new Date(this.value)); } }); $("#frmGroupMeetingSearch [name=EndTime]").datetimepicker({ //minDate: new Date($("#frmGroupMeetingSearch [name=BeginTime]").val()), onClose: function () { //$("#frmGroupMeetingSearch [name=BeginTime]").datetimepicker("option", "maxDate", new Date(this.value)); } }); }); </script> </div> <div id="MyGroupMeetingData" 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"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListMeeting.Count - 1; i++) { var meeting = this.ListMeeting[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListMeeting.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(meeting.Guid, meeting.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.MeetingCover(meeting), meeting.Name) { Width=100, Height=62 } ) { Title=meeting.Name, Href = WebUrl.MeetingView(meeting.Guid), Target = "_blank" }%> </li> <li> <p> <%= new HtmlAnchor(meeting.Name) { Href = WebUrl.MeetingView(meeting.Guid), Target = "_blank" }%> <br /> <% var classExamine = ""; if (meeting.Examine == (int)AVA.ResourcesPlatform.Model.Pub.MeetingExamineEnum.??????) { classExamine = "pass"; } else if (meeting.Examine == (int)AVA.ResourcesPlatform.Model.Pub.MeetingExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine %>"> <nobr> <%= ((AVA.ResourcesPlatform.Model.Pub.MeetingExamineEnum)meeting.Examine).Define() %> </nobr> </span> <% if (meeting.LockMeeting == (int)AVA.ResourcesPlatform.Model.Pub.MeetingLockMeetingEnum.???) { %> <%= new HtmlSpan("???") { Title = meeting.ParentLockUser.UserName + " " + meeting.LockDateTime + " " + meeting.LockDescription }.Style(new { Color = "Red" })%> <% } %> <br /> <% if (meeting.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.MeetingShareUploadEnum.??) { %> ?????? <% } %> ?????<%= meeting.VideoView%> ?????<%= meeting.CommentCount%> </p> </li> </ul> </td> <td> <% var classStatus = ""; if (meeting.Status == (int)AVA.ResourcesPlatform.Model.Pub.MeetingStatusEnum.??? || meeting.Status == (int)AVA.ResourcesPlatform.Model.Pub.MeetingStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "MeetingChangeStatusClient(this,'" + SetKey(meeting.Guid, meeting.Version) + "');", Lang = meeting.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.MeetingStatusEnum), SelectedValue = meeting.Status }%> </span> </td> <td> <%= meeting.BeginTime.ToLongDate() %> <br /> ?? <br /> <%= meeting.EndTime.ToLongDate() %> </td> <td> <%= meeting.CutoffTime.ToLongDate() %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyGroupMeetingData .trselall").click(function () { if (this.checked == true) { $("#MyGroupMeetingData .trsel").attr("checked", "checked"); } else { $("#MyGroupMeetingData .trsel").removeAttr("checked"); } }) function SelectMyGroupMeetingAll() { var bool = $("#MyGroupMeetingData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyGroupMeetingData .trsel").attr("checked", "checked"); $("#MyGroupMeetingData .trselall").attr("checked", "checked"); } else { $("#MyGroupMeetingData .trsel").removeAttr("checked"); $("#MyGroupMeetingData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyGroupMeetingAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyGroupMeeting(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null), this.LockMeeting.ToString(null), this.Examine.ToString(null)) }.ToHtml()%> <div class="dataControl box"> <%= new HtmlButton("???", "MeetingBatchLock(this);")%> <%= new HtmlButton("???", "MeetingBatchUnLock(this);")%> <%= new HtmlButton("??????", "MeetingBatchExamine(this);")%> <%= new HtmlButton("????????", "MeetingBatchUnExamine(this);")%> <%= new HtmlButton("???", "MeetingBatchDelete(this);")%> </div> </div> <script type="text/javascript"> //?????? function MeetingBatchDelete(send) { var items = $("#MyMeetingData .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.MeetingBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmMeetingSearch").submit(); }, 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 MeetingChangeStatusClient(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MeetingChangeStatus", data: "key=" + pkid + "&Status=" + $(send).val(), async: true, dataType: 'json', success: function (result) { alert("?????????????") send.lang = send.value; Global.Disabled(send, false); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.value = send.lang; var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } }; //?????? function MeetingBatchLock(send) { var items = $("#MyGroupMeetingData .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) { var lockDescription = window.prompt("?????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MeetingBatchLock", data: key + "&LockDescription=" + encodeURIComponent(lockDescription), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmGroupMeetingSearch").submit(); }, 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 MeetingBatchUnLock(send) { var items = $("#MyGroupMeetingData .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.MeetingBatchUnLock", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????") Global.Disabled(send, false); $("#frmGroupMeetingSearch").submit(); }, 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 MeetingBatchExamine(send) { var items = $("#MyGroupMeetingData .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.MeetingBatchExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("????????????") Global.Disabled(send, false); $("#frmGroupMeetingSearch").submit(); }, 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 MeetingBatchUnExamine(send) { var items = $("#MyGroupMeetingData .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.MeetingBatchUnExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("????????"); alert("??????????????") Global.Disabled(send, false); $("#frmGroupMeetingSearch").submit(); }, 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("????????????????????"); } }; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de