function editCzyh(id, from) { huimv.loadPage('czyhRight', 'editCzyh.htm', { "id" : id, "from" : from }); } /** * 作废操作用户 * @param id */ function disableCzyh(id, numOfExistJs) { if(numOfExistJs != "" && numOfExistJs > 0) { var errMsg = document.getElementById('errMsg'); errMsg.innerHTML = "无法删除此操作用户,请先通过分配角色功能去掉此操作用户下的用户角色!"; return; } Dialogs.alert("确定作废当前操作用户?", { title : '提示信息', width : 250, height : 80, top : 150, button : { ok : ['确定',function(){ this.close(); huimv.showProcessModel('处理数据中'); jQuery.ajax({ url : 'disableCzyh.htm', dataType : 'json', type : 'post', cache : false, data : {"id" : id}, success : function(data) { huimv.hideProcessModel(); if (data.returnCode > 0) { loadCzyhList(); } else { Dialogs.alert("传入参数有误!", { width : 300, height : 50 }); } }, error : function(data) { huimv.showError(data.responseText); } }); }], cancel : ['取消',function(){ this.close(); }] } }); } function modifyPW(yhid) { Dialogs.load('modifyPW.htm', {"yhid" : yhid}, { // 对话框基本配置选项 draggable: true,//是否拖动 autosize: false,//是否自适应大小 resizable: true,//是否可以改变大小 maximizable: true,//是否显示最大化最小化 autopos: 'fixed',// 窗口是否(自动剧中,fixed)页面 默认’fixed’ title: "修改密码",//窗口标题 lightbox: true,//窗口应用时是否禁用其他操作 width: 400,//窗口宽度 height: 200//窗口高度 }); }