<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyClassInfoEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyClassInfoEdit" %>
<%= string.IsNullOrEmpty(this.PrimaryKey) ? "创建"+Define.Get("Client_班级信息") : Define.Get("Client_班级信息")+"编辑"%>
*班级名称: <%= new HtmlText("Name", this.ViewData["_ClassInfo.Name"], 256) { }%> <%= new HtmlYKTip("Name")%>
*所属学科: <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", SelectedValue = (this.ClassInfo != null ? this.ClassInfo.ParentCategory != null ? this.ClassInfo.ParentCategory.Guid : "" : CookieGroup.ListUserCategory.FirstResult())}.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentCategory") { }%>
*所属年级: <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, OptGroup= CreateInstance.GradeDao.GetOptGroup(this.ListAllGrade), DefaultSelectValue = "", SelectedValue = (this.ClassInfo != null ? this.ClassInfo.ParentGrade !=null ?this.ClassInfo.ParentGrade.Guid : "" : "") }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentGrade") { }%>
详细描述: <%= new HtmlTextArea("Description", this.ViewData["_ClassInfo.Description"], 2000) { Class = "ipt-t ipt-t-dft width600 height400 xheditor-full"}.AddAttribute("style","width:600px;height:300px;")%>
<%= new HtmlHidden("InheritScoreItem", "0")%> <%= new HtmlHidden("Key", SetKey(this.ViewData["_ClassInfo.Guid"], this.ViewData["_ClassInfo.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "添加班级信息" : "修改班级信息", "ClassInfoEdit", "ClassInfoEditClient(this);").Style(new { Width = "100px" })%>