List.cshtml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopStandard = new ComboGridOptions
  6. {
  7. TextField = "StandardName",
  8. ValueField = "StandardID",
  9. OnSelect = "queryStandard",
  10. Name = "DictionaryStandard",
  11. ID = "DictionaryStandard",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions cgopClassmajor = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "ClassmajorID",
  29. Name = "ClassmajorDropdown",
  30. ID = "ClassmajorDropdown",
  31. OnSelect = "queryClass",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Classmajor/List"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. }
  47. <style type="text/css">
  48. #SpecialityScoreSumtable tr
  49. {
  50. border: 1px solid #e8e8e8;
  51. }
  52. #SpecialityScoreSumtable tr:hover
  53. {
  54. background-color: #dfdfdf;
  55. }
  56. #SpecialityScoreSumtable td
  57. {
  58. text-align: center;
  59. border: 1px solid #e8e8e8;
  60. }
  61. </style>
  62. @section scripts{
  63. <script src="~/Scripts/Business/ScoreManage/SpecialityScoreSum.js" type="text/javascript"></script>
  64. <script type="text/javascript">
  65. $(function () {
  66. mnu = $.SystemGeneral.getUrlParam("MNU");
  67. })
  68. var nonSelect = "@DropdownList.SELECT_ALL";
  69. var EMIS_CollegeLabel = '@EMIS.Utility.RSL.Get("College")';
  70. </script>
  71. }
  72. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  73. @Html.Position()
  74. <div class="p_SearchTitle">
  75. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  76. 查询条件
  77. </div>
  78. </div>
  79. <form id="formQuery" method="post" action="@Url.Content("~/SpecialityScoreSum/Excel")">
  80. <div class="search_keyword">
  81. <div class="search_input">
  82. <ul>
  83. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  84. <li class="sv">
  85. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "queryClass" })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">年级:</li>
  88. <li class="sv">
  89. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryClass", OnLoadSuccess = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  90. </li>
  91. @*<li class="sn" style="padding-left: 5px;">年级:</li>
  92. <li class="sv">
  93. @Html.DropdownList(new DropdownListOptions { ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "reloadClassmajor", OnLoadSuccess = "QueryYearDropdownList" })
  94. </li>*@
  95. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "QueryStandardComboGrid" } })
  98. </li>
  99. <li class="sn" style="padding-right: 10px; float: right; width:auto">
  100. <a class="easyui-linkbutton l-btn" onclick="reload();" href="javascript:void(0)" data-options="iconCls:'icon-search'">查询 </a>
  101. <a class="easyui-linkbutton l-btn" onclick="getExcel();" href="javascript:void(0)" data-options="iconCls:'icon-print'">导出Excel </a>
  102. <a class="easyui-linkbutton l-btn" onclick="StudentScore_Report();" href="javascript:void(0)" data-options="iconCls:'icon-print'">成绩预览 </a>
  103. </li>
  104. </ul>
  105. <ul>
  106. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  107. <li class="sv">
  108. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentScoreList" } })
  109. </li>
  110. @*<li class="sn" style="padding-left: 5px;">班级名称:</li>
  111. <li class="sv">
  112. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnLoadSuccess = "QueryClassmajorDropdownList" })
  113. </li>*@
  114. <li class="sn" style="padding-left: 5px;">学年数:</li>
  115. <li class="sv">
  116. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { ID = "DictionarySchoolyearNum", Name = "DictionarySchoolyearNum", BindType = DropdownListBindType.SelectAll })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">学期:</li>
  119. <li class="sv">
  120. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions { ID = "DictionarySchoolcode", Name = "DictionarySchoolcode", BindType = DropdownListBindType.SelectAll })
  121. </li>
  122. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  123. <li class="sv">
  124. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = 1, ID = "InSchoolStatusDictionaryDropDown", Name = "InSchoolStatusDictionaryDropDown" })
  125. </li>
  126. </ul>
  127. </div>
  128. </div>
  129. </form>
  130. <div class="search_list">
  131. <div id="SpecialityScoreSumtable" style="width: 100%; overflow-x: auto; scrollbar-arrow-color: #ffffff; scrollbar-highlight-color: #ffffff;
  132. scrollbar-3dlight-color: #70807d; scrollbar-shadow-color: #ffffff; scrollbar-darkshadow-color: #70807d;
  133. scrollbar-track-color: #ffffff">
  134. </div>
  135. </div>
  136. </div>