List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //开课院系所
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. ID = "CollegeDropdown",
  9. Name = "CollegeDropdown",
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. OnSelect = "queryCourseCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //开课教研室
  28. ComboGridOptions cgopdepartment = new ComboGridOptions
  29. {
  30. ID = "DepartmentComboGrid",
  31. Name = "DepartmentComboGrid",
  32. TextField = "Name",
  33. ValueField = "DepartmentID",
  34. OnSelect = "reload",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Department/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false
  47. }
  48. };
  49. //课程信息
  50. ComboGridOptions cgopCourse = new ComboGridOptions
  51. {
  52. TextField = "CourseName",
  53. ValueField = "CoursematerialID",
  54. ID = "CoursematerialComboGrid",
  55. Name = "CoursematerialComboGrid",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="../../Scripts/Business/RetakeManage/General/RetakePlanResultTask.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. //未开放
  77. var CancleStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.NotOpened)";
  78. //已开放
  79. var OpenStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.Opened)";
  80. //已开班
  81. var CreatedStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.Generated)";
  82. </script>
  83. }
  84. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  85. @Html.Position()
  86. <div class="p_SearchTitle">
  87. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  88. 查询条件
  89. </div>
  90. </div>
  91. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanResultTask/Excel")">
  92. @Html.PositionCondition()
  93. <div class="search_keyword">
  94. <div class="search_input">
  95. <ul>
  96. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  97. <li class="sv">
  98. @Html.DropdownList(new DropdownListOptions
  99. {
  100. ID = "SchoolYearDropdown",
  101. Name = "SchoolYearDropdown",
  102. BindType = DropdownListBindType.SelectAll,
  103. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  104. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  105. OnSelect = "reload"
  106. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultTaskList" } })
  107. </li>
  108. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  109. <li class="sv">
  110. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultTaskList" } })
  111. </li>
  112. <li class="sn" style="padding-left: 5px;">开课教研室:</li>
  113. <li class="sv">
  114. @Html.ComboGrid(cgopdepartment, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultTaskList" } })
  115. </li>
  116. </ul>
  117. <ul>
  118. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  119. <li class="sv">
  120. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultTaskList" } })
  121. </li>
  122. <li class="sn" style="padding-left: 5px;">重修类型:</li>
  123. <li class="sv">
  124. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_RetakeType, new DropdownListOptions
  125. {
  126. ID = "DictionaryRetakeType",
  127. Name = "DictionaryRetakeType",
  128. BindType = DropdownListBindType.SelectAll,
  129. OnSelect = "reload"
  130. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultTaskList" } })
  131. </li>
  132. <li class="sn" style="padding-left: 5px;">状态:</li>
  133. <li class="sv">
  134. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_RetakePlanStatus, new DropdownListOptions
  135. {
  136. ID = "DictionaryStatus",
  137. Name = "DictionaryStatus",
  138. BindType = DropdownListBindType.SelectAll,
  139. OnSelect = "reload"
  140. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanResultTaskList" } })
  141. </li>
  142. </ul>
  143. </div>
  144. </div>
  145. </form>
  146. <div class="p_title">
  147. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  148. 重修班级列表
  149. </div>
  150. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  151. </div>
  152. @*@Html.PositionBatchModify()*@
  153. <div class="search_list">
  154. @Html.DataGrid(new DataGridOptions
  155. {
  156. Columns = new List<DataGridColumn>()
  157. {
  158. new CheckBoxFieldColumn{ HeaderText="", FieldName="RetakePlanID" },
  159. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="重修学年学期", Align=AlignStyle.Center, Handle="retakeDetail", Width=0.08 },
  160. new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级名称", Align=AlignStyle.Center, Width=0.1 },
  161. //new BoundFieldColumn { FieldName="RetakeTypeName", HeaderText="重修类型", Align=AlignStyle.Center, Width=0.04 },
  162. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  163. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  164. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  165. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  166. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  167. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  168. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  169. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.04 },
  170. new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  171. new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04 },
  172. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  173. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  174. //new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText="开课院系所", Align=AlignStyle.Center, Width=0.06 },
  175. new LinkButtonColumn { FieldName="PlanNumber", HeaderText="计划人数", Align=AlignStyle.Center, Handle="studentPlanDetail", Width=0.04 },
  176. //new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center, Width=0.02, IsHidden=true },
  177. new LinkButtonColumn { FieldName="ApplyNumber", HeaderText="已报人数", Align=AlignStyle.Center, Handle="studentDetail", Width=0.04 },
  178. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" }
  179. },
  180. PageSize = 30,
  181. IsCheckOnSelect = true,
  182. DataSourceUrl = Url.Content("~/RetakePlanResultTask/List"),
  183. ID = "dgRetakePlanResultTaskList",
  184. IsPagination = true,
  185. IsShowRowNumbers = true,
  186. IsSingleSelect = false
  187. })
  188. </div>
  189. </div>