List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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/SelectCourseResult.js"></script>
  50. <script type="text/javascript">
  51. var nonSelect = "@DropdownList.SELECT_ALL";
  52. var opened = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Opened";
  53. var cancleCreate = "@EMIS.ViewModel.EM_SelectCourseResultStatus.CancleCreate";
  54. </script>
  55. }
  56. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  57. @Html.Position()
  58. <div class="p_SearchTitle">
  59. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  60. 查询条件
  61. </div>
  62. </div>
  63. <form id="formQuery" method="post" action="@Url.Content("~/SelectCourseResult/Excel")">
  64. @Html.PositionCondition()
  65. <div class="search_keyword">
  66. <div class="search_input">
  67. <ul>
  68. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  69. <li class="sv">
  70. @Html.DropdownList(new DropdownListOptions
  71. {
  72. ID = "SchoolYear",
  73. Name = "SchoolYear",
  74. BindType = DropdownListBindType.SelectAll,
  75. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  76. SelectedValue=BaseExtensions.GetCurrentSchoolYearID(),
  77. OnSelect = "reload"
  78. }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  79. </li>
  80. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  81. <li class="sv">
  82. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  83. </li>
  84. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  85. <li class="sv">
  86. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  87. </li>
  88. </ul>
  89. <ul>
  90. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  91. <li class="sv">
  92. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseType, new DropdownListOptions { Name = "DictionaryCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">选修类型:</li>
  95. <li class="sv">
  96. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_SelectCourseType, new DropdownListOptions { Name = "DictionarySelectCourseType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  97. </li>
  98. @*<li class="sn" style="padding-left: 5px;">是否开放:</li>
  99. <li class="sv">
  100. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "DictionaryIsOpen", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  101. </li>*@
  102. @*<li class="sn" style="padding-left: 5px;">是否已开班:</li>
  103. <li class="sv">
  104. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "DictionaryIsCreated", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  105. </li>*@
  106. <li class="sn" style="padding-left: 5px;">状态:</li>
  107. <li class="sv">
  108. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_SelectCourseResultStatus, new DropdownListOptions { Name = "DictionaryIsCreated", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSelectCourseResultList" } })
  109. </li>
  110. </ul>
  111. </div>
  112. </div>
  113. <div class="p_title">
  114. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  115. 选课结果列表
  116. </div>
  117. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  118. </div>
  119. </form>
  120. @*@Html.PositionBatchModify()*@
  121. <div class="search_list">
  122. @Html.DataGrid(new DataGridOptions
  123. {
  124. Columns = new List<DataGridColumn>()
  125. {
  126. new CheckBoxFieldColumn{ HeaderText="", FieldName="ID"},
  127. //new BoundFieldColumn { FieldName="SelectionCouseNo", HeaderText="选课编号", Align=AlignStyle.Center, Width=0.08 },
  128. new BoundFieldColumn { FieldName="SchoolYearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  129. new BoundFieldColumn { FieldName="DefaultClassName", HeaderText="选修任务班名称", Align=AlignStyle.Center, Width=0.12 },
  130. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  131. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  132. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  133. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  134. //new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  135. //new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  136. //new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  137. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  138. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  139. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  140. //new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.03 },
  141. //new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=0.03 },
  142. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.04 },
  143. new BoundFieldColumn { FieldName="TeacherUserID", HeaderText="教职工号", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  144. new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  145. new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04 },
  146. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  147. new LinkButtonColumn { FieldName="StudentTotalNum", HeaderText="已选人数", Align=AlignStyle.Center, Handle="StudentList", Width=0.04 },
  148. //new BoundFieldColumn { FieldName="IsNeedMaterialName", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.06 },
  149. //new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, Width=0.04 },
  150. //new BoundFieldColumn { FieldName="SelectCourseTypeName", HeaderText="选修类型", Align=AlignStyle.Center, Width=0.04 },
  151. //new BoundFieldColumn { FieldName="SelectCourseType", HeaderText="选修类型ID", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  152. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  153. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  154. new BoundFieldColumn { FieldName="RecordStatusCode", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  155. new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center, Width=0.02, IsHidden=true },
  156. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  157. },
  158. IsCheckOnSelect = true,
  159. DataSourceUrl = Url.Content("~/SelectCourseResult/List"),
  160. ID = "dgSelectCourseResultList",
  161. IsPagination = true,
  162. IsShowRowNumbers = true,
  163. IsSingleSelect = false
  164. })
  165. </div>
  166. </div>