ByLevelList.cshtml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryStandard",
  11. Name = "CollegeDropdown",
  12. ID = "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 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  19. },
  20. //OnLoadSuccessFun = "queryClass",
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopClassmajor = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ClassmajorID",
  32. Name = "ClassmajorDropdown",
  33. ID = "ClassmajorDropdown",
  34. OnSelect = "reload",
  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. ComboGridOptions cgopStandard = new ComboGridOptions
  50. {
  51. TextField = "StandardName",
  52. ValueField = "StandardID",
  53. OnSelect = "queryStandard",
  54. Name = "StandardDictionaryDropDown",
  55. ID = "StandardDictionaryDropDown",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false,
  67. }
  68. };
  69. ComboGridOptions Csop = new ComboGridOptions
  70. {
  71. TextField = "CourseName",
  72. ValueField = "CoursematerialID",
  73. ID = "CourseDropdown",
  74. Name = "CourseDropdown",
  75. OnSelect="reload",
  76. GridOptions = new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  81. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  82. },
  83. IsCheckOnSelect = true,
  84. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  85. IsPagination = true,
  86. IsShowRowNumbers = true,
  87. IsSingleSelect = false
  88. }
  89. };
  90. }
  91. @section scripts{
  92. <script src="~/Scripts/Business/ScoreManage/ScoreConvertByLevelList.js" type="text/javascript"></script>
  93. <script type="text/javascript">
  94. var nonSelect = "@DropdownList.SELECT_ALL";
  95. </script>
  96. }
  97. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  98. @Html.Position()
  99. <div class="p_SearchTitle">
  100. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  101. 查询条件
  102. </div>
  103. </div>
  104. <form id="formQuery" method="post" action="@Url.Content("~/ScoreConvert/ByLevelExcel")">
  105. @Html.PositionCondition()
  106. @Html.Hidden("SelectedIDs")
  107. <div class="search_keyword">
  108. <div class="search_input">
  109. <ul>
  110. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  111. <li class="sv">
  112. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", SelectedValue = @ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByLevelList" } })
  113. </li>
  114. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  115. <li class="sv">
  116. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByLevelList" } })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">年级:</li>
  119. <li class="sv">
  120. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByLevelList" } })
  121. </li>
  122. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  123. <li class="sv">
  124. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByLevelList" } })
  125. </li>
  126. </ul>
  127. <ul>
  128. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  129. <li class="sv">
  130. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByLevelList" } })
  131. </li>
  132. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  133. <li class="sv">
  134. @Html.ComboGrid(Csop, new Dictionary<string, string> { { "data-condition", "dgScoreConvertByLevelList" } })
  135. </li>
  136. </ul>
  137. <ul>
  138. @*导出数据*@
  139. <li style="display:none" class="sv" >
  140. <input id="ScoreConvertByLevelScoreIDs" name="ScoreConvertByLevelScoreIDs" type="text" value="" />
  141. </li>
  142. </ul>
  143. </div>
  144. </div>
  145. </form>
  146. <div class="p_title">
  147. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  148. 统一认定列表
  149. </div>
  150. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  151. </div>
  152. @Html.PositionBatchModify()
  153. <div class="search_list">
  154. @Html.DataGrid(new DataGridOptions
  155. {
  156. Columns = new List<DataGridColumn>()
  157. {
  158. new CheckBoxFieldColumn{ HeaderText="", FieldName="ScoreConvertByLevelScoreID"},
  159. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.04 },
  160. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center},
  161. new BoundFieldColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center, Width=0.02 },
  162. new BoundFieldColumn { FieldName="StandardStr", HeaderText="专业", Align=AlignStyle.Center },
  163. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  164. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.04},
  165. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04},
  166. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04},
  167. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center},
  168. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目名称", Align=AlignStyle.Center},
  169. new BoundFieldColumn { FieldName="Score", HeaderText="成绩", Align=AlignStyle.Center, Width=0.02},
  170. },
  171. PageSize = 50,
  172. IsCheckOnSelect = true,
  173. DataSourceUrl = Url.Content("~/ScoreConvert/ByLevelList"),
  174. ID = "dgScoreConvertByLevelList",
  175. IsPagination = true,
  176. IsShowRowNumbers = true,
  177. IsSingleSelect = false,
  178. IsAutoHeight = false,
  179. })
  180. </div>
  181. </div>