List.cshtml 19 KB

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