// 修改猪舍档案 function editZsjk(id, from) { huimv.loadPage('zsdaRight', 'editZsjk.htm', { "id" : id, "from" : from }); } /** * 删除监控档案 * @param id * @param from * @param numOfExistLq */ function disableZsjk(id, from) { Dialogs.alert("确定作废当前监控档案?", { title : '提示信息', width : 250, height : 80, top : 150, button : { ok : ['确定',function(){ this.close(); huimv.showProcessModel('处理数据中'); jQuery.ajax({ url : 'disableZsjk.htm', dataType : 'json', type : 'post', cache : false, data : {"id" : id}, success : function(data) { huimv.hideProcessModel(); if (data.returnCode > 0) { if (from == 'list') { huimv.reloadGrid('zsjkGrid'); } else if (from == 'view') { loadZsjkList(); } } else { Dialogs.alert("传入参数有误!", { width : 300, height : 50 }); } }, error : function(data) { huimv.showError(data.responseText); } }); }], cancel : ['取消',function(){ this.close(); }] } }); } $("#displayPassword").click(function() { if ($("#displayPassword").val() == "显示密码") { document.getElementById("password").setAttribute("type", "text"); $("#displayPassword").val("隐藏密码"); } else { document.getElementById("password").setAttribute("type", "password"); $("#displayPassword").val("显示密码"); } });