List.cshtml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //教研室
  50. ComboGridOptions cgopDepartment = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "DepartmentID",
  54. ID = "DepartmentDropdown",
  55. Name = "DepartmentDropdown",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Department/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. //年级
  72. ComboGridOptions cgopSchoolyear = new ComboGridOptions
  73. {
  74. TextField = "GradeID",
  75. ValueField = "GradeID",
  76. ID = "DictionarySchoolyear",
  77. Name = "DictionarySchoolyear",
  78. OnSelect = "querySchoolyear",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. };
  92. //专业名称
  93. ComboGridOptions cgopStandard = new ComboGridOptions
  94. {
  95. TextField = "StandardName",
  96. ValueField = "StandardID",
  97. ID = "DictionaryStandard",
  98. Name = "DictionaryStandard",
  99. OnSelect = "queryStandard",
  100. GridOptions = new DataGridOptions
  101. {
  102. Columns = new List<DataGridColumn>()
  103. {
  104. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  105. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  106. },
  107. IsCheckOnSelect = true,
  108. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false,
  112. }
  113. };
  114. //学制
  115. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  116. {
  117. TextField = "LearnSystem",
  118. ValueField = "LearnSystem",
  119. ID = "DictionaryLearnSystem",
  120. Name = "DictionaryLearnSystem",
  121. OnSelect = "reload",
  122. GridOptions = new DataGridOptions
  123. {
  124. Columns = new List<DataGridColumn>()
  125. {
  126. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  127. },
  128. IsCheckOnSelect = true,
  129. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  130. IsPagination = true,
  131. IsShowRowNumbers = true,
  132. IsSingleSelect = false,
  133. IsShowHeader = false
  134. }
  135. };
  136. //年级专业
  137. ComboGridOptions cgopGrademajor = new ComboGridOptions
  138. {
  139. TextField = "Name",
  140. ValueField = "GrademajorID",
  141. Name = "GrademajorComboGrid",
  142. ID = "GrademajorComboGrid",
  143. OnSelect = "queryGrademajor",
  144. GridOptions = new DataGridOptions
  145. {
  146. Columns = new List<DataGridColumn>()
  147. {
  148. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 },
  149. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  150. },
  151. PageSize = 5,
  152. IsCheckOnSelect = true,
  153. DataSourceUrl = Url.Content("~/Grademajor/List"),
  154. IsPagination = true,
  155. IsShowRowNumbers = true,
  156. IsSingleSelect = false
  157. }
  158. };
  159. //课程信息
  160. ComboGridOptions cgopCourse = new ComboGridOptions
  161. {
  162. TextField = "CourseName",
  163. ValueField = "CoursematerialID",
  164. ID = "CourseComboGrid",
  165. Name = "CourseComboGrid",
  166. OnSelect = "reload",
  167. GridOptions = new DataGridOptions
  168. {
  169. Columns = new List<DataGridColumn>()
  170. {
  171. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  172. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  173. },
  174. PageSize = 5,
  175. IsCheckOnSelect = true,
  176. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  177. IsPagination = true,
  178. IsShowRowNumbers = true,
  179. IsSingleSelect = false
  180. }
  181. };
  182. }
  183. @section scripts{
  184. <script src="~/Scripts/Business/CultureplanManage/SpecialtyPlan.js" type="text/javascript"></script>
  185. <script type="text/javascript">
  186. var nonSelect = "@DropdownList.SELECT_ALL";
  187. //未执行-计划状态
  188. var notExecute = "@((int)EMIS.ViewModel.EM_PlanStatus.NotExecute)";
  189. </script>
  190. }
  191. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  192. @Html.Position()
  193. <div class="p_SearchTitle">
  194. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  195. 查询条件</div>
  196. </div>
  197. <form id="formQuery" method="post" action="@Url.Content("~/SpecialtyPlan/Excel")">
  198. @Html.PositionCondition()
  199. <div class="search_keyword">
  200. <div class="search_input">
  201. <ul>
  202. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  203. <li class="sv">
  204. @Html.DropdownList(new DropdownListOptions
  205. {
  206. ID = "SchoolyearDropdown",
  207. Name = "SchoolyearDropdown",
  208. BindType = DropdownListBindType.SelectAll,
  209. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  210. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  211. OnSelect = "reload"
  212. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  213. </li>
  214. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  215. <li class="sv">
  216. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  217. </li>
  218. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  219. <li class="sv">
  220. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  221. </li>
  222. <li class="sn" style="padding-left: 5px;">年级:</li>
  223. <li class="sv">
  224. @Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  225. @*@Html.SchoolYearDropDownList(new DropdownListOptions
  226. {
  227. ID = "DictionarySchoolyear",
  228. Name = "DictionarySchoolyear",
  229. BindType = DropdownListBindType.SelectAll,
  230. OnSelect = "querySchoolyear"
  231. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })*@
  232. </li>
  233. </ul>
  234. <ul>
  235. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  236. <li class="sv">
  237. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  238. </li>
  239. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  240. <li class="sv">
  241. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  242. new ComboGridOptions
  243. {
  244. ID = "DictionaryEducation",
  245. Name = "DictionaryEducation",
  246. OnSelect = "reload"
  247. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  248. </li>
  249. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  250. <li class="sv">
  251. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  252. new ComboGridOptions
  253. {
  254. ID = "DictionaryLearningform",
  255. Name = "DictionaryLearningform",
  256. OnSelect = "reload"
  257. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  258. </li>
  259. <li class="sn" style="padding-left: 5px;">学制:</li>
  260. <li class="sv">
  261. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  262. </li>
  263. </ul>
  264. <ul>
  265. <li class="sn" style="padding-left: 5px;color:red;">年级专业:</li>
  266. <li class="sv">
  267. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  268. </li>
  269. <li class="sn" style="padding-left: 5px;color:red;">课程名称:</li>
  270. <li class="sv">
  271. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  272. </li>
  273. <li class="sn" style="padding-left: 5px;color:red;">授课方式:</li>
  274. <li class="sv">
  275. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll,
  276. new ComboGridOptions
  277. {
  278. ID = "DictionaryTeachingMode",
  279. Name = "DictionaryTeachingMode",
  280. OnSelect = "reload"
  281. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  282. </li>
  283. <li class="sn" style="padding-left: 5px;color:red;">处理方式:</li>
  284. <li class="sv">
  285. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll,
  286. new ComboGridOptions
  287. {
  288. ID = "DictionaryHandleMode",
  289. Name = "DictionaryHandleMode",
  290. OnSelect = "reload"
  291. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanList" } })
  292. </li>
  293. </ul>
  294. </div>
  295. </div>
  296. </form>
  297. <div class="p_title">
  298. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  299. 专业计划列表</div>
  300. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  301. </div>
  302. @Html.PositionBatchModify()
  303. <div class="search_list">
  304. @Html.DataGrid(new DataGridOptions
  305. {
  306. Columns = new List<DataGridColumn>()
  307. {
  308. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyPlanID" },
  309. new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit", Width=0.08 },
  310. //new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.08 },
  311. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.08 },
  312. //new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  313. //new BoundFieldColumn { FieldName="StartSchoolcodeName", HeaderText="入学学期", Align=AlignStyle.Center, OrderFieldName="StartSchoolcodeID", Width=0.04 },
  314. //new BoundFieldColumn { FieldName="StartSchoolyearCode", HeaderText="入学学年学期", Align=AlignStyle.Center, Width=0.08 },
  315. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Width=0.06 },
  316. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  317. //new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04, OverflowLength=4 },
  318. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04, OverflowLength=4 },
  319. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  320. //new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, OrderFieldName="SchoolyearNumID", Width=0.04, CustomFormatFun="SetRedColumn" },
  321. //new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SchoolcodeID", Width=0.03, CustomFormatFun="SetRedColumn" },
  322. new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", Align=AlignStyle.Center, OrderFieldName="StarttermID", Width=0.04, CustomFormatFun="SetRedColumn" },
  323. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  324. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08 },
  325. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.04, OverflowLength=4 },
  326. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.04, OverflowLength=4 },
  327. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.04, OverflowLength=4 },
  328. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.04, OverflowLength=4 },
  329. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  330. new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  331. new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  332. new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  333. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  334. //new BoundFieldColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Align=AlignStyle.Center, Width=0.04 },
  335. //new BoundFieldColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Align=AlignStyle.Center, Width=0.04 },
  336. //new BoundFieldColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Align=AlignStyle.Center, Width=0.04 },
  337. //new BoundFieldColumn { FieldName="SchoolweeksNum", HeaderText="总周次", Align=AlignStyle.Center, Width=0.03 },
  338. //new BoundFieldColumn { FieldName="WeeklyHours", HeaderText="周学时", Align=AlignStyle.Center, Width=0.03 },
  339. //new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="每周次数", Align=AlignStyle.Center, Width=0.04 },
  340. //new BoundFieldColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", Align=AlignStyle.Center, Width=0.04 },
  341. //new BoundFieldColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", Align=AlignStyle.Center, Width=0.04 },
  342. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  343. //new BoundFieldColumn { FieldName="IsMainCourseName", HeaderText="学位课程", Align=AlignStyle.Center, OrderFieldName="IsMainCourse", Width=0.04 },
  344. //new BoundFieldColumn { FieldName="CourseFineName", HeaderText="精品课程", Align=AlignStyle.Center, OrderFieldName="CourseFineID", Width=0.04 },
  345. //new BoundFieldColumn { FieldName="PracticeTypeName", HeaderText="实践类型", Align=AlignStyle.Center, OrderFieldName="PracticeTypeID", Width=0.04 },
  346. //new BoundFieldColumn { FieldName="TeachinglanguageName", HeaderText="授课语言", Align=AlignStyle.Center, OrderFieldName="TeachinglanguageID", Width=0.04 },
  347. //new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, OrderFieldName="ExaminationModeID", Width=0.04 },
  348. //new BoundFieldColumn { FieldName="ResultTypeName", HeaderText="成绩类型", Align=AlignStyle.Center, OrderFieldName="ResultTypeID", Width=0.04 },
  349. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  350. //new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  351. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.05, OverflowLength=6 },
  352. new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" },
  353. //new BoundFieldColumn { FieldName="TeachingPlaceIDListName", HeaderText="授课地点", Align=AlignStyle.Center, OrderFieldName="", Width=0.04, OverflowLength=4 },
  354. new LinkButtonColumn { FieldName="PlanRange", HeaderText="范围", Align=AlignStyle.Center, Handle="editPlanRange", Width=0.03 },
  355. new LinkButtonColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Handle="editPlanStudent", Width=0.03 },
  356. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" }
  357. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
  358. },
  359. CustomerRowStyleFun = "SetRedGrid",
  360. IsCheckOnSelect = true,
  361. DataSourceUrl = Url.Content("~/SpecialtyPlan/List"),
  362. ID = "dgSpecialtyPlanList",
  363. IsPagination = true,
  364. IsShowRowNumbers = true,
  365. IsSingleSelect = false
  366. })
  367. </div>
  368. </div>