List.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. </script>
  73. <script src="~/Scripts/Business/SelectCourseManage/FreeSelectionCourseApprove.js"
  74. type="text/javascript"></script>
  75. }
  76. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  77. @Html.Hidden("hid_ApprovalStatus")
  78. @Html.Hidden("hid_ApprovalStatusName")
  79. @Html.Position()
  80. <div class="p_SearchTitle">
  81. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  82. 查询条件</div>
  83. </div>
  84. <form id="formQuery" method="post" action="@Url.Content("~/FreeSelectionCourseApprove/Excel")">
  85. @Html.PositionCondition()
  86. <div class="search_keyword">
  87. <div class="search_input">
  88. <ul>
  89. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  90. <li class="sv">
  91. @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", "dgFreeSelectionCourseApproveList" } })
  92. </li>
  93. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgFreeSelectionCourseApproveList" } })
  96. </li>*@
  97. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  98. <li class="sv">
  99. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgFreeSelectionCourseApproveList" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">教研室:</li>
  102. <li class="sv">
  103. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgFreeSelectionCourseApproveList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">审批状态:</li>
  106. <li class="sv">
  107. @Html.ApproveStatusDropDownList("EM_FreeSelectionCouseApply", new DropdownListOptions { Name = "DictionaryApprovalStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgFreeSelectionCourseApproveList" } })
  108. </li>
  109. </ul>
  110. </div>
  111. </div>
  112. </form>
  113. <div class="p_title">
  114. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  115. 开课审核列表</div>
  116. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  117. </div>
  118. <div class="search_list">
  119. @Html.DataGrid(new DataGridOptions
  120. {
  121. Columns = new List<DataGridColumn>()
  122. {
  123. new CheckBoxFieldColumn{ HeaderText="", FieldName="FreeSelectionCouseApplyID" },
  124. //new BoundFieldColumn { FieldName="FreeSelectionCouseNo", HeaderText="选课编号", Align=AlignStyle.Center },
  125. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="Details", Width=0.08 },
  126. new BoundFieldColumn { FieldName="DefaultClassName", HeaderText="选修任务班名称", Align=AlignStyle.Center, Width=0.1 },
  127. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.04 },
  128. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  129. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  130. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  131. //new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  132. //new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  133. //new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  134. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  135. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  136. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  137. //new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.03 },
  138. //new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=0.03 },
  139. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.04 },
  140. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.04 },
  141. //new BoundFieldColumn { FieldName="IsNeedMaterialName", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.06 },
  142. //new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, Width=0.04 },
  143. new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04 },
  144. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  145. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  146. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  147. //new LinkButtonColumn { FieldName="GradeYearName", HeaderText="年级范围", Align=AlignStyle.Center , Handle="StudentList", Width=0.04 },
  148. //new LinkButtonColumn { FieldName="SpecialtyName", HeaderText="专业范围", Align=AlignStyle.Center , Handle="StudentList", Width=0.04 },
  149. //new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04 },
  150. //new BoundFieldColumn { FieldName="IsOpenedName", HeaderText="是否开放", Align=AlignStyle.Center, Width=0.04 },
  151. //new BoundFieldColumn { FieldName="RecordStatusCode", HeaderText="状态", Align=AlignStyle.Center, Width=0.04, IsHidden=true },
  152. //new BoundFieldColumn { FieldName="RecordStatus", HeaderText="状态", Align=AlignStyle.Center, Width=0.02, IsHidden=true },
  153. //new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 },
  154. new ApproveStatusColumn { FieldName="ApprovalStatusName", HeaderText="审批状态", TableName="EM_FreeSelectionCouseApply", IDFieldName="FreeSelectionCouseApplyID", Align=AlignStyle.Center, Width=0.04 }
  155. },
  156. IsPostBack = true,
  157. IsCheckOnSelect = true,
  158. DataSourceUrl = Url.Content("~/FreeSelectionCourseApprove/List"),
  159. ID = "dgFreeSelectionCourseApproveList",
  160. IsPagination = true,
  161. IsShowRowNumbers = true,
  162. IsSingleSelect = false
  163. })
  164. </div>
  165. </div>