<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySTScoreItemList.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTScoreItemList" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.评分项设置 }.ToHtml()%>
<%= Define.Get("Client_优课评比")%>评分项添加

<%-- --%>
*评分类型: <%= new HtmlSelect("ParentSTScoreType","Name", "Guid", "Guid") { Option = this._ListSTScoreType }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <% if (this._ListSTScoreType.Count == 0) { %> 请先在后台添加评分类型 <% } %> <%= new HtmlYKTip("ParentSTScoreType") %>
*评分项名称: <%= new HtmlText("Name", null, 256) { }.AddAttribute("Placeholder","建议四字以内")%> <%= new HtmlYKTip("Name")%>
*评分比例: <%= new HtmlText("ScoreRatio", null) { }%> <%= new HtmlYKTip("ScoreRatio")%>
详细描述: <%= new HtmlTextArea("Description", null, 2000)%>
*排名优先: <%= new HtmlText("SortNumber", null, 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %>
<%= new HtmlHidden("Key",this.KEY)%> <%= new HtmlHidden("ParentSubject", this.Subject.Guid)%> <%= new HtmlSubmit("添加评分项", "STScoreItemEdit", "STScoreItemEditClient(this);").Style(new { Width = "100px" })%> <%----%>
<%= Define.Get("Client_优课评比")%>目前共<%= this.Subject._ListSTScoreItem.Count %>个评分项
<%--<%= new HtmlButton("添加...", "","ShowEdit(this);")%>--%> <%= new HtmlButton("删除", "STScoreItemBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>
<% var allScore = this.ListSTScoreItem.Sum(l => l.ScoreRatio); if (allScore != 100) { %>
评分比例合计不为100,当前为<%= allScore %>
<% } %>
<% for (int i = 0; i <= this.ListSTScoreItem.Count - 1; i++) { var stAward = this.ListSTScoreItem[i]; %> <% } %>
评分类型 评分项 评分比例 操作
<%= new HtmlCheckBox() { Value = SetKey(stAward.Guid, stAward.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> <%= stAward.ParentSTScoreType.Name %> <%= stAward.Name %> <%= stAward.ScoreRatio %> <%= new HtmlAnchor("编辑") { Href = WebUrl.MySTScoreItemEdit(stAward.Guid) }%> | 删除
全选 - 取消