List.cshtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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/RetakePlanTask.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. 查询条件</div>
  89. </div>
  90. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanTask/Excel")">
  91. @Html.PositionCondition()
  92. <div class="search_keyword">
  93. <div class="search_input">
  94. <ul>
  95. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  96. <li class="sv">
  97. @Html.DropdownList(new DropdownListOptions
  98. {
  99. ID = "SchoolYearDropdown",
  100. Name = "SchoolYearDropdown",
  101. BindType = DropdownListBindType.SelectAll,
  102. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  103. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  104. OnSelect = "reload"
  105. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanTaskList" } })
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  108. <li class="sv">
  109. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgRetakePlanTaskList" } })
  110. </li>
  111. <li class="sn" style="padding-left: 5px;">开课教研室:</li>
  112. <li class="sv">
  113. @Html.ComboGrid(cgopdepartment, new Dictionary<string, string> { { "data-condition", "dgRetakePlanTaskList" } })
  114. </li>
  115. </ul>
  116. <ul>
  117. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  118. <li class="sv">
  119. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgRetakePlanTaskList" } })
  120. </li>
  121. <li class="sn" style="padding-left: 5px;">重修类型:</li>
  122. <li class="sv">
  123. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_RetakeType, new DropdownListOptions
  124. {
  125. ID = "DictionaryRetakeType",
  126. Name = "DictionaryRetakeType",
  127. BindType = DropdownListBindType.SelectAll,
  128. OnSelect = "reload"
  129. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanTaskList" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px;">状态:</li>
  132. <li class="sv">
  133. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_RetakePlanStatus, new DropdownListOptions
  134. {
  135. ID = "DictionaryStatus",
  136. Name = "DictionaryStatus",
  137. BindType = DropdownListBindType.SelectAll,
  138. OnSelect = "reload"
  139. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanTaskList" } })
  140. </li>
  141. </ul>
  142. </div>
  143. </div>
  144. </form>
  145. <div class="p_title">
  146. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  147. 重修任务列表
  148. </div>
  149. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  150. </div>
  151. @*@Html.PositionBatchModify()*@
  152. <div class="search_list">
  153. @Html.DataGrid(new DataGridOptions
  154. {
  155. Columns = new List<DataGridColumn>()
  156. {
  157. new CheckBoxFieldColumn{ HeaderText="", FieldName="RetakePlanID" },
  158. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="重修学年学期", Align=AlignStyle.Center, Handle="retakeDetail", Width=0.08 },
  159. new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级名称", Align=AlignStyle.Center, Width=0.1 },
  160. //new BoundFieldColumn { FieldName="RetakeTypeName", HeaderText="重修类型", Align=AlignStyle.Center, Width=0.04 },
  161. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  162. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  163. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  164. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  165. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  166. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  167. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  168. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.04 },
  169. new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  170. new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04 },
  171. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  172. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  173. //new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText="开课院系所", Align=AlignStyle.Center, Width=0.06 },
  174. new LinkButtonColumn { FieldName="PlanNumber", HeaderText="计划人数", Align=AlignStyle.Center, Handle="studentDetail", Width=0.04 },
  175. //new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center, Width=0.02, IsHidden=true },
  176. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" }
  177. },
  178. PageSize = 30,
  179. IsCheckOnSelect = true,
  180. DataSourceUrl = Url.Content("~/RetakePlanTask/List"),
  181. ID = "dgRetakePlanTaskList",
  182. IsPagination = true,
  183. IsShowRowNumbers = true,
  184. IsSingleSelect = false
  185. })
  186. </div>
  187. </div>