12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- @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="WorkName", HeaderText="作业名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="username", HeaderText="学生名字", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="test_end_date", HeaderText="完成时间", Align=AlignStyle.Center , Formatter= Formatter.OnlyYearMonthDay },
- new BoundFieldColumn { FieldName="score", HeaderText="分数", Align=AlignStyle.Center },
- new LinkButtonColumn { HeaderText="操作", Align=AlignStyle.Center, Text="查看作业", Handle="edit"},
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursework/ReviewList?workid=" + ViewBag.workid),
- 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("~/Coursework/ShowPaper")?ResultID=" + row.ResultID);
- }
- </script>
- }
|