List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CampusID",
  9. OnSelect = "QueryCampusComboGridList",
  10. Name = "CampusDropdown",
  11. ID = "CampusDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.1 }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Campus/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. OnSelect = "QueryCollegeComboGridList",
  31. Name = "CollegeDropdown",
  32. ID = "CollegeDropdown",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. ComboGridOptions cgopDepartment = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "DepartmentID",
  51. OnSelect = "QueryDepartmentComboGridList",
  52. Name = "DepartmentDropdown",
  53. ID = "DepartmentDropdown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Department/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script type="text/javascript">
  71. var nonSelect = "@DropdownList.SELECT_ALL";
  72. var NotOpenStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.NotOpen";
  73. var CreatedStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Created";
  74. var OpenedStatus = "@EMIS.ViewModel.EM_SelectCourseResultStatus.Opened";
  75. var CancleCreate = "@EMIS.ViewModel.EM_SelectCourseResultStatus.CancleCreate";
  76. </script>
  77. <script src="~/Scripts/Business/SelectCourseManage/ExecutableFreeSelectionCouse.js"
  78. type="text/javascript"></script>
  79. }
  80. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  81. @Html.Position()
  82. <div class="p_SearchTitle">
  83. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  84. 查询条件</div>
  85. </div>
  86. <form id="formQuery" method="post" action="@Url.Content("~/ExecutableFreeSelectionCouse/Excel")">
  87. @Html.PositionCondition()
  88. <div class="search_keyword">
  89. <div class="search_input">
  90. <ul>
  91. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  92. <li class="sv">
  93. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgExecutableFreeSelectionCouseList" } })
  94. </li>
  95. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgExecutableFreeSelectionCouseList" } })
  98. </li>*@
  99. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  100. <li class="sv">
  101. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgExecutableFreeSelectionCouseList" } })
  102. </li>
  103. <li class="sn" style="padding-left: 5px;">教研室:</li>
  104. <li class="sv">
  105. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgExecutableFreeSelectionCouseList" } })
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">状态:</li>
  108. <li class="sv">
  109. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_SelectCourseResultStatus, new DropdownListOptions { Name = "DictionaryStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload", OnLoadSuccess = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExecutableFreeSelectionCouseList" } })
  110. </li>
  111. </ul>
  112. <ul>
  113. @*<li class="sn" style="padding-left: 5px;">是否开放:</li>
  114. <li class="sv">
  115. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { Name = "DictionaryIsOpen", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgExecutableFreeSelectionCouseList" } })
  116. </li>*@
  117. </ul>
  118. </div>
  119. </div>
  120. <div class="p_title">
  121. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  122. 任选设定列表</div>
  123. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  124. </div>
  125. </form>
  126. @Html.PositionBatchModify()
  127. <div class="search_list">
  128. @using (Html.BeginForm("Save", "ExecutableFreeSelectionCouse", new { MNU = Request["MNU"] }, FormMethod.Post,
  129. new { id = "formExecutableFreeSelectionCouse" }))
  130. {
  131. @Html.DataGrid(new DataGridOptions
  132. {
  133. Columns = new List<DataGridColumn>()
  134. {
  135. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExecutableFreeSelectionCouseID" },
  136. //new BoundFieldColumn { FieldName="FreeSelectionCouseNo", HeaderText="选课编号", Align=AlignStyle.Center, Width=0.08 },
  137. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="Details", Width=0.08 },
  138. new BoundFieldColumn { FieldName="DefaultClassName", HeaderText="选修任务班名称", Align=AlignStyle.Center, Width=0.1 },
  139. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  140. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  141. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  142. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  143. //new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  144. //new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  145. //new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  146. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  147. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  148. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  149. //new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.03 },
  150. //new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=0.03 },
  151. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.04 },
  152. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  153. //new BoundFieldColumn { FieldName="IsNeedMaterialName", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.06 },
  154. //new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, Width=0.04 },
  155. new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04 },
  156. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  157. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  158. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  159. //new LinkButtonColumn { FieldName="GradeYearName", HeaderText="年级范围", Align=AlignStyle.Center , Handle="StudentList", Width=0.04 },
  160. //new LinkButtonColumn { FieldName="SpecialtyName", HeaderText="专业范围", Align=AlignStyle.Center , Handle="StudentList", Width=0.04 },
  161. //new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04 },
  162. //new BoundFieldColumn { FieldName="IsOpenedName", HeaderText="是否开放", Align=AlignStyle.Center, Width=0.04 },
  163. new BoundFieldColumn { FieldName="RecordStatusCode", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  164. new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center, Width=0.02, IsHidden=true },
  165. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  166. },
  167. PageSize = 20,
  168. IsPostBack = true,
  169. IsCheckOnSelect = true,
  170. DataSourceUrl = Url.Content("~/ExecutableFreeSelectionCouse/List"),
  171. ID = "dgExecutableFreeSelectionCouseList",
  172. IsPagination = true,
  173. IsShowRowNumbers = true,
  174. IsSingleSelect = false
  175. })
  176. }
  177. </div>
  178. </div>