List.cshtml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. }
  49. @section scripts{
  50. <script src="~/Scripts/Business/EvaluationManage/EvaluationAdvise.js"></script>
  51. <script type="text/javascript">
  52. var nonSelect = "@DropdownList.SELECT_ALL";
  53. </script>
  54. }
  55. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  56. @Html.Position()
  57. <div class="p_SearchTitle">
  58. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  59. 查询条件
  60. </div>
  61. </div>
  62. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  63. @Html.PositionCondition()
  64. <div class="search_keyword">
  65. <div class="search_input">
  66. <ul>
  67. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  68. <li class="sv">
  69. @Html.DropdownList(new DropdownListOptions
  70. { BindType = DropdownListBindType.SelectAll,
  71. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  72. ID = "SchoolYearDropdown", Name = "SchoolYearDropdown",
  73. OnSelect = "SchoolYearDropdownList",
  74. SelectedValue = ViewBag.SchoolYearID },
  75. new Dictionary<string, string> { { "data-condition", "dgEvaluationAdviseList" } })
  76. </li>
  77. <li class="sn" style="padding-left: 5px;">评价表名:</li>
  78. <li class="sv">
  79. @Html.DropdownList(new DropdownListOptions
  80. { BindType = DropdownListBindType.SelectAll,
  81. ItemSourceUrl = Url.Content("~/EvaluationTarget/EvaluationTablDropdownListBanid"),
  82. ID = "EvaluationTableDropdown",
  83. Name = "EvaluationTableDropdown",
  84. OnSelect = "QueryEvaluationTableDropdownList" },
  85. new Dictionary<string, string> { { "data-condition", "dgEvaluationAdviseList" } })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">参评类型:</li>
  88. <li class="sv">
  89. @Html.DropdownList(new DropdownListOptions
  90. { BindType = DropdownListBindType.SelectAll,
  91. ItemSourceUrl = Url.Content("~/EvaluationType/EvaluationTypeDropdownListBanid"),
  92. ID = "EvaluationTypeDropdown",
  93. Name = "EvaluationTypeDropdown",
  94. OnSelect = "QueryEvaluationTypeDropdownList" },
  95. new Dictionary<string, string> { { "data-condition", "dgEvaluationAdviseList" } })
  96. </li>
  97. </ul>
  98. <ul>
  99. <li class="sn" style="padding-left: 5px;">院系所:&nbsp;</li>
  100. <li class="sv">
  101. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), SelectedValue = Request["collegeID"], ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationAdviseList" }})
  102. </li>
  103. <li class="sn" style="padding-left: 5px;">&nbsp;&nbsp;教研室:&nbsp;</li>
  104. <li class="sv">
  105. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "DepartmentDropdown", Name = "DepartmentDropdown", OnSelect = "SelectDepartmentDropdownList", OnLoadSuccess = "" }, new Dictionary<string, string> { { "data-condition", "dgEvaluationAdviseList" }})
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">&nbsp;&nbsp;教师:&nbsp;</li>
  108. <li class="sv">
  109. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "StaffDropdown", Name = "StaffDropdown", OnSelect = "reload", OnLoadSuccess = "" })*@
  110. @Html.ComboGrid(new ComboGridOptions
  111. {
  112. TextField = "Name",
  113. ValueField = "UserID",
  114. OnSelect = "reload",
  115. ID = "StaffDropdown",
  116. Name = "StaffDropdown",
  117. GridOptions = new DataGridOptions
  118. {
  119. Columns = new List<DataGridColumn>()
  120. {
  121. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  122. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  123. },
  124. IsCheckOnSelect = true,
  125. DataSourceUrl = Url.Content("~/Staff/List"),
  126. IsPagination = true,
  127. IsShowRowNumbers = true,
  128. IsSingleSelect = false,
  129. IsAutoLoad = false,
  130. OnLoadSuccessFun = ""
  131. },
  132. },
  133. new Dictionary<string, string> { { "data-condition", "dgEvaluationAdviseList" } }
  134. )
  135. </li>
  136. </ul>
  137. </div>
  138. </div>
  139. </form>
  140. <div class="p_title">
  141. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  142. 评语建议列表
  143. </div>
  144. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  145. </div>
  146. @Html.PositionBatchModify()
  147. <div class="search_list">
  148. @Html.DataGrid(new DataGridOptions
  149. {
  150. Columns = new List<DataGridColumn>()
  151. {
  152. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationAdviseID", Align=AlignStyle.Center,},
  153. new BoundFieldColumn { FieldName="UserCodes", HeaderText="教师编号", Align=AlignStyle.Center, Width=0.08 },
  154. new BoundFieldColumn { FieldName="UserNames", HeaderText="教师名称", Align=AlignStyle.Center, OverflowLength=12, Width=0.08 },
  155. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=14, Width=0.1 },
  156. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, OverflowLength=24, Width=0.16 },
  157. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 },
  158. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, OverflowLength=16, Width=0.11 },
  159. new BoundFieldColumn { FieldName="Remark", HeaderText="评语建议", Align=AlignStyle.Center, Width=0.14 },
  160. },
  161. IsCheckOnSelect = true,
  162. DataSourceUrl = Url.Content("~/EvaluationAdvise/List"),
  163. ID = "dgEvaluationAdviseList",
  164. IsPagination = true,
  165. IsShowRowNumbers = true,
  166. IsSingleSelect = false
  167. })
  168. </div>
  169. </div>