Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\ApplicationVideo\List.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.ApplicationVideo.List1" %> <table class="g-table-comm" cellpadding="2px" cellspacing="0px"> <tr class="thead"> <th class="wd0"> </th> <th> </th> <% foreach (var field in this.Fields) { switch (field) { case "ApplicationUserTrueName": //Application_UserTrueName_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_User.TrueName").ToScriptTag() %>',event)"> <%= Define.Get("Application_UserTrueName_??????").HtmlEncode() %> <%= OrderBy("_User.TrueName") %> </span> </th> <% break; case "ApplicationUserUserName": //Application_UserUserName_????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_User.UserName").ToScriptTag() %>',event)"> <%= Define.Get("Application_UserUserName_?????").HtmlEncode() %> <%= OrderBy("_User.UserName") %> </span> </th> <% break; case "ApplicationRecordEquipmentDomainName": //Application_RecordEquipmentDomainName_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_RecordEquipment._Domain.Name").ToScriptTag() %>',event)"> <%= Define.Get("Application_RecordEquipmentDomainName_??????").HtmlEncode() %> <%= OrderBy("_RecordEquipment._Domain.Name") %> </span> </th> <% break; case "ApplicationRecordEquipmentDomainCode": //Application_RecordEquipmentDomainCode_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_RecordEquipment._Domain.Code").ToScriptTag() %>',event)"> <%= Define.Get("Application_RecordEquipmentDomainCode_??????").HtmlEncode() %> <%= OrderBy("_RecordEquipment._Domain.Code") %> </span> </th> <% break; case "ApplicationRecordEquipmentName": //Application_RecordEquipmentName_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_RecordEquipment.Name").ToScriptTag() %>',event)"> <%= Define.Get("Application_RecordEquipmentName_??????").HtmlEncode() %> <%= OrderBy("_RecordEquipment.Name") %> </span> </th> <% break; case "RecordEquipmentStatus": //RecordEquipment_??????? %> <th> <span> <%# Define.Get("RecordEquipment_???????").HtmlEncode()%> </span> </th> <% break; case "ApplicationDate": //Application_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"ApplicationDate").ToScriptTag() %>',event)"> <%= Define.Get("Application_??????").HtmlEncode() %> <%= OrderBy("ApplicationDate") %> </span> </th> <% break; case "StartTime": //Application_??????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"StartTime").ToScriptTag() %>',event)"> <%= Define.Get("Application_???????").HtmlEncode() %> <%= OrderBy("StartTime") %> </span> </th> <% break; case "EndTime": //Application_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"EndTime").ToScriptTag() %>',event)"> <%= Define.Get("Application_??????").HtmlEncode() %> <%= OrderBy("EndTime") %> </span> </th> <% break; case "RecordVideoCount": //RecordEquipment_?????? %> <th> <span> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %> </span> </th> <% break; case "SortNumber": //Application_????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"SortNumber").ToScriptTag() %>',event)"> <%= Define.Get("Application_?????").HtmlEncode() %> <%= OrderBy("SortNumber") %> </span> </th> <% break; } %> <% } %> </tr> <% foreach (var item in this.ListData) { %> <tr class="trout"> <td class="wd0 summary"> </td> <td> <%-- <span id="divStart<%= item.Guid %>" style="display: none; float: left;" onclick="StartRecord('<%= item.Guid %>','<%= SetKey(item.ParentRecordEquipment.Guid, item.ParentRecordEquipment.Version) %>');"> <nobr> ?????? </nobr> </span><span id="divStop<%= item.Guid %>" style="display: none; float: left;" onclick="EndRecord('<%= item.Guid %>','<%= SetKey(item.ParentRecordEquipment.Guid,item.ParentRecordEquipment.Version) %>');"> <nobr> ?????? </nobr> </span><a id="avaView<%= item.Guid %>" style="display: none; float: left;" href="ava://<%= item.ParentRecordEquipment.IPAddress %>:<%= item.ParentRecordEquipment.RecordPort %>/?PID=<%= item.ParentRecordEquipment.ProgramID %>&user=<%= item.ParentRecordEquipment.LoginNameView %>&password=<%= item.ParentRecordEquipment.PasswordView %>"> ???</a>--%> </td> <% foreach (var field in this.Fields) { switch (field) { case "ApplicationUserTrueName": %> <td> <span title="<%= ViewData.Val("ParentUser.TrueName", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentUser.TrueName", item) %> </span> </td> <% break; case "ApplicationUserUserName": %> <td> <span title="<%= ViewData.Val("ParentUser.UserName", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentUser.UserName", item) %> </span> </td> <% break; case "ApplicationRecordEquipmentDomainName": %> <td> <span title="<%= ViewData.Val("ParentRecordEquipment.ParentDomain.Name", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentRecordEquipment.ParentDomain.Name", item) %> </span> </td> <% break; case "ApplicationRecordEquipmentDomainCode": %> <td> <span title="<%= ViewData.Val("ParentRecordEquipment.ParentDomain.Code", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentRecordEquipment.ParentDomain.Code", item) %> </span> </td> <% break; case "ApplicationRecordEquipmentName": %> <td> <span title="<%= ViewData.Val("ParentRecordEquipment.Name", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentRecordEquipment.Name", item) %> </span> </td> <% break; case "RecordEquipmentStatus": %> <td> <span id="spn<%= item.Guid %>">?????... </span> <script type="text/javascript"> RecordEquipmentAjax.GetRecordEquipmentStatus("<%= SetKey(item.ParentRecordEquipment.Guid,item.ParentRecordEquipment.Version) %>", null, function (result) { $("#spn<%= item.Guid %>").html(result.Data); if (result.Data == "??????") { $("#divStart<%= item.Guid %>").show(); $("#avaView<%= item.Guid %>").hide(); } else { $("#divStart<%= item.Guid %>").hide(); $("#avaView<%= item.Guid %>").show(); } if (result.Data == "?????") { $("#divStop<%= item.Guid %>").show(); $("#avaView<%= item.Guid %>").show(); } else { $("#divStop<%= item.Guid %>").hide(); $("#avaView<%= item.Guid %>").hide(); } setInterval(function () { $("#spn<%= item.Guid %>").html("?????..."); RecordEquipmentAjax.GetRecordEquipmentStatus("<%= SetKey(item.ParentRecordEquipment.Guid,item.ParentRecordEquipment.Version) %>", null, function (result) { $("#spn<%= item.Guid %>").html(result.Data); if (result.Data == "??????" || result.Data == "?????") { $("#divStart<%= item.Guid %>").show(); $("#avaView<%= item.Guid %>").hide(); } else { $("#divStart<%= item.Guid %>").hide(); $("#avaView<%= item.Guid %>").show(); } if (result.Data == "?????") { $("#divStop<%= item.Guid %>").show(); $("#avaView<%= item.Guid %>").show(); } else { $("#divStop<%= item.Guid %>").hide(); $("#avaView<%= item.Guid %>").hide(); } }); }, 30000); }); </script> </td> <% break; case "ApplicationDate": %> <td> <span title="<%= item.ApplicationDate.ToDateTimeN().ToAutoShortDate() %>"> <%= item.ApplicationDate.ToDateTimeN().ToAutoShortDate() %> </span> </td> <% break; case "StartTime": %> <td> <span title="<%= item.StartTime.ToDateTimeN().ToAutoShortDate() %>"> <%= item.StartTime.ToDateTimeN().ToAutoShortDate() %> </span> </td> <% break; case "EndTime": %> <td> <span title="<%= item.EndTime.ToDateTimeN().ToAutoShortDate() %>"> <%= item.EndTime.ToDateTimeN().ToAutoShortDate() %> </span> </td> <% break; case "RecordVideoCount": %> <td> <span title="<%= item.EndTime.ToDateTimeN().ToAutoShortDate() %>"> <%= CreateInstance.ApplicationDao.RecordVideoCount(item.Guid) %> </span> </td> <% break; case "SortNumber": %> <td> <span> <%= item.SortNumber %> </span> </td> <% break; } } %> </tr> <% } %> </table>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de