SpecialtyCopyList.cshtml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @model EMIS.ViewModel.CultureplanManage.PlanManagement.SpecialtyPlanView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "SpecialtyCopyList";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "GrademajorID",
  10. //OnSelect = "QueryGrademajorComboGrid",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Width=0.1, Align=AlignStyle.Center },
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Grademajor/List"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. }
  25. @section scripts{
  26. <script type="text/javascript">
  27. var nonSelect = "@DropdownList.SELECT_ALL";
  28. function CopyBySpecialty_Confirm() {
  29. var BeForeGrademajorID = $("#GrademajorBeForeGrademajor").combogridX("getValue");
  30. if (BeForeGrademajorID == nonSelect) {
  31. $.messager.alert("系统提示", "请选择源年级专业!");
  32. return;
  33. }
  34. var AfterGrademajorID = $("#GrademajorAfterGrademajor").combogridX("getValue");
  35. if (AfterGrademajorID == nonSelect) {
  36. $.messager.alert("系统提示", "请选择目标年级专业!");
  37. return;
  38. }
  39. $(document.forms[0]).submit();
  40. }
  41. </script>
  42. }
  43. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  44. @using (Ajax.BeginForm(new AjaxOptions
  45. {
  46. OnSuccess = "EMISFunction.FormSuccess",
  47. OnBegin = "EMISFunction.FormSubmit",
  48. OnComplete = "EMISFunction.FormComplete"
  49. }))
  50. {
  51. <div class="p_title">
  52. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SpeCopy")</div>
  53. </div>
  54. <div class="search_list">
  55. @Html.HiddenFor(x => x.PlanApplicationID)
  56. @Html.Hidden("SpecialtyCourse")
  57. <table cellpadding="0" cellspacing="0" id="planApplicationtable">
  58. <tr>
  59. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorBeForeGrademajor):
  60. </td>
  61. <td>@Html.ComboGridFor(x => x.GrademajorBeForeGrademajor, cgop)
  62. </td>
  63. <td style="width: 80px;">@Html.LabelFor(x => x.GrademajorAfterGrademajor):
  64. </td>
  65. <td>@Html.ComboGridFor(x => x.GrademajorAfterGrademajor, cgop)
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>@Html.LabelFor(x => x.IsOverwrite)
  70. </td>
  71. <td>@Html.CheckBoxFor((x => x.IsOverwrite))
  72. </td>
  73. <td>
  74. &nbsp;
  75. </td>
  76. <td>
  77. &nbsp;
  78. </td>
  79. </tr>
  80. </table>
  81. </div>
  82. }
  83. </div>