ChangePassword.cshtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @model EMIS.ViewModel.SystemView.ChangePasswordView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "ChangePassword";
  6. }
  7. @section scripts{
  8. <script language="javascript">
  9. function Password_Save() {
  10. if ($("#Password").val() != $("#PasswordRep").val()) {
  11. $.messager.alert('系统提示', '两次输入的密码必须一致', 'info');
  12. return;
  13. }
  14. $(document.forms[0]).submit();
  15. }
  16. </script>
  17. }
  18. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  19. @using (Ajax.BeginForm(new AjaxOptions
  20. {
  21. OnSuccess = "EMISFunction.FormSuccess",
  22. OnBegin = "EMISFunction.FormSubmit",
  23. OnComplete = "EMISFunction.FormComplete"
  24. }))
  25. {
  26. <div class="p_title">
  27. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  28. 密码修改</div>
  29. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  30. <div class="current_navbar toolbar">
  31. <div class="func_info">
  32. @Html.Button(new ButtonOptions { OnClick = "Password_Save()", Icon = ButtonIcon.Save, Text = "保存" })
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="search_list">
  38. <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
  39. <tr>
  40. <td width="20%">@Html.LabelFor(x => x.OldPassword):
  41. </td>
  42. <td>@Html.PasswordFor(x => x.OldPassword, new { placeholder = "请输入旧密码", autocomplete = "off" })
  43. @Html.ValidationMessageFor(x => x.OldPassword)
  44. </td>
  45. </tr>
  46. <tr>
  47. <td>@Html.LabelFor(x => x.Password):
  48. </td>
  49. <td>@Html.PasswordFor(x => x.Password, new { placeholder = "请输入密码", autocomplete = "off" })
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>@Html.LabelFor(x => x.PasswordRep):
  54. </td>
  55. <td>@Html.PasswordFor(x => x.PasswordRep, new { placeholder = "请再次输入密码", autocomplete = "off" })
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. }
  61. </div>