12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- @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>
- @using (Html.BeginForm("", "", FormMethod.Post, new { id = "fm" }))
- {
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">院系代码:</li>
- <li class="sv">
- @Html.TextBox("CollegeNo")
- </li>
- <li class="sn" style="padding-left: 5px;">院系名称:</li>
- <li class="sv">
- @Html.TextBox("CollegeName")
- </li>
- <li>
- @Html.Button(new ButtonOptions() { ID = "btnSearch", Text = "查 询" })
- </li>
- </ul>
- </div>
- </div>
- }
- @* <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="CollegeID"},
- new BoundFieldColumn { FieldName="No", HeaderText="院系代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="院系名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SimpleName", HeaderText="院系简称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CampusName", HeaderText="所属校区", Align=AlignStyle.Center }
- //new BoundFieldColumn { FieldName="CreateTime", HeaderText="建立时间", Align=AlignStyle.Center,Formatter=Formatter.LongDate },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- ID = "dgList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsVerticalExpand = true,
- IsAutoHeight = false,
- PageSize = 15
- })
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $("#btnSearch").click(function () {
- loadGrid();
- });
- });
- function loadGrid() {
- var queryForm = $("#fm").getFormData();
- $("#dgList").cmsXDataTable("load", queryForm);
- }
- </script>
|