Edit.cshtml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @model EMIS.ViewModel.ExaminationApply.ExaminationTypeView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @using (Ajax.BeginForm(new AjaxOptions
  9. {
  10. OnSuccess = "EMISFunction.FormSuccess",
  11. OnBegin = "EMISFunction.FormSubmit",
  12. OnComplete = "EMISFunction.FormComplete"
  13. }))
  14. {
  15. <div class="p_title">
  16. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  17. 考试类型信息</div>
  18. @if (Request["isView"] != "1")
  19. {
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  21. }
  22. </div>
  23. <div class="search_list popupWindowContent">
  24. <table cellpadding="0" cellspacing="0" id="departmenttable">
  25. <tr>
  26. <td>@Html.LabelFor(x => x.Name):
  27. </td>
  28. <td>@Html.TextBoxFor(x => x.Name)
  29. </td>
  30. <td>@Html.LabelFor(x => x.IsTimesLimit):
  31. </td>
  32. <td>@Html.CheckBoxFor(x => x.IsTimesLimit)
  33. </td>
  34. </tr>
  35. </table>
  36. </div>
  37. }
  38. </div>
  39. @section scripts{
  40. <script type="text/javascript">
  41. function ExaminationType_Save() {
  42. $(document.forms[0]).submit();
  43. }
  44. </script>
  45. }