Adjustment.cshtml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/SchedulingManage/Scheduling/Adjustment.js"
  8. type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  16. 查询条件</div>
  17. </div>
  18. <form id="formQuery" method="post">
  19. <div class="search_keyword">
  20. <div class="search_input">
  21. <ul>
  22. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  23. <li class="sv">
  24. @Html.DropdownList(new DropdownListOptions {
  25. BindType = DropdownListBindType.SelectAll,
  26. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  27. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  28. OnSelect = "reload()", Name = "ddlSchoolyear" },
  29. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  30. </li>
  31. <li class="sn" style="padding-left: 5px;">教师:</li>
  32. <li class="sv">
  33. @Html.ComboGrid(new ComboGridOptions
  34. {
  35. TextField = "Name",
  36. ValueField = "UserID",
  37. ID = "cgbTeacher",
  38. Name = "cgbTeacher",
  39. OnSelect = "reload",
  40. SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.UserID,
  41. GridOptions = new DataGridOptions
  42. {
  43. Columns = new List<DataGridColumn>()
  44. {
  45. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  46. },
  47. OnLoadSuccessFun = "reload",
  48. IsCheckOnSelect = true,
  49. DataSourceUrl = Url.Content("~/Staff/List"),
  50. IsPagination = true,
  51. IsShowRowNumbers = true,
  52. IsSingleSelect = false,
  53. IsAutoLoad = true
  54. }
  55. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  56. </li>
  57. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  58. <li class="sv">
  59. @Html.ComboGrid(new ComboGridOptions
  60. {
  61. TextField = "CourseName",
  62. ValueField = "CoursematerialID",
  63. Name = "cgbCoursematerial",
  64. OnSelect = "reload",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  70. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  71. },
  72. IsAutoLoad = false,
  73. IsCheckOnSelect = true,
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false,
  77. }
  78. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  79. </li>
  80. <li class="sn" style="padding-left: 5px;">任务班名称:</li>
  81. <li class="sv">
  82. @Html.ComboGrid(new ComboGridOptions
  83. {
  84. TextField = "EducationMissionClassName",
  85. ValueField = "EducationMissionClassID",
  86. Name = "cgbEducationMissionClass",
  87. OnSelect = "reload",
  88. GridOptions = new DataGridOptions
  89. {
  90. Columns = new List<DataGridColumn>()
  91. {
  92. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center }
  93. },
  94. IsAutoLoad = false,
  95. IsCheckOnSelect = true,
  96. IsPagination = true,
  97. IsShowRowNumbers = true,
  98. IsSingleSelect = false,
  99. }
  100. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  101. </li>
  102. </ul>
  103. <ul>
  104. <li class="sn" style="padding-left: 5px;">周次:</li>
  105. <li class="sv">
  106. @Html.DropdownList(new DropdownListOptions {
  107. BindType = DropdownListBindType.SelectAll,
  108. OnSelect = "reload()", Name = "ddlWeekNum" },
  109. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  110. </li>
  111. <li class="sn" style="padding-left: 5px;">星期:</li>
  112. <li class="sv">
  113. @Html.DropdownList(new DropdownListOptions {
  114. BindType = DropdownListBindType.SelectAll,
  115. OnSelect = "reload()", Name = "ddlWeekDay" },
  116. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">节次:</li>
  119. <li class="sv">
  120. @Html.DropdownList(new DropdownListOptions {
  121. BindType = DropdownListBindType.SelectAll,
  122. OnSelect = "reload()", Name = "ddlCourseTimes" },
  123. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  124. </li>
  125. <li class="sn" style="padding-left: 5px;">教室:</li>
  126. <li class="sv">
  127. @Html.ComboGrid(new ComboGridOptions
  128. {
  129. TextField = "ClassroomName",
  130. ValueField = "ClassroomID",
  131. Name = "cgbClassroom",
  132. OnSelect = "reload",
  133. GridOptions = new DataGridOptions
  134. {
  135. Columns = new List<DataGridColumn>()
  136. {
  137. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center }
  138. },
  139. IsAutoLoad = false,
  140. IsCheckOnSelect = true,
  141. IsPagination = true,
  142. IsShowRowNumbers = true,
  143. IsSingleSelect = false,
  144. }
  145. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  146. </li>
  147. </ul>
  148. </div>
  149. </div>
  150. </form>
  151. <div class="p_title">
  152. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  153. 课程列表</div>
  154. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("AdjustmentList")</div>
  155. </div>
  156. <div class="search_list">
  157. @Html.DataGrid(new DataGridOptions
  158. {
  159. Columns = new List<DataGridColumn>()
  160. {
  161. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingWeekNumID" },
  162. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=230 },
  163. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程", Align=AlignStyle.Center, Width=80 },
  164. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="教师", Align=AlignStyle.Center, Width=80 },
  165. new BoundFieldColumn { FieldName="WeekNum", HeaderText="周次", Align=AlignStyle.Center, Width=80 },
  166. new BoundFieldColumn { FieldName="WeekdayDesc", HeaderText="星期", Align=AlignStyle.Center, Width=80 },
  167. new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=80 },
  168. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 }
  169. },
  170. IsAutoLoad = false,
  171. IsCheckOnSelect = true,
  172. DataSourceUrl = Url.Content("~/EducationSchedule/Adjustment"),
  173. ID = "dgEducationSchedulingList",
  174. IsPagination = false,
  175. IsShowRowNumbers = true,
  176. IsSingleSelect = false
  177. })
  178. </div>