Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyRecordVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyRecordVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyRecordVideo" %> <%= new MyApplicationNavTopInstance(this) { Local= MyApplicationNavTopItem.?????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">???????????</span>???<%= this.Query.RecordCount%>???????? </div> <div class="dataControl box"> <form id="frmRecordVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 110 }%> ????? <%= new HtmlText("StartTime", this.StartTime.ToLongDate()) { Width = 110 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 110 }%> <%= new HtmlHidden("Key","MyRecordVideo") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("?????????", "RecordVideoDownload(this);")%> <%= new HtmlButton("???", "RecordVideoBatchDelete(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmRecordVideoSearch [name=StartTime]").datetimepicker({ //maxDate: new Date($("#frmRecordVideoSearch [name=EndTime]").val()), onClose: function () { //$("#frmRecordVideoSearch [name=EndTime]").datetimepicker("option", "minDate", new Date(this.value)); } }); $("#frmRecordVideoSearch [name=EndTime]").datetimepicker({ //minDate: new Date($("#frmRecordVideoSearch [name=StartTime]").val()), onClose: function () { //$("#frmRecordVideoSearch [name=StartTime]").datetimepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function RecordVideoBatchDelete(send) { var items = $("#MyRecordVideoData .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.RecordVideoBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmRecordVideoSearch").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 RecordVideoDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.RecordVideoDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); $("#frmRecordVideoSearch").submit(); }, 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> <% if (1 == 0) { %> <script type="text/javascript"> function RecordVideoDownload(send) { var items = $("#MyRecordVideoData .trsel:checked"); if (items != null && items.length != 0) { if (confirm("????????????????????????????????????????????????????????IE???????????????????????????????????????????????????????????????????????") == true) { for (var i = 0; i <= items.length - 1; i++) { var spanDownloadStatus = $(items[i]).parent().parent().find(".DownloadStatus"); $(items[i]).parent().parent().find(".DownloadStatus").html("??????"); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.RecordVideoDownload", data: "key=" + items[i].value, async: false, dataType: 'json', success: function (result) { $("#download" + items[i].lang).html(result.Message); if (result.Message == "?????") { alert("?????????????????????????????"); } else if (result.Message == "?????") { $("#aCovert" + items[i].lang).show(); } }, beforeSend: function () { $("#download" + items[i].lang).html("?????..."); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; $("#download" + items[i].lang).html(message); } }); } alert("?????????"); } } else { alert("????????????????????????"); } } </script> <% } else if (1 == 1) { %> <script type="text/javascript"> function RecordVideoDownload(send) { var items = $("#MyRecordVideoData .trsel:checked"); if (items != null && items.length != 0) { if (confirm("?????????????????????????????????????????????????????????????????????") == true) { for (var i = 0; i <= items.length - 1; i++) { var spanDownloadStatus = $(items[i]).parent().parent().find(".DownloadStatus"); $(items[i]).parent().parent().find(".DownloadStatus").html("??????"); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.RecordVideoDownload", data: "key=" + items[i].value, async: false, dataType: 'json', success: function (result) { $("#download" + items[i].lang).html(result.Message.replace("???", "")); if (result.Message == "?????") { alert("?????????????????????????????"); } else if (result.Message == "?????") { $("#aCovert" + items[i].lang).show(); } if (result.Key == 3 || result.Key == 4 || result.Key == 5) { $("#downloadDetail" + items[i].lang).show(); } }, beforeSend: function () { $("#download" + items[i].lang).html("?????..."); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; $("#download" + items[i].lang).html(message); } }); } alert("??????????????????????????????"); } } else { alert("????????????????????????"); } } </script> <% } else { throw new Z.Core.Tools.ExceptionMessage("?????????"); } %> </div> <div id="MyRecordVideoData" 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.ListRecordVideo.Count - 1; i++) { var recordVideo = this.ListRecordVideo[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListRecordVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Lang = recordVideo.Guid, Value = SetKey(recordVideo.Guid, recordVideo.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <p> <% if ((recordVideo.DownloadStatus==(int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????? ||recordVideo.DownloadStatus==(int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????? ||recordVideo.DownloadStatus==(int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.??????) && FileExists(SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/", recordVideo.FileName)) { %> <%= new HtmlAnchor(recordVideo.FileName) { Href = WebUrl.Uri(SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/" + recordVideo.FileName) }%> <% } else { %> <%= recordVideo.FileName%> <% } %> </p> <% if (recordVideo.ToVideo > 0) { %> ?????<%= recordVideo.ToVideo %>?? <% } %> </li> </ul> </td> <td> <%= ViewData.Val("ParentRecordEquipment.Name", recordVideo)%> </td> <td> <%= recordVideo.StartTime.ToLongDate() %> <br /> ?? <br /> <%= recordVideo.EndTime.ToLongDate() %> </td> <td><span id="download<%= recordVideo.Guid%>" class="DownloadStatus"> <%= (recordVideo.DownloadStatus != null ? ((AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum)recordVideo.DownloadStatus).Define() : null).Replace("???","")%> </span> <br /> <%= new HtmlAnchor("??????") { ID="downloadDetail" + recordVideo.Guid, Href = WebUrl.MyRecordVideoDownloadDetail(recordVideo.Guid) }.Style(new { Display = "None" })%> <% if (recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.???????? || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.???????????? || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????????? || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????? || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????? || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.??????) { %> <script type="text/javascript"> $("#downloadDetail<%= recordVideo.Guid %>").show(); </script> <% } %> <%-- <%= AVA.ResourcesPlatform.Config.Helper.FormatSize(recordVideo.FileSize.ToDouble())%>--%> </td> <td> <% if ((recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????? ||recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.????? || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.??????) && FileExists(SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/", recordVideo.FileName)) { %> <%= new HtmlAnchor("??????") { Href = WebUrl.MyVideoUpload(recordVideo.Guid) }%> <% } else { %> <%--<%= System.Web.HttpContext.Current.Server.MapPath("~" + SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/" + recordVideo.FileName) %> <%= System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("~" + SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/" + recordVideo.FileName)) %>--%> <%= new HtmlAnchor("??????") { ID = "aCovert" + recordVideo.Guid, Href = WebUrl.MyVideoUpload(recordVideo.Guid) }.Style(new { Display = "none" })%> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyRecordVideoData .trselall").click(function () { if (this.checked == true) { $("#MyRecordVideoData .trsel").attr("checked", "checked"); } else { $("#MyRecordVideoData .trsel").removeAttr("checked"); } }) function SelectMyRecordVideoAll() { var bool = $("#MyRecordVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyRecordVideoData .trsel").attr("checked", "checked"); $("#MyRecordVideoData .trselall").attr("checked", "checked"); } else { $("#MyRecordVideoData .trsel").removeAttr("checked"); $("#MyRecordVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyRecordVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyRecordVideo(int.MaxValue, this.Name, this.StartTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de