<%@ 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) ? "创建"+Define.Get("Client_优课评比") : Define.Get("Client_优课评比")+"编辑"%>
<%-- <%if (this.PrimaryKey != null) { //下拉框是否禁用 var isBegin = (int)this.ViewData["_Subject.Status"] == 2 ? true : false; %>--%> <%-- <% } %>--%> <%-- <%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")%>
检查视频附件: <% var CheckVideoAttachment = this.ViewData["_Subject.CheckVideoAttachment"] == null ? false : this.ViewData["_Subject.CheckVideoAttachment"]; %> <%= new HtmlCheckBox("CheckVideoAttachment", CheckVideoAttachment, 1, 0) { Class = "" }.Style(new { Width = "auto" })%> 注:勾选此项后,添加到活动的视频必须上传教学设计、评测练习和课件
启用评奖排名: <%--<%= 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", 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", OnErrorImg= SettingGroup.DefaultImg, Width = 400, Height = 300 }%> <% } %>
<%= new HtmlYKTip("Ad")%>
支持.jpg、gif、png格式的图片
详细描述: <%= new HtmlTextArea("Description", this.ViewData["_Subject.Description"], 2000) { Class = "ipt-t ipt-t-dft width600 height400 xheditor-full"}.AddAttribute("style","width:600px;height:300px;")%>
<%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) { %> <% } %>
子<%= Define.Get("Client_评课")%>名称 <%=item.Name %> 子<%= Define.Get("Client_评课")%>状态 <%=(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum)item.Status %>
子<%= Define.Get("Client_评课")%>起止时间 <%=item.BeginTime.ToShortDate() %>

<%=item.EndTime.ToShortDate() %>
子<%= Define.Get("Client_评课")%>截至提交作品时间 <%=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" })%>