GradeCopyList.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @model EMIS.ViewModel.CultureplanManage.PlanManagement.SpecialtyPlanView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "GradeCopyList";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. function CopyByGrade_Confirm() {
  11. var BeForeYearID = $("#GrademajorBeForeYear").combobox("getValue");
  12. if (BeForeYearID == nonSelect) {
  13. $.messager.alert("系统提示", "请选择源年级!");
  14. return;
  15. }
  16. var AfterYearID = $("#GrademajorAfterYear").combobox("getValue");
  17. if (AfterYearID == nonSelect) {
  18. $.messager.alert("系统提示", "请选择目标年级!");
  19. return;
  20. }
  21. if (BeForeYearID > AfterYearID) {
  22. $.messager.alert("系统提示", "源年级要小于目标年级!");
  23. return;
  24. }
  25. $(document.forms[0]).submit();
  26. }
  27. </script>
  28. }
  29. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  30. @using (Ajax.BeginForm(new AjaxOptions
  31. {
  32. OnSuccess = "EMISFunction.FormSuccess",
  33. OnBegin = "EMISFunction.FormSubmit",
  34. OnComplete = "EMISFunction.FormComplete"
  35. }))
  36. {
  37. <div class="p_title">
  38. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("GradeCopy")</div>
  39. </div>
  40. <div class="search_list">
  41. @Html.HiddenFor(x => x.PlanApplicationID)
  42. @Html.Hidden("SpecialtyCourse")
  43. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  44. <tr>
  45. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorBeForeYear):
  46. </td>
  47. <td>@Html.SchoolYearDropDownList(new DropdownListOptions
  48. {
  49. ID = "GrademajorBeForeYear",
  50. Name = "GrademajorBeForeYear",
  51. })
  52. </td>
  53. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorAfterYear):
  54. </td>
  55. <td>@Html.SchoolYearDropDownList(new DropdownListOptions
  56. {
  57. ID = "GrademajorAfterYear",
  58. Name = "GrademajorAfterYear",
  59. })
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>@Html.LabelFor(x => x.IsOverwrite)
  64. </td>
  65. <td>@Html.CheckBoxFor((x => x.IsOverwrite))
  66. </td>
  67. <td>
  68. &nbsp;
  69. </td>
  70. <td>
  71. &nbsp;
  72. </td>
  73. </tr>
  74. </table>
  75. </div>
  76. }
  77. </div>