%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyShiXunWork.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubject" %> <%= new MyShiXunWorkNavTopInstance(this) { Local = MyShiXunWorkNavTopItem.作业管理 }.ToHtml()%>
任务封面 | 任务名称 | 任务状态 | 起止时间 | 截止提交作业日期 | 操作 | |
<%= new HtmlCheckBox() { Value = SetKey(subject.Guid, subject.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> |
|
<%
if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用)
{
%>
<%= new HtmlAnchor(subject.Name) { Href = "#",OnClick="CheckStatus();",Suffix="..", TextLength=22 }%>
<%
}
else
{
%>
<%= new HtmlAnchor(subject.Name) { Href = WebUrl.MyShiXunWorkEdit(subject.Guid), Target = "_blank",Suffix="..", TextLength=22 }%>
<%
}
%>
|
<%
var classStatus = "";
if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动)
{
classStatus = "pass";
}
else
{
classStatus = "";
}
%>
<%
var isOver = false;
if (subject.ParentSubject != null && subject.ParentSubject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.结束)
{
isOver = true;
}
%>
<%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "SubjectChangeStatusClient(this,'" + SetKey(subject.Guid, subject.Version) + "');", Lang = subject.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = isOver ? (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.结束 : subject.Status, Disabled=isOver }.Style(new { Width = "auto" })%>
<%if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动 && AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l => l.ParentSubject == subject) > 0) { if (subject.CutoffTime > DateTime.Now) { %> 初赛阶段 <% } else { %>决赛阶段 <% } } %> |
<%= subject.BeginTime.ToShortDate()%> 至 <%= subject.EndTime.ToShortDate()%> | <%= subject.CutoffTime.ToShortDate()%> |
<%= new HtmlAnchor("编辑") { Href = WebUrl.MyShiXunWorkEdit(subject.Guid) }%>
|
删除
<%--<%= new HtmlAnchor(Define.Get("Client_专辑")) { Href = WebUrl.MySubjectAlbumList(subject.Guid) }%> <%-- <%= new HtmlAnchor("人员") { Href = WebUrl.MySubjectUserList(subject.Guid) }%> | <%= new HtmlAnchor("申请") { Href = WebUrl.MySubjectUserApplyList(subject.Guid) }%> <%= new HtmlAnchor("附件") { Href = WebUrl.MySubjectAttachmentList(subject.Guid) }%> | <%= new HtmlAnchor("视频") { Href = WebUrl.MySubjectVideoList(subject.Guid) }%> --%> <% if (SettingGroup.HasMeeting == true) { %> <%-- <%= new HtmlAnchor("教研") { Href = WebUrl.MySubjectMeetingList(subject.Guid) }%> | <% } %> <%= new HtmlAnchor("直播") { Href = WebUrl.MySubjectApplicationList(subject.Guid) }%> <% if (subject.STEnable == true) { %> <%= new HtmlAnchor("奖项") { Href = WebUrl.MySTAwardList(subject.Guid) }%> | <%= new HtmlAnchor("评分项") { Href = WebUrl.MySTScoreItemList(subject.Guid) }%> <%= new HtmlAnchor("评审") { Href = WebUrl.MySTUserList(subject.Guid) }%> | <%= new HtmlAnchor("排名") { Href = WebUrl.MySTfinallyScoreList(subject.Guid) }%> <%= new HtmlAnchor("评分") { Href = WebUrl.MySTVideoScore(subject.Guid) }%> |--%> <% } %> <%= new HtmlText("SortNumber", subject.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};SubjectChangeSortNumberClient(this,'" + SetKey(subject.Guid, subject.Version) + "')", Lang = subject.SortNumber.ToString(), Width = 50, Title = "修改当前"+ Define.Get("Client_专辑")+"的位置" }%> |