Edit.cshtml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @model EMIS.ViewModel.SystemView.RoleView
  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. @Html.HiddenFor(x => x.TypeID, new { Value = ((int)EMIS.ViewModel.SYS_RoleType.Teacher).ToString() })
  16. <div class="p_title">
  17. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  18. 角色信息</div>*@
  19. @if (Request["isView"] != "1")
  20. {
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  22. }
  23. </div>
  24. <div class="search_list popupWindowContent">
  25. <table cellpadding="0" cellspacing="0" id="departmenttable">
  26. <tr>
  27. <td>@Html.LabelFor(x => x.OrderNo):
  28. </td>
  29. <td>@Html.TextBoxFor(x => x.OrderNo)
  30. </td>
  31. <td>@Html.LabelFor(x => x.RoleName):
  32. </td>
  33. <td>@Html.TextBoxFor(x => x.RoleName)
  34. </td>
  35. </tr>
  36. <tr>
  37. <td>@Html.LabelFor(x => x.DefaultDataRange):
  38. </td>
  39. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.SYS_DataRange, x => x.DefaultDataRange, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  40. </td>
  41. <td></td>
  42. <td></td>
  43. </tr>
  44. <tr>
  45. <td>@Html.LabelFor(x => x.Description):
  46. </td>
  47. <td >@Html.TextAreaFor(x => x.Description, new Dictionary<string, object> { { "style", "height:15px;" } })
  48. </td>
  49. <td></td>
  50. <td></td>
  51. </tr>
  52. </table>
  53. </div>
  54. }
  55. </div>
  56. @section scripts{
  57. <script type="text/javascript">
  58. function Role_Save() {
  59. $(document.forms[0]).submit();
  60. }
  61. </script>
  62. }