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>
- @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("CollegeName")
- </li>
- <li class="sn" style="padding-left: 5px;">专业:</li>
- <li class="sv">
- @Html.TextBox("StandardName")
- </li>
- <li class="sn" style="padding-left: 5px;">培养层次:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Common/DictionaryDropDown?dictionaryCode=CF_Education"), ID = "EducationID", Name = "EducationID", OnSelect = "loadGrid" }, 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.PleaseSelect, ItemSourceUrl = Url.Content("~/Common/DictionaryDropDown?dictionaryCode=CF_Learningform"), ID = "LearningformID", Name = "LearningformID", OnSelect = "loadGrid" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </li>
- <li>
- @Html.Button(new ButtonOptions() { ID = "btnSearch", Text = "查 询" })
- </li>
- </ul>
- </div>
- </div>
- }
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="FacultymajorID"},
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EducationName", HeaderText="培养层次", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center , },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center},
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/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>
|