1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- @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.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCollege" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">院系所:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">班级名称:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </li>
- <li>
- @Html.Button(new ButtonOptions() { ID = "btnSearch", Text = "查 询" })
- @Html.Button(new ButtonOptions() { ID = "btnAdd", 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 CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
- new LinkButtonColumn { FieldName="test_paper_name", HeaderText="试卷名称", Align=AlignStyle.Center,Handle="edit" },
- new BoundFieldColumn { FieldName="WorkName", HeaderText="作业名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="test_begin_date", HeaderText="开始时间", Align=AlignStyle.Center, Formatter= Formatter.OnlyYearMonthDay},
- new BoundFieldColumn { FieldName="test_end_date", HeaderText="结束时间", Align=AlignStyle.Center , Formatter= Formatter.OnlyYearMonthDay },
- new BoundFieldColumn { FieldName="status", HeaderText="作业状态", Align=AlignStyle.Center },
- new LinkButtonColumn { HeaderText="操作", Align=AlignStyle.Center, Text="进入作业", Handle="edit"},
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/MyCoursework/List"),
- ID = "dgList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsVerticalExpand = true,
- IsAutoHeight = false,
- })
- </div>
- </div>
- @section scripts{
- <script type="text/javascript">
- $(function () {
- $('#btnAdd').click(function () {
- window.location.href = "@Url.Content("~/Coursework/CourseworkAdd")";
- })
- })
- function edit(index, row) {
- window.location.href = ("@Url.Content("~/MyCoursework/CourseworView")?workid=" + row.id);
- }
- </script>
- }
|