<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectParticipate.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectParticipate" %> <%--<%= new MySubjectUserNavTopInstance(this) { Local= MySubjectUserNavTopItem.我的活动 }.ToHtml()%>--%>
<%if (this.STEnable == (int)AVA.ResourcesPlatform.Model.Pub.SubjectSTEnableEnum.否) { %> 我参与的<%= this.ListSubjectUser.Count %>个实训作业 <% } else { if (this.JoinType == (int)AVA.ResourcesPlatform.Model.Pub.SubjectUserJoinTypeEnum.邀请加入) { %> 邀请我参与的<%= this.ListSubjectUser.Count %>个实训任务 <% } else { %> 我申请参与的<%= this.ListSubjectUser.Count %>个实训竞赛 <% } } %>
名称: <%= 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","MySubjectParticipate") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%--<%= new HtmlButton("删除", "SubjectUserBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>--%>
<%----%> <% for (int i = 0; i <= this.ListSubjectUser.Count - 1; i++) { var subject = this.ListSubjectUser[i].ParentSubject; var subjectUser = this.ListSubjectUser[i]; %> <%-- --%> <% } %>
任务封面 任务名称 任务完成时间 最后申请时间 操作
<%= 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 { //说明是优课评比Or实训竞赛 if (this.STEnable == (int)AVA.ResourcesPlatform.Model.Pub.SubjectSTEnableEnum.是) { %>
<%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank", Title = subject.Name }%>
<% } else { %> <% } } %>

<% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用) { %> <%= new HtmlAnchor(subject.Name) { Href = "#", OnClick= "CheckStatus()" }%> <% } else { //说明是优课评比Or实训竞赛 if (this.STEnable == (int)AVA.ResourcesPlatform.Model.Pub.SubjectSTEnableEnum.是) { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid),Suffix="..", TextLength=8, Target = "_blank" }%> <% } else { %> <%=subject.Name %> <% } } %>
状态:<%= (AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum)subject.Status %>

<%= subject.BeginTime.ToShortDate() %> 至 <%= subject.EndTime.ToShortDate() %> <%= subject.CutoffTime.ToShortDate() %> 添加实训视频
<%= new HtmlAnchor("查看已添加视频") { Href = WebUrl.MySubjectUserVideo(subject.Guid) }%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectParticipate(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%>