| 1 |
- function waitThenInitNiceScorll(){try{document.onreadystatechange=function(){"complete"===document.readyState?setTimeout((function(){window.initNiceScorll&&window.initNiceScorll()}),200):setTimeout(waitThenInitNiceScorll,10)}}catch(n){}}void 0===window.ss&&(window.ss={}),window.ss.display||(window.ss.display={}),window.ss.display.Yi=49,window.ss.display.Xi=23,function(){if(!window.ss.topWindow){for(var n=window;n!==window.top;)try{var t=(new Date).getMilliseconds().toString();n.parent[t]=1,n=n.parent}catch(n){break}window.ss.topWindow=n}}(),window.ss.topWindow.ss||(window.ss.topWindow.ss={}),window.ss.topWindow.ss.display||(window.ss.topWindow.ss.display={}),$(document).ready((function(){waitThenInitNiceScorll();try{window.ss.display.closeLoad()}catch(n){}})),window.ss.display.showLoad=function(){$(window.ss.topWindow.document).find("#fMD").show()},window.ss.display.closeLoad=function(){$(window.ss.topWindow.document).find("#fMD").hide()},window.ss.display.getssDialogId=function(n){n||(n=window);for(var t=window.ss.topWindow.document.getElementsByTagName("IFRAME"),e=null,s=0;s<t.length;s++){var i=t[s],o=i.contentWindow,d=null;if(i.dataset&&(i.dataset.wdDialogId?d=i.dataset.wdDialogId:i.dataset.ssDialogId&&(d=i.dataset.ssDialogId)),d||(d=i.getAttribute("ssDialogId")||i.getAttribute("ssDialogId")),o===n&&d){e=d;break}}if(!e){if(n===window.ss.topWindow)return null;e=window.ss.display.getssDialogId(n.parent)}return e},window.ss.display.getssDialogOpener=function(){var n=window.ss.display.getssDialogId();return window.ss.topWindow.ss.display.ssDialogOpeners[n]},window.ss.display.getInputsGroups=function(){for(var n=$("form,input,select,:radio,:checkbox").serializeArray(),t={},e=0;e<n.length;e++){var s=n[e].name;if(s&&!/objectPicker.*/.test(s)){var i=window.ss.display.getInputBox(s);i&&(t[s]=i)}}return t},window.ss.display.getInputBox=function(n,t){if(void 0===t&&(t=!1),window.ss.display.filterInputBoxNames[n])return null;var e={name:n,container:null,setChange:(null,function(n){$(this.container).on("change",n)}),focus:(null,function(){$(this.container).focus()}),onKeyDown:(null,function(n,t){var e=[];e=n,$(this.onKeyDownContainer||this.container).on("keydown",(function(n){var s=n;if(-1!=e.indexOf(s.which||s.keyCode))return t()}))}),onKeyDownContainer:null,modify:(null,function(n){n?$(this.modifyContainer||this.container).removeAttr("readonly"):$(this.modifyContainer||this.container).attr("readonly","readonly")}),modifyContainer:null,getValue:({},function(){return $(this.container).val()}),setValue:({},function(n){$(this.container).val(n)}),type:null,instance:null};try{if(window.growHeightList&&window.growHeightList[n])e.type="growHeight",e.instance=window.growHeightList[n],e.container=window.growHeightList[n].container.parentNode,e.getValue=function(){return this.instance.val()},e.setValue=function(n){this.instance.val(n)},e.focus=function(){this.instance.onFocus()},e.onKeyDownContainer=$(window.growHeightList[n].getInputElement().parentNode).find("textarea"),e.modifyContainer=window.growHeightList[n].getInputElement();else if(window.ss&&window.ss.edit&&window.ss.edit.objectPicker&&window.ss.edit.objectPicker.getInstance(n))e.type="objectPicker",e.instance=window.ss.edit.objectPicker.getInstance(n),e.container=e.instance.getDisplayElement(),e.getValue=function(){return this.instance.getValue()},e.setValue=function(n){this.instance.initValue(n)},e.setChange=function(n){this.instance.onchange=n},e.modify=function(n){this.instance.modify(n)};else if(window.EditorManager&&window.EditorManager.instances&&window.EditorManager.instances[n])e.type="ueditor",e.container=window.EditorManager.instances[n].getUeditor().container,e.instance=window.EditorManager.instances[n].getUeditor(),e.getValue=function(){var n=this.instance.getContent();return n?window.ss.display.toPlainText():n},e.setValue=function(n){return this.instance.setContent(n)};else if(1==$("#"+n+"_onoffbutton_list").length)e.type="onoffbutton",e.container=$("[name="+n+"][type=button]").last()[0],e.getValue=function(){return $("[name='"+n+"'][type=hidden]").val()},e.setValue=function(t){$("[name='"+n+"'][type=button][ssVal="+t+"]").click()};else if(window.enrolDateList&&window.enrolDateList[n])e.type="enrolDate",e.instance=window.enrolDateList[n],e.container=window.enrolDateList[n].container,e.getValue=function(){return this.instance.getValue()},e.setValue=function(n){this.instance.setValue(n)},e.setChange=function(n){this.instance.onchange=n};else if(window.editPhotoList&&window.editPhotoList[n])e.type="editPhoto",e.instance=window.editPhotoList[n],e.container=window.editPhotoList[n].container,e.getValue=function(){return this.instance.getValue()},e.setValue=function(n){this.instance.setValue(n)},e.modify=function(n){this.instance.modify(n)};else{if(!document.querySelector("[name='"+n+"']"))return null;e.type="input",e.container=document.querySelector("[name='"+n+"']")}if(t);else if(0==$(e.container).width())return null}catch(n){}return e},window.ss.display.closeDialog=function(){var n=window.ss.display.getssDialogId();window.ss.display.closeLoad(),n&&window.ss.topWindow.dhxWins.window(n).close()},window.ss.display.getssDialogWindows=function(n){var t=window.ss.display.getssDialogId();return n&&(t=n),t?window.ss.topWindow.dhxWins.window(t):null},window.ss.display.addDialogLine=function(n){if(!n){var t=window.ss.display.getssDialogId();if(!t)return;n=window.ss.topWindow.dhxWins.window(t)}$(n).find(".dhtmlx_wins_body_inner").removeClass("dhtmlx_wins_body_inner_noborder").addClass("dhtmlx_wins_body_inner_border")},window.ss.display.resizeComponent=function(n,t,e,s){if("NaN"!=n&&"NaN"!=t){var i=window.ss.display.getssDialogWindows();if(i){var o=!0;if(e&&!isNaN(Number(e))&&s&&!isNaN(Number(s))){var d=parseInt(e),a=parseInt(s),l=this.Yi||0;d+l>window.ss.topWindow.innerHeight?t=e+this.Yi:a+l<window.ss.topWindow.innerHeight?t=a+l:(t=window.ss.topWindow.innerHeight,o=!0)}window.ss.display.addDialogLine(),o&&(i.setDimension(n,t),i.keepInViewport(!1),i.center())}}},window.ss.display.getFrameOfWindow=function(n){if(!((n=n||window)!=n.top&&n.parent&&n.parent.document.querySelectorAll("iframe").length>0))return null;for(var t=n.parent.document.querySelectorAll("iframe"),e=0;e<t.length;e++)if(t[e].contentWindow==n)return t[e]},window.ss.display.changeFormAction=function(n,t,e,s,i,o){var d=$(t).parents("form:first").attr("action",n);if(1!=d.length)return alert("找不到form元素"),!1;var a=d[0];return!(a.checkOnly&&!a.checkOnly(!0))&&(e&&s&&i&&o&&window.ss.display.resizeComponent(e,s,i,o),!0)},window.ss.display.submitToTopTab=function(n){if(n){var t=n.form.cloneNode(!0);t.style.display="none",n.form.parentNode&&(n.form.parentNode.innerHTML="");for(var e=window,s=window.ss.display.getFrameOfWindow(e);s&&s.tabObj;)e=e.parent,s=window.ss.display.getFrameOfWindow(e);s&&s.contentWindow&&(s.contentWindow.document.body.appendChild(t),t.submit())}},window.ss.display.reset=function(n,t,e,s,i,o,d){var a=!1;return t.iscommit?a=!0:t.form&&(a=!t.form.checkOnly||!!t.form.checkOnly(!0)),a&&(window.ss.display.changeFormAction(e,t),"dialog"==n)?(s&&i&&o&&d&&window.ss.display.resizeComponent(s,i,o,d),window.ss.display.submitToTopTab(t),!1):a},window.ss.display.getssDialogOpener=function(){var n=window.ss.display.getssDialogId();return window.ss.topWindow.ss.display.ssDialogOpeners[n]},window.ss.display.addComponentEvent=function(n){n.getFrame().addEventListener("load",(function(){var t=n.getFrame().contentWindow;if("0"!=t.loginStatus){(new function(){this.win=null,this.button,this.init=function(n){this.win=n,this.sendRequest("query",(function(n){1==n?this.addButton("ssShared"):0==n&&this.addButton("ssShare")}))},this.addButton=function(n){var t=this;this.win.button(n)&&null!=this.win.button(n)&&this.win.button(n).show(),this.win.button(n).onclick=function(){t.ssshareClick(n)}},this.ssshareClick=function(n){var t;"ssShared"==n?t="delete":"ssShare"==n&&(t="add"),this.sendRequest(t,(function(t){1==t&&(this.win.button(n).hide(),this.addButton("ssShared"==n?"ssShare":"ssShared"))}))},this.sendRequest=function(n,e){var s;"query"==n?s="":"add"==n?s=1:"delete"==n?s=0:alert("type 值超出范围:"+n);var i=this;$.post("/service?ssServ=ssShare",{sssharetype:s,ssshareurl:t.window.location.href},(function(n){e&&e.call(i,n)}))}}).init(n)}}),!1)},window.ss.display.replaceDynamicParam=function(n,t){var e=/ssVal\{\s*[A-Za-z0-9_]*\s*\}/g;if(e.test(n)){for(var s=n.match(e),i=0;i<s.length;i++){var o=s[i],d=o.trim().substring(6,o.trim().length-1);if(t&&null!=t[d])n=n.replace(o,t[d]);else{var a=document.getElementsByName(d)[0];if(a){var l=a.value;n=n.replace(o,l)}}}return n}return n},window.ss.display.createMaskDiv=function(n,t,e){var s=t.document.getElementsByTagName("BODY")[0],i=(new Date).getTime();void 0!==e&&e||(e=100001);var o=document.createElement("div");o.id=i.toString(),o.setAttribute("class","ssMaskDiv dialog-mask"),o.style.zIndex=(e-1).toString(),s.appendChild(o);var d=t.document.body.scrollLeft+t.document.body.scrollWidth||t.document.documentElement.scrollLeft+t.document.documentElement.scrollWidth,a=t.document.body.scrollTop+t.document.body.scrollHeight||t.document.documentElement.scrollTop+t.document.documentElement.scrollHeight;o.style.width=d+"px",o.style.height=a+"px",n.mask||(n.mask=[]),n.mask.push(i)},window.ss.display.ssButtons=[["wdHelp",3,"帮助","帮助","icon-help"],["CMS_download",3,"下载","下载","icon-download"],["wdShare",3,"收藏","收藏","icon-favorite"],["wdShared",3,"已收藏","已收藏","icon-favoriteOn"],["editwdHelp",3,"编辑帮助","编辑帮助","icon-setHelp"],["editwdHelp_save",3,"编辑帮助保存","编辑帮助保存","invertIcon-save"],["wdTab",3,"编辑选项卡","编辑选项卡","icon-set"],["wdTab_save",3,"保存选项卡","保存选项卡","invertIcon-save"],["wdRecord",3,"个人选值","个人选值","icon-setValue"],["wdRecord_save",3,"个人选值保存","个人选值保存","invertIcon-save"],["CMS_fullscreen",3,"全屏","全屏","dialog-restoreButton"],["CMS_nrProperty",3,"内容属性","内容属性","icon-property"],["change_on",3,"变动查看-开","变动查看-开","dialog-changeOnButton"],["change_off",3,"变动查看-关","变动查看-关","dialog-changeButton"],["lockScreen",3,"锁定","锁定","icon-lock"],["wdPrint",3,"打印","打印","icon-print"],["wdBatchPrint",3,"批量打印","批量打印","icon-print"],["wdHelpCopyhexcode",3,"复制帮助代码","复制帮助代码","icon-key"]],window.ss.display.initStylessButtons=function(){for(var n=0;n<window.ss.display.ssButtons.length;n++){window.ss.display.ssButtons[n][0];window.ss.topWindow.$("div.dhtmlx_button_"+window.ss.display.ssButtons[n][0]+"_default").addClass(window.ss.display.ssButtons[n][4])}window.ss.topWindow.$("div.dhtmlx_button_close_default").removeClass("dhtmlx_button_close_default").addClass("largeIcon-close")},window.ss.display.showAllssUserButton=function(n,t){n.unAllowButton=!t;for(var e=window.ss.display.ssButtons,s=0;s<e.length;s++)0==n.button(e[s][0]).isHidden()&&n.button(e[s][0]).show()},window.ss.display.hideAllssUserButton=function(n){n.unAllowButton=!0;for(var t=window.ss.display.ssButtons,e=0;e<t.length;e++)n.button(t[e][0]).style.display="none"},window.ss.display.addssUserButton=function(n){for(var t=window.ss.display.ssButtons,e=0;e<t.length;e++)n.addUserButton(t[e][0],t[e][1],t[e][2],t[e][3],t[e][4]),n.button(t[e][0]).hide();window.ss.display.initStylessButtons()},window.ss.display.dxwindowsCreateMaskDiv=function(n){var t=window.ss.topWindow.ss.display,e=window.ss.topWindow;window.ss.display.createMaskDiv(t,e,n)},window.ss.display.dxwindowsCloseMaskDiv=function(){var n=window.ss.topWindow.ss.display.mask.pop(),t=window.ss.topWindow.document.getElementById(n);void 0!==t&&t&&(void 0!==t.remove?t.remove():t.parentNode.removeChild(t))},window.ss.display.onCloseDialog=function(win,popWindow){try{if(!win.closeWindowParam)return;var openerWindow=popWindow.ss.display.getssDialogOpener(),name_3=openerWindow.ss.display.edit.objectPicker.addButtonClickName;if(!name_3)return;var objectpickerobj=openerWindow.ss.display.edit.objectPicker.getInstance(name_3);if(!objectpickerobj)return;var data=eval("("+win.closeWindowParam+")");objectpickerobj.setssCloseWindowParamData(data)}catch(n){}},window.ss.display.closeDialogCallbackFun=null,window.ss.display.showComponent=function(n){window.ss.display.showLoad(),window.event&&(window.event.stopPropagation?window.event.stopPropagation():window.event.cancelBubble=!0);var t=!0,e=n.show,s=n.hide;if(!n.getSize){n.getSize="1",n.ssDialogId=(new Date).getTime();var i=/ssToken=([^&]*)/.exec(n.url);if(i)return $.ajax({url:"/service?ssServ=loadPageParm",data:{tokenstring:i[1]},async:!0,timeout:1e4,type:"POST",dataType:"json",error:function(t){window.ss.display.showComponent(n)},success:function(t){n=$.extend(n,t,{title:n.title}),window.ss.display.showComponent(n)}}),n.ssDialogId}var o=window.ss.display.replaceDynamicParam(n.url),d=(parseInt(n.width+222)||100)+this.Xi,a=(parseInt(n.high)||parseInt(n.height)||100)+this.Yi,l=n.showTitle||!1;n.minHeight&&n.maxHeight&&(n.minHeight=parseInt(n.minHeight),n.maxHeight=parseInt(n.maxHeight),n.minHeight+this.Yi>window.ss.topWindow.innerHeight?(a=n.minHeight+this.Yi,e="ssFullScreen",t=!1):n.maxHeight+this.Yi<window.ss.topWindow.innerHeight?a=n.maxHeight+this.Yi:l?a=window.ss.topWindow.innerHeight:e="ssFullScreen"),o=window.ss.base.setRowCountPerPage(o,a-this.Yi,d);var r=n.title||"无题,可能没找到部件",w=n.form,c=n.ssDialogId||(new Date).getTime();if(window.ss.display.winWidth=d,window.ss.display.winHeight=a,w&&(window.ss.topWindow.ss.display.targetForm=window.document.getElementsByName(w)[0],window.ss.topWindow.ss.display.targetUrl=o,o="/ss/js/cloneForm/cloneForm.jsp"),r&&(r='<span style="padding:5px;"><a class="dialog-title" target="_blank" onclick="return false;" href="'+o+"&ssTitle="+r+'">'+r+'</a><a class="secondTitle" target="_blank" onclick="return false;" href="javascript:void(0);"></a></span>'),e){if("object"!=typeof e){var u=[];u.push(e),e=u}for(var p=0;p<e.length;p++){if("ssDialog"==e[p]){0;break}}var h=function(){var s=e[p];s.self,s.title,s.name,s.size,s.position,s.button;if("object"==typeof s){if(s.size){var i=s.size.split("*");d=parseInt(i[0])+15,a=parseInt(i[1])+38}s=s.name}window.localStorage;if("ssDialog"==s){window.ss.topWindow.ss.display.ssDialogOpeners||(window.ss.topWindow.ss.display.ssDialogOpeners={}),window.ss.topWindow.ss.display.ssDialogOpeners[c]=window;var l=c,w=window.ss.topWindow.screen.availWidth,u=window.ss.topWindow.screen.availHeight,h=!1;d>w-20&&(d=w-20),a>u-20&&(a=u-20),(d>w||a>u)&&(h=!0),window.ss.topWindow.dhxWins||(window.ss.topWindow.dhxWins=new window.ss.topWindow.dhtmlXWindows);var y=window.ss.topWindow.dhxWins.createWindow(l,0,0,d,a);y.keepInViewport(!0),h||y.center(),y.setText(r);for(var g=!1,f=["{","}","[","]","|"],m=0;m<f.length;m++)if(o.indexOf(f[m])>-1){g=!0;break}g||o&&o.length>1e3?(y.attachEvent("onContentLoaded",(function(){try{if(this.getFrame().getAttribute("formload"))return;var n=this.getFrame().contentDocument,t=o.indexOf("?");t=t<0?o.length-1:t;var e=o.substring(0,t),s=o.substring(t+1).split("&"),i=n.createElement("form");i.setAttribute("action",e),i.setAttribute("method","post"),n.body.appendChild(i);for(var d=0;d<s.length;d++){var a=s[d],l=a.indexOf("=");l=l<0?a.length:l;var r=a.substring(0,l),w=a.substring(l+1),c=n.createElement("input");c.setAttribute("type","hidden"),c.setAttribute("name",r),c.value=decodeURIComponent(w),i.appendChild(c)}i.submit(),this.getFrame().setAttribute("formload","true")}catch(n){}})),y.attachURL("javascript:false;")):y.attachURL(o),y.setModal(!0),y.bringToTop(),window.ss.display.addssUserButton(y),window.ss.display.addComponentEvent(y),window.ss.display.addDialogLine(y),y.clearIcon(),y.button("help")&&y.button("help").hide(),y.button("stick")&&y.button("stick").hide(),y.button("sticked")&&y.button("sticked").hide(),y.button("park")&&y.button("park").hide(),y.button("minmax1")&&y.button("minmax1").hide(),y.denyResize(),y.button("close").setAttribute("title","关闭");window.ss.topWindow.ss.display;var v=y.zi;window.ss.display.dxwindowsCreateMaskDiv(v),y.attachEvent("onClose",(function(n){window.ss.display.dxwindowsCloseMaskDiv();try{var t=function n(t){for(var e=0;e<t.childNodes.length;e++){var s=t.childNodes[e];if("IFRAME"==s.tagName)return s;var i=n(s);if(i)return i}}(n),e=t.contentWindow;void 0!==e&&e.ss.display.closeDialogCallbackFun&&e.ss.display.closeDialogCallbackFun(),window.ss.display.onCloseDialog(n,e)}catch(n){}return!0}))}else if("ssFullScreen"==s){window.ss.topWindow.dhxWins||(window.ss.topWindow.dhxWins=new window.ss.topWindow.dhtmlXWindows),window.ss.topWindow.ss.display.ssDialogOpeners||(window.ss.topWindow.ss.display.ssDialogOpeners={}),window.ss.topWindow.ss.display.ssDialogOpeners[c]=window;var b,W=window.ss.topWindow.dhxWins.createWindow(c,0,0,d,a);W.keepInViewport(!0),W.attachURL(o),W.setModal(!0),W.bringToTop(),W.setText(r),W.clearIcon(),W.hideMenu(),W.hideToolbar(),W.center(),window.ss.display.addssUserButton(W),window.ss.display.addComponentEvent(W),window.ss.display.hideAllssUserButton(W),window.ss.display.addDialogLine(W);var k=W.button("close").parentNode,x=W.childNodes[0].childNodes[2],D=(W.childNodes[0].childNodes[3],document.createElement("div"));W.childNodes[0].appendChild(D),D.style.height="48px",D.style.position="absolute",D.id="odiv",D.style.top="0",D.style.width="100%",D.style.backgroundColor="#ffffff",D.style.zIndex="-1",D.setAttribute("class","hLine"),W.fullScreen=function(){var n=window.ss.topWindow.dhxWins;t&&(window.ss.topWindow.document.body.style.overflow="hidden"),n._engineGetWindowLabel(this).style.display="none",t&&(this.h=window.ss.topWindow.document.body.offsetHeight),this.y=window.ss.topWindow.document.body.scrollTop,n._engineRedrawWindowSize(this),n._engineRedrawWindowPos(this),(b=this.vs[this.av].dhxcont).style.top=0,b.style.marginTop=0,b.style.height=this.h+"px",b.childNodes[0].style.height=this.h+"px",k.style.zIndex=100},W.fullScreen(),k.onmouseover=function(){window.ss.display.showAllssUserButton(W,!0),x.style.display="block",D.style.zIndex="99",D.style.display="block",x.style.zIndex="100"},D.onmouseover=function(){this.style.display="block",this.style.zIndex="99",x.style.zIndex="100"},x.onmouseover=function(){D.style.zIndex="99",D.style.display="block",this.style.zIndex="100"},k.onmouseout=function(n){n||(n=window.event),"odiv"!=(n.relatedTarget?n.relatedTarget:n.toElement).id?(D.style.zIndex="-1",D.style.display="none",W.childNodes[0].childNodes[2].style.display="none",window.ss.display.hideAllssUserButton(W)):x.style.display="block"},D.onmouseout=function(n){n||(n=window.event),"dhtmlx_wins_title"==(n.relatedTarget?n.relatedTarget:n.toElement).className?x.style.display="block":(D.style.zIndex="-1",D.style.display="none",W.childNodes[0].childNodes[2].style.display="none",window.ss.display.hideAllssUserButton(W))},x.onmouseout=function(n){n||(n=window.event),"odiv"==(n.relatedTarget?n.relatedTarget:n.toElement).id?x.style.display="block":(D.style.zIndex="-1",D.style.display="none",W.childNodes[0].childNodes[2].style.display="none",window.ss.display.hideAllssUserButton(W))},window.ss.display.hideAllssUserButton(W),W.button("close").setAttribute("title","关闭"),W.attachEvent("onClose",(function(n){window.ss.topWindow.document.body.style.overflow="auto",window.ss.display.dxwindowsCloseMaskDiv();try{var t=function n(t){for(var e=0;e<t.childNodes.length;e++){var s=t.childNodes[e];if("IFRAME"==s.tagName)return s;var i=n(s);if(i)return i}}(n);if(!t)return!0;var e=t.contentWindow;void 0!==e&&e.ss.display.closeDialogCallbackFun&&e.ss.display.closeDialogCallbackFun(),window.ss.display.onCloseDialog(n,e)}catch(n){}return!0}));v=W.zi;window.ss.display.dxwindowsCreateMaskDiv(v)}else if("sshelpdialog"==e){var I;return window.ss.topWindow.dhxWins||(window.ss.topWindow.dhxWins=new window.ss.topWindow.dhtmlXWindows),window.ss.topWindow.ss.display.ssDialogOpeners||(window.ss.topWindow.ss.display.ssDialogOpeners={}),window.ss.topWindow.ss.display.ssDialogOpeners[c]=window,window.ss.topWindow.sshelpdialog&&window.ss.topWindow.sshelpdialog.id?I=window.ss.topWindow.sshelpdialog:(I=window.ss.topWindow.dhxWins.createWindow(c,n.x,n.y,d,a),window.ss.topWindow.sshelpdialog=I),n.center&&I.center(),I.attachHTMLString(o),I.keepInViewport(!0),I.bringToTop(),I.setText(r),I.clearIcon(),window.ss.display.addssUserButton(I),I.button("ssHelp_copyhashcode").onclick=function(){var t,e="rtl"==document.documentElement.getAttribute("dir"),s=document.createElement("textarea");s.style.fontSize="12pt",s.style.border="0",s.style.padding="0",s.style.margin="0",s.style.position="absolute",s.style[e?"right":"left"]="-9999px",s.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",s.setAttribute("readonly",""),s.value=n.helpHaShCode,document.body.appendChild(s),s.select();try{t=document.execCommand("copy"),alert("复制成功")}catch(n){t=!1,alert("复制失败")}return window.removeFake(s),t},n.pin?(I.denyMove(),I.button("ssHelp_pin").hide(),I.button("close").show()):(I.button("ssHelp_unpin").show(),I.button("close").hide(),I.allowMove(),window.ss.topWindow.setTimeout((function(){I.isMovable()&&I.close()}),3e3)),I.button("ssHelp_unpin").onclick=function(){I.button("close").show(),I.denyMove(),this.hide(),I.button("ssHelp_pin").hide()},I.button("ssHelp_pin").onclick=function(){I.button("close").hide(),I.allowMove(),this.hide(),I.button("ssHelp_unpin").hide(),setTimeout((function(){I.isMovable()&&I.close()}),5e3)},{value:I.getId()}}};for(p=0;p<e.length;p++){var y=h();if("object"==typeof y)return y.value}}if(s)for(var g=0;g<s.length;g++){var f=window.ss.c.g(s[g],window);f.style.display="none";var m=f.parentNode;m&&"DIV"==m.tagName&&(m.style.display="none")}for(var v=window.ss.topWindow.document.getElementsByTagName("IFRAME"),b=0;b<v.length;b++){v[b].setAttribute("allowfullscreen","true")}return c},window.ss.display.callback_suffix="confirm_callback",window.ss.display.cancelcallback_suffix="cancel_callback",window.ss.display.confirm=function(n,t,e,s){var i={dialog:"dialog",width:400,height:180,title:"",msg:"",callback:{},cancelCallback:{},url:""};"object"==typeof n?$.extend(i,n):(i.title=n,i.msg=t,i.callback=e,i.cancelCallback=s,i.url="/page/sure.jsp?msg="+encodeURIComponent(t)),i.url||(i.url="/page/sure.jsp?msg="+encodeURIComponent(i.msg));var o=window.ss.display.showComponent({show:["ssDialog"],hide:[],url:i.url,title:i.title||" ",width:i.width,height:i.height});"string"==typeof i.callback?window[o+window.ss.display.callback_suffix]=function(){var n=window.ss.display.getFrameOfWindow();n&&!n.tabObj?this.location=i.callback:this.parent.location=i.callback}:"function"==typeof i.callback&&(window[o+window.ss.display.callback_suffix]=i.callback),i.cancelCallback&&(window[o+window.ss.display.cancelcallback_suffix]=i.cancelCallback)},window.ss.display.ellipsisContent=function(n,t){function e(n){var t=this.nodeName;"TEXTAREA"==t||"INPUT"==t?this.value=n:this.innerText=n}function s(){var n=this.nodeName;return"TEXTAREA"==n||"INPUT"==n?this.value:this.innerText}function i(n){return n.scrollHeight>n.clientHeight}var o=n.style.cssText,d=$(n),a=s.call(n);n.srcText=a;var l=window.getComputedStyle(n),r=parseInt(l.fontSize)||parseInt($("body").css("font-size"))||16,w=d.width()||0,c=function(){var n=s.call(this);e.call(this,"中");var t=Math.max(this.scrollHeight,this.clientHeight);return e.call(this,n),t}.call(n);if(t=t||parseFloat(l.height)||parseFloat(d.css("min-height")),t=Math.max(c,t),n.style.setProperty("height",t+"px","important"),e.call(n,n.srcText),0==a.length||0==t)return n.style.cssText=o,a;var u=Math.floor(w/r),p=a.substring(0,u);e.call(n,p);for(var h;u<a.length&&!i(n);)u++,p=a.substring(0,u),e.call(n,p),i(n)&&!0;for(;u>0&&i(n);)u--,p=p.substring(0,u)+"...",h=p,e.call(n,h);return e.call(n,p),n.style.cssText=o,p};
|