StudentRetakeCourseList.cshtml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentRetakeCourseList";
  5. //课程信息
  6. ComboGridOptions cgopCourse = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. ID = "CoursematerialComboGrid",
  11. Name = "CoursematerialComboGrid",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/RetakeManage/General/StudentRetakeCourse.js" type="text/javascript"></script>
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. </script>
  33. }
  34. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  35. @Html.Position()
  36. <div class="p_SearchTitle">
  37. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  38. 查询条件
  39. </div>
  40. </div>
  41. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanStudentApply/StudentRetakeCourse_Excel")">
  42. @Html.PositionCondition()
  43. <div class="search_keyword">
  44. <div class="search_input">
  45. <ul>
  46. <li class="sn" style="padding-left: 5px;">重修学年学期:</li>
  47. <li class="sv">
  48. @Html.DropdownList(new DropdownListOptions
  49. {
  50. ID = "ddlSchoolYear",
  51. Name = "ddlSchoolYear",
  52. BindType = DropdownListBindType.SelectAll,
  53. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  54. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  55. OnSelect = "reload"
  56. }, new Dictionary<string, string> { { "data-condition", "dgStudentRetakeCourseList" } })
  57. </li>
  58. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  59. <li class="sv">
  60. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgStudentRetakeCourseList" } })
  61. </li>
  62. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  63. <li class="sv">
  64. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_RetakePlanStatus, new DropdownListOptions
  65. {
  66. ID = "DictionaryRetakePlanStatus",
  67. Name = "DictionaryRetakePlanStatus",
  68. BindType = DropdownListBindType.SelectAll,
  69. OnSelect = "reload"
  70. },
  71. new Dictionary<string, string> { { "data-condition", "dgStudentRetakeCourseList" } })
  72. </li>
  73. </ul>
  74. </div>
  75. </div>
  76. </form>
  77. <div class="p_title">
  78. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  79. 重修课程列表</div>
  80. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  81. </div>
  82. <div class="search_list">
  83. @Html.DataGrid(new DataGridOptions
  84. {
  85. Columns = new List<DataGridColumn>()
  86. {
  87. new CheckBoxFieldColumn{ FieldName="RetakePlanStudentID", HeaderText="", IsHidden=true },
  88. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="重修学年学期", Align=AlignStyle.Center, Width=0.08 },
  89. new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级名称", Align=AlignStyle.Center, Width = 0.1 },
  90. new BoundFieldColumn { FieldName="RetakeTypeName", HeaderText="重修类型", Align=AlignStyle.Center, Width = 0.04 },
  91. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  92. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  93. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  94. new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  95. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  96. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.05 },
  97. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  98. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.05 },
  99. new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.06 },
  100. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.08 },
  101. new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText="开课" + @EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  102. //new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width= 0.04, CustomFormatFun="SetRedtColumn" },
  103. //new BoundFieldColumn { FieldName="ApplyNumber", HeaderText="已报人数", Align=AlignStyle.Center, Width= 0.04, CustomFormatFun="SetRedtColumn" },
  104. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" },
  105. new BoundFieldColumn { FieldName="ApplyStatusName", HeaderText="报名状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" }
  106. },
  107. IsCheckOnSelect = true,
  108. DataSourceUrl = Url.Content("~/RetakePlanStudentApply/StudentRetakeCourseList"),
  109. ID = "dgStudentRetakeCourseList",
  110. IsPagination = false,
  111. IsShowRowNumbers = true,
  112. IsSingleSelect = false
  113. })
  114. </div>
  115. </div>