List.cshtml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgExaminationSubject = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationSubjectID",
  10. Name = "ExaminationSubjectDropdown",
  11. ID = "ExaminationSubjectDropdown",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. ID = "CollegeDropdown",
  31. Name = "CollegeDropdown",
  32. OnSelect = "reload",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  38. },
  39. OnLoadSuccessFun = "reload",
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. }
  48. @section scripts{
  49. <script src="~/Scripts/Business/ExaminationApply/ExaminationSubjectCollegeControl.js"
  50. type="text/javascript"></script>
  51. }
  52. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  53. @Html.Position()
  54. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationSubjectCollegeControl/Excel")">
  55. @Html.PositionCondition()
  56. <div class="search_keyword">
  57. @Html.Hidden("SelectedID")
  58. <div class="search_input">
  59. <ul>
  60. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  61. <li class="sv">
  62. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectCollegeControlList" } })
  63. </li>
  64. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  65. <li class="sv">
  66. @Html.ComboGrid(cgExaminationSubject, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectCollegeControlList" } })
  67. </li>
  68. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  69. <li class="sv">
  70. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectCollegeControlList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">院系专业:</li>
  73. <li class="sv">
  74. @Html.ComboGrid(new ComboGridOptions
  75. {
  76. TextField = "Name",
  77. ValueField = "FacultymajorID",
  78. OnSelect = "reload",
  79. ID = "FacultymajorDropdown",
  80. Name = "FacultymajorDropdown",
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new LinkButtonColumn { FieldName="Code", HeaderText="院系专业代码", Align=AlignStyle.Center },
  86. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center },
  87. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  88. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center }
  89. },
  90. IsCheckOnSelect = true,
  91. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  92. IsPagination = true,
  93. IsShowRowNumbers = true,
  94. IsSingleSelect = false
  95. }
  96. }, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectCollegeControlList" } })
  97. </li>
  98. </ul>
  99. <ul>
  100. <li class="sn" style="padding-left: 5px;">年级数:</li>
  101. <li class="sv">
  102. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearNumDropDown", Name = "SchoolyearNumDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExaminationSubjectCollegeControlList" } })
  103. </li>
  104. </ul>
  105. </div>
  106. </div>
  107. <div class="p_title">
  108. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  109. 专业报考限制列表</div>
  110. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  111. </div>
  112. </form>
  113. @Html.PositionBatchModify()
  114. <div class="search_list">
  115. @Html.DataGrid(new DataGridOptions
  116. {
  117. Columns = new List<DataGridColumn>()
  118. {
  119. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectCollegeControlID"},
  120. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  121. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="考试科目", Align=AlignStyle.Center },
  122. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  123. new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业", Align=AlignStyle.Center },
  124. new BoundFieldColumn { FieldName="SchoolyearNum", HeaderText="年级数", Align=AlignStyle.Center }
  125. },
  126. IsCheckOnSelect = true,
  127. DataSourceUrl = Url.Content("~/ExaminationSubjectCollegeControl/List"),
  128. ID = "dgExaminationSubjectCollegeControlList",
  129. IsPagination = true,
  130. IsShowRowNumbers = true,
  131. IsSingleSelect = false
  132. })
  133. </div>
  134. </div>