Edit.cshtml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationControlView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. ViewBag.Title = "Edit";
  7. }
  8. <style type="text/css">
  9. </style>
  10. <div class="separatorline">
  11. @using (Html.BeginForm())
  12. {
  13. <div class="p_title">
  14. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  15. 评价控制信息</div>
  16. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  17. </div>
  18. <div class="gobal-from">
  19. @Html.HiddenFor(x => x.ControlID)
  20. <table cellpadding="0" cellspacing="1">
  21. <tr>
  22. <th>@Html.LabelFor(x => x.SchoolyearID):
  23. </th>
  24. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), TextField = "Text", ValueField = "Value" })
  25. </td>
  26. </tr>
  27. <tr>
  28. <th>@Html.LabelFor(x => x.IsResult):
  29. </th>
  30. <td colspan="3">@Html.CheckBoxFor(x => x.IsResult)
  31. </td>
  32. </tr>
  33. <tr>
  34. <th>@Html.LabelFor(x => x.IsCourse):
  35. </th>
  36. <td colspan="3">@Html.CheckBoxFor(x => x.IsCourse)
  37. </td>
  38. </tr>
  39. </table>
  40. </div>
  41. }
  42. </div>
  43. @section scripts{
  44. <script type="text/javascript">
  45. function EvaluationControl_Save() {
  46. var controlID = $("#ControlID").val();
  47. var SchoolyearID = $("#SchoolyearID").val();
  48. $.post('/EvaluationControl/Verification', { controlID: controlID, schoolyearID: SchoolyearID }, function (data) {
  49. if (data == "成功") {
  50. $(document.forms[0]).submit();
  51. } else {
  52. $.messager.alert("系统提示", data);
  53. }
  54. });
  55. }
  56. </script>
  57. }