List.cshtml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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/EvaluationStudentSettingScore.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("~/EvaluationStudentSettingScore/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", "dgEvaluationStudentSettingScoreList" } })
  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", "dgEvaluationStudentSettingScoreList" } })
  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", "dgEvaluationStudentSettingScoreList" } })
  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", "dgEvaluationStudentSettingScoreList" } })
  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", "dgEvaluationStudentSettingScoreList" } })
  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", "dgEvaluationStudentSettingScoreList" } })
  198. </li>
  199. <li class="sn" style="padding-left: 5px;">处理方式:</li>
  200. <li class="sv">
  201. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll,
  202. new ComboGridOptions
  203. {
  204. ID = "DictionaryHandleMode",
  205. Name = "DictionaryHandleMode",
  206. OnSelect = "reload"
  207. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentSettingScoreList" } })
  208. </li>
  209. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  210. <li class="sv">
  211. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll,
  212. new ComboGridOptions
  213. {
  214. ID = "DictionaryTeachingMode",
  215. Name = "DictionaryTeachingMode",
  216. OnSelect = "reload"
  217. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentSettingScoreList" } })
  218. </li>
  219. </ul>
  220. <ul>
  221. <li class="sn" style="padding-left: 5px;color:red;">任课教师:</li>
  222. <li class="sv">
  223. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentSettingScoreList" } })
  224. </li>
  225. <li class="sn" style="padding-left: 5px;">任课方式:</li>
  226. <li class="sv">
  227. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, DropdownListBindType.SelectAll,
  228. new ComboGridOptions
  229. {
  230. ID = "DictionaryTeachingMethod",
  231. Name = "DictionaryTeachingMethod",
  232. OnSelect = "reload"
  233. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentSettingScoreList" } })
  234. </li>
  235. <li class="sn" style="padding-left: 5px;color: red;">评价表名:</li>
  236. <li class="sv">
  237. @Html.ComboGrid(cgopEvaluationTable, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentSettingScoreList" } })
  238. </li>
  239. <li class="sn" style="padding-left: 5px;color: red;">开放状态:</li>
  240. <li class="sv">
  241. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
  242. new ComboGridOptions
  243. {
  244. ID = "OpenStateDropdown",
  245. Name = "OpenStateDropdown",
  246. OnSelect = "reload"
  247. }, new Dictionary<string, string> { { "data-condition", "dgEvaluationStudentSettingScoreList" } })
  248. </li>
  249. </ul>
  250. </div>
  251. </div>
  252. </form>
  253. <div class="p_title">
  254. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">学评评分列表</div>
  255. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  256. </div>
  257. @Html.PositionBatchModify()
  258. <div class="search_list">
  259. @Html.DataGrid(new DataGridOptions
  260. {
  261. Columns = new List<DataGridColumn>()
  262. {
  263. new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationStudentSettingID" },
  264. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  265. //new BoundFieldColumn { FieldName="MissionName", HeaderText="任务名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  266. new LinkButtonColumn { FieldName="MissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  267. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  268. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  269. //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  270. //new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  271. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  272. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  273. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.05, OverflowLength=5 },
  274. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.05, OverflowLength=5 },
  275. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.05, OverflowLength=5 },
  276. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.05, OverflowLength=5 },
  277. //new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  278. //new BoundFieldColumn { FieldName="DepartmentNo", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.08 },
  279. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  280. //new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  281. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.04, CustomFormatFun="SetRedColumn" },
  282. //new BoundFieldColumn { FieldName="MissionClassStatusName", HeaderText="任务状态", Align=AlignStyle.Center, OrderFieldName="MissionClassStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
  283. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.04 },
  284. new BoundFieldColumn { FieldName="StaffName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  285. //new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center, OrderFieldName="TitleID", Width=0.03 },
  286. new BoundFieldColumn { FieldName="TeachingMethodName", HeaderText="任课方式", Align=AlignStyle.Center, OrderFieldName="TeachingMethodID", Width=0.04 },
  287. //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, OrderFieldName="ParticipateTypeID", Width=0.04 },
  288. //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
  289. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
  290. //new BoundFieldColumn { FieldName="EvaluationTableCode", HeaderText="评价表编号", Align=AlignStyle.Center, Width=0.05 },
  291. //new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  292. new LinkButtonColumn { FieldName="ParticipateCount", HeaderText="参评人数", Align=AlignStyle.Center, Handle="editParticipateCount", Width=0.04 },
  293. new BoundFieldColumn { FieldName="NoParticipateCount", HeaderText="未评人数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  294. new BoundFieldColumn { FieldName="ValidityParticipateCount", HeaderText="有效评数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  295. new BoundFieldColumn { FieldName="ValidityParticipateRate", HeaderText="有效评率%", Align=AlignStyle.Center, Width=0.05 },
  296. new BoundFieldColumn { FieldName="OpenStateName", HeaderText="开放状态", Align=AlignStyle.Center, OrderFieldName="OpenState", Width=0.04, CustomFormatFun="SetRedColumn" },
  297. new BoundFieldColumn { FieldName="TotalScore", HeaderText="评分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" }
  298. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
  299. },
  300. IsCheckOnSelect = true,
  301. DataSourceUrl = Url.Content("~/EvaluationStudentSettingScore/List"),
  302. ID = "dgEvaluationStudentSettingScoreList",
  303. IsPagination = true,
  304. IsShowRowNumbers = true,
  305. IsSingleSelect = false
  306. })
  307. </div>
  308. </div>