List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //教研室
  50. ComboGridOptions cgopDepartment = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "DepartmentID",
  54. ID = "DepartmentDropdown",
  55. Name = "DepartmentDropdown",
  56. OnSelect = "queryDepartment",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Department/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. //教师信息
  72. ComboGridOptions cgopStaff = new ComboGridOptions
  73. {
  74. TextField = "Name",
  75. ValueField = "UserID",
  76. Name = "StaffComboGrid",
  77. ID = "StaffComboGrid",
  78. OnSelect = "reload",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.1 },
  84. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }
  85. },
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/Staff/List"),
  88. IsPagination = true,
  89. IsShowRowNumbers = true,
  90. IsSingleSelect = false
  91. }
  92. };
  93. //课程信息
  94. ComboGridOptions cgopCourse = new ComboGridOptions
  95. {
  96. TextField = "CourseName",
  97. ValueField = "CoursematerialID",
  98. ID = "CourseComboGrid",
  99. Name = "CourseComboGrid",
  100. OnSelect = "reload",
  101. GridOptions = new DataGridOptions
  102. {
  103. Columns = new List<DataGridColumn>()
  104. {
  105. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  106. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  107. },
  108. PageSize = 5,
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. }
  115. };
  116. }
  117. @section scripts{
  118. <script src="~/Scripts/Business/EvaluationManage/EvaluationResult/EvaluationStaffScore.js" type="text/javascript"></script>
  119. <script type="text/javascript">
  120. var nonSelect = "@DropdownList.SELECT_ALL";
  121. </script>
  122. }
  123. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  124. @Html.Position()
  125. <div class="p_SearchTitle">
  126. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  127. </div>
  128. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationStaffScore/Excel")">
  129. @Html.PositionCondition()
  130. <div class="search_keyword">
  131. <div class="search_input">
  132. <ul>
  133. <li class="sn" style="padding-left: 5px;color: red;">学年学期:</li>
  134. <li class="sv">
  135. @Html.DropdownList(new DropdownListOptions
  136. {
  137. ID = "SchoolyearDropdown",
  138. Name = "SchoolyearDropdown",
  139. BindType = DropdownListBindType.SelectAll,
  140. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  141. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  142. OnSelect = "reload"
  143. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  144. </li>
  145. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  146. <li class="sv">
  147. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  150. <li class="sv">
  151. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">教研室:</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  156. </li>
  157. </ul>
  158. <ul>
  159. <li class="sn" style="padding-left: 5px;color:red;">任课教师:</li>
  160. <li class="sv">
  161. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  162. </li>
  163. <li class="sn" style="padding-left: 5px;color: red;">在职状态:</li>
  164. <li class="sv">
  165. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, new DropdownListOptions
  166. {
  167. ID = "DictionaryIncumbencyState",
  168. Name = "DictionaryIncumbencyState",
  169. BindType = DropdownListBindType.SelectAll,
  170. SelectedValue = (int)EMIS.ViewModel.CF_IncumbencyState.Incumbency,
  171. OnSelect = "reload"
  172. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  173. </li>
  174. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  175. <li class="sv">
  176. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgEvaluationStaffScoreList" } })
  177. </li>
  178. </ul>
  179. </div>
  180. </div>
  181. </form>
  182. <div class="p_title">
  183. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">教师评分列表</div>
  184. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  185. </div>
  186. @Html.PositionBatchModify()
  187. <div class="search_list">
  188. @Html.DataGrid(new DataGridOptions
  189. {
  190. Columns = new List<DataGridColumn>()
  191. {
  192. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationStaffScoreID" },
  193. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
  194. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
  195. new BoundFieldColumn { FieldName="StaffName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  196. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 },
  197. new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教师类型", Align=AlignStyle.Center, OrderFieldName="TeacherTypeID", Width=0.04 },
  198. new BoundFieldColumn { FieldName="IncumbencyStateName", HeaderText="在职状态", Align=AlignStyle.Center, OrderFieldName="IncumbencyState", Width=0.04, CustomFormatFun="SetRedColumn" },
  199. new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, OrderFieldName="TitleID", Width=0.04 },
  200. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  201. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  202. //new BoundFieldColumn { FieldName="DepartmentNo", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.05 },
  203. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="所属教研室", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  204. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  205. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  206. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  207. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  208. new BoundFieldColumn { FieldName="StudentScore", HeaderText=@EMIS.Utility.RSL.Get("EvaluationStudentScore"), Align=AlignStyle.Center, Width=0.04 },
  209. new BoundFieldColumn { FieldName="CollegeScore", HeaderText=@EMIS.Utility.RSL.Get("EvaluationCollegeScore"), Align=AlignStyle.Center, Width=0.04 },
  210. new BoundFieldColumn { FieldName="TotalScore", HeaderText="总评分", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  211. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  212. },
  213. IsCheckOnSelect = true,
  214. DataSourceUrl = Url.Content("~/EvaluationStaffScore/List"),
  215. ID = "dgEvaluationStaffScoreList",
  216. IsPagination = true,
  217. IsShowRowNumbers = true,
  218. IsSingleSelect = false
  219. })
  220. </div>
  221. </div>