<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectEdit" %> <% if (Has(this.ViewData["_Subject"])) { %> <%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorkNavItem.基本信息, Subject = this.Subject }.ToHtml()%> <% } %>
<%= string.IsNullOrEmpty(this.PrimaryKey) ? "创建"+Define.Get("Client_实训作业") : Define.Get("Client_实训作业")+"编辑"%>
*任务名称: <%= 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"] == null ? 0 : this.ViewData["_Subject.Status"], }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <%= new HtmlYKTip("Status")%>
*开始日期: <%= 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 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")%> <%= new HtmlHidden("ShiXunWork", "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" })%>