List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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/List"),
  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. ComboGridOptions time = new ComboGridOptions
  124. {
  125. TextField = "time_starTime_endTime",
  126. ValueField = "CoursesTimeID",
  127. OnSelect = "reload",
  128. Name = "TimeComboGrid",
  129. ID = "TimeComboGrid",
  130. GridOptions = new DataGridOptions
  131. {
  132. Columns = new List<DataGridColumn>()
  133. {
  134. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center }
  135. },
  136. IsCheckOnSelect = true,
  137. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  138. IsPagination = true,
  139. IsShowRowNumbers = true,
  140. IsSingleSelect = false
  141. }
  142. };
  143. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  144. {
  145. TextField = "LearnSystem",
  146. ValueField = "LearnSystem",
  147. OnSelect = "queryClass",
  148. Name = "DictionaryLearnSystem",
  149. ID = "DictionaryLearnSystem",
  150. GridOptions = new DataGridOptions
  151. {
  152. Columns = new List<DataGridColumn>()
  153. {
  154. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  155. },
  156. IsCheckOnSelect = true,
  157. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  158. IsPagination = true,
  159. IsShowRowNumbers = true,
  160. IsSingleSelect = false,
  161. IsShowHeader = false
  162. }
  163. };
  164. }
  165. @section scripts{
  166. <script src="~/Scripts/Business/SchedulingManage/Scheduling/EducationMissionClassScheduleAdult.js"></script>
  167. <script type="text/javascript">
  168. var submitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted)";
  169. var notSubmitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.NotSubmitted)";
  170. var scheduled = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)";
  171. var nonSelect = "@DropdownList.SELECT_ALL";
  172. </script>
  173. }
  174. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  175. @Html.Position()
  176. <div class="p_SearchTitle">
  177. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  178. 查询条件
  179. </div>
  180. </div>
  181. <form id="formQuery" method="post" action="@Url.Content("~/EducationMissionClassScheduleAdult/Excel")">
  182. @Html.PositionCondition()
  183. <div class="search_keyword">
  184. <div class="search_input">
  185. <ul>
  186. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  187. <li class="sv">
  188. @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", "dgEducationMissionClassScheduleAdult" } })
  189. </li>
  190. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  191. <li class="sv">
  192. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  193. </li>
  194. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  195. <li class="sv">
  196. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  197. </li>
  198. <li class="sn" style="padding-left: 5px;">年级:</li>
  199. <li class="sv">
  200. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryGrade", Name = "DictionaryGrade", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  201. </li>
  202. </ul>
  203. <ul>
  204. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  205. <li class="sv">
  206. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  207. </li>
  208. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  209. <li class="sv">
  210. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  211. </li>
  212. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  213. <li class="sv">
  214. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  215. </li>
  216. <li class="sn" style="padding-left: 5px;">学制:</li>
  217. <li class="sv">
  218. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  219. </li>
  220. </ul>
  221. <ul>
  222. <li class="sn" style="padding-left: 5px;">年级专业:</li>
  223. <li class="sv">
  224. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  225. </li>
  226. <li class="sn" style="padding-left: 5px;">课程:</li>
  227. <li class="sv">
  228. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  229. </li>
  230. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  231. <li class="sv">
  232. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, new DropdownListOptions { Name = "DictionaryTeachingMode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  233. </li>
  234. <li class="sn" style="padding-left: 5px;">状态:</li>
  235. <li class="sv">
  236. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ApprovalStatusDropdownList", OnSelect = "QueryApprovalStatusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  237. </li>
  238. @*导出数据*@
  239. <li style="display:none" class="sv" >
  240. <input id="EducationMissionClassID" name="EducationMissionClassID" type="text" value="" />
  241. </li>
  242. <li class="sn" style="padding-left: 5px;">课时类别:</li>
  243. <li class="sv">
  244. @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassScheduleAdult" } })
  245. </li>
  246. </ul>
  247. </div>
  248. </div>
  249. </form>
  250. <div class="p_title">
  251. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  252. 任务班排课列表
  253. </div>
  254. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  255. </div>
  256. <div class="search_list">
  257. @Html.DataGrid(new DataGridOptions
  258. {
  259. Columns = new List<DataGridColumn>()
  260. {
  261. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID",Width=0.01 },
  262. new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, OverflowLength = 22,Width=0.09 },
  263. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center,Width=0.03 },
  264. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center,Width=0.045,OverflowLength = 9 },
  265. new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center,Width=0.035 },
  266. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center,Width=0.035,OverflowLength=8 },
  267. new BoundFieldColumn { FieldName="CourseTimeShow", HeaderText="课时类别", Align=AlignStyle.Center,Width=0.06 },
  268. new BoundFieldColumn { FieldName="StandardID", HeaderText="专业", Align=AlignStyle.Center,IsHidden=true },
  269. new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center,IsHidden=true },
  270. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center,Width=0.02 },
  271. new BoundFieldColumn { FieldName="TeachingHours", HeaderText="排课学时", Align=AlignStyle.Center,Width=0.025 },
  272. new LinkButtonColumn { FieldName="ClassNum", HeaderText="班级人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit",Width=0.025 },
  273. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="授课老师", Align=AlignStyle.Center,Width=0.035 },
  274. new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="状态", Align=AlignStyle.Center,Width=0.02 },
  275. },
  276. IsCheckOnSelect = true,
  277. DataSourceUrl = Url.Content("~/EducationMissionClassScheduleAdult/List"),
  278. ID = "dgEducationMissionClassScheduleAdult",
  279. IsPagination = true,
  280. IsShowRowNumbers = true,
  281. IsSingleSelect = false
  282. })
  283. </div>
  284. </div>