Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\RecommendVideo\ControlEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ControlEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecommendVideo.ControlEdit" %> <table class="g-table-cntacomm"> <% var domainGuid = Request.GetFormValue("DomainGuid"); var domain = CreateInstance.DomainDao.Get(domainGuid); if (domain == null) { throw new Z.Core.Tools.ExceptionMessage("??????????????"); } var recordEquipmentGuid = Request.GetFormValue("RecordEquipmentGuid"); var recordEquipment = CreateInstance.RecordEquipmentDao.Get(recordEquipmentGuid); if (recordEquipment != null && recordEquipment.ParentDomain != domain) { throw new Z.Core.Tools.ExceptionMessage("????????????????????"); } //?????? for (int dayOfWeek = 0; dayOfWeek <= 6; dayOfWeek++) { List<AVA.ResourcesPlatform.Model.Pub.ApplicationTimeSetting> listApplicationTimeSetting = null; if (dayOfWeek == 0 || dayOfWeek == 6) { //??? listApplicationTimeSetting = CreateInstance.ApplicationTimeSettingDao.Where(l => l.ParentDomain.Guid == domainGuid && l.IsWeek == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationTimeSettingIsWeekEnum.??) .OrderBy(l => l.SortNumber).ToList(); } else { //????? listApplicationTimeSetting = CreateInstance.ApplicationTimeSettingDao.Where(l => l.ParentDomain.Guid == domainGuid && l.IsWeek == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationTimeSettingIsWeekEnum.??) .OrderBy(l => l.SortNumber).ToList(); } foreach (var item in listApplicationTimeSetting) { //????????????????????????????? var recommendVideo = CreateInstance.RecommendVideoDao.Where(l => l.ParentDomain == domain && l.ParentRecordEquipment == recordEquipment && l.ParentApplicationTimeSetting == item && l.DayOfWeek == dayOfWeek) .ToList() .FirstResult(); if (recommendVideo == null) { //???????????????? recommendVideo = CreateInstance.RecommendVideo; recommendVideo.ParentDomain = domain; recommendVideo.ParentRecordEquipment = recordEquipment; recommendVideo.ParentApplicationTimeSetting = item; recommendVideo.DayOfWeek = dayOfWeek; CreateInstance.RecommendVideoDao.Insert(recommendVideo); } %> <tr> <th style="width: 200px;"> <%= ((AVA.ResourcesPlatform.Model.DayOfWeek)dayOfWeek).Define() %> <%= item.ChatperInfo() %>?? </th> <td style="width:300px"> <%= new HtmlHidden("Guid", recommendVideo.Guid)%> <%= new HtmlText("ParentVideo_Name", ViewData.Val("ParentVideo.Name",recommendVideo)) { ID="ParentVideo_Name"+recommendVideo.Guid, ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentVideo", ViewData.Val("ParentVideo.Guid", recommendVideo)) { ID="ParentVideo"+recommendVideo.Guid }%> <a href="#selectVideo" class="decoration-none" onclick="return SelectVideo('#ParentVideo<%=recommendVideo.Guid %>','#ParentVideo_Name<%=recommendVideo.Guid %>')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> </td> <td style="width:300px"> <%= Define.Get("RecommendVideo_????????") %>: <%= new HtmlText("DefineName", ViewData.Val("DefineName",recommendVideo)) {Class = "ipt-t ipt-t-dft" }%> </td> <td> <%= Define.Get("RecommendVideo_????????") %>: <%= new HtmlText("DefineUrl", ViewData.Val("DefineUrl",recommendVideo)) { Class = "ipt-t ipt-t-dft width400" }%> </td> </tr> <% } } %> </table>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de