@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.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{
}