123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- @using Bowin.Web.Controls.Mvc;
- @using EMISOnline.Entities;
- @using EMISOnline.Web.Controls;
- @{
- ViewBag.Title = "List";
-
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件</div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/Students/Excel")">
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">考试名称:</li>
- <li class="sv">
- @Html.TextBox("testName")
- </li>
- <li class="sn" style="padding-left: 5px;">考试时间:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions() { TextBoxType = TextBoxType.DateTime, Name = "beginTime" })
- </li>
- <li class="sn" style="padding-left: 5px;">至</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions() { TextBoxType = TextBoxType.DateTime, Name = "endTime" })
- </li>
- <li>
- @Html.Button(new ButtonOptions() { ID = "btnSearch", Text = "查 询" })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 考试信息</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- </div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="test_name", HeaderText="试卷名称", },
- new BoundFieldColumn { FieldName="test_method_set", HeaderText="试卷类型", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="test_begin_date", HeaderText="进入考试时间", Align=AlignStyle.Center, Formatter= Formatter.OnlyYearMonthDay},
- new BoundFieldColumn { FieldName="limited_minutes", HeaderText="考试时长(分钟)", Align=AlignStyle.Center , },
- new BoundFieldColumn { FieldName="status", HeaderText="考试状态", Align=AlignStyle.Center },
- new LinkButtonColumn { HeaderText="操作", Align=AlignStyle.Center, Text="进入考试", Handle="edit"},
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/OnlineTest/List"),
- ID = "dgList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsVerticalExpand = true,
- IsAutoHeight = false,
- })
- </div>
- </div>
- @section scripts{
- <script type="text/javascript">
- $(function () {
- $('#btnSearch').click(function () {
- $('#dgList').cmsXDataTable('reload');
- });
- })
- function edit(index,row) {
- window.open("@Url.Content("~/OnlineTest/WaittingPage")?test_id=" + row.onlinetest_id);
- }
- </script>
- }
|