function editLqda(id, from, jsbz) { if (jsbz == 1) { alert("该栏期已经结束,无法修改!"); return; } huimv.loadPage("lqdaRight", "editLqda.htm", { "id" : id, "from" : from }); } /** * 作废栏期档案 * @param lqid */ function disableLqda(lqid) { var errMsg = document.getElementById('errMsg'); jQuery.ajax({ url: "isExistDw.htm", dataType: "text", type: "get", async: false, data: {"lqid" : lqid}, success: function(data){ errMsg.innerHTML = data; if (data == "") { Dialogs.alert("确定作废当前栏期档案?", { title : '提示信息', width : 250, height : 80, top : 150, button : { ok : ['确定',function() { this.close(); huimv.showProcessModel('处理数据中'); jQuery.ajax({ url : 'disableLqda.htm', dataType : 'json', type : 'post', cache : false, data : {"id" : lqid}, success : function(data) { huimv.hideProcessModel(); if (data.returnCode > 0) { loadLqdaList(); } }, error : function(data) { huimv.showError(data.responseText); } }); }], cancel : ['取消',function() { this.close(); }] } }); } } }); }