Create.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. @model EMIS.ViewModel.SelectCourse.OptionalCourseSettingCreateView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Create";
  6. ComboGridOptions cgopSpecialty = new ComboGridOptions
  7. {
  8. TextField = "SpecialtyName",
  9. ValueField = "StandardID",
  10. OnSelect = "QueryStandardDropdownList",
  11. Name = "StandardID",
  12. ID = "StandardID",
  13. EmptyText = "全部",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="SpecialtyName", HeaderText="专业名称", Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/TeachingPlan/SpecialtyList"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopYear = new ComboGridOptions
  28. {
  29. TextField = "Years",
  30. ValueField = "Years",
  31. OnSelect = "QueryYearDropdownList",
  32. Name = "YearID",
  33. ID = "YearID",
  34. EmptyText = "全部",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="Years", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/TeachingPlan/DropDown"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. ComboGridOptions cgopCourse = new ComboGridOptions
  49. {
  50. TextField = "CourseName",
  51. ValueField = "CoursematerialID",
  52. Name = "CoursematerialIDDropdownGridBo",
  53. ID = "CoursematerialIDDropdownGridBo",
  54. OnSelect = "QueryCoursematerialComboGrid",
  55. EmptyText = "全部",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  61. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false
  68. }
  69. };
  70. }
  71. @section scripts{
  72. <script src="~/Scripts/Business/SelectCourseManage/OptionalCourseSettingCreate.js"
  73. type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. @using (Ajax.BeginForm(new AjaxOptions
  80. {
  81. OnSuccess = "EMISFunction.FormSuccess",
  82. OnBegin = "EMISFunction.FormSubmit",
  83. OnComplete = "EMISFunction.FormComplete"
  84. }))
  85. {
  86. <div class="p_title">
  87. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  88. 限选任务生成</div>*@
  89. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Create")</div>
  90. </div>
  91. <div class="search_list">
  92. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  93. <tr>
  94. <td>
  95. @Html.LabelFor(x => x.SchoolYearCode)
  96. </td>
  97. <td>
  98. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = ViewBag.SelectSchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent"), ID = "SchoolYear", Name = "SchoolYear"})
  99. @*@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = ViewBag.SelectSchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })*@
  100. </td>
  101. @*<td>
  102. @Html.LabelFor(x => x.CampusID)
  103. </td>
  104. <td>
  105. @Html.ComboGridFor((x => x.CampusID), new ComboGridOptions
  106. {
  107. TextField = "Name",
  108. ValueField = "CampusID",
  109. OnSelect = "QueryCampusComboGridList",
  110. EmptyText = "全部",
  111. GridOptions = new DataGridOptions
  112. {
  113. Columns = new List<DataGridColumn>()
  114. {
  115. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  116. },
  117. IsCheckOnSelect = true,
  118. DataSourceUrl = Url.Content("~/Campus/List"),
  119. IsPagination = true,
  120. IsShowRowNumbers = true,
  121. IsSingleSelect = false,
  122. }
  123. })
  124. </td>*@
  125. <td>
  126. @Html.LabelFor(x => x.CollegeName)
  127. </td>
  128. <td>
  129. @Html.ComboGridFor((x => x.CollegeID), new ComboGridOptions
  130. {
  131. TextField = "Name",
  132. ValueField = "CollegeID",
  133. OnSelect = "QueryCollegeComboGridList",
  134. EmptyText = "全部",
  135. GridOptions = new DataGridOptions
  136. {
  137. Columns = new List<DataGridColumn>()
  138. {
  139. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  140. },
  141. IsCheckOnSelect = true,
  142. DataSourceUrl = Url.Content("~/College/List"),
  143. IsPagination = true,
  144. IsShowRowNumbers = true,
  145. IsSingleSelect = false,
  146. }
  147. })
  148. </td>
  149. </tr>
  150. <tr>
  151. <td>
  152. @Html.LabelFor(x => x.Grade)
  153. </td>
  154. <td>
  155. @Html.ComboGridFor((x => x.GradeID), cgopYear, new Dictionary<string, string> { })
  156. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/TeachingPlan/DropDown"), TextField = "Text", ValueField = "Value", ID = "YearID", Name = "SchoolyearDropdown", OnSelect = "QueryYearDropdownList", OnLoadSuccess = "" }, new Dictionary<string, string> { })*@
  157. @*@Html.SchoolYearDropDownListFor((x => x.YearID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "QueryYearDropdownList" })*@
  158. </td>
  159. <td>
  160. @Html.LabelFor(x => x.StandardDesc)
  161. </td>
  162. <td>
  163. @Html.ComboGridFor((x => x.StandardID), cgopSpecialty, new Dictionary<string, string> { })
  164. @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, DropdownListBindType.PleaseSelect,
  165. new ComboGridOptions
  166. {
  167. OnSelect = "QueryStandardDropdownList"
  168. })*@
  169. </td>
  170. </tr>
  171. <tr>
  172. <td>
  173. @Html.LabelFor(x => x.GrademajorName)
  174. </td>
  175. <td>
  176. @Html.ComboGridFor((x => x.GrademajorID), new ComboGridOptions
  177. {
  178. ID = "GrademajorID",
  179. Name = "GrademajorID",
  180. TextField = "Name",
  181. ValueField = "GrademajorID",
  182. OnSelect = "QueryCollegeComboGridList",
  183. EmptyText = "全部",
  184. GridOptions = new DataGridOptions
  185. {
  186. Columns = new List<DataGridColumn>()
  187. {
  188. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  189. },
  190. IsCheckOnSelect = true,
  191. DataSourceUrl = Url.Content("~/Grademajor/List"),
  192. IsPagination = true,
  193. IsShowRowNumbers = true,
  194. IsSingleSelect = false
  195. }
  196. })
  197. @*@Html.ComboGridFor((x => x.GrademajorID), new ComboGridOptions
  198. {
  199. TextField = "Name",
  200. ValueField = "GrademajorID",
  201. GridOptions = new DataGridOptions
  202. {
  203. Columns = new List<DataGridColumn>()
  204. {
  205. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  206. },
  207. IsCheckOnSelect = true,
  208. DataSourceUrl = Url.Content("~/Grademajor/List"),
  209. IsPagination = true,
  210. IsShowRowNumbers = true,
  211. IsSingleSelect = false
  212. }
  213. })*@
  214. </td>
  215. <td>@Html.LabelFor(x => x.CourseName)
  216. </td>
  217. <td>
  218. @Html.ComboGridFor((x => x.CoursematerialID), cgopCourse)
  219. </td>
  220. </tr>
  221. </table>
  222. </div>
  223. }
  224. </div>