<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyRecordSubject.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyRecordSubject" %> <%= new MyGrowthPathNavTopInstance(this) { Local= MyGrowthPathNavTopItem.评课记录 }.ToHtml()%> <%if(this.ListSubjectUser.Count<=0) { %>
您参加的<%= Define.Get("Client_评课") %>尚未结束
<% } else { %>
我参加过的<%= this.ListSubjectUser.Count %>个<%= Define.Get("Client_评课") %>
活动名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 日期从 <%= new HtmlText("BeginTime", this.BeginTime.ToLongDate()) { Width = 80 }%> 至 <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyRecordSubject") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%>
<%-- --%> <% for (int i = 0; i <= this.ListSubjectUser.Count - 1; i++) { var subject = this.ListSubjectUser[i].ParentSubject; var subjectUser = this.ListSubjectUser[i]; %> <%-- --%> <% var listSTUser = CreateInstance.STUserDao.Where(l => l.ParentSubject == subject).ToList(); //当我提交的参赛作品大于0时才有查看结果 if(listSubjectUserVideo.Count>0) { %> <%--这里是查看成果的table--%> <% } %> <% } %>
<%= Define.Get("Client_评课") %>活动封面 活动名称 <%= Define.Get("Client_评课") %>开展时间 最后申请时间 操作
<%= new HtmlCheckBox() { Value = SetKey(subjectUser.Guid, subjectUser.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
    <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用) { %>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#", OnClick= "CheckStatus()" ,Title = subject.Name }%>
  • <% } else { %>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank", Title = subject.Name }%>
  • <% } %>

<% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用) { %> <%= new HtmlAnchor(subject.Name) { Href = "#", OnClick= "CheckStatus()" }%> <% } else { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid),Suffix="..", TextLength=8, Target = "_blank" }%> <% } %>
<% var listSubjectUserVideo = CreateInstance.SubjectVideoDao.Where(l => l.ParentSubject == subject && l.ParentSubmissionUser == subjectUser.ParentUser).ToList(); %> 我提交的作品数:<%=listSubjectUserVideo.Count %>

<%= subject.BeginTime.ToShortDate() %>

<%= subject.EndTime.ToShortDate() %>
<%= subject.CutoffTime.ToShortDate() %> <% if (listSubjectUserVideo.Count>0) { %> <%= new HtmlAnchor("查看成果") { Href ="#", OnClick="ShowResult('"+subject.Guid+"');"}%> <% }else { %> 您未提交过任何作品 <% } %>
<%--
全选 - 取消
--%> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyRecordSubject(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%>
<% } %>