List.cshtml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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 = "reload",
  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("~/Facultymajor/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/SpecialtyCourse.js" type="text/javascript"></script>
  119. <script type="text/javascript">
  120. var nonSelect = "@DropdownList.SELECT_ALL";
  121. </script>
  122. }
  123. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  124. @Html.Position()
  125. <div class="p_SearchTitle">
  126. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  127. 查询条件</div>
  128. </div>
  129. <form id="formQuery" method="post" action="@Url.Content("~/SpecialtyCourse/Excel")">
  130. @Html.PositionCondition()
  131. <div class="search_keyword">
  132. <div class="search_input">
  133. <ul>
  134. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("CourseCollege"):</li>
  135. <li class="sv">
  136. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">开课教研室:</li>
  139. <li class="sv">
  140. @Html.ComboGrid(cgopDepartment, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  141. </li>
  142. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  143. <li class="sv">
  144. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  145. </li>
  146. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  147. <li class="sv">
  148. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  149. new ComboGridOptions
  150. {
  151. ID = "DictionaryEducation",
  152. Name = "DictionaryEducation",
  153. OnSelect = "reload"
  154. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  155. </li>
  156. </ul>
  157. <ul>
  158. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  159. <li class="sv">
  160. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  161. new ComboGridOptions
  162. {
  163. ID = "DictionaryLearningform",
  164. Name = "DictionaryLearningform",
  165. OnSelect = "reload"
  166. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  167. </li>
  168. <li class="sn" style="padding-left: 5px;">学制:</li>
  169. <li class="sv">
  170. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  171. </li>
  172. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  173. <li class="sv">
  174. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  175. </li>
  176. <li class="sn" style="padding-left: 5px;">课程类型:</li>
  177. <li class="sv">
  178. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseType, DropdownListBindType.SelectAll,
  179. new ComboGridOptions
  180. {
  181. ID = "DictionaryCourseType",
  182. Name = "DictionaryCourseType",
  183. OnSelect = "reload"
  184. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  185. </li>
  186. </ul>
  187. <ul>
  188. <li class="sn" style="padding-left: 5px;color:red;">开课学期:</li>
  189. <li class="sv">
  190. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Startterm, DropdownListBindType.SelectAll,
  191. new ComboGridOptions
  192. {
  193. ID = "DictionaryStartterm",
  194. Name = "DictionaryStartterm",
  195. OnSelect = "reload"
  196. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  197. </li>
  198. <li class="sn" style="padding-left: 5px;color:red;">授课方式:</li>
  199. <li class="sv">
  200. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll,
  201. new ComboGridOptions
  202. {
  203. ID = "DictionaryTeachingMode",
  204. Name = "DictionaryTeachingMode",
  205. OnSelect = "reload"
  206. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  207. </li>
  208. <li class="sn" style="padding-left: 5px;color:red;">处理方式:</li>
  209. <li class="sv">
  210. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll,
  211. new ComboGridOptions
  212. {
  213. ID = "DictionaryHandleMode",
  214. Name = "DictionaryHandleMode",
  215. OnSelect = "reload"
  216. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  217. </li>
  218. <li class="sn" style="padding-left: 5px;color:red;">是否启用:</li>
  219. <li class="sv">
  220. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
  221. new ComboGridOptions
  222. {
  223. ID = "DictionaryIsEnable",
  224. Name = "DictionaryIsEnable",
  225. OnSelect = "reload"
  226. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyCourseList" } })
  227. </li>
  228. </ul>
  229. </div>
  230. </div>
  231. </form>
  232. <div class="p_title">
  233. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  234. 专业课程列表</div>
  235. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  236. </div>
  237. @Html.PositionBatchModify()
  238. <div class="search_list">
  239. @Html.DataGrid(new DataGridOptions
  240. {
  241. Columns = new List<DataGridColumn>()
  242. {
  243. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyCourseID" },
  244. new LinkButtonColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardID", Handle="edit", Width=0.06 },
  245. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  246. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04, OverflowLength=4 },
  247. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04, OverflowLength=4 },
  248. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  249. new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", Align=AlignStyle.Center, OrderFieldName="StarttermID", Width=0.04, CustomFormatFun="SetRedColumn" },
  250. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  251. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  252. //new BoundFieldColumn { FieldName="CourseStructureName", HeaderText="课程结构", Align=AlignStyle.Center, OrderFieldName="CourseStructureID", Width=0.04, OverflowLength=4 },
  253. //new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center, OrderFieldName="CourseCategoryID", Width=0.04, OverflowLength=4 },
  254. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.04, OverflowLength=4 },
  255. //new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center, OrderFieldName="CourseQualityID", Width=0.04, OverflowLength=4 },
  256. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  257. new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04 },
  258. new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  259. new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  260. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  261. //new BoundFieldColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Align=AlignStyle.Center, Width=0.04 },
  262. //new BoundFieldColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Align=AlignStyle.Center, Width=0.04 },
  263. //new BoundFieldColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Align=AlignStyle.Center, Width=0.04 },
  264. //new BoundFieldColumn { FieldName="SchoolweeksNum", HeaderText="总周次", Align=AlignStyle.Center, Width=0.03 },
  265. //new BoundFieldColumn { FieldName="WeeklyHours", HeaderText="周学时", Align=AlignStyle.Center, Width=0.03 },
  266. //new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="每周次数", Align=AlignStyle.Center, Width=0.04 },
  267. //new BoundFieldColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", Align=AlignStyle.Center, Width=0.04 },
  268. //new BoundFieldColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", Align=AlignStyle.Center, Width=0.04 },
  269. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.04 },
  270. //new BoundFieldColumn { FieldName="IsMainCourseName", HeaderText="学位课程", Align=AlignStyle.Center, OrderFieldName="IsMainCourse", Width=0.04 },
  271. //new BoundFieldColumn { FieldName="IsNeedMaterialName", HeaderText="需要教材", Align=AlignStyle.Center, OrderFieldName="IsNeedMaterial", Width=0.04 },
  272. //new BoundFieldColumn { FieldName="CourseFineName", HeaderText="精品课程", Align=AlignStyle.Center, OrderFieldName="CourseFineID", Width=0.04 },
  273. //new BoundFieldColumn { FieldName="PracticeTypeName", HeaderText="实践类型", Align=AlignStyle.Center, OrderFieldName="PracticeTypeID", Width=0.04 },
  274. //new BoundFieldColumn { FieldName="TeachinglanguageName", HeaderText="授课语言", Align=AlignStyle.Center, OrderFieldName="TeachinglanguageID", Width=0.04 },
  275. //new BoundFieldColumn { FieldName="ExaminationModeName", HeaderText="考试方式", Align=AlignStyle.Center, OrderFieldName="ExaminationModeID", Width=0.04 },
  276. //new BoundFieldColumn { FieldName="ResultTypeName", HeaderText="成绩类型", Align=AlignStyle.Center, OrderFieldName="ResultTypeID", Width=0.04 },
  277. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  278. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  279. new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" },
  280. //new BoundFieldColumn { FieldName="TeachingPlaceIDListName", HeaderText="授课地点", Align=AlignStyle.Center, OrderFieldName="", Width=0.04, OverflowLength=4 },
  281. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" },
  282. //new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 },
  283. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnable", Width=0.04, CustomFormatFun="SetRedColumn" }
  284. },
  285. CustomerRowStyleFun = "SetRedGrid",
  286. IsCheckOnSelect = true,
  287. DataSourceUrl = Url.Content("~/SpecialtyCourse/List"),
  288. ID = "dgSpecialtyCourseList",
  289. IsPagination = true,
  290. IsShowRowNumbers = true,
  291. IsSingleSelect = false
  292. })
  293. </div>
  294. </div>