TypeEdit.cshtml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @model EMIS.ViewModel.SystemView.AnnouncementTypeView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "TypeEdit";
  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;"></div>
  17. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("TypeEdit")</div>
  18. </div>
  19. <div class="search_list popupWindowContent">
  20. <table cellpadding="0" cellspacing="0" id="departmenttable">
  21. <tr>
  22. <td>@Html.LabelFor(x => x.No):
  23. </td>
  24. <td>@Html.TextBoxFor(x => x.No)
  25. </td>
  26. <td>@Html.LabelFor(x => x.Name):
  27. </td>
  28. <td>@Html.TextBoxFor(x => x.Name)
  29. </td>
  30. </tr>
  31. <tr>
  32. <td>@Html.LabelFor(x => x.Description):
  33. </td>
  34. <td colspan="3">@Html.TextAreaFor(x => x.Description, new Dictionary<string, string> { { "style", "width:500px;" } })
  35. </td>
  36. </tr>
  37. </table>
  38. </div>
  39. }
  40. </div>
  41. @section scripts{
  42. <script type="text/javascript">
  43. function AnnouncementType_Save() {
  44. $(document.forms[0]).submit();
  45. }
  46. </script>
  47. }