<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectApplication.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectApplication" %>
我的优课评比:<%= this.Subject.Name %>共<%= this.Query.RecordCount %>个直播 <%= new MySubjectNavInstance(this) { Local = "直播" }.ToHtml()%>
时间从 <%= new HtmlText("StartTime", this.StartTime.ToLongDate()) { Width = 120 }%> 至 <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 120 }%> 确认状态: <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum) }.InsertOption("::选择::", "", 0).SelectValue(this.ConfirmStatus)%> <%= new HtmlHidden("Key","MySubjectApplication") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("添加录制", "window.location.href='" + WebUrl.MySubjectApplicationAdd(this.Subject.Guid) + "';")%> <%= new HtmlButton("确认", "SubjectApplicationBatchConfirm(this);")%> <%= new HtmlButton("拒绝", "SubjectApplicationBatchUnConfirm(this);")%> <%= new HtmlButton("删除", "SubjectApplicationBatchDelete(this);")%>
<% for (int i = 0; i <= this.ListSubjectApplication.Count - 1; i++) { var subjectApplication = this.ListSubjectApplication[i]; var subject = this.ListSubjectApplication[i].ParentSubject; var application = this.ListSubjectApplication[i].ParentApplication; %> <% } %>
直播 用户 直播时间 提交时间 操作
<%= new HtmlCheckBox() { Value = SetKey(subjectApplication.Guid, subjectApplication.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>

<%= new HtmlAnchor(application.ParentRecordEquipment.Name) { Href = WebUrl.LivePlay(application.Guid), Target = "_Blank" }%>
<% if (application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.批准 || application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.签到) { %> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define() %> <% } else if (application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.取消 || application.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.拒绝) { %> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define()%> <% } else { %> <%= ((AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum)application.Status).Define()%> <% } %>
<% if (!string.IsNullOrEmpty(application.Title) && !string.IsNullOrEmpty(application.Title)) { %> <%= application.Title%> (<%= application.Speaker%>) <% } %>

<%= application.ParentUser.ParentUserType.ParentDomain.Name %>
<%= new HtmlAnchor(application.ParentUser.TrueName) { Href = WebUrl.Show(application.ParentUser.ParentUserType.ParentDomain.Code, application.ParentUser.UserName) }%> ( <%= new HtmlAnchor(application.ParentUser.UserName) { Href = WebUrl.Show(application.ParentUser.ParentUserType.ParentDomain.Code, application.ParentUser.UserName) }%> )
<%= application.ApplicationDate.ToShortDate() %>
<%= application.StartTime.ToShortTimeString() %> 至 <%= application.EndTime.ToShortTimeString()%>
申请: <%= new HtmlSpan(subjectApplication.SubmissionTime.ToShortDate()) { Title = subjectApplication.SubmissionRemark }%>
<% if (subjectApplication.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum.通过) { %> 确认: <% } else if (subjectApplication.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum.拒绝) { %> 拒绝: <% } else if (subjectApplication.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectApplicationConfirmStatusEnum.未审核) { %> 未审核: <% } %> <%= new HtmlSpan(subjectApplication.ConfirmTime.ToShortDate()) { Title = subjectApplication.ConfirmRemark }%>
删除 | <%= new HtmlAnchor("预览") { Href = WebUrl.SubjectPlay(subject.Guid, application.Guid) }%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageRecordSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectApplication(this.Subject.Guid, int.MaxValue, this.StartTime.ToString(null), this.EndTime.ToString(null), this.ConfirmStatus.ToString(null)) }.ToHtml()%>