123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- @model EMIS.ViewModel.SystemView.BatchInitPasswordView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "BatchInitPassword";
- }
- @section scripts{
- <script type="text/javascript">
- $(function () {
- //获取选择的信息ID
- windowID = $.SystemGeneral.getUrlParam("WindowID");
- userIDs = top.$("#" + windowID).data("inputData");
- //top.$("#@(Request["WindowID"])").data("inputData").join(',');
- $("#userID").val(userIDs);
- });
- function Student_BatchInitPasswordSave() {
- User_PwdEdit_Save();
- }
- function Student_BatchSetPasswordSave() {
- User_PwdEdit_Save();
- }
- function User_BatchInitPasswordSave() {
- User_PwdEdit_Save();
- }
- function User_BatchSetPasswordSave() {
- User_PwdEdit_Save();
- }
- function User_PwdEdit_Save() {
- var BatchInt = $("#BatchInt")[0].checked;
- var pwd = $("#Password")[0].value;
- if (BatchInt == true && pwd == "") {
- $.messager.alert("系统提示", "请输入自定义密码。");
- return;
- }
- $(document.forms[0]).submit();
- }
- </script>
-
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- @if (Request["isView"] == "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- @if (Request["isView"] == "2")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edits")</div>
- }
- @if (Request["isView"] == "3")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Save")</div>
- }
- @if (Request["isView"] == "4")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Saves")</div>
- }
- </div>
- <div class="search_list">
- @Html.Hidden("userID")
- @Html.HiddenFor(x => x.User)
- @Html.HiddenFor(x => x.type)
- <table cellpadding="0" cellspacing="0" id="BatchInitPassword">
- <tr>
-
- <td style="width:20px">@Html.RadioButtonFor(x => x.BatchInt, true)
- </td>
- <td>@Html.LabelFor(x=>x.Password):
- </td>
- <td>@Html.PasswordFor(x => x.Password, new { autocomplete = "off" })
- </td>
-
-
- </tr>
- <tr>
- <td style="width:20px">@Html.RadioButtonFor(x => x.BatchInt, false)
- </td>
- <td colspan="2">
- @if (Request["isView"] == "1" || Request["isView"] == "2")
- {
- <p>默认密码为A+教职工号</p>
- }
- @if (Request["isView"] == "3" || Request["isView"] == "4")
- {
- <p>默认密码为A+学号</p>
- }
- </td>
-
- </tr>
- </table>
- </div>
- }
- </div>
|