<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTScoreItemList" %> <%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorkNavItem.评分项设置 }.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" })%> <%----%>
*评分类型表文件: <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = ".xlsx", UploadControlName="使用已有评分模版"}.ToHtml()%>
下载评分表导入模版: <%= new HtmlAnchor("评分表导入模版.xlsx") { Href = "../../Resource/ExcelTemplate/评分表导入模版.xlsx", Class = "down" }.Style(new { Color="#10931f"})%> <%= new HtmlHidden("FileName", null) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("FileName")%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=评分类型导入Excel模版文件(*.xls)|*.xls,DefaultColor=#F5F5F5F5,SelectFiles=选择上传评分类型导入模版文件,Upload=确认上传评分类型表" }.ToHtml()%> --%>
<%= new HtmlHidden("Key", SetKey(this.ViewData["_Application.Guid"], this.ViewData["_Application.Version"]))%> <%= new HtmlHidden("ParentUser", this.User.Guid)%> <%= new HtmlHidden("ParentSubject", this.Subject.Guid)%> <%--<%= new HtmlSubmit("上传", "STScoreItemInport", "STScoreItemInportClient(this);").Style(new { Width = "100px" })%>--%>
<%= Define.Get("Client_实训作业")%>目前共<%= this.Subject._ListSTScoreItem.Count %>个评分项
<%= new HtmlHidden("ExprotExcelXMLParameter", this.Subject.Guid)%> <%= new HtmlHidden("ExprotKey","STScoreItem") %>
<%--<%= 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) }%> | 删除
全选 - 取消