BatchInitPassword.cshtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @model EMIS.ViewModel.SystemView.BatchInitPasswordView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "BatchInitPassword";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. $(function () {
  10. //获取选择的信息ID
  11. windowID = $.SystemGeneral.getUrlParam("WindowID");
  12. var userIDs = top.$("#@(Request["WindowID"])").data("inputData").join(',');
  13. //userIDs = top.$("#" + windowID).data("inputData");
  14. //top.$("#@(Request["WindowID"])").data("inputData").join(',');
  15. $("#User").val(userIDs);
  16. });
  17. function Student_BatchInitPasswordSave() {
  18. User_PwdEdit_Save();
  19. }
  20. function Student_BatchSetPasswordSave() {
  21. User_PwdEdit_Save();
  22. }
  23. function User_BatchInitPasswordSave() {
  24. User_PwdEdit_Save();
  25. }
  26. function User_BatchSetPasswordSave() {
  27. User_PwdEdit_Save();
  28. }
  29. function User_PwdEdit_Save() {
  30. var BatchInt = $("#BatchInt")[0].checked;
  31. var pwd = $("#Password")[0].value;
  32. if (BatchInt == true && pwd == "") {
  33. $.messager.alert("系统提示", "请输入自定义密码。");
  34. return;
  35. }
  36. $(document.forms[0]).submit();
  37. }
  38. </script>
  39. }
  40. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  41. @using (Ajax.BeginForm(new AjaxOptions
  42. {
  43. OnSuccess = "EMISFunction.FormSuccess",
  44. OnBegin = "EMISFunction.FormSubmit",
  45. OnComplete = "EMISFunction.FormComplete"
  46. }))
  47. {
  48. <div class="p_title">
  49. @if (Request["isView"] == "1")
  50. {
  51. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  52. }
  53. @if (Request["isView"] == "2")
  54. {
  55. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edits")</div>
  56. }
  57. @if (Request["isView"] == "3")
  58. {
  59. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Save")</div>
  60. }
  61. @if (Request["isView"] == "4")
  62. {
  63. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Saves")</div>
  64. }
  65. </div>
  66. <div class="search_list">
  67. @Html.Hidden("userID")
  68. @Html.HiddenFor(x => x.User)
  69. @Html.HiddenFor(x => x.type)
  70. <table cellpadding="0" cellspacing="0" id="BatchInitPassword">
  71. <tr>
  72. <td style="width:20px">@Html.RadioButtonFor(x => x.BatchInt, true)
  73. </td>
  74. <td>@Html.LabelFor(x=>x.Password):
  75. </td>
  76. <td>@Html.PasswordFor(x=>x.Password, new { autocomplete = "off" })
  77. </td>
  78. </tr>
  79. <tr>
  80. <td style="width:20px">@Html.RadioButtonFor(x => x.BatchInt, false)
  81. </td>
  82. <td colspan="2">
  83. @if (Request["isView"] == "1" || Request["isView"] == "2")
  84. {
  85. <p>默认密码为 Ab#888888</p>
  86. }
  87. @if (Request["isView"] == "3" || Request["isView"] == "4")
  88. {
  89. <p>默认密码为 Ab! + 证件号码后六位</p>
  90. }
  91. </td>
  92. </tr>
  93. </table>
  94. </div>
  95. }
  96. </div>