PlanCreate.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. @model EMIS.ViewModel.GraduationManage.GraduationRequirement.GraduationCourseView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "PlanCreate";
  7. //院系所
  8. ComboGridOptions cgopCollege = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. OnSelect = "queryClass",
  13. ID = "CollegeDropdown",
  14. Name = "CollegeDropdown",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //专业名称
  30. ComboGridOptions cgopStandard = new ComboGridOptions
  31. {
  32. TextField = "StandardName",
  33. ValueField = "StandardID",
  34. OnSelect = "queryStandard",
  35. ID = "StandardDictionaryDropDown",
  36. Name = "StandardDictionaryDropDown",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  42. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. //学制
  52. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  53. {
  54. TextField = "LearnSystem",
  55. ValueField = "LearnSystem",
  56. OnSelect = "reload",
  57. ID = "DictionaryLearnSystem",
  58. Name = "DictionaryLearnSystem",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  67. IsPagination = true,
  68. IsShowRowNumbers = true,
  69. IsSingleSelect = false,
  70. IsShowHeader = false
  71. }
  72. };
  73. //课程信息
  74. ComboGridOptions cgopCourse = new ComboGridOptions
  75. {
  76. ID = "CoursematerialComboGrid",
  77. Name = "CoursematerialComboGrid",
  78. TextField = "CourseName",
  79. ValueField = "CoursematerialID",
  80. OnSelect = "reload",
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.2 },
  86. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
  87. },
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  90. IsPagination = true,
  91. IsShowRowNumbers = true,
  92. IsSingleSelect = false
  93. }
  94. };
  95. }
  96. @section scripts{
  97. <script src="~/Scripts/Business/GraduationManage/GraduationRequirement/GraduationCourseCreate.js" type="text/javascript"></script>
  98. <script type="text/javascript">
  99. var nonSelect = "@DropdownList.SELECT_ALL";
  100. </script>
  101. }
  102. <style type="text/css">
  103. #chargeStandardTable
  104. {
  105. width: 100%;
  106. border: 0px none;
  107. }
  108. #chargeStandardTable tr
  109. {
  110. min-height: 30px;
  111. }
  112. </style>
  113. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  114. @using (Ajax.BeginForm(new AjaxOptions
  115. {
  116. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  117. OnSuccess = "formSuccessReloadNoClose",
  118. OnBegin = "EMISFunction.FormSubmit",
  119. OnComplete = "EMISFunction.FormComplete"
  120. }))
  121. {
  122. <div class="p_SearchTitle">
  123. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  124. 查询条件</div>
  125. </div>
  126. @Html.PositionCondition("GraduationCourseCreate")
  127. <div class="search_keyword">
  128. <div class="search_input">
  129. <ul>
  130. <li class="sn" style="padding-left: 5px;">毕业学期:</li>
  131. <li class="sv">
  132. @Html.DropdownList(new DropdownListOptions
  133. {
  134. ID = "GradSchoolyearDropdown",
  135. Name = "GradSchoolyearDropdown",
  136. BindType = DropdownListBindType.SelectAll,
  137. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  138. OnSelect = "reload",
  139. SelectedValue = BaseExtensions.GetGradSchoolYearID()
  140. },
  141. new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  142. </li>
  143. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  144. <li class="sv">
  145. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  146. </li>
  147. <li class="sn" style="padding-left: 5px;">年级:</li>
  148. <li class="sv">
  149. @Html.SchoolYearDropDownList(new DropdownListOptions
  150. {
  151. BindType = DropdownListBindType.SelectAll,
  152. ID = "SchoolyearDictionaryDropDown",
  153. Name = "SchoolyearDictionaryDropDown",
  154. OnSelect = "queryClass"
  155. },
  156. new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  157. </li>
  158. </ul>
  159. <ul>
  160. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  161. <li class="sv">
  162. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  163. </li>
  164. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  165. <li class="sv">
  166. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  167. new ComboGridOptions
  168. {
  169. ID = "DictionaryEducation",
  170. Name = "DictionaryEducation",
  171. OnSelect = "reload"
  172. },
  173. new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  176. <li class="sv">
  177. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  178. new ComboGridOptions
  179. {
  180. ID = "DictionaryLearningform",
  181. Name = "DictionaryLearningform",
  182. OnSelect = "reload"
  183. },
  184. new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  185. </li>
  186. </ul>
  187. <ul>
  188. <li class="sn" style="padding-left: 5px;">学制:</li>
  189. <li class="sv">
  190. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  191. </li>
  192. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  193. <li class="sv">
  194. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  195. </li>
  196. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">课程类型:</li>
  197. <li class="sv">
  198. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseType, DropdownListBindType.SelectAll,
  199. new ComboGridOptions
  200. {
  201. ID = "DictionaryCourseType",
  202. Name = "DictionaryCourseType",
  203. OnSelect = "reload"
  204. },
  205. new Dictionary<string, string> { { "data-condition", "dgGradSpecialtyPlanList" } })
  206. </li>
  207. </ul>
  208. </div>
  209. </div>
  210. <div class="p_title">
  211. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  212. 专业计划列表
  213. </div>
  214. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Create")</div>
  215. </div>
  216. <div class="search_list">
  217. @Html.Hidden("SpecialtyPlan")
  218. <table cellpadding="0" cellspacing="0" id="specialtyPlantable">
  219. <tr>
  220. <td>
  221. @Html.DataGrid(new DataGridOptions
  222. {
  223. Columns = new List<DataGridColumn>()
  224. {
  225. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyPlanID" },
  226. //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 },
  227. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  228. //new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.06 },
  229. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  230. //new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
  231. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 },
  232. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.02 },
  233. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  234. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" },
  235. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" },
  236. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02, CustomFormatFun="SetRedColumn" },
  237. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  238. //new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.04 },
  239. //new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center, Width=0.02 },
  240. new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.04 },
  241. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06, OverflowLength=5 },
  242. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.05, OverflowLength=5 }
  243. },
  244. IsPostBack = true,
  245. IsCheckOnSelect = true,
  246. DataSourceUrl = Url.Content("~/GraduationCourse/GraduationSpecialtyPlanList"),
  247. ID = "dgGradSpecialtyPlanList",
  248. IsPagination = true,
  249. IsShowRowNumbers = true,
  250. IsSingleSelect = false
  251. })
  252. </td>
  253. </tr>
  254. </table>
  255. </div>
  256. }
  257. </div>