var ctiCrossBrowser=false; var SYS_CURRENCY="null"; var srcEDPPath=null; function saveToFileCenter(path){ srcEDPPath=path; openDivFrame(null,"controlservlet?action=filesystem&event=browse&forFolderSelection=true&callbackFunction=copyFile",800,500,"DivOwner",false); } function copyFile(filePath){ var res= ajaxPost("controlservlet?action=json&event=invoke&path=filesystem.savetofilecenter&srcPath="+encodeURIComponent(srcEDPPath)+"&destPath="+encodeURIComponent(filePath)); eval(res); if(request ){ if(request.resultFlag=="OK"){ alert(OPERATION_SUCESS+", 复制文件名:"+request.newFileName); closeDivWindow(); } if(request.resultFlag=="LOCKED"){ alert("该文档中心的目录已经锁定了,不能保存文件到该目录。"); } }else{ alert("保存文件到文档中心失败"); } }