List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  16. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions cgopCampus = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "CampusID",
  29. OnSelect = "queryCollege",
  30. Name = "CampusDropdown",
  31. ID = "CampusDropdown",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  38. },
  39. //OnLoadSuccessFun = "reload",
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Campus/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. ComboGridOptions cgopCollege = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "CollegeID",
  51. OnSelect = "reload",
  52. Name = "CollegeDropdown",
  53. ID = "CollegeDropdown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. }
  67. };
  68. ComboGridOptions cgopClassmajor = new ComboGridOptions
  69. {
  70. TextField = "Name",
  71. ValueField = "ClassmajorID",
  72. Name = "ClassmajorDropdown",
  73. ID = "ClassmajorDropdown",
  74. OnSelect = "queryClass",
  75. GridOptions = new DataGridOptions
  76. {
  77. Columns = new List<DataGridColumn>()
  78. {
  79. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 }
  81. },
  82. IsCheckOnSelect = true,
  83. DataSourceUrl = Url.Content("~/Classmajor/List"),
  84. IsPagination = true,
  85. IsShowRowNumbers = true,
  86. IsSingleSelect = false
  87. }
  88. };
  89. ComboGridOptions cgopStandard = new ComboGridOptions
  90. {
  91. TextField = "StandardName",
  92. ValueField = "StandardID",
  93. OnSelect = "queryStandard",
  94. Name = "StandardDictionaryDropDown",
  95. ID = "StandardDictionaryDropDown",
  96. GridOptions = new DataGridOptions
  97. {
  98. Columns = new List<DataGridColumn>()
  99. {
  100. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  101. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  102. },
  103. IsCheckOnSelect = true,
  104. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  105. IsPagination = true,
  106. IsShowRowNumbers = true,
  107. IsSingleSelect = false,
  108. }
  109. };
  110. ComboGridOptions cgopdepartment = new ComboGridOptions
  111. {
  112. TextField = "Name",
  113. ValueField = "DepartmentID",
  114. Name = "DepartmentDropdown",
  115. OnSelect = "reload",
  116. GridOptions = new DataGridOptions
  117. {
  118. Columns = new List<DataGridColumn>()
  119. {
  120. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  121. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
  122. },
  123. IsCheckOnSelect = true,
  124. DataSourceUrl = Url.Content("~/Department/List"),
  125. IsPagination = true,
  126. IsShowRowNumbers = true,
  127. IsSingleSelect = false
  128. }
  129. };
  130. ComboGridOptions cgopGrademajor = new ComboGridOptions
  131. {
  132. TextField = "Name",
  133. ValueField = "GrademajorID",
  134. Name = "GrademajorComboGrid",
  135. ID = "GrademajorComboGrid",
  136. OnSelect = "reload",
  137. GridOptions = new DataGridOptions
  138. {
  139. Columns = new List<DataGridColumn>()
  140. {
  141. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.2 }
  142. },
  143. IsCheckOnSelect = true,
  144. DataSourceUrl = Url.Content("~/Grademajor/List"),
  145. IsPagination = true,
  146. IsShowRowNumbers = true,
  147. IsSingleSelect = false
  148. }
  149. };
  150. ComboGridOptions time = new ComboGridOptions
  151. {
  152. TextField = "time_starTime_endTime",
  153. ValueField = "CoursesTimeID",
  154. OnSelect = "reload",
  155. Name = "TimeComboGrid",
  156. ID = "TimeComboGrid",
  157. GridOptions = new DataGridOptions
  158. {
  159. Columns = new List<DataGridColumn>()
  160. {
  161. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center }
  162. },
  163. IsCheckOnSelect = true,
  164. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  165. IsPagination = true,
  166. IsShowRowNumbers = true,
  167. IsSingleSelect = false
  168. }
  169. };
  170. }
  171. @section scripts{
  172. <script src="~/Scripts/Business/EducationManage/EducationMissionClass.js" type="text/javascript"></script>
  173. <script type="text/javascript">
  174. var nonSelect = "@DropdownList.SELECT_ALL";
  175. var submitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted)";
  176. var notSubmitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.NotSubmitted)";
  177. var scheduled = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)";
  178. </script>
  179. }
  180. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  181. @Html.Position()
  182. <div class="p_SearchTitle">
  183. <div style="float: right; margin-left: 10px; font-size: 12px; line-height: 30px;">
  184. 查询条件
  185. </div>
  186. </div>
  187. <form id="formQuery" method="post" action="@Url.Content("~/EducationMissionClass/Excel")">
  188. @Html.PositionCondition()
  189. <div class="search_keyword">
  190. <div class="search_input">
  191. <ul>
  192. <li class="sn" style="display: none">@EMIS.Utility.RSL.Get("Campus"):</li>
  193. <li class="sv" style="display: none">
  194. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  195. </li>
  196. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  197. <li class="sv">
  198. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "QuerySchoolyearDropdownList", OnLoadSuccess = "reload", SelectedValue = @ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  199. </li>
  200. <li class="sn" style="padding-left: 5px; ">开课@(EMIS.Utility.RSL.Get("College")):</li>
  201. <li class="sv">
  202. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  203. </li>
  204. <li class="sn" style="padding-left: 5px;">年级:</li>
  205. <li class="sv">
  206. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  207. </li>
  208. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  209. <li class="sv">
  210. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  211. </li>
  212. </ul>
  213. <ul>
  214. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  215. <li class="sv">
  216. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  217. </li>
  218. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  219. <li class="sv">
  220. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  221. </li>
  222. <li class="sn" style="padding-left: 5px;">授课方式:</li>
  223. <li class="sv">
  224. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, new DropdownListOptions { Name = "DictionaryTeachingMode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  225. </li>
  226. <li class="sn" style="padding-left: 5px;">状态:</li>
  227. <li class="sv">
  228. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ApprovalStatusDropdownList", OnSelect = "QueryApprovalStatusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassList" } })
  229. </li>
  230. </ul>
  231. <ul>
  232. @*导出数据*@
  233. <li style="display:none" class="sv" >
  234. <input id="EducationMissionClassIDs" name="EducationMissionClassIDs" type="text" value="" />
  235. </li>
  236. </ul>
  237. </div>
  238. </div>
  239. </form>
  240. <div class="p_title">
  241. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  242. 教学任务列表
  243. </div>
  244. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  245. </div>
  246. @Html.PositionBatchModify()
  247. <div class="search_list">
  248. @Html.DataGrid(new DataGridOptions
  249. {
  250. Columns = new List<DataGridColumn>()
  251. {
  252. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID" },
  253. new BoundFieldColumn{ HeaderText="", FieldName="ExecutablePlanID" ,IsHidden=true},
  254. new BoundFieldColumn{ HeaderText="", FieldName="ExecutableOptionalCourseID" ,IsHidden=true},
  255. new BoundFieldColumn{ HeaderText="", FieldName="ExecutableFreeSelectionCouseID",IsHidden=true},
  256. new BoundFieldColumn{ HeaderText="", FieldName="CollegeID",IsHidden=true},
  257. new BoundFieldColumn{ HeaderText="", FieldName="SchoolyearID",IsHidden=true},
  258. new TextBoxColumn { FieldName="OrderNo", HeaderText="序号", IsRequired=true, Validator=new OnlyNumberValidator(), Align=AlignStyle.Center, Width=20 },
  259. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.06 },
  260. new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.15 },
  261. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center,Width=0.04 },
  262. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  263. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.04 },
  264. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室",OverflowLength=8, Align=AlignStyle.Center },
  265. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  266. new BoundFieldColumn { FieldName="StartStopWeeklyNum", HeaderText="执行周次", Align=AlignStyle.Center,Width=0.04 },
  267. new BoundFieldColumn { FieldName="StandardID", HeaderText="专业", Align=AlignStyle.Center,IsHidden=true },
  268. new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center,IsHidden=true,Width=0.02 },
  269. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center,Width=0.03 },
  270. new BoundFieldColumn { FieldName="CourseProcessTimes", HeaderText="执行学时", Align=AlignStyle.Center,Width=0.04 },
  271. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center,Width=0.02 },
  272. //new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="每周次数", Align=AlignStyle.Center },
  273. //new LinkButtonColumn { FieldName="SchedulingClassNum", HeaderText="排课班数", Align=AlignStyle.Center, Handle = "SchedulingClassEdit" },
  274. new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center,Width=0.04 },
  275. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center,Width=0.04 },
  276. new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师",OverflowLength=6, Align=AlignStyle.Center,Width=0.04 },
  277. new LinkButtonColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit",Width=0.02 },
  278. new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="状态", Align=AlignStyle.Center,Width=0.03 },
  279. },
  280. IsAutoLoad = false,
  281. IsCheckOnSelect = true,
  282. DataSourceUrl = Url.Content("~/EducationMissionClass/List"),
  283. ID = "dgEducationMissionClassList",
  284. IsPagination = true,
  285. IsShowRowNumbers = true,
  286. IsSingleSelect = false
  287. })
  288. </div>
  289. </div>