/*! v4.5.0.6 | pageoffice.js for java | (c) 2016, 2018 Beijing zhuozheng zhiyuan software, Inc.*/
function PO_checkPageOffice(){var bodyHtml=document.body.innerHTML;if(bodyHtml.indexOf("EC852C85-C2FC-4c86-8D6B-E4E97C92F821")<0){var poObjectStr="";var explorer=window.navigator.userAgent;if(explorer.indexOf("MSIE")>=0){poObjectStr="
"+"\r\n"+"
"}else{poObjectStr=""+"\r\n"+"
"}jQuery(document.body).append(poObjectStr)}try{var sCap=document.getElementById("PageOfficeCtrl1").Caption;if(sCap==null){return false}else{return true}}catch(e){return false}}function po_uuid(len,radix){var chars='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');var uuid=[],i;radix=radix||chars.length;if(len){for(i=0;i>5]|=0x80<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)}function po_bit_rol(num,cnt){return(num<>>(32-cnt))}function po_str2binl(str){var bin=Array();var mask=(1<<8)-1;for(var i=0;i>5]|=(str.charCodeAt(i/8)&mask)<<(i%32);return bin}function po_binl2hex(binarray){var hex_tab="0123456789ABCDEF";var str="";for(var i=0;i>2]>>((i%4)*8+4))&0xF)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&0xF)}return str}function po_hex_md5(s){return po_binl2hex(po_core_md5(po_str2binl(s),s.length*8))}var bPOIsInstalled=false;var POParent=po_hex_md5(window.location.pathname);var PO_code="\150\164\164\160\72\57\57\61\62\67\56\60\56\60\56\61\72\65\67\60\67\60\57";var PO_code2="\150\164\164\160\163\72\57\57\61\62\67\56\60\56\60\56\61\72\65\67\60\67\61\57";var PO_datas;var POBrowser={isChromeAndGreaterThan42:function(){var e="42";return this.getChromeVersion()>=e?!0:!1},getChromeVersion:function(){var e,t=navigator.userAgent.toLowerCase(),n=/chrome/,o=/safari\/\d{3}\.\d{2}$/,i=/chrome\/(\S+)/;return n.test(t)&&o.test(t)&&i.test(t)?e=RegExp.$1:0},isChrome:function(){var e=navigator.userAgent.toLowerCase(),t=/chrome/;return t.test(e)?!0:!1},isEdge:function(){var e=navigator.userAgent.toLowerCase(),t=/edge/;return t.test(e)?!0:!1},isOldIE:function(){var e=navigator.userAgent.toLowerCase();return/msie/.test(e)},getBrowserVer:function(){var e=navigator.userAgent.toLowerCase();return(e.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1]},isXDR:function(){if(POBrowser.isOldIE()&&((parseInt(POBrowser.getBrowserVer(),10)==8)||(parseInt(POBrowser.getBrowserVer(),10)==9))&&window.XDomainRequest)return true;else return false},checkPOBrowserSate:function(){},strToHexCharCode:function(str){if(str==="")return"";var hexCharCode=[];for(var i=0;i0)pathName=pathName.substr(0,pathName.indexOf("?"));var index=pathName.lastIndexOf("/");strURL=pathName.substr(0,index+1)+strURL}}else{var pathName=window.location.href;var index=pathName.indexOf(window.location.pathname);strURL=pathName.substr(0,index)+strURL}if((strOptions!=null)&&(strOptions[strOptions.length-1]!=';'))strOptions=strOptions+";";jQuery.post(this.getRootPath()+"/poserver.zz",{Info:"PageOfficeLink",pageurl:strURL,options:strOptions,params:strArgument},function(data){PO_datas=data.split("\r\n");setTimeout("POBrowser.sendUserdata()",50);location.href=PO_datas[0]+POParent;jQuery().showPobDlg()},"text")},openWindowModeless:function(strURL,strOptions,strArgument){if((strURL==null)||(strURL=="")){alert("The parameter strURL of openWindowModeless() cannot be null or empty.");return}if(!bPOIsInstalled){this.showInstallDlg();return;}if(strURL.charAt(0)!='/'){var strLower=strURL.toLowerCase();if((strLower.substr(0,7)=="http://")||(strLower.substr(0,8)=="https://")){}else{var pathName=window.location.href;if(pathName.indexOf("?")>0)pathName=pathName.substr(0,pathName.indexOf("?"));var index=pathName.lastIndexOf("/");strURL=pathName.substr(0,index+1)+strURL}}else{var pathName=window.location.href;var index=pathName.indexOf(window.location.pathname);strURL=pathName.substr(0,index)+strURL}if((strOptions!=null)&&(strOptions[strOptions.length-1]!=';'))strOptions=strOptions+";";jQuery.post(this.getRootPath()+"/poserver.zz",{Info:"PageOfficeLink",pageurl:strURL,options:strOptions+"IsModal=false;",params:strArgument},function(data){PO_datas=data.split("\r\n");var strToken=po_hex_md5(POBrowser.strToHexCharCode(PO_datas[0]+POParent));if(POBrowser.isXDR()){var xdr=new XDomainRequest();if(xdr){xdr.onload=function(){var data=xdr.responseText;if(data==""){setTimeout("POBrowser.sendUserdata()",50);location.href=PO_datas[0]+POParent}else if(data=="false"){setTimeout("POBrowser.sendUserdata()",50);location.href=PO_datas[0]+POParent+"|"+strToken}};xdr.onerror=function(e){};xdr.ontimeout=function(){};xdr.open("POST",PO_code+"checkopened.htm?x="+po_uuid(8,16));xdr.send("token="+strToken)}else{}}else{jQuery.ajax({url:PO_code+"checkopened.htm?x="+po_uuid(8,16),data:{"token":strToken},dataType:"text",global:false,error:function(XMLHttpRequest,textStatus,errorThrown){if(textStatus=="timeout"){}else{}},success:function(data,textStatus){if(textStatus=="success"){if(data==""){setTimeout("POBrowser.sendUserdata()",50);location.href=PO_datas[0]+POParent}else if(data=="false"){setTimeout("POBrowser.sendUserdata()",50);location.href=PO_datas[0]+POParent+"|"+strToken}}}})}},"text")},sendUserdata:function(){if(POBrowser.isXDR()){var xdr=new XDomainRequest();if(xdr){xdr.onload=function(){};xdr.onerror=function(e){};xdr.open("POST",PO_code+"userdata.htm?x="+po_uuid(8,16));xdr.send("parent="+POParent+"&Info="+PO_datas[1])}else{}}else{jQuery.post(PO_code+"userdata.htm?x="+po_uuid(8,16),{parent:POParent,Info:PO_datas[1]},function(data){},"text")}},getArgument:function(){try{return window.external.UserParams}catch(e){alert(e.message+' Please ensure that you call it in POBrowser.')}},callParentJs:function(strFunc){if((strFunc==null)||(strFunc=="")){alert("The parameter strFunc of callParentJs() cannot be null or empty.");return}try{strFunc=strFunc.replace(/&/g,'');var strRet=window.external.CallParentFunc(strFunc,POParent);if(strRet=="po_timeout5618_"){alert("The "+strFunc+" function is timeout.");strRet=""}return strRet}catch(e){alert(e.message+' Please ensure that you call it in POBrowser.')}},closeWindow:function(){try{return window.external.Close()}catch(e){alert(e.message+' Please ensure that you call it in POBrowser.')}},callback2:function(){jQuery.ajax({url:PO_code+"func2.htm?x="+po_uuid(8,16),data:{"parent":POParent},dataType:"text",timeout:120000,global:false,error:function(XMLHttpRequest,textStatus,errorThrown){if(textStatus=="timeout"){setTimeout("POBrowser.callback2()",300)}else{setTimeout("POBrowser.callback2()",300)}},success:function(data,textStatus){if((textStatus=="success")&&(data!="null")&&(data!="abort")){var parsedData=jQuery.parseJSON(data);jQuery.post(PO_code+"funcret0.htm?x="+po_uuid(8,16),{id:parsedData[0].id},function(data){var vRet;try{vRet=eval(parsedData[0].name);}catch(e){alert(e.message)}if(typeof(vRet)!="string"){vRet="undefined"}jQuery.post(PO_code+"funcret.htm?x="+po_uuid(8,16),{id:parsedData[0].id,ret:vRet},function(data){},"text")},"text")}if(data!="abort")setTimeout("POBrowser.callback2()",300)}})},callback3:function(){var xdr=new XDomainRequest();if(xdr){xdr.onload=function(){var data=xdr.responseText;if((data!="null")&&(data!="abort")){var parsedData=jQuery.parseJSON(data);var xdr2=new XDomainRequest();if(xdr2){xdr2.onload=function(){var vRet;try{vRet=eval(parsedData[0].name)}catch(e){alert(e.message)}if(typeof(vRet)!="string"){vRet="undefined"}var xdr3=new XDomainRequest();if(xdr3){xdr3.onload=function(){};xdr3.onerror=function(){};xdr3.open("POST",PO_code+"funcret.htm?x="+po_uuid(8,16));xdr3.send("id="+parsedData[0].id+"&ret="+vRet)}else{}};xdr2.onerror=function(){};xdr2.open("POST",PO_code+"funcret0.htm?x="+po_uuid(8,16));xdr2.send("id="+parsedData[0].id)}else{}}if(data!="abort")setTimeout("POBrowser.callback3()",300)};xdr.onerror=function(e){};xdr.timeout=120000;xdr.ontimeout=function(){setTimeout("POBrowser.callback3()",300)};xdr.open("POST",PO_code+"func2.htm?x="+po_uuid(8,16));xdr.send("parent="+POParent)}else{}},addCssByLink:function(url){var doc=document;var link=doc.createElement("link");link.setAttribute("rel","stylesheet");link.setAttribute("type","text/css");link.setAttribute("href",url);var heads=doc.getElementsByTagName("head");if(heads.length)heads[0].appendChild(link);else doc.documentElement.appendChild(link)},includeJS:function(path){var a=document.createElement("script");a.type="text/javascript";a.src=path;var head=document.getElementsByTagName("head")[0];head.appendChild(a)},resumePO:function(){jQuery.ajax({url:PO_code+"resume.htm?parent="+POParent+"&callback=?",dataType:"json",global:false,error:function(XMLHttpRequest,textStatus,errorThrown){if(textStatus=="timeout"){}else{}},success:function(data,textStatus){if(textStatus=="success"&&data){}}})}};var ZDFAPP={openWindow:function(strURL,strOptions){if((strURL==null)||(strURL=="")){alert("The parameter strURL of openWindow() cannot be null or empty.");return}jQuery.post(this.getRootPath()+"/poserver.zz",{Info:"ZDFAPPLink",pageurl:strURL},function(data){location.href=data},"text")}};jQuery(function(){jQuery("body").append("提示
当前文档正处于打开状态,请点击
这里 切换PageOffice窗口继续查看或编辑文档。
");var dialogPob=jQuery('#pobmodal-dialog').parent();dialogPob.find('.close').click(function(){dialogPob.trigger('hide')});dialogPob.click(function(e){});dialogPob.on('hide',function(){dialogPob.fadeOut()}).on('show',function(){dialogPob.fadeIn()});jQuery.fn.showPobDlg=function(){dialogPob.trigger('show')};jQuery.fn.hidePobDlg=function(){dialogPob.trigger('hide')}});POBrowser.addCssByLink(POBrowser.getRootPath()+"/pobstyle.css");POBrowser.checkSSL();if(POBrowser.isXDR()){var xdrJson=new XDomainRequest();if(xdrJson){xdrJson.onload=function(){var data=xdrJson.responseText;if(data.indexOf("jsonx")>-1){bPOIsInstalled=true;setTimeout("POBrowser.callback3()",300)}};xdrJson.onerror=function(e){};xdrJson.ontimeout=function(){};xdrJson.open("POST",PO_code+"json.htm?x="+po_uuid(8,16));xdrJson.send("parent="+POParent)}else{}}else{jQuery.ajax({url:PO_code+"json.htm?x="+po_uuid(8,16),dataType:"json",global:false,error:function(XMLHttpRequest,textStatus,errorThrown){if(textStatus=="timeout"){}else{}},success:function(data,textStatus){if(textStatus=="success"&&data){jQuery.each(data,function(i,value){if(value.name=="jsonx"){bPOIsInstalled=true;if(POBrowser.isXDR())setTimeout("POBrowser.callback3()",300);else setTimeout("POBrowser.callback2()",300);return false}})}}})}