List.cshtml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopdepartment = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "DepartmentID",
  10. Name = "DepartmentComboGrid",
  11. ID = "DepartmentComboGrid",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Department/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions cgop = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "CollegeID",
  31. Name = "CollegeComboGrid",
  32. ID = "CollegeComboGrid",
  33. OnSelect = "reload",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. // new LinkButtonColumn { FieldName="No", HeaderText="院系所代码", Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="Name", HeaderText="院系所名称", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/College/List"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. }
  47. };
  48. ComboGridOptions cgopCourse = new ComboGridOptions
  49. {
  50. TextField = "CourseName",
  51. ValueField = "CoursematerialID",
  52. ID = "CoursematerialComboGrid",
  53. Name = "CoursematerialComboGrid",
  54. OnSelect = "reload",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  60. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="~/Scripts/Business/EvaluationManage/MyEvaluation.js"></script>
  72. <script type="text/javascript">
  73. var nonSelect = "@DropdownList.SELECT_ALL";
  74. </script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @Html.Position()
  78. <div class="p_SearchTitle">
  79. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  80. 查询条件
  81. </div>
  82. </div>
  83. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  84. @Html.PositionCondition()
  85. <div class="search_keyword">
  86. <div class="search_input">
  87. <ul>
  88. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  89. <li class="sv">
  90. @Html.DropdownList(new DropdownListOptions
  91. {
  92. BindType = DropdownListBindType.SelectAll,
  93. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  94. ID = "SchoolYearDropdown",
  95. Name = "SchoolYearDropdown",
  96. OnSelect = "SchoolYearDropdownList",
  97. SelectedValue = ViewBag.SchoolYearID
  98. },
  99. new Dictionary<string, string> { { "data-condition", "dgMyEvaluationList" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">评价表名:</li>
  102. <li class="sv">
  103. @Html.DropdownList(new DropdownListOptions
  104. {
  105. BindType = DropdownListBindType.SelectAll,
  106. ItemSourceUrl = Url.Content("~/EvaluationTarget/EvaluationTablDropdownListBanid"),
  107. ID = "EvaluationTableDropdown",
  108. Name = "EvaluationTableDropdown",
  109. OnSelect = "QueryEvaluationTableDropdownList"
  110. },
  111. new Dictionary<string, string> { { "data-condition", "dgMyEvaluationList" } })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  114. <li class="sv">
  115. @Html.DropdownList(new DropdownListOptions
  116. {
  117. BindType = DropdownListBindType.SelectAll,
  118. ItemSourceUrl = Url.Content("~/EvaluationType/EvaluationTypeDropdownListBanid"),
  119. ID = "EvaluationTypeDropdown",
  120. Name = "EvaluationTypeDropdown",
  121. OnSelect = "QueryEvaluationTypeDropdownList"
  122. },
  123. new Dictionary<string, string> { { "data-condition", "dgMyEvaluationList" } })
  124. </li>
  125. </ul>
  126. <ul>
  127. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  128. <li class="sv">
  129. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgMyEvaluationList" } })
  130. </li>
  131. </ul>
  132. </div>
  133. </div>
  134. </form>
  135. <div class="p_title">
  136. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  137. 我的评价列表
  138. </div>
  139. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  140. </div>
  141. @Html.PositionBatchModify()
  142. <div class="search_list">
  143. @Html.DataGrid(new DataGridOptions
  144. {
  145. Columns = new List<DataGridColumn>()
  146. {
  147. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationAdviseID", Align=AlignStyle.Center,},
  148. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width = 0.1},
  149. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=14, Width=0.14 },
  150. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, OverflowLength=28, Width=0.24 },
  151. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.06 },
  152. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 },
  153. new BoundFieldColumn { FieldName="Remark", HeaderText="评语建议", Align=AlignStyle.Center, Width=0.2 },
  154. },
  155. IsCheckOnSelect = true,
  156. DataSourceUrl = Url.Content("~/MyEvaluation/List"),
  157. ID = "dgMyEvaluationList",
  158. IsPagination = true,
  159. IsShowRowNumbers = true,
  160. IsSingleSelect = false
  161. })
  162. </div>
  163. </div>