AdjustmentList.cshtml 12 KB

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