SpecialtyCopyList.cshtml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. @model EMIS.ViewModel.CultureplanManage.PlanManagement.AdultSpecialtyPlanView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "SpecialtyCopyList";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. ID = "SpecialtyID",
  9. Name = "SpecialtyID",
  10. TextField = "StandardName",
  11. ValueField = "SpecialtyID",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Width=0.1, Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Width=0.1, Align=AlignStyle.Center },
  20. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Width=0.1, Align=AlignStyle.Center }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Specialty/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. ComboGridOptions cgopCourse = new ComboGridOptions
  30. {
  31. TextField = "CourseName",
  32. ValueField = "CoursematerialID",
  33. Name = "CoursematerialIDDropdownGridBo",
  34. ID = "CoursematerialIDDropdownGridBo",
  35. //OnSelect = "QueryCoursematerialComboGrid",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  41. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  42. },
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false
  48. }
  49. };
  50. }
  51. @section scripts{
  52. <script type="text/javascript">
  53. var nonSelect = "@DropdownList.SELECT_ALL";
  54. function SpecialtyPlan_CopySave() {
  55. var BeForeYearID = $("#GrademajorBeForeYear").combobox("getValue");
  56. if (BeForeYearID == nonSelect) {
  57. $.messager.alert("系统提示", "请选择源年级!");
  58. return;
  59. }
  60. var AfterYearID = $("#GrademajorAfterYear").combobox("getValue");
  61. if (AfterYearID == nonSelect) {
  62. $.messager.alert("系统提示", "请选择目标年级!");
  63. return;
  64. }
  65. if (BeForeYearID > AfterYearID) {
  66. $.messager.alert("系统提示", "源年级要小于目标年级!");
  67. return;
  68. }
  69. $(document.forms[0]).submit();
  70. }
  71. </script>
  72. }
  73. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  74. @using (Ajax.BeginForm(new AjaxOptions
  75. {
  76. OnSuccess = "EMISFunction.FormSuccess",
  77. OnBegin = "EMISFunction.FormSubmit",
  78. OnComplete = "EMISFunction.FormComplete"
  79. }))
  80. {
  81. <div class="p_title">
  82. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SpeCopy")</div>
  83. </div>
  84. <div class="search_list">
  85. @Html.HiddenFor(x => x.PlanApplicationID)
  86. @Html.Hidden("SpecialtyCourse")
  87. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  88. <tr>
  89. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorBeForeYear):
  90. </td>
  91. <td>@Html.SchoolYearDropDownList(new DropdownListOptions
  92. {
  93. ID = "GrademajorBeForeYear",
  94. Name = "GrademajorBeForeYear",
  95. })
  96. </td>
  97. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorBeForeGrademajor):
  98. </td>
  99. <td>@Html.ComboGridFor(x => x.GrademajorBeForeGrademajor, cgop)
  100. </td>
  101. </tr>
  102. <tr>
  103. <td style="width: 80px;">@Html.LabelFor(x => x.CourseTypeID):
  104. </td>
  105. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)
  106. </td>
  107. <td style="width: 80px;">@Html.LabelFor(x => x.CoursematerialID):
  108. </td>
  109. <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  110. </td>
  111. </tr>
  112. <tr>
  113. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorAfterYear):
  114. </td>
  115. <td>@Html.SchoolYearDropDownList(new DropdownListOptions
  116. {
  117. ID = "GrademajorAfterYear",
  118. Name = "GrademajorAfterYear",
  119. })
  120. </td>
  121. <td>@Html.LabelFor(x => x.IsOverwrite)
  122. </td>
  123. <td>@Html.CheckBoxFor((x => x.IsOverwrite))
  124. </td>
  125. </tr>
  126. <tr>
  127. @*<td>@Html.LabelFor(x => x.StarttermID):</td>
  128. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, (x => x.SchoolcodeID))
  129. </td>
  130. <td>
  131. </td>
  132. <td>
  133. </td>*@
  134. </tr>
  135. </table>
  136. </div>
  137. }
  138. </div>