<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectEdit" %> <% if (Has(this.ViewData["_Subject"])) { %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.基本信息, Subject = this.Subject }.ToHtml()%> <% } else { %> <%= new MySubjectNavTopInstance(this) { Local= MySubjectNavTopItem.创建活动 }.ToHtml() %> <% } %>
我的评课: <%= string.IsNullOrEmpty(this.PrimaryKey) ? "创建优课评比" : "优课评比编辑"%>

<%if(this.PrimaryKey!=null) { %> <% } %> <%if(AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l=>l.ParentSubject == this.Subject) == 0 || this.Subject == null) { %> <% } %>
*优课评比名称: <%= new HtmlText("Name", this.ViewData["_Subject.Name"], 256) { }%> <%= new HtmlYKTip("Name")%>
*优课评比状态: <%= new HtmlSelect("Status", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = this.ViewData["_Subject.Status"] }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <%= new HtmlYKTip("Status")%>
上级优课评比: <%= new HtmlSelect("ParentSubject", "Name", "Guid", "Guid") { ID="ParentSubject",Option = this.ListSubject, SelectedValue=this.ViewData["_Subject.ParentSubject.Guid"] }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%>
主办单位名称: <%= new HtmlText("Compere", this.ViewData["_Subject.Compere"], 255) { }%>
*开始日期: <%= new HtmlText("BeginTime", this.ViewData["_Subject.BeginTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("BeginTime")%>
*结束日期: <%= new HtmlText("EndTime", this.ViewData["_Subject.EndTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("EndTime")%>
*截止提交作品日期: <%= new HtmlText("CutoffTime", this.ViewData["_Subject.CutoffTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("CutoffTime")%>
启用评奖排名: <%--<%= new HtmlCheckBox("STEnable",this.ViewData["_Subject.STEnable"], 1, 0) { Class = "", OnClick="SwitchCutoffTimeBeforLock();" }.Style(new { Width = "auto" })%>--%> <% var STEnableDefault = this.ViewData["_Subject.STEnable"] == null ? true : this.ViewData["_Subject.STEnable"]; %> <%= new HtmlCheckBox("STEnable", STEnableDefault, 1, 0) { Class = "", OnClick="SwitchCutoffTimeBeforLock();" }.Style(new { Width = "auto" })%>
优课评比封面:
<%= new HtmlHidden("Cover", this.ViewData["_Subject.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.SubjectCover(this.ViewData["_Subject"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=140, Height=88 }%> <% } else { %> <%= new HtmlImg(SettingGroup.SubjectCover(this.ViewData["_Subject"]), "") { ID = "imgCover", Width=140, Height=88, OnErrorImg=SettingGroup.DefaultImg }%> <% } %>
<%= new HtmlYKTip("Cover")%>
支持.jpg、gif、png格式的图片
活动海报图:
<%= new HtmlHidden("Ad", this.ViewData["_Subject.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.SubjectAd(this.ViewData["_Subject"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=400, Height=300 }%> <% } else { %> <%= new HtmlImg(SettingGroup.SubjectAd(this.ViewData["_Subject"]), "") { ID = "imgAd", Width=400, Height=250, OnErrorImg= SettingGroup.DefaultImg }%> <% } %>
<%= new HtmlYKTip("Ad")%>
支持.jpg、gif、png格式的图片
<%if(AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l=>l.ParentSubject == this.Subject) > 0 && this.PrimaryKey != null) { %>
<% var subSubject = AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Where(l => l.ParentSubject == this.Subject).ToList(); foreach (var item in subSubject) { %> <% } %>
子评课名称 子评课状态 子评课起止时间 子评课截至提交作品时间
<%=item.Name %> <%=(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum)item.Status %> <%=item.BeginTime.ToShortDate() %>

<%=item.EndTime.ToShortDate() %>
<%=item.CutoffTime.ToShortDate() %>
<%} %>
<%= new HtmlHidden("InheritScoreItem", "0")%> <%if (this.PrimaryKey == null) {%> <%= new HtmlHidden("IsGoNext","1") %> <%} %> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Subject.Guid"], this.ViewData["_Subject.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "下一步" : "修改评课信息", "SubjectEdit", "SubjectEditClient(this);").Style(new { Width = "100px" })%>