List.cshtml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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/SubjectCountLimit.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("~/ExaminationSubjectCountLimit/Excel")">
  13. <div class="search_keyword">
  14. <div class="search_input">
  15. <ul>
  16. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  17. <li class="sv">
  18. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSubjectCountLimitList" } })
  19. </li>
  20. <li class="sn" style="padding-left: 5px;">院系专业:</li>
  21. <li class="sv">
  22. @Html.ComboGrid(new ComboGridOptions
  23. {
  24. TextField = "Name",
  25. ValueField = "FacultymajorID",
  26. OnSelect = "reload",
  27. ID = "FacultymajorDropdown",
  28. Name = "FacultymajorDropdown",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. new LinkButtonColumn { FieldName="Code", HeaderText="院系专业代码", Align=AlignStyle.Center },
  34. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center },
  35. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  36. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. }
  44. }, new Dictionary<string, string> { { "data-condition", "dgSubjectCountLimitList" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">年级数:</li>
  47. <li class="sv">
  48. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YearNumDropdown", Name = "YearNumDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSubjectCountLimitList" } })
  49. </li>
  50. </ul>
  51. </div>
  52. </div>
  53. <div class="p_title">
  54. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  55. 门数限定列表
  56. </div>
  57. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  58. </div>
  59. </form>
  60. @Html.PositionBatchModify()
  61. <div class="search_list">
  62. @Html.DataGrid(new DataGridOptions
  63. {
  64. Columns = new List<DataGridColumn>()
  65. {
  66. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectCountLimitID"},
  67. new LinkButtonColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center , Handle="edit" },
  68. new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业", Align=AlignStyle.Center },
  69. new BoundFieldColumn { FieldName="FacultymajorID", HeaderText="院系专业", Align=AlignStyle.Center,IsHidden=true },
  70. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="年级数", Align=AlignStyle.Center },
  71. new BoundFieldColumn { FieldName="Years", HeaderText="年级数", Align=AlignStyle.Center,IsHidden=true },
  72. new BoundFieldColumn { FieldName="SubjectCountLimit", HeaderText="报名门数", Align=AlignStyle.Center }
  73. },
  74. IsCheckOnSelect = true,
  75. DataSourceUrl = Url.Content("~/ExaminationSubjectCountLimit/List"),
  76. ID = "dgSubjectCountLimitList",
  77. IsPagination = true,
  78. IsShowRowNumbers = true,
  79. IsSingleSelect = false
  80. })
  81. </div>
  82. </div>