1. Initialize the password
Display layer:
notes:
$.messager.alert(MESSAGE_PLAT.PROMPT, MESSAGE_PLAT.CHOOSE_ONE,'info');
Submit after confirmation:
$.messager.confirm(MESSAGE_PLAT.PROMPT, "This operation cannot be returned, do you want to continue with password initialization?", function(flag) { if (flag) { $.post("user/init.do" + '?ids=' + $.farm.getCheckedIds(gridUser, 'ID'), {}, function(flag) { var jsonObject = JSON.parse(flag, null); if (jsonObject.model.STATE == 0) { $ .messager.alert ( MESSAGE_PLAT.PROMPT, MESSAGE_PLAT.SUCCESS, 'info'); } else { var str = MESSAGE_PLAT.ERROR_SUBMIT + flag.pageset.message; $ .messager.alert ( MESSAGE_PLAT.ERROR, str, 'error'); } }); } });
Controller layer:
Service layer:
Configuration file:
Dao layers