List.cshtml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryClass",
  11. ID = "CollegeDropdown",
  12. Name = "CollegeDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //班级
  28. ComboGridOptions cgopClassmajor = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ClassmajorID",
  32. Name = "ClassmajorDropdown",
  33. ID = "ClassmajorDropdown",
  34. OnSelect = "queryClass",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Classmajor/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. //专业名称
  50. ComboGridOptions cgopStandard = new ComboGridOptions
  51. {
  52. TextField = "StandardName",
  53. ValueField = "StandardID",
  54. OnSelect = "queryStandard",
  55. ID = "StandardDictionaryDropDown",
  56. Name = "StandardDictionaryDropDown",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  62. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/MinorManage/MinorClass/MinorClass.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  82. 查询条件</div>
  83. </div>
  84. <form id="formQuery" method="post" action="@Url.Content("~/MinorClass/Excel")">
  85. @Html.PositionCondition()
  86. <div class="search_keyword">
  87. @Html.Hidden("SelectedID")
  88. <div class="search_input">
  89. <ul>
  90. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  91. <li class="sv">
  92. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgMinorClassList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">年级:</li>
  95. <li class="sv">
  96. @Html.SchoolYearDropDownList(new DropdownListOptions
  97. {
  98. BindType = DropdownListBindType.SelectAll,
  99. ID = "SchoolyearDictionaryDropDown",
  100. Name = "SchoolyearDictionaryDropDown",
  101. OnSelect = "queryClass"
  102. },
  103. new Dictionary<string, string> { { "data-condition", "dgMinorClassList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">辅修专业名称:</li>
  106. <li class="sv">
  107. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll,
  108. new ComboGridOptions
  109. {
  110. ID = "MinorStandardDropDown",
  111. Name = "MinorStandardDropDown",
  112. OnSelect = "reload"
  113. },
  114. new Dictionary<string, string> { { "data-condition", "dgMinorClassList" } })
  115. </li>
  116. @*<li class="sn" style="padding-left: 5px;">状态:</li>
  117. <li class="sv">
  118. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ClassminorStatus,
  119. new DropdownListOptions { ID = "DictionaryClassminorStatus", Name = "DictionaryClassminorStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" },
  120. new Dictionary<string, string> { { "data-condition", "dgMinorClassList" } })
  121. </li>*@
  122. </ul>
  123. </div>
  124. </div>
  125. </form>
  126. <div class="p_title">
  127. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  128. 辅修班级列表</div>
  129. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  130. </div>
  131. @*@Html.PositionBatchModify()*@
  132. <div class="search_list">
  133. @Html.DataGrid(new DataGridOptions
  134. {
  135. Columns = new List<DataGridColumn>()
  136. {
  137. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassminorID" },
  138. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.07 },
  139. new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center, Width=0.05 },
  140. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.05 },
  141. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.04 },
  142. new BoundFieldColumn { FieldName="Name", HeaderText="辅修班级", Align=AlignStyle.Center, Width=0.12 },
  143. new LinkButtonColumn { FieldName="StudentNum", HeaderText="学生人数", Align=AlignStyle.Center, Handle = "StudentList", Width=0.04 },
  144. //new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 },
  145. },
  146. IsCheckOnSelect = true,
  147. DataSourceUrl = Url.Content("~/MinorClass/List"),
  148. ID = "dgMinorClassList",
  149. IsPagination = true,
  150. IsShowRowNumbers = true,
  151. IsSingleSelect = false
  152. })
  153. </div>
  154. </div>