GenerateExecutablePlan.cshtml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. @model EMIS.ViewModel.EducationManage.ExecutablePlanGenerateView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "GenerateExecutablePlan";
  6. ViewBag.Title = "List";
  7. ComboGridOptions cgopSpecialty = new ComboGridOptions
  8. {
  9. TextField = "StandardName",
  10. ValueField = "StandardID",
  11. OnSelect = "QueryStandardDropdownList",
  12. Name = "StandardID",
  13. ID = "StandardID",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopYear = new ComboGridOptions
  29. {
  30. TextField = "GradeID",
  31. ValueField = "GradeID",
  32. OnSelect = "QueryYearDropdownList",
  33. Name = "YearID",
  34. ID = "YearID",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="GradeID", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. }
  47. };
  48. }
  49. @section scripts{
  50. <script src="~/Scripts/Business/EducationManage/GenerateExecutableMinorPlan.js" type="text/javascript"></script>
  51. <script type="text/javascript">
  52. var nonSelect = "@DropdownList.SELECT_ALL";
  53. </script>
  54. }
  55. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  56. @using (Ajax.BeginForm(new AjaxOptions
  57. {
  58. OnSuccess = "EMISFunction.FormSuccess",
  59. OnBegin = "EMISFunction.FormSubmit",
  60. OnComplete = "EMISFunction.FormComplete"
  61. }))
  62. {
  63. <div class="p_title">
  64. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  65. 生成执行计划</div>
  66. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Create")</div>
  67. </div>
  68. <div class="search_list">
  69. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  70. <tr>
  71. <td>@Html.LabelFor(x => x.CampusID)
  72. </td>
  73. <td>@Html.ComboGridFor((x => x.CampusID), new ComboGridOptions
  74. {
  75. TextField = "Name",
  76. ValueField = "CampusID",
  77. OnSelect = "QueryCampusComboGridList",
  78. EmptyText="全部",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  84. },
  85. IsCheckOnSelect = true,
  86. DataSourceUrl = Url.Content("~/Campus/List"),
  87. IsPagination = true,
  88. IsShowRowNumbers = true,
  89. IsSingleSelect = false,
  90. }
  91. })
  92. </td>
  93. <td>@Html.LabelFor(x => x.CollegeID)
  94. </td>
  95. <td>@Html.ComboGridFor((x => x.CollegeID), new ComboGridOptions
  96. {
  97. TextField = "Name",
  98. ValueField = "CollegeID",
  99. OnSelect = "reload",
  100. EmptyText = "全部",
  101. GridOptions = new DataGridOptions
  102. {
  103. Columns = new List<DataGridColumn>()
  104. {
  105. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  106. },
  107. IsCheckOnSelect = true,
  108. DataSourceUrl = Url.Content("~/College/List"),
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false,
  112. }
  113. })
  114. </td>
  115. </tr>
  116. <tr>
  117. <td>@Html.LabelFor(x => x.StandardID)
  118. </td>
  119. <td>@Html.ComboGrid(cgopSpecialty, new Dictionary<string, string> { })
  120. </td>
  121. <td>@Html.LabelFor(x => x.YearID)
  122. </td>
  123. <td>@Html.ComboGrid(cgopYear, new Dictionary<string, string> { })
  124. </td>
  125. </tr>
  126. <tr>
  127. <td>@Html.LabelFor(x => x.SchoolyearID)
  128. </td>
  129. <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
  130. </td>
  131. <td>@Html.LabelFor(x => x.IsOverwrite)
  132. </td>
  133. <td>@Html.CheckBoxFor((x => x.IsOverwrite))
  134. </td>
  135. </tr>
  136. </table>
  137. </div>
  138. }
  139. </div>