List.cshtml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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 cgopCourse = new ComboGridOptions
  73. {
  74. TextField = "CourseName",
  75. ValueField = "CoursematerialID",
  76. ID = "CourseComboGrid",
  77. Name = "CourseComboGrid",
  78. OnSelect = "reload",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  84. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  85. },
  86. PageSize = 5,
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false
  92. }
  93. };
  94. //教师信息
  95. ComboGridOptions cgopStaff = new ComboGridOptions
  96. {
  97. TextField = "Name",
  98. ValueField = "UserID",
  99. Name = "StaffComboGrid",
  100. ID = "StaffComboGrid",
  101. OnSelect = "reload",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.1 },
  107. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }
  108. },
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/Staff/List"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false
  114. }
  115. };
  116. //评价表名
  117. ComboGridOptions cgopEvaluationTable = new ComboGridOptions
  118. {
  119. TextField = "Name",
  120. ValueField = "EvaluationTableID",
  121. ID = "EvaluationTableDropdown",
  122. Name = "EvaluationTableDropdown",
  123. OnSelect = "reload",
  124. GridOptions = new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.06 },
  129. new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.2 },
  130. //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.06, OrderFieldName="ParticipateTypeID" },
  131. //new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn" },
  132. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.06 },
  133. new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsEnabled", CustomFormatFun="SetRedColumn" }
  134. },
  135. IsCheckOnSelect = true,
  136. DataSourceUrl = Url.Content("~/EvaluationTable/List"),
  137. IsPagination = true,
  138. IsShowRowNumbers = true,
  139. IsSingleSelect = false,
  140. }
  141. };
  142. }
  143. @section scripts{
  144. <script src="~/Scripts/Business/EvaluationManage/StudentEvaluation/EvaluationStudent.js" type="text/javascript"></script>
  145. <script type="text/javascript">
  146. var nonSelect = "@DropdownList.SELECT_ALL";
  147. </script>
  148. }
  149. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  150. @Html.Position()
  151. <div class="p_SearchTitle">
  152. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  153. </div>
  154. <form id="formQuery" method="post" action="@Url.Content("~/EvaluationStudent/Excel")">
  155. @Html.PositionCondition()
  156. <div class="search_keyword">
  157. <div class="search_input">
  158. <ul>
  159. <li class="sn" style="padding-left: 5px;color: red;">学年学期:</li>
  160. <li class="sv">
  161. @Html.DropdownList(new DropdownListOptions
  162. {
  163. ID = "SchoolyearDropdown",
  164. Name = "SchoolyearDropdown",
  165. BindType = DropdownListBindType.SelectAll,
  166. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  167. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  168. OnSelect = "reload"
  169. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  170. </li>
  171. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  172. <li class="sv">
  173. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  176. <li class="sv">
  177. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  178. </li>
  179. <li class="sn" style="padding-left: 5px;">开课教研室:</li>
  180. <li class="sv">
  181. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  182. </li>
  183. </ul>
  184. <ul>
  185. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  186. <li class="sv">
  187. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  188. </li>
  189. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  190. <li class="sv">
  191. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseType, DropdownListBindType.SelectAll,
  192. new ComboGridOptions
  193. {
  194. ID = "DictionaryCourseType",
  195. Name = "DictionaryCourseType",
  196. OnSelect = "reload"
  197. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  198. </li>
  199. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  200. <li class="sv">
  201. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll,
  202. new ComboGridOptions
  203. {
  204. ID = "DictionaryTeachingMode",
  205. Name = "DictionaryTeachingMode",
  206. OnSelect = "reload"
  207. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  208. </li>
  209. <li class="sn" style="padding-left: 5px;color:red;">任课教师:</li>
  210. <li class="sv">
  211. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  212. </li>
  213. </ul>
  214. <ul>
  215. <li class="sn" style="padding-left: 5px;">任课方式:</li>
  216. <li class="sv">
  217. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, DropdownListBindType.SelectAll,
  218. new ComboGridOptions
  219. {
  220. ID = "DictionaryTeachingMethod",
  221. Name = "DictionaryTeachingMethod",
  222. OnSelect = "reload"
  223. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  224. </li>
  225. <li class="sn" style="padding-left: 5px;color: red;">评价表名:</li>
  226. <li class="sv">
  227. @Html.ComboGrid(cgopEvaluationTable, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  228. </li>
  229. <li class="sn" style="padding-left: 5px;color: red;">是否有效:</li>
  230. <li class="sv">
  231. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
  232. new ComboGridOptions
  233. {
  234. ID = "IsValidityDropdown",
  235. Name = "IsValidityDropdown",
  236. OnSelect = "reload"
  237. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  238. </li>
  239. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  240. <li class="sv">
  241. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  242. {
  243. ID = "DictionaryInschoolStatus",
  244. Name = "DictionaryInschoolStatus",
  245. BindType = DropdownListBindType.SelectAll,
  246. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
  247. OnSelect = "reload"
  248. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentList" } })
  249. </li>
  250. </ul>
  251. </div>
  252. </div>
  253. </form>
  254. <div class="p_title">
  255. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">学评明细列表</div>
  256. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  257. </div>
  258. @*Html.PositionBatchModify()*@
  259. <div class="search_list">
  260. @Html.DataGrid(new DataGridOptions
  261. {
  262. Columns = new List<DataGridColumn>()
  263. {
  264. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationStudentID" },
  265. //new BoundFieldColumn { FieldName="EvaluationStudentSettingID", HeaderText="EvaluationStudentSettingID", Align=AlignStyle.Center, Width=0.06, IsHidden=true },
  266. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  267. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  268. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  269. //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.02 },
  270. //new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03, CustomFormatFun="SetRedColumn" },
  271. //new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.08 },
  272. //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  273. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  274. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  275. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  276. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  277. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", Width=0.04, CustomFormatFun="SetRedColumn" },
  278. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, OrderFieldName="StudentStatus", Width=0.04 },
  279. //new BoundFieldColumn { FieldName="MissionName", HeaderText="任务名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6, OverflowLength=6 },
  280. //new BoundFieldColumn { FieldName="MissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  281. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  282. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  283. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.05, OverflowLength=5 },
  284. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.05, OverflowLength=5 },
  285. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.05, OverflowLength=5 },
  286. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.05, OverflowLength=5 },
  287. //new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  288. //new BoundFieldColumn { FieldName="DepartmentNo", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.08 },
  289. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  290. //new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  291. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  292. //new BoundFieldColumn { FieldName="MissionClassStatusName", HeaderText="任务状态", Align=AlignStyle.Center, OrderFieldName="MissionClassStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
  293. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  294. new BoundFieldColumn { FieldName="StaffName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  295. //new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, OrderFieldName="TitleID", Width=0.03 },
  296. new BoundFieldColumn { FieldName="TeachingMethodName", HeaderText="任课方式", Align=AlignStyle.Center, OrderFieldName="TeachingMethodID", Width=0.04 },
  297. //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, OrderFieldName="ParticipateTypeID", Width=0.04 },
  298. //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
  299. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  300. //new BoundFieldColumn { FieldName="EvaluationTableCode", HeaderText="评价表编号", Align=AlignStyle.Center, Width=0.05 },
  301. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  302. //new BoundFieldColumn { FieldName="OpenStateName", HeaderText="开放状态", Align=AlignStyle.Center, OrderFieldName="OpenState", Width=0.04, CustomFormatFun="SetRedColumn" },
  303. //new BoundFieldColumn { FieldName="Number", HeaderText="可评", Align=AlignStyle.Center, Width=0.04 },
  304. new BoundFieldColumn { FieldName="Numbered", HeaderText="已评", Align=AlignStyle.Center, Width=0.03 },
  305. new BoundFieldColumn { FieldName="IsValidityName", HeaderText="有效", Align=AlignStyle.Center, OrderFieldName="IsValidity", Width=0.03, CustomFormatFun="SetRedColumn" },
  306. new LinkButtonColumn { FieldName="ProjectCount", HeaderText="项目数", Align=AlignStyle.Center, Handle="editProjectCount", Width=0.03 },
  307. new BoundFieldColumn { FieldName="TotalScore", HeaderText="评分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  308. new BoundFieldColumn { FieldName="Advice", HeaderText="评语建议", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 }
  309. },
  310. IsCheckOnSelect = true,
  311. DataSourceUrl = Url.Content("~/EvaluationStudent/List"),
  312. ID = "dgEvaluationStudentList",
  313. IsPagination = true,
  314. IsShowRowNumbers = true,
  315. IsSingleSelect = false
  316. })
  317. </div>
  318. </div>