@using Bowin.Web.Controls.Mvc; @using EMISOnline.Entities; @using EMISOnline.Web.Controls; @{ ViewBag.Title = "List"; }
@Html.Position()
查询条件
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete", })) { @Html.Hidden("ac", @ViewBag.Action as string) @Html.Hidden("paperid") @Html.Hidden("hid_Dynamic") @Html.Hidden("hid_Setting") @Html.Hidden("hid_pageSetting")
  •  
  • @Html.Button(new ButtonOptions() { ID = "btnSelect", Text = "选择试题" }) @Html.Button(new ButtonOptions() { ID = "btnSetScore", Text = "批量设置分数" }) @Html.Button(new ButtonOptions() { ID = "btnDelete", Text = "删 除" }) @if(ViewBag.action != "edit"){ @Html.Button(new ButtonOptions() { ID = "btnPrev", Text = "上一步" }); } @Html.Button(new ButtonOptions() { ID = "btnFinish", Text = "完 成" })
}
试题列表
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="content", HeaderText="题干内容", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="question_type", HeaderText="试题类型", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="difficulty_degree", HeaderText="难度系数", Align=AlignStyle.Center}, new BoundFieldColumn { FieldName="created_date", HeaderText="创建日期", Align=AlignStyle.Center }, new TextBoxColumn { FieldName="score", HeaderText="分数", OnChangedFunc="scoreChange", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/PaperSetting/GetPaperList?paperid=" + ViewBag.paperid + "&ac=" + ViewBag.action), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsVerticalExpand = true, IsAutoHeight = false, })
@section scripts{ }