List.cshtml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ExaminationApply/OpenControl.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationOpenControl/Excel")">
  13. @Html.PositionCondition()
  14. <div class="search_keyword">
  15. <div class="search_input">
  16. <ul>
  17. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  18. <li class="sv">
  19. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", OnSelect = "queryExaminationSubject" }, new Dictionary<string, string> { { "data-condition", "dgOpenControlList" } })
  20. </li>
  21. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ExaminationSubjectDropdown", Name = "ExaminationSubjectDropdown", OnSelect = "reload", OnLoadSuccess = "reload" }, new Dictionary<string, string> { { "data-condition", "dgOpenControlList" } })
  24. </li>
  25. <li class="sn" style="padding-left: 5px;">年级数:</li>
  26. <li class="sv">
  27. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YearNumDropdown", Name = "YearNumDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgOpenControlList" } })
  28. </li>
  29. <li class="sn" style="padding-left: 5px;">学生类别:</li>
  30. <li class="sv">
  31. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StudentTypeDropdown", Name = "StudentTypeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgOpenControlList" } })
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="p_title">
  37. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  38. 开放控制列表
  39. </div>
  40. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  41. </div>
  42. </form>
  43. @Html.PositionBatchModify()
  44. <div class="search_list">
  45. @Html.DataGrid(new DataGridOptions
  46. {
  47. Columns = new List<DataGridColumn>()
  48. {
  49. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationOpenControlID"},
  50. new LinkButtonColumn { FieldName="ExaminationSubjectName", HeaderText="考试科目", Align=AlignStyle.Center , Handle="edit" },
  51. new BoundFieldColumn { FieldName="StudentTypeDesc", HeaderText="学生类别", Align=AlignStyle.Center },
  52. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="年级数", Align=AlignStyle.Center },
  53. new BoundFieldColumn { FieldName="StartDate", HeaderText="报名时间起", Formatter = Formatter.OnlyYearMonthDay, Align=AlignStyle.Center },
  54. new BoundFieldColumn { FieldName="EndDate", HeaderText="报名时间止", Formatter = Formatter.OnlyYearMonthDay, Align=AlignStyle.Center },
  55. new BoundFieldColumn { FieldName="PeopleNumLimit", HeaderText="限定人数", Align=AlignStyle.Center }
  56. },
  57. IsCheckOnSelect = true,
  58. DataSourceUrl = Url.Content("~/ExaminationOpenControl/List"),
  59. ID = "dgOpenControlList",
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. })
  64. </div>
  65. </div>