StudentEdit.cshtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.Student).ToString() })
  16. <div class="p_title">
  17. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></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.OrderNo):
  27. </td>
  28. <td>@Html.TextBoxFor(x => x.OrderNo)
  29. </td>
  30. <td>@Html.LabelFor(x => x.RoleName):
  31. </td>
  32. <td>@Html.TextBoxFor(x => x.RoleName)
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>@Html.LabelFor(x => x.StudentType):
  37. </td>
  38. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  39. </td>
  40. <td></td>
  41. <td></td>
  42. </tr>
  43. <tr>
  44. <td>@Html.LabelFor(x => x.Description):
  45. </td>
  46. <td>@Html.TextAreaFor(x => x.Description, new Dictionary<string, string> { { "style", "width:500px;" } })
  47. </td>
  48. <td></td>
  49. <td></td>
  50. </tr>
  51. </table>
  52. </div>
  53. }
  54. </div>
  55. @section scripts{
  56. <script type="text/javascript">
  57. function Role_Save() {
  58. var roleID = $.SystemGeneral.getUrlParam("RoleID");
  59. var studentTypeID = $("#StudentType").combobox("getValue");
  60. var roleName = $("#RoleName").val();
  61. $.post('/Role/StudentVerification', { roleID: roleID, studentTypeID: studentTypeID, roleName: roleName }, function (data) {
  62. if (data == "成功") {
  63. $(document.forms[0]).submit();
  64. } else {
  65. $.messager.alert("系统提示", data);
  66. }
  67. });
  68. }
  69. </script>
  70. }