List.cshtml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions PsopEvaluationIntType = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "EvaluationIntTypeID",
  10. ID = "EvaluationIntTypeDropdown",
  11. Name = "EvaluationIntTypeDropdown",
  12. OnSelect = "QueryEvaluationIntTypeDropdownList",
  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("~/EvaluationIntType/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. //ComboGridOptions cgopdepartment = new ComboGridOptions
  27. //{
  28. // TextField = "Name",
  29. // ValueField = "DepartmentID",
  30. // Name = "DepartmentComboGrid",
  31. // ID = "DepartmentComboGrid",
  32. // OnSelect = "reload",
  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("~/Department/List"),
  42. // IsPagination = true,
  43. // IsShowRowNumbers = true,
  44. // IsSingleSelect = false
  45. // }
  46. //};
  47. //ComboGridOptions cgop = new ComboGridOptions
  48. //{
  49. // TextField = "Name",
  50. // ValueField = "CollegeID",
  51. // Name = "CollegeComboGrid",
  52. // ID = "CollegeComboGrid",
  53. // OnSelect = "reload",
  54. // GridOptions = new DataGridOptions
  55. // {
  56. // Columns = new List<DataGridColumn>()
  57. // {
  58. // // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  59. // new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  60. // },
  61. // IsCheckOnSelect = true,
  62. // DataSourceUrl = Url.Content("~/College/List"),
  63. // IsPagination = true,
  64. // IsShowRowNumbers = true,
  65. // IsSingleSelect = false
  66. // }
  67. //};
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/EvaluationManage/EvaluationTeacherScore.js"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. @Html.Position()
  77. <div class="p_SearchTitle">
  78. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  79. 查询条件
  80. </div>
  81. </div>
  82. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  83. @Html.PositionCondition()
  84. <div class="search_keyword">
  85. <div class="search_input">
  86. <ul>
  87. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  88. <li class="sv">
  89. @Html.DropdownList(new DropdownListOptions
  90. {
  91. BindType = DropdownListBindType.SelectAll,
  92. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  93. ID = "SchoolYearDropdown",
  94. Name = "SchoolYearDropdown",
  95. OnSelect = "SchoolYearDropdownList",
  96. SelectedValue = ViewBag.SchoolYearID
  97. },
  98. new Dictionary<string, string> { { "data-condition", "dgEvaluationTeacherScoreList" } })
  99. </li>
  100. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  101. <li class="sv">
  102. @Html.DropdownList(new DropdownListOptions
  103. {
  104. BindType = DropdownListBindType.None,
  105. ItemSourceUrl = Url.Content("~/EvaluationType/EvaluationTypeDropdownListBanid"),
  106. ID = "EvaluationTypeDropdown",
  107. Name = "EvaluationTypeDropdown",
  108. OnSelect = "QueryEvaluationTypeDropdownList",
  109. SelectedValue = ViewBag.EvaluationType,
  110. },
  111. new Dictionary<string, string> { { "data-condition", "dgEvaluationTeacherScoreList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">评价类型:</li>
  114. <li class="sv">
  115. @Html.ComboGrid(PsopEvaluationIntType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTeacherScoreList" } })
  116. </li>
  117. </ul>
  118. <ul>
  119. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  120. <li class="sv">
  121. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationTeacherScoreList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">教研室:</li>
  124. <li class="sv">
  125. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnSelect = "SelectDepartmentDropdownList", OnLoadSuccess = "" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationTeacherScoreList" } })
  126. </li>
  127. </ul>
  128. </div>
  129. </div>
  130. </form>
  131. <div class="p_title">
  132. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  133. 教师评分表
  134. </div>
  135. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  136. </div>
  137. @Html.PositionBatchModify()
  138. <div class="search_list">
  139. @Html.DataGrid(new DataGridOptions
  140. {
  141. Columns = new List<DataGridColumn>()
  142. {
  143. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationTableID", Align=AlignStyle.Center, },
  144. new BoundFieldColumn { FieldName="TeacherNo", HeaderText="教师编号", Align=AlignStyle.Center, Width=0.08 },
  145. new BoundFieldColumn { FieldName="TeacherName", HeaderText="教师名称", Align=AlignStyle.Center, OverflowLength=12, Width=0.08 },
  146. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=14, Width=0.1 },
  147. new BoundFieldColumn { FieldName="CommentCount", HeaderText="参评人次", Align=AlignStyle.Center, Width=0.04 },
  148. new BoundFieldColumn { FieldName="Average", HeaderText="平均分", Align=AlignStyle.Center, Width=0.06 },
  149. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, OverflowLength=26, Width=0.18 },
  150. new BoundFieldColumn { FieldName="EvaluationTableTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 },
  151. new BoundFieldColumn { FieldName="EvaluationIntTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  152. new BoundFieldColumn { FieldName="CollegeRanking", HeaderText=@EMIS.Utility.RSL.Get("College")+"排名", Align=AlignStyle.Center, Width=0.05 },
  153. new BoundFieldColumn { FieldName="DepartmentRanking", HeaderText="教研室排名", Align=AlignStyle.Center, Width=0.05 }
  154. },
  155. IsCheckOnSelect = true,
  156. DataSourceUrl = Url.Content("~/EvaluationTeacherScore/List"),
  157. ID = "dgEvaluationTeacherScoreList",
  158. IsPagination = true,
  159. IsShowRowNumbers = true,
  160. IsSingleSelect = false
  161. })
  162. </div>
  163. </div>