List.cshtml 17 KB

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