AdjustmentApprove.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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/AdjustmentApprove.js"
  8. type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <div class="p_SearchTitle">
  16. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  17. 查询条件</div>
  18. </div>
  19. <form id="formQuery" method="post" action="@Url.Content("~/EducationSchedule/AdjustmentApproveExcel")">
  20. @Html.Hidden("hidEducationSchedulingAdjustmentID")
  21. @Html.PositionCondition()
  22. <div class="search_keyword">
  23. <div class="search_input">
  24. <ul>
  25. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  26. <li class="sv">
  27. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "reload", Name = "ddlSchoolyear" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  28. </li>
  29. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  30. <li class="sv">
  31. @Html.ComboGrid(new ComboGridOptions
  32. {
  33. TextField = "CourseName",
  34. ValueField = "CoursematerialID",
  35. Name = "cgbCoursematerial",
  36. OnSelect = "reload",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  42. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  51. </li>
  52. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  53. <li class="sv">
  54. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "ddlCollege", Name = "ddlCollege", OnSelect = "queryTeacher" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  55. </li>
  56. <li class="sn" style="padding-left: 5px;">教师:</li>
  57. <li class="sv">
  58. @Html.ComboGrid(new ComboGridOptions
  59. {
  60. TextField = "Name",
  61. ValueField = "UserID",
  62. ID = "cgbTeacher",
  63. Name = "cgbTeacher",
  64. OnSelect = "reload",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  70. },
  71. IsCheckOnSelect = true,
  72. DataSourceUrl = Url.Content("~/Staff/List"),
  73. IsPagination = true,
  74. IsShowRowNumbers = true,
  75. IsSingleSelect = false,
  76. IsAutoLoad = true
  77. }
  78. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  79. </li>
  80. </ul>
  81. <ul>
  82. <li class="sn" style="padding-left: 5px">教室:</li>
  83. <li class="sv">
  84. @Html.ComboGrid(new ComboGridOptions
  85. {
  86. TextField = "Name",
  87. ValueField = "ClassroomID",
  88. OnSelect = "reload",
  89. Name = "cbgClassroom",
  90. ID = "cbgClassroom",
  91. GridOptions = new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }
  96. },
  97. IsCheckOnSelect = true,
  98. DataSourceUrl = Url.Content("~/Classroom/List"),
  99. IsPagination = true,
  100. IsShowRowNumbers = true,
  101. IsSingleSelect = false,
  102. }
  103. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px">申请人:</li>
  106. <li class="sv">
  107. @Html.ComboGrid(new ComboGridOptions
  108. {
  109. TextField = "Name",
  110. ValueField = "UserID",
  111. ID = "cgbApplyUser",
  112. Name = "cgbApplyUser",
  113. OnSelect = "reload",
  114. SelectedValue = ((EMIS.Utility.FormValidate.CustomPrincipal)HttpContext.Current.User).UserID,
  115. GridOptions = new DataGridOptions
  116. {
  117. Columns = new List<DataGridColumn>()
  118. {
  119. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  120. },
  121. IsCheckOnSelect = true,
  122. OnLoadSuccessFun = "reload",
  123. DataSourceUrl = Url.Content("~/Staff/List"),
  124. IsPagination = true,
  125. IsShowRowNumbers = true,
  126. IsSingleSelect = false,
  127. IsAutoLoad = true
  128. }
  129. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px">申请时间:</li>
  132. <li class="sv">
  133. @Html.TextBox(new TextBoxOptions { ID = "txtStartTime", Name = "txtStartTime", TextBoxType = TextBoxType.Date, OnSelect = "startTimeChanged" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px">至</li>
  136. <li class="sv">
  137. @Html.TextBox(new TextBoxOptions { ID = "txtEndTime", Name = "txtEndTime", TextBoxType = TextBoxType.Date, OnSelect = "endTimeChanged" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  138. </li>
  139. </ul>
  140. <ul>
  141. <li class="sn" style="padding-left: 5px;">状态:</li>
  142. <li class="sv">
  143. @Html.DropdownList(new DropdownListOptions
  144. {
  145. Name = "ddlRecordStatus",
  146. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ES_EducationSchedulingAdjustment).Name),
  147. BindType = DropdownListBindType.SelectAll,
  148. SelectedValue = ViewBag.DefaultApproveStatusID,
  149. OnSelect = "reload"
  150. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingAdjustmentList" } })
  151. </li>
  152. </ul>
  153. </div>
  154. </div>
  155. </form>
  156. <div class="p_title">
  157. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  158. 课程列表</div>
  159. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  160. </div>
  161. <div class="search_list">
  162. @Html.DataGrid(new DataGridOptions
  163. {
  164. Columns = new List<DataGridColumn>()
  165. {
  166. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingAdjustmentID" },
  167. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=80 },
  168. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=80 },
  169. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=80 },
  170. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center },
  171. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="原任课老师", Align=AlignStyle.Center, Width=80 },
  172. new BoundFieldColumn { FieldName="TimeDetail", HeaderText="原上课时间", Align=AlignStyle.Center, Width=80 },
  173. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="原教室", Align=AlignStyle.Center, Width=80 },
  174. new BoundFieldColumn { FieldName="ToTeacherNames", HeaderText="任课老师", Align=AlignStyle.Center, Width=80 },
  175. new BoundFieldColumn { FieldName="ToTimeDetail", HeaderText="上课时间", Align=AlignStyle.Center, Width=80 },
  176. new BoundFieldColumn { FieldName="ToClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 },
  177. new BoundFieldColumn { FieldName="ApplyUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=80 },
  178. new BoundFieldColumn { FieldName="ApplyTime", HeaderText="提交时间", Align=AlignStyle.Center, Width=80, Formatter = Formatter.OnlyYearMonthDay },
  179. new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.ES_EducationSchedulingAdjustment).Name, IDFieldName="EducationSchedulingAdjustmentID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 }
  180. },
  181. IsCheckOnSelect = true,
  182. DataSourceUrl = Url.Content("~/EducationSchedule/AdjustmentApproveList"),
  183. ID = "dgEducationSchedulingAdjustmentList",
  184. IsPagination = true,
  185. IsShowRowNumbers = true,
  186. IsSingleSelect = false
  187. })
  188. </div>
  189. </div>