NewList.cshtml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. var year = ViewBag.Years;
  6. ComboGridOptions cgopStandard = new ComboGridOptions
  7. {
  8. TextField = "StandardName",
  9. ValueField = "StandardID",
  10. OnSelect = "queryStandard",
  11. Name = "DictionaryStandard",
  12. ID = "DictionaryStandard",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopClassmajor = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "ClassmajorID",
  30. Name = "ClassmajorDropdown",
  31. ID = "ClassmajorDropdown",
  32. OnSelect = "queryClass",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Classmajor/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ListControlOptions course = new ListControlOptions
  48. {
  49. Name = "CourseTypeID",
  50. TextField = "Name",
  51. ValueField = "Value",
  52. ColumnCount = 10,
  53. SelectedValueUrl = @Url.Content("~/SpecialityScoreSum/GetCourseType"),
  54. //SelectedValues =
  55. };
  56. }
  57. <style type="text/css">
  58. #SpecialityScoreSumtable tr
  59. {
  60. display: block;
  61. }
  62. #SpecialityScoreSumtable tr:hover
  63. {
  64. background-color: #dfdfdf;
  65. }
  66. #SpecialityScoreSumtable td
  67. {
  68. text-align: center;
  69. border: 1px solid #e8e8e8;
  70. }
  71. </style>
  72. <!--[if IE]>
  73. <style type="text/css">
  74. #divScore table,
  75. #divStudents table
  76. {
  77. display: block;
  78. box-sizing:border-box;
  79. }
  80. </style>
  81. <![endif]-->
  82. @section scripts{
  83. <script src="~/Scripts/Business/ScoreManage/SpecialityScoreByFinal.js" type="text/javascript"></script>
  84. <script type="text/javascript">
  85. $(function () {
  86. mnu = $.SystemGeneral.getUrlParam("MNU");
  87. })
  88. var nonSelect = "@DropdownList.SELECT_ALL";
  89. var EMIS_CollegeLabel = '@EMIS.Utility.RSL.Get("College")';
  90. </script>
  91. }
  92. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  93. @Html.Position()
  94. <div class="p_SearchTitle">
  95. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  96. 查询条件
  97. </div>
  98. </div>
  99. <form id="formQuery" method="post">
  100. <div class="search_keyword">
  101. <div class="search_input">
  102. <ul>
  103. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  104. <li class="sv">
  105. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "queryClass" })
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">年级:</li>
  108. <li class="sv">
  109. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryClass", OnLoadSuccess = "queryClass", SelectedValue = year }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  110. </li>
  111. @*<li class="sn" style="padding-left: 5px;">年级:</li>
  112. <li class="sv">
  113. @Html.DropdownList(new DropdownListOptions { ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "reloadClassmajor", OnLoadSuccess = "QueryYearDropdownList" })
  114. </li>*@
  115. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  116. <li class="sv">
  117. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "QueryStandardComboGrid" } })
  118. </li>
  119. <li class="sn" style="padding-right: 10px;">
  120. <a class="easyui-linkbutton l-btn" onclick="reload();" href="javascript:void(0)" data-options="iconCls:'icon-search'">查询</a>
  121. @*<a class="easyui-linkbutton l-btn" onclick="getExcel();" href="javascript:void(0)" data-options="iconCls:'icon-print'">导出Excel</a>
  122. <a class="easyui-linkbutton l-btn" onclick="StudentScore_Report();" href="javascript:void(0)" data-options="iconCls:'icon-print'">成绩预览</a>*@
  123. </li>@Html.ContextMenuBar("List")
  124. </ul>
  125. <ul>
  126. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  127. <li class="sv">
  128. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  129. </li>
  130. @*<li class="sn" style="padding-left: 5px;">班级名称:</li>
  131. <li class="sv">
  132. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnLoadSuccess = "QueryClassmajorDropdownList" })
  133. </li>*@
  134. <li class="sn" style="padding-left: 5px;">学年数:</li>
  135. <li class="sv">
  136. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { ID = "DictionarySchoolyearNum", Name = "DictionarySchoolyearNum", BindType = DropdownListBindType.SelectAll })
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">学期:</li>
  139. <li class="sv">
  140. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions { ID = "DictionarySchoolcode", Name = "DictionarySchoolcode", BindType = DropdownListBindType.SelectAll })
  141. </li>
  142. @*<li class="sn" style="padding-left: 5px;">在校状态:</li>
  143. <li class="sv">
  144. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = 1, ID = "InSchoolStatusDictionaryDropDown", Name = "InSchoolStatusDictionaryDropDown" })
  145. </li>*@
  146. <li>@Html.CheckBox("IsCredit") 输出学分统计项</li>
  147. </ul>
  148. <ul>
  149. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  150. <li class="sv">
  151. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_CourseType, course)
  152. </li>
  153. </ul>
  154. </div>
  155. </div>
  156. </form>
  157. <div style="height: 16px; cursor: pointer; text-align: center;" onclick="javascript:switchPanel()">
  158. <center>
  159. <div id="divDownIcon" style="width: 16px; height: 16px; background: url('../Content/Bowin.Control.Core/themes/metro-blue/images/menu_arrows.png') no-repeat 0px center;"></div>
  160. <div id="divUpIcon" style="width: 16px; height: 16px; display: none; background: url('../Content/Bowin.Control.Core/themes/metro-blue/images/menu_arrows.png') no-repeat -16px center;"></div>
  161. </center>
  162. </div>
  163. <div class="search_list">
  164. <div id="SpecialityScoreSumtable" style="margin-left: 1px; margin-right: 1px; overflow-x: auto; scrollbar-arrow-color: #ffffff; scrollbar-highlight-color: #ffffff;
  165. scrollbar-3dlight-color: #70807d; scrollbar-shadow-color: #ffffff; scrollbar-darkshadow-color: #70807d;
  166. scrollbar-track-color: #ffffff">
  167. </div>
  168. </div>
  169. </div>