Edit.cshtml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @model EMIS.ViewModel.StudentManage.StudentChange.ChangeReportView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var isEnable = Request["type"] == "detail" ? false : true;
  7. var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true);
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @using (Ajax.BeginForm(new AjaxOptions
  11. {
  12. OnSuccess = "EMISFunction.FormSuccess",
  13. OnBegin = "EMISFunction.FormSubmit",
  14. OnComplete = "EMISFunction.FormComplete" }))
  15. {
  16. <div class="p_title">
  17. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  18. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  19. @if (Request["type"] != "detail")
  20. {
  21. @Html.ContextMenuBar("Edit")
  22. }
  23. </div>
  24. </div>
  25. <div class="search_list">
  26. @Html.HiddenFor(x => x.ChangeReportID)
  27. <table cellpadding="0" cellspacing="0" id="collegePrioritytable">
  28. <tr>
  29. <td>
  30. @Html.LabelFor(x => x.Code):
  31. </td>
  32. <td>
  33. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable })
  34. </td>
  35. <td>
  36. @Html.LabelFor(x => x.Name):
  37. </td>
  38. <td>
  39. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>
  44. @Html.LabelFor(x => x.Url):
  45. </td>
  46. <td colspan="3">
  47. @Html.TextBoxFor(x => x.Url, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:90%;" } })
  48. </td>
  49. </tr>
  50. </table>
  51. </div>
  52. }
  53. </div>
  54. @section scripts{
  55. <script type="text/javascript">
  56. //保存
  57. function ChangeReport_Save() {
  58. $(document.forms[0]).submit();
  59. }
  60. </script>
  61. }