List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. OnSelect = "QueryComboGridList",
  10. Name = "CoursematerialComboGrid",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false,
  22. }
  23. };
  24. ComboGridOptions cgopCollege = new ComboGridOptions
  25. {
  26. TextField = "Name",
  27. ValueField = "CollegeID",
  28. Name = "ComboGridCollege",
  29. ID = "ComboGridCollege",
  30. OnSelect = "queryCollege",
  31. GridOptions = new DataGridOptions
  32. {
  33. Columns = new List<DataGridColumn>()
  34. {
  35. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  36. },
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false,
  42. }
  43. };
  44. ComboGridOptions cgopCampus = new ComboGridOptions
  45. {
  46. TextField = "Name",
  47. ValueField = "CampusID",
  48. Name = "ComboGridCampus",
  49. OnSelect = "QueryComboGridCampusList",
  50. GridOptions = new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  55. },
  56. IsCheckOnSelect = true,
  57. DataSourceUrl = Url.Content("~/Campus/List"),
  58. IsPagination = true,
  59. IsShowRowNumbers = true,
  60. IsSingleSelect = false,
  61. }
  62. };
  63. ComboGridOptions cgopdepartment = new ComboGridOptions
  64. {
  65. TextField = "Name",
  66. ValueField = "DepartmentID",
  67. Name = "DepartmentDropdown",
  68. OnSelect = "reload",
  69. GridOptions = new DataGridOptions
  70. {
  71. Columns = new List<DataGridColumn>()
  72. {
  73. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  74. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
  75. },
  76. IsCheckOnSelect = true,
  77. DataSourceUrl = Url.Content("~/Department/List"),
  78. IsPagination = true,
  79. IsShowRowNumbers = true,
  80. IsSingleSelect = false
  81. }
  82. };
  83. ComboGridOptions cgopGrademajor = new ComboGridOptions
  84. {
  85. TextField = "Name",
  86. ValueField = "GrademajorID",
  87. Name = "GrademajorComboGrid",
  88. ID = "GrademajorComboGrid",
  89. OnSelect = "queryClass",
  90. GridOptions = new DataGridOptions
  91. {
  92. Columns = new List<DataGridColumn>()
  93. {
  94. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  95. },
  96. IsCheckOnSelect = true,
  97. DataSourceUrl = Url.Content("~/Grademajor/ListWithoutRange"),
  98. IsPagination = true,
  99. IsShowRowNumbers = true,
  100. IsSingleSelect = false
  101. }
  102. };
  103. ComboGridOptions cgopStandard = new ComboGridOptions
  104. {
  105. TextField = "StandardName",
  106. ValueField = "StandardID",
  107. OnSelect = "queryClass",
  108. Name = "DictionaryStandard",
  109. ID = "DictionaryStandard",
  110. GridOptions = new DataGridOptions
  111. {
  112. Columns = new List<DataGridColumn>()
  113. {
  114. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  115. },
  116. IsCheckOnSelect = true,
  117. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  118. IsPagination = true,
  119. IsShowRowNumbers = true,
  120. IsSingleSelect = false,
  121. }
  122. };
  123. }
  124. @section scripts{
  125. <script src="~/Scripts/Business/SchedulingManage/Scheduling/EducationMissionClassSchedule.js"></script>
  126. <script type="text/javascript">
  127. var submitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted)";
  128. var notSubmitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.NotSubmitted)";
  129. var scheduled = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)";
  130. var nonSelect = "@DropdownList.SELECT_ALL";
  131. </script>
  132. }
  133. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  134. @Html.Position()
  135. <div class="p_SearchTitle">
  136. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  137. 查询条件
  138. </div>
  139. </div>
  140. <form id="formQuery" method="post" action="@Url.Content("~/EducationMissionClassSchedule/Excel")">
  141. @Html.PositionCondition()
  142. <div class="search_keyword">
  143. <div class="search_input">
  144. <ul>
  145. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  146. <li class="sv">
  147. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = @ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "QuerySchoolyearDropdownList", Name = "SchoolyearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  150. <li class="sv">
  151. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">年级:</li>
  158. <li class="sv">
  159. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryGrade", Name = "DictionaryGrade", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  160. </li>
  161. </ul>
  162. <ul>
  163. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  164. <li class="sv">
  165. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;">年级专业:</li>
  168. <li class="sv">
  169. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  170. </li>
  171. <li class="sn" style="padding-left: 5px;">课程:</li>
  172. <li class="sv">
  173. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  176. <li class="sv">
  177. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, new DropdownListOptions { Name = "DictionaryTeachingMode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  178. </li>
  179. </ul>
  180. <ul>
  181. <li class="sn" style="padding-left: 5px;">状态:</li>
  182. <li class="sv">
  183. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ApprovalStatusDropdownList", OnSelect = "QueryApprovalStatusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleList" } })
  184. </li>
  185. </ul>
  186. </div>
  187. </div>
  188. </form>
  189. <div class="p_title">
  190. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  191. 任务班排课列表
  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="EducationMissionClassID" },
  201. new TextBoxColumn { FieldName="OrderNo", HeaderText="序号", IsRequired=true,Width=15, Validator=new OnlyNumberValidator(), Align=AlignStyle.Center },
  202. new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, OverflowLength = 22,Width=0.1 },
  203. // new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
  204. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center,Width=0.03 },
  205. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center,Width=0.045 },
  206. // new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  207. new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center,Width=0.035 },
  208. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center,Width=0.035,OverflowLength=8 },
  209. new BoundFieldColumn { FieldName="StartStopWeeklyNum", HeaderText="执行周次", Align=AlignStyle.Center,Width=0.025 },
  210. new BoundFieldColumn { FieldName="StandardID", HeaderText="专业", Align=AlignStyle.Center,IsHidden=true },
  211. new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center,IsHidden=true },
  212. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center,Width=0.025 },
  213. new BoundFieldColumn { FieldName="CourseProcessTimes", HeaderText="执行学时", Align=AlignStyle.Center,Width=0.025 },
  214. new BoundFieldColumn { FieldName="ScheduledTimes", HeaderText="已排学时", Align=AlignStyle.Center,Width=0.025 },
  215. // new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="每周次数", Align=AlignStyle.Center },
  216. // new LinkButtonColumn { FieldName="SchedulingClassNum", HeaderText="排课班数", Align=AlignStyle.Center, Handle = "SchedulingClassEdit" },
  217. new LinkButtonColumn { FieldName="ClassNum", HeaderText="班级人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit",Width=0.025 },
  218. new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师", Align=AlignStyle.Center,Width=0.035 },
  219. new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="状态", Align=AlignStyle.Center,Width=0.025 },
  220. },
  221. IsCheckOnSelect = true,
  222. DataSourceUrl = Url.Content("~/EducationMissionClassSchedule/List"),
  223. ID = "dgEducationMissionClassScheduleList",
  224. IsPagination = true,
  225. IsShowRowNumbers = true,
  226. IsSingleSelect = false
  227. })
  228. </div>
  229. </div>