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