List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. Name = "CollegeComboGrid",
  11. ID = "CollegeComboGrid",
  12. OnSelect = "SelectCollegeComboGrid",
  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 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions cgopCourse = new ComboGridOptions
  28. {
  29. TextField = "CourseName",
  30. ValueField = "CoursematerialID",
  31. Name = "CoursematerialComboGrid",
  32. OnSelect = "reload",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.2, Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. }
  48. @section scripts{
  49. <script src="~/Scripts/Business/SelectCourseManage/SelectCourseResult/SelectCourseList.js"></script>
  50. <script type="text/javascript">
  51. var nonSelect = "@DropdownList.SELECT_ALL";
  52. var NotOpenStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.NotOpen";
  53. var CreatedStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Created";
  54. var OpenedStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Opened";
  55. var CancleCreate = "@EMIS.ViewModel.EM_SelectCourseResultStatus.CancleCreate";
  56. </script>
  57. }
  58. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  59. @Html.Position()
  60. <div class="p_SearchTitle">
  61. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  62. 查询条件
  63. </div>
  64. </div>
  65. <form id="formQuery" method="post" action="@Url.Content("~/SelectCourseList/Excel")">
  66. @Html.PositionCondition()
  67. <div class="search_keyword">
  68. <div class="search_input">
  69. <ul>
  70. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  71. <li class="sv">
  72. @Html.DropdownList(new DropdownListOptions
  73. {
  74. ID = "SchoolYear",
  75. Name = "SchoolYear",
  76. BindType = DropdownListBindType.SelectAll,
  77. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  78. SelectedValue=BaseExtensions.GetCurrentSchoolYearID(),
  79. OnSelect = "reload"
  80. }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  81. </li>
  82. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  83. <li class="sv">
  84. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  85. </li>
  86. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  87. <li class="sv">
  88. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  89. </li>
  90. </ul>
  91. <ul>
  92. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  93. <li class="sv">
  94. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new DropdownListOptions { Name = "DictionaryCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  95. </li>
  96. <li class="sn" style="padding-left: 5px;">选修类型:</li>
  97. <li class="sv">
  98. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_SelectCourseType, new DropdownListOptions { Name = "DictionarySelectCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  99. </li>
  100. @*<li class="sn" style="padding-left: 5px;">是否开放:</li>
  101. <li class="sv">
  102. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "DictionaryIsOpen", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  103. </li>*@
  104. @*<li class="sn" style="padding-left: 5px;">是否已开班:</li>
  105. <li class="sv">
  106. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "DictionaryIsCreated", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  107. </li>*@
  108. <li class="sn" style="padding-left: 5px;">状态:</li>
  109. <li class="sv">
  110. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_SelectCourseResultStatus, new DropdownListOptions { Name = "DictionaryIsCreated", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseList" } })
  111. </li>
  112. </ul>
  113. </div>
  114. </div>
  115. <div class="p_title">
  116. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  117. 选课结果名单列表
  118. </div>
  119. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  120. </div>
  121. </form>
  122. @*@Html.PositionBatchModify()*@
  123. <div class="search_list">
  124. @Html.DataGrid(new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new CheckBoxFieldColumn{ HeaderText="", FieldName="ID",Width=0.01},
  129. //new BoundFieldColumn { FieldName="SelectionCouseNo", HeaderText="选课编号", Align=AlignStyle.Center, Width=0.08 },
  130. new BoundFieldColumn { FieldName="SchoolYearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.03 },
  131. new BoundFieldColumn { FieldName="DefaultClassName", HeaderText="选修任务班名称", Align=AlignStyle.Center, Width=0.1 },
  132. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.02 },
  133. //new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  134. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.03 },
  135. new BoundFieldColumn { FieldName="SelectCourseType", HeaderText="选修类型", Align=AlignStyle.Center, Width=0.02, IsHidden=true },
  136. //new BoundFieldColumn { FieldName="SelectCourseTypeName", HeaderText="选修类型", Align=AlignStyle.Center, Width=0.02, OverflowLength=4 },
  137. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.04 },
  138. new BoundFieldColumn { FieldName="UserID", HeaderText="学生ID", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  139. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.02 },
  140. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="学籍班", Align=AlignStyle.Center, Width=0.05 },
  141. //new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  142. //new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  143. //new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  144. //new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  145. //new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  146. //new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  147. //new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  148. //new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.03 },
  149. //new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=0.03 },
  150. //new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.04 },
  151. //new BoundFieldColumn { FieldName="TeacherUserID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  152. //new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  153. //new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04 },
  154. //new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  155. //new LinkButtonColumn { FieldName="StudentTotalNum", HeaderText="已选人数", Align=AlignStyle.Center, Handle="StudentList", Width=0.04 },
  156. //new BoundFieldColumn { FieldName="IsNeedMaterialName", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.06 },
  157. //new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, Width=0.04 },
  158. //new BoundFieldColumn { FieldName="SelectCourseTypeName", HeaderText="选修类型", Align=AlignStyle.Center, Width=0.04 },
  159. //new BoundFieldColumn { FieldName="SelectCourseType", HeaderText="选修类型ID", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  160. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  161. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  162. new BoundFieldColumn { FieldName="RecordStatusCode", HeaderText="状态", Align=AlignStyle.Center, Width=0.03, IsHidden=true },
  163. new BoundFieldColumn { FieldName="RecordStatusCode", HeaderText="状态", Align=AlignStyle.Center, Width=0.03, IsHidden=true },
  164. new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center, Width=0.03, IsHidden=true },
  165. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
  166. },
  167. IsCheckOnSelect = true,
  168. DataSourceUrl = Url.Content("~/SelectCourseList/List"),
  169. ID = "dgSelectCourseList",
  170. IsPagination = true,
  171. IsShowRowNumbers = true,
  172. IsSingleSelect = false
  173. })
  174. </div>
  175. </div>