ExecutablePlanBatchAdd.cshtml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. @model EMIS.ViewModel.EducationManagement.ExecutablePlanView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "ExecutablePlanBatchAdd";
  7. //校区
  8. ComboGridOptions cgopCampus = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CampusID",
  12. ID = "CampusDropdown",
  13. Name = "CampusDropdown",
  14. OnSelect = "queryCampus",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Campus/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //院系所
  30. ComboGridOptions cgopCollege = new ComboGridOptions
  31. {
  32. TextField = "Name",
  33. ValueField = "CollegeID",
  34. ID = "CollegeDropdown",
  35. Name = "CollegeDropdown",
  36. OnSelect = "queryCollege",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  42. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. //教研室
  52. ComboGridOptions cgopDepartment = new ComboGridOptions
  53. {
  54. TextField = "Name",
  55. ValueField = "DepartmentID",
  56. ID = "DepartmentDropdown",
  57. Name = "DepartmentDropdown",
  58. OnSelect = "reload",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 },
  64. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 }
  65. },
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/Department/List"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. }
  72. };
  73. //年级
  74. ComboGridOptions cgopSchoolyear = new ComboGridOptions
  75. {
  76. TextField = "GradeID",
  77. ValueField = "GradeID",
  78. ID = "DictionarySchoolyear",
  79. Name = "DictionarySchoolyear",
  80. OnSelect = "querySchoolyear",
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false,
  92. }
  93. };
  94. //专业名称
  95. ComboGridOptions cgopStandard = new ComboGridOptions
  96. {
  97. TextField = "StandardName",
  98. ValueField = "StandardID",
  99. ID = "DictionaryStandard",
  100. Name = "DictionaryStandard",
  101. OnSelect = "queryStandard",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  107. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  108. },
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false,
  114. }
  115. };
  116. //学制
  117. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  118. {
  119. TextField = "LearnSystem",
  120. ValueField = "LearnSystem",
  121. ID = "DictionaryLearnSystem",
  122. Name = "DictionaryLearnSystem",
  123. OnSelect = "reload",
  124. GridOptions = new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  129. },
  130. IsCheckOnSelect = true,
  131. DataSourceUrl = Url.Content("~/Facultymajor/LearnSystem"),
  132. IsPagination = true,
  133. IsShowRowNumbers = true,
  134. IsSingleSelect = false,
  135. IsShowHeader = false
  136. }
  137. };
  138. //年级专业
  139. ComboGridOptions cgopGrademajor = new ComboGridOptions
  140. {
  141. TextField = "Name",
  142. ValueField = "GrademajorID",
  143. Name = "GrademajorComboGrid",
  144. ID = "GrademajorComboGrid",
  145. OnSelect = "queryGrademajor",
  146. GridOptions = new DataGridOptions
  147. {
  148. Columns = new List<DataGridColumn>()
  149. {
  150. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 },
  151. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 }
  152. },
  153. PageSize = 5,
  154. IsCheckOnSelect = true,
  155. DataSourceUrl = Url.Content("~/Grademajor/List"),
  156. IsPagination = true,
  157. IsShowRowNumbers = true,
  158. IsSingleSelect = false
  159. }
  160. };
  161. //课程信息
  162. ComboGridOptions cgopCourse = new ComboGridOptions
  163. {
  164. TextField = "CourseName",
  165. ValueField = "CoursematerialID",
  166. ID = "CourseComboGrid",
  167. Name = "CourseComboGrid",
  168. OnSelect = "reload",
  169. GridOptions = new DataGridOptions
  170. {
  171. Columns = new List<DataGridColumn>()
  172. {
  173. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 },
  174. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 }
  175. },
  176. PageSize = 5,
  177. IsCheckOnSelect = true,
  178. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  179. IsPagination = true,
  180. IsShowRowNumbers = true,
  181. IsSingleSelect = false
  182. }
  183. };
  184. }
  185. @section scripts{
  186. <script src="~/Scripts/Business/EducationManage/ExecutablePlanBatchAdd.js" type="text/javascript"></script>
  187. <script type="text/javascript">
  188. var nonSelect = "@DropdownList.SELECT_ALL";
  189. </script>
  190. }
  191. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  192. @using (Ajax.BeginForm(new AjaxOptions
  193. {
  194. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  195. OnSuccess = "formSuccessReloadNoClose",
  196. OnBegin = "EMISFunction.FormSubmit",
  197. OnComplete = "EMISFunction.FormComplete"
  198. }))
  199. {
  200. <div class="p_SearchTitle">
  201. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  202. 查询条件</div>
  203. </div>
  204. @Html.PositionCondition("ExecutablePlanSelect")
  205. <div class="search_keyword">
  206. <div class="search_input">
  207. <ul>
  208. <li class="sn" style="padding-left: 5px;color:red;">学年学期:</li>
  209. <li class="sv">
  210. @Html.DropdownList(new DropdownListOptions
  211. {
  212. ID = "SchoolyearDropdown",
  213. Name = "SchoolyearDropdown",
  214. BindType = DropdownListBindType.SelectAll,
  215. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  216. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  217. OnSelect = "reload"
  218. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  219. </li>
  220. @*<li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  221. <li class="sv">
  222. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  223. </li>*@
  224. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  225. <li class="sv">
  226. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  227. </li>
  228. <li class="sn" style="padding-left: 5px;">年级:</li>
  229. <li class="sv">
  230. @Html.ComboGrid(cgopSchoolyear, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  231. </li>
  232. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  233. <li class="sv">
  234. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  235. </li>
  236. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  237. <li class="sv">
  238. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  239. new ComboGridOptions
  240. {
  241. ID = "DictionaryEducation",
  242. Name = "DictionaryEducation",
  243. OnSelect = "reload"
  244. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  245. </li>
  246. </ul>
  247. <ul>
  248. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  249. <li class="sv">
  250. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  251. new ComboGridOptions
  252. {
  253. ID = "DictionaryLearningform",
  254. Name = "DictionaryLearningform",
  255. OnSelect = "reload"
  256. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  257. </li>
  258. <li class="sn" style="padding-left: 5px;">学制:</li>
  259. <li class="sv">
  260. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  261. </li>
  262. <li class="sn" style="padding-left: 5px;color:red;">年级专业:</li>
  263. <li class="sv">
  264. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  265. </li>
  266. @*<li class="sn" style="padding-left: 5px;color:red;">课程名称:</li>
  267. <li class="sv">
  268. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  269. </li>*@
  270. <li class="sn" style="padding-left: 5px;color:red;">授课方式:</li>
  271. <li class="sv">
  272. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll,
  273. new ComboGridOptions
  274. {
  275. ID = "DictionaryTeachingMode",
  276. Name = "DictionaryTeachingMode",
  277. OnSelect = "reload"
  278. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  279. </li>
  280. <li class="sn" style="padding-left: 5px;color:red;">处理方式:</li>
  281. <li class="sv">
  282. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll,
  283. new ComboGridOptions
  284. {
  285. ID = "DictionaryHandleMode",
  286. Name = "DictionaryHandleMode",
  287. OnSelect = "reload"
  288. }, new Dictionary<string, string> { { "data-condition", "dgSpecialtyPlanNoAddList" } })
  289. </li>
  290. </ul>
  291. </div>
  292. </div>
  293. <div class="p_title">
  294. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  295. 专业计划信息列表
  296. </div>
  297. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Create")</div>
  298. </div>
  299. <div class="search_list">
  300. @Html.Hidden("specialtyPlanViewList")
  301. <table cellpadding="0" cellspacing="0" id="specialtyCoursetable">
  302. <tr>
  303. <td>
  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, 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, OverflowLength=10 },
  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.04 },
  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 },
  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="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03 },
  355. new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", Align=AlignStyle.Center, OrderFieldName="HandleModeID", Width=0.04, OverflowLength=4, CustomFormatFun="SetRedColumn" },
  356. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
  357. },
  358. IsCheckOnSelect = true,
  359. DataSourceUrl = Url.Content("~/ExecutablePlan/SpecialtyPlanNoAddList"),
  360. ID = "dgSpecialtyPlanNoAddList",
  361. IsPagination = true,
  362. IsShowRowNumbers = true,
  363. IsSingleSelect = false
  364. })
  365. </td>
  366. </tr>
  367. </table>
  368. </div>
  369. }
  370. </div>