StopApprove.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions time = new ComboGridOptions
  6. {
  7. TextField = "Times",
  8. ValueField = "CoursesTimeID",
  9. OnSelect = "reload",
  10. Name = "Times",
  11. ID = "Times",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Times", HeaderText="上课时间", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions cgop = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "ClassroomID",
  29. Name = "ClassroomID",
  30. ID = "ClassroomID",
  31. OnSelect = "reload",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. // new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.3, Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Classroom/List"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. }
  47. @section scripts{
  48. <script src="~/Scripts/Business/SchedulingManage/Scheduling/StopApprove.js"
  49. type="text/javascript"></script>
  50. <script type="text/javascript">
  51. var nonSelect = "@DropdownList.SELECT_ALL";
  52. </script>
  53. }
  54. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  55. @Html.Position()
  56. <div class="p_SearchTitle">
  57. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  58. 查询条件</div>
  59. </div>
  60. <form id="formQuery" method="post" action="@Url.Content("~/EducationSchedule/StopApproveExcel")">
  61. @Html.Hidden("hidEducationSchedulingStopID")
  62. @Html.PositionCondition()
  63. <div class="search_keyword">
  64. <div class="search_input">
  65. <ul>
  66. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  67. <li class="sv">
  68. @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", "dgEducationSchedulingStopList" } })
  69. </li>
  70. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  71. <li class="sv">
  72. @Html.ComboGrid(new ComboGridOptions
  73. {
  74. TextField = "CourseName",
  75. ValueField = "CoursematerialID",
  76. Name = "cgbCoursematerial",
  77. OnSelect = "reload",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  83. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  94. <li class="sv">
  95. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), ID = "ddlCollege", Name = "ddlCollege", OnSelect = "queryTeacher" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">教师:</li>
  98. <li class="sv">
  99. @Html.ComboGrid(new ComboGridOptions
  100. {
  101. TextField = "Name",
  102. ValueField = "UserID",
  103. ID = "cgbTeacher",
  104. Name = "cgbTeacher",
  105. OnSelect = "reload",
  106. GridOptions = new DataGridOptions
  107. {
  108. Columns = new List<DataGridColumn>()
  109. {
  110. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  111. },
  112. IsCheckOnSelect = true,
  113. DataSourceUrl = Url.Content("~/Staff/List"),
  114. IsPagination = true,
  115. IsShowRowNumbers = true,
  116. IsSingleSelect = false,
  117. IsAutoLoad = true
  118. }
  119. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  120. </li>
  121. </ul>
  122. <ul>
  123. <li class="sn" style="padding-left: 5px;">周次:</li>
  124. <li class="sv">
  125. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  126. </li>
  127. <li class="sn" style="padding-left: 5px;">星期:</li>
  128. <li class="sv">
  129. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ES_WeekDay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "WeekDay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px;">节次:</li>
  132. <li class="sv">
  133. @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">教室:</li>
  136. <li class="sv">
  137. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  138. </li>
  139. </ul>
  140. <ul>
  141. <li class="sn" style="padding-left: 5px;">申请人:</li>
  142. <li class="sv">
  143. @Html.ComboGrid(new ComboGridOptions
  144. {
  145. TextField = "Name",
  146. ValueField = "UserID",
  147. ID = "applyUserID",
  148. Name = "applyUserID",
  149. OnSelect = "reload",
  150. SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.UserID,
  151. GridOptions = new DataGridOptions
  152. {
  153. Columns = new List<DataGridColumn>()
  154. {
  155. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  156. },
  157. OnLoadSuccessFun = "reload",
  158. IsCheckOnSelect = true,
  159. DataSourceUrl = Url.Content("~/Staff/List"),
  160. IsPagination = true,
  161. IsShowRowNumbers = true,
  162. IsSingleSelect = false,
  163. IsAutoLoad = true
  164. }
  165. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;">申请时间</li>
  168. <li class="sv">
  169. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtStartDate", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  170. </li>
  171. <li class="sn" style="padding-left: 5px;">至</li>
  172. <li class="sv">
  173. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "txtEndDate", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">状态:</li>
  176. <li class="sv">
  177. @Html.DropdownList(new DropdownListOptions
  178. {
  179. Name = "ddlRecordStatus",
  180. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ES_EducationSchedulingStop).Name),
  181. BindType = DropdownListBindType.SelectAll,
  182. SelectedValue = ViewBag.DefaultApproveStatusID,
  183. OnSelect = "reload"
  184. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingStopList" } })
  185. </li>
  186. </ul>
  187. </div>
  188. </div>
  189. </form>
  190. <div class="p_title">
  191. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  192. 课程列表</div>
  193. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  194. </div>
  195. <div class="search_list">
  196. @Html.DataGrid(new DataGridOptions
  197. {
  198. Columns = new List<DataGridColumn>()
  199. {
  200. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingStopID" },
  201. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=80 },
  202. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=80 },
  203. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=80 },
  204. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center },
  205. new BoundFieldColumn { FieldName="TimeDetail", HeaderText="上课时间", Align=AlignStyle.Center, Width=80 },
  206. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 },
  207. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="停课老师", Align=AlignStyle.Center, Width=80 },
  208. new BoundFieldColumn { FieldName="applyUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=80 },
  209. new BoundFieldColumn { FieldName="ApplyTime", HeaderText="提交时间", Align=AlignStyle.Center, Width=80, Formatter = Formatter.OnlyYearMonthDay },
  210. new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.ES_EducationSchedulingStop).Name, IDFieldName="EducationSchedulingStopID", HeaderText="状态", Align=AlignStyle.Center,Width=0.04 }
  211. },
  212. IsCheckOnSelect = true,
  213. DataSourceUrl = Url.Content("~/EducationSchedule/StopApproveList"),
  214. ID = "dgEducationSchedulingStopList",
  215. IsPagination = true,
  216. IsShowRowNumbers = true,
  217. IsSingleSelect = false
  218. })
  219. </div>
  220. </div>