<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.List1" %> <% foreach (var field in this.Fields) { switch (field) { case "Status": //RecordEquipment_状态 %> <% break; case "RecordEquipmentDomainName": //RecordEquipment_DomainName_平台名称 %> <% break; case "RecordEquipmentDomainCode": //RecordEquipment_DomainCode_平台编码 %> <% break; case "Name": //RecordEquipment_设备名称 %> <% break; case "FactoryType": //RecordEquipment_录播设备厂家类型 %> <% break; case "RecordEquipmentPlaySaveServerName": //RecordEquipment_PlaySaveServerName_服务器名称 %> <% break; case "ProductVersion": //RecordEquipment_产品类别 %> <% break; case "IPAddress": //RecordEquipment_IP地址 %> <% break; case "WebPort": //RecordEquipment_Web端口 %> <% break; case "ProgramID": //RecordEquipment_节目ID %> <% break; case "RecordPort": //RecordEquipment_录播端口号 %> <% break; case "LoginName": //RecordEquipment_登录名 %> <% break; case "Password": //RecordEquipment_登录密码 %> <% break; case "RecordVideo1": //RecordEquipment_是否录制Video1 %> <% break; case "RecordVideo2": //RecordEquipment_是否录制Video2 %> <% break; case "RecordVGA": //RecordEquipment_录制VGA %> <% break; case "AutoRecord": //RecordEquipment_自动录制 %> <% break; case "Description": //RecordEquipment_描述 %> <% break; case "ASHas": //RecordEquipment_转播重编码 %> <% break; case "RecordEquipmentAgentServerName": //RecordEquipment_AgentServerName_服务器名称 %> <%-- <% break; case "AutoOpenTime": //RecordEquipment_自动开机时间 %> <% break; case "AutoCloseTime": //RecordEquipment_自动关机时间 %> --%> <% break; case "IsSwitchByOrder": //RecordEquipment_是否根据预约时间开关机 %> <% break; case "OnLiveCover": //RecordEquipment_直播封面 %> <% break; case "OffLiveCover": //RecordEquipment_未直播封面 %> <% break; case "PushRTMPUrl": //RecordEquipment_推流地址 %> <% break; case "PullRTMPUrl": //RecordEquipment_拉流地址 %> <% break; case "VideoRetentionDays": //RecordEquipment_录播视频保留天数 %> <% break; case "IsAgentHD": //RecordEquipment_是否转发高清 %> <% break; case "EquipmentType": //RecordEquipment_录播设备类型 %> <%-- <% break; case "IsSaveInEquipment": //RecordEquipment_录制文件是否保存在录播 %> --%> <% break; case "IsSaveInAgent": //RecordEquipment_录制文件是否保存在转发 %> <% break; case "SortNumber": //RecordEquipment_排序号 %> <% break; } } %> <% foreach (var item in this.ListData) { %> <% foreach (var field in this.Fields) { switch (field) { case "Status": %> <% break; case "RecordEquipmentDomainName": %> <% break; case "RecordEquipmentDomainCode": %> <% break; case "Name": %> <% break; case "FactoryType": %> <% break; case "RecordEquipmentPlaySaveServerName": %> <% break; case "ProductVersion": %> <% break; case "IPAddress": %> <% break; case "WebPort": %> <% break; case "ProgramID": %> <% break; case "RecordPort": %> <% break; case "LoginName": %> <% break; case "Password": %> <% break; case "RecordVideo1": %> <% break; case "RecordVideo2": %> <% break; case "RecordVGA": %> <% break; case "AutoRecord": %> <% break; case "Description": %> <% break; case "ASHas": %> <% break; case "RecordEquipmentAgentServerName": %> <%-- <% break; case "AutoOpenTime": %> <% break; case "AutoCloseTime": %> --%> <% break; case "IsSwitchByOrder": %> <% break; case "OnLiveCover": %> <% break; case "OffLiveCover": %> <% break; case "PushRTMPUrl": %> <% break; case "PullRTMPUrl": %> <% break; case "VideoRetentionDays": %> <% break; case "IsAgentHD": %> <% break; case "EquipmentType": %> <%-- <% break; case "IsSaveInEquipment": %> --%> <% break; case "IsSaveInAgent": %> <% break; case "SortNumber": %> <% break; } } %> <% } %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> <%= Define.Get("RecordEquipment_设备状态").HtmlEncode()%>(修改录播播参数:自动更新状态需要在1分钟后。) ',event)"> <%= Define.Get("RecordEquipment_状态").HtmlEncode() %> <%= OrderBy("Status") %> ',event)"> <%= Define.Get("RecordEquipment_DomainName_平台名称").HtmlEncode() %> <%= OrderBy("_Domain.Name") %> ',event)"> <%= Define.Get("RecordEquipment_DomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_Domain.Code") %> ',event)"> <%= Define.Get("RecordEquipment_设备名称").HtmlEncode() %> <%= OrderBy("Name") %> ',event)"> <%= Define.Get("RecordEquipment_录播设备厂家类型").HtmlEncode() %> <%= OrderBy("FactoryType") %> ',event)"> <%= Define.Get("RecordEquipment_PlaySaveServerName_服务器名称").HtmlEncode() %> <%= OrderBy("_PlaySaveServer.Name") %> ',event)"> <%= Define.Get("RecordEquipment_产品类别").HtmlEncode() %> <%= OrderBy("ProductVersion") %> ',event)"> <%= Define.Get("RecordEquipment_IP地址").HtmlEncode() %> <%= OrderBy("IPAddress") %> ',event)"> <%= Define.Get("RecordEquipment_Web端口").HtmlEncode() %> <%= OrderBy("WebPort") %> ',event)"> <%= Define.Get("RecordEquipment_节目ID").HtmlEncode() %> <%= OrderBy("ProgramID") %> ',event)"> <%= Define.Get("RecordEquipment_录播端口号").HtmlEncode() %> <%= OrderBy("RecordPort") %> ',event)"> <%= Define.Get("RecordEquipment_登录名").HtmlEncode() %> <%= OrderBy("LoginName") %> ',event)"> <%= Define.Get("RecordEquipment_登录密码").HtmlEncode() %> <%= OrderBy("Password") %> ',event)"> <%= Define.Get("RecordEquipment_是否录制Video1").HtmlEncode() %> <%= OrderBy("RecordVideo1") %> ',event)"> <%= Define.Get("RecordEquipment_是否录制Video2").HtmlEncode() %> <%= OrderBy("RecordVideo2") %> ',event)"> <%= Define.Get("RecordEquipment_录制VGA").HtmlEncode() %> <%= OrderBy("RecordVGA") %> ',event)"> <%= Define.Get("RecordEquipment_自动录制").HtmlEncode() %> <%= OrderBy("AutoRecord") %> ',event)"> <%= Define.Get("RecordEquipment_描述").HtmlEncode() %> <%= OrderBy("Description") %> ',event)"> <%= Define.Get("RecordEquipment_转播重编码").HtmlEncode() %> <%= OrderBy("ASHas") %> ',event)"> <%= Define.Get("RecordEquipment_AgentServerName_服务器名称").HtmlEncode() %> <%= OrderBy("_AgentServer.Name") %> ',event)"> <%= Define.Get("RecordEquipment_自动开机时间").HtmlEncode() %> <%= OrderBy("AutoOpenTime") %> ',event)"> <%= Define.Get("RecordEquipment_自动关机时间").HtmlEncode() %> <%= OrderBy("AutoCloseTime") %> ',event)"> <%= Define.Get("RecordEquipment_是否根据预约时间开关机").HtmlEncode() %> <%= OrderBy("IsSwitchByOrder") %> ',event)"> <%= Define.Get("RecordEquipment_直播封面").HtmlEncode() %> <%= OrderBy("OnLiveCover") %> ',event)"> <%= Define.Get("RecordEquipment_未直播封面").HtmlEncode() %> <%= OrderBy("OffLiveCover") %> ',event)"> <%= Define.Get("RecordEquipment_推流地址").HtmlEncode() %> <%= OrderBy("PushRTMPUrl") %> ',event)"> <%= Define.Get("RecordEquipment_拉流地址").HtmlEncode() %> <%= OrderBy("PullRTMPUrl") %> ',event)"> <%= Define.Get("RecordEquipment_录播视频保留天数").HtmlEncode() %> <%= OrderBy("VideoRetentionDays") %> ',event)"> <%= Define.Get("RecordEquipment_是否转发高清").HtmlEncode() %> <%= OrderBy("IsAgentHD") %> ',event)"> <%= Define.Get("RecordEquipment_录播设备类型").HtmlEncode() %> <%= OrderBy("EquipmentType") %> ',event)"> <%= Define.Get("RecordEquipment_录制文件是否保存在录播").HtmlEncode() %> <%= OrderBy("IsSaveInEquipment") %> ',event)"> <%= Define.Get("RecordEquipment_录制文件是否保存在转发").HtmlEncode() %> <%= OrderBy("IsSaveInAgent") %> ',event)"> <%= Define.Get("RecordEquipment_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %>
<%= new HtmlCheckBox() { Value= SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> edit.aspx?guid=<%= item.Guid %>"><%= DefineEnum.修改.Define() %> <% if (item.FactoryType == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentFactoryTypeEnum.奥威亚录播) { var color = ""; if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_直播中")) { color = "green"; } else if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_录制中") || item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_直播录制中")) { color = "blue"; } else if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_准备就绪")) { color = "chocolate"; } %> <%= string.IsNullOrWhiteSpace(item.LiveStatus) ? "更新中..." : item.LiveStatus %> <% if (item.EquipmentType == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentEquipmentTypeEnum.本地设备) { %> | 关机 <% if (item.ProductVersion > 2) { %> | 休眠 | 唤醒 <% } %> | 启动录制 | 停止录制 <% } if (item.ParentAgentServer != null) { %> | <% } %> <% } %> <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.RecordEquipmentStatusEnum)item.Status).Define() : null %> "> <%= ViewData.Val("ParentDomain.Name", item) %> "> <%= ViewData.Val("ParentDomain.Code", item) %> <%= item.Name %> <% var manageUrl = CreateInstance.RecordEquipmentDao.ManageUrl(item); if (!string.IsNullOrEmpty(manageUrl)) { %> <%= new HtmlAnchor("管理") { Href = manageUrl, Target = "_blank" }.Style(new {Color="blue" })%> <%= new HtmlAnchor("检测") { Href = Request.WebPath()+ "/Pub/RecordEquipment/EquipmentInfo.aspx?Guid="+item.Guid, Target = "_blank" , ID="testRE_"+item.Guid }.Style(new {Color="blue" })%> <% } %> <%= item.FactoryType != null ? ((AVA.ResourcesPlatform.Model.Pub.RecordEquipmentFactoryTypeEnum)item.FactoryType).Define() : null %> "> <%= ViewData.Val("ParentPlaySaveServer.Name", item) %> <%= item.ProductVersion != null ? ((AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum)item.ProductVersion).Define() : null %> <%= item.IPAddress %> <%= item.WebPort %> <%= item.ProgramID %> <%= item.RecordPort %> <%= item.LoginName %> <%= item.Password %> <%= item.RecordVideo1 ? "是" : "否" %> <%= item.RecordVideo2 ? "是" : "否" %> <%= item.RecordVGA ? "是" : "否" %> <%= item.AutoRecord ? "是" : "否" %> <%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> <%= item.ASHas %> "> <%= ViewData.Val("ParentAgentServer.Name", item) %> <%= item.AutoOpenTime.ToDateTimeN().ToAutoShortDate() %> <%= item.AutoCloseTime.ToDateTimeN().ToAutoShortDate() %> <%= item.IsSwitchByOrder ? "是" : "否" %> <%= IMG(SettingGroup.RecordEquipmentUploadPath, item.OnLiveCover) %> <%= item.OnLiveCover %> <%= IMG(SettingGroup.RecordEquipmentUploadPath, item.OffLiveCover) %> <%= item.OffLiveCover %> <%= item.PushRTMPUrl %> <%= item.PullRTMPUrl %> <%= item.VideoRetentionDays %> <%= item.IsAgentHD ? "是" : "否" %> <%= item.EquipmentType != null ? ((AVA.ResourcesPlatform.Model.Pub.RecordEquipmentEquipmentTypeEnum)item.EquipmentType).Define() : null %> <%= item.IsSaveInEquipment %> <%= item.IsSaveInAgent ? "是" : "否" %> <%= item.SortNumber %>