var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(y,M,G){if(y==Array.prototype||y==Object.prototype)return y;y[M]=G.value;return y};
$jscomp.getGlobal=function(y){y=["object"==typeof globalThis&&globalThis,y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var M=0;M<y.length;++M){var G=y[M];if(G&&G.Math==Math)return G}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(y,M){var G=$jscomp.propertyToPolyfillSymbol[M];if(null==G)return y[M];G=y[G];return void 0!==G?G:y[M]};$jscomp.polyfill=function(y,M,G,J){M&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(y,M,G,J):$jscomp.polyfillUnisolated(y,M,G,J))};
$jscomp.polyfillUnisolated=function(y,M,G,J){G=$jscomp.global;y=y.split(".");for(J=0;J<y.length-1;J++){var K=y[J];if(!(K in G))return;G=G[K]}y=y[y.length-1];J=G[y];M=M(J);M!=J&&null!=M&&$jscomp.defineProperty(G,y,{configurable:!0,writable:!0,value:M})};
$jscomp.polyfillIsolated=function(y,M,G,J){var K=y.split(".");y=1===K.length;J=K[0];J=!y&&J in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var za=0;za<K.length-1;za++){var n=K[za];if(!(n in J))return;J=J[n]}K=K[K.length-1];G=$jscomp.IS_SYMBOL_NATIVE&&"es6"===G?J[K]:null;M=M(G);null!=M&&(y?$jscomp.defineProperty($jscomp.polyfills,K,{configurable:!0,writable:!0,value:M}):M!==G&&(void 0===$jscomp.propertyToPolyfillSymbol[K]&&(G=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[K]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(K):$jscomp.POLYFILL_PREFIX+G+"$"+K),$jscomp.defineProperty(J,$jscomp.propertyToPolyfillSymbol[K],{configurable:!0,writable:!0,value:M})))};
$jscomp.polyfill("String.prototype.replaceAll",function(y){return y?y:function(M,G){if(M instanceof RegExp&&!M.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return M instanceof RegExp?this.replace(M,G):this.replace(new RegExp(String(M).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),G)}},"es_2021","es3");
$jscomp.findInternal=function(y,M,G){y instanceof String&&(y=String(y));for(var J=y.length,K=0;K<J;K++){var za=y[K];if(M.call(G,za,K,y))return{i:K,v:za}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(y){return y?y:function(M,G){return $jscomp.findInternal(this,M,G).v}},"es6","es3");
(function(){function y(u){var d,fa,V,ca,qa,va,Ca,C,ja,X,A,la=!0,Q=!1,na=!1,ra,Y,sa="icon_nodata",wa="12px";this.setShowErrorDetailListener=function(c){ra=c};this.setIsQingreportDsbComponent=function(c){na=c};this.setIsDsbComponent=function(c){Q=c};this.show=function(c,q,h){d?H(c,q,h):g(c,q,h)};this.setShowDetail=function(c){la=c};this.getShowOperate=function(){return A};this.setBackgroundIcon=function(c){sa=c};this.setFontSize=function(c){wa=c};var g=function(c,q,h){d=$("<div>");d.text("loading...");
d.appendTo(u);Aa.setCallback(function(){z();H(c,q,h)});Aa.loadSkinCss("scene","common-square-exhibition")},z=function(){d.empty();d.addClass("carderror-errorprompt");!Q&&d.css("top","22px");fa=$("<div>");fa.css({position:"absolute",margin:"0px auto",width:"100%",height:"100%"});fa.appendTo(d);var c=$("<iframe>");c.addClass("carderror-errorprompt-size-listener");c.appendTo(d);c[0].contentWindow&&c[0].contentWindow.addEventListener("resize",function(){D()});V=$("<div>");V.addClass("carderror-errorprompt-img");
K.Icons.background(V,sa);V.appendTo(fa);va=$("<div>");va.addClass("carderror-errorprompt-errorinfo");va.appendTo(fa);ca=$("<span>");ca.addClass("carderror-errorprompt-text");ca.css("font-size",wa);ca.appendTo(va);qa=$("<span>");qa.addClass("carderror-errorprompt-error-btn");qa.text(n.get("showErrorLog","\u663e\u793a\u9519\u8bef\u65e5\u5fd7"));qa.appendTo(va)},H=function(c,q,h){var e;if(2101001==c){A=e=!1;var k=n.get("themeIsDeleted","\u5bf9\u5e94\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")}else if(2101002==
c||2101003==c||2101004==c||2101005==c)A=e=!1,k=n.get("themeHasNoData","\u5bf9\u5e94\u4e3b\u9898\u6ca1\u6709\u5b9a\u4e49\u6570\u636e");else if(2103001==c||2103002==c)A=e=!1,k=n.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2101016==c)A=e=!1,k=n.get("subjectEntityMySQLMoreThan61Table","\u5f53\u524d\u5b9e\u4f53\u5173\u8054\u6570\u636e\u8868\u592a\u591a\uff0c\u8bf7\u51cf\u5c11\u5b9e\u4f53\u7684\u5206\u6790\u5b57\u6bb5\u6216\u5220\u9664\u4e0d\u9700\u8981\u7684\u5b9e\u4f53\u5206\u5f55\u3002");
else if(2101009==c)e=!0,A=!1,k=n.get("subjectDataSourceError","\u6570\u636e\u6e90\u53d1\u751f\u5f02\u5e38");else if(2101010==c)A=e=!1,k=n.get("qingStorageFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3");else if(2100001==c)A=e=!1,k=n.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8");else if(2101011==c)e=!0,A=!1,k=n.get("subjectDBDataSourceError","\u6570\u636e\u6e90\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38");
else if(2101012==c)k=n.get("noDBCenterPermission","\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");else if(2101023==c)k=n.get("noSuperQueryAuth","\u6ca1\u6709\u5f53\u524d\u8d85\u7ea7\u67e5\u8be2\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");else if(2101013==c||2101014==c)k=n.get("entityDestroyed","\u5bf9\u5e94\u4e3b\u9898\u7684\u6570\u636e\u8868\u88ab\u635f\u574f");else if(2101015==
c)k=n.get("noDBCenterOwnerPermission","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",q);else if(2101021==c)k=n.get("notExistTable","\u65e0\u6cd5\u5728\u6a21\u5f0f\u201c#1\u201d\u4e2d\u627e\u5230\u8be5\u5b9e\u4f53\u6570\u636e\u8868").replaceAll("#1",q);else if(2101022==c)k=n.get("noSuperQueryPerm","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u8d85\u7ea7\u67e5\u8be2\u76f8\u5173\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",
q);else if(2101024==c)k=n.get("ownerNotExistTable","\u6570\u636e\u6e90\u5f02\u5e38\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6570\u636e\u6e90");else if(2101025==c)k=n.get("prepareDataReject","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e1a\u52a1\u4e3b\u9898\u56e0\u5b58\u5728\u6162\u67e5\u8be2\uff0c\u5df2\u88ab\u4e34\u65f6\u7981\u7528\u3002\u8bf7\u8054\u7cfb\u201c#1\u201d\u5904\u7406\u3002").replace("#1",q);else if(2215011==c)k=n.get("noDmoPermission","\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0\u6743\u9650\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");
else if(2215012==c)k=n.get("noDmoOwnerPermission","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",q);else if(2215020==c)k=n.get("dmoPermission","\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0#1\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",q);else if(2301001==c)A=e=!1,k=Q||na?n.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664"):
n.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2301005==c)A=e=!1,k=Q?n.get("componentSourceNoAuthority","\u6ca1\u6709\u8be5\u7ec4\u4ef6\u6765\u6e90\u7684\u67e5\u770b\u6743\u9650"):na?n.get("extreportCardNoAuthority","\u6ca1\u6709\u8be5\u8f7b\u62a5\u8868\u7684\u67e5\u770b\u6743\u9650"):n.get("cardNoAuthority","\u6ca1\u6709\u8be5\u5361\u7247\u7684\u67e5\u770b\u6743\u9650");else if(2105E3==c)A=e=!1,k=n.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u5220\u9664");
else if(2201003==c)A=e=!1,k=n.get("cardNoDefaultSchema","\u8be5\u5361\u7247\u6ca1\u6709\u5b9a\u4e49\u9ed8\u8ba4\u65b9\u6848");else if(909001==c)A=e=!1,k=n.get("unsupportedDsbRefSource","\u5f53\u524d\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u7ec4\u4ef6\u6765\u6e90");else if(3010002==c)A=e=!1,k=n.get("illegalLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5206\u6790\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010003==
c)A=e=!1,k=n.get("noQingModulePermission","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u5206\u6790\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010004==c)A=e=!1,k=n.get("replicatedLogin","\u60a8\u7684\u8d26\u53f7\u5728\u5176\u4ed6\u5730\u65b9\u767b\u5f55\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u5f53\u524d\u7cfb\u7edf\u3002");else if(3010005==c)A=e=!1,k=n.get("illegalQingReportLicense",
"\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010006==c)A=e=!1,k=n.get("noQingReportModulePermission","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3099002==c)A=e=!1,k=n.get("qingRuntimeException",
"\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(3001002==c)A=e=!0,k=n.get("qingRuntimeException","\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(1030001==c)A=e=!1,k=q;else if("unsetCardSource"==c)A=e=!1,k=n.get("unsetCardSource","\u8bf7\u9009\u62e9\u5361\u7247\u6765\u6e90");else if(8099001==c)A=e=!1,k=n.get("extreportNotFound","\u8be5\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664");else if(21000008==c)A=e=!1,k=n.get("noQingModelerLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5efa\u6a21\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb");
else if(2101006==c)A=!1,(k=q.match(/(\(|\uff08)([^(\)|\uff09)]+)(\)|\uff09)/))&&(q=k[2]),Y=$("<p>"),Y.addClass("carderror-errorprompt-support-qing-text"),Y.html(q.replace(/,/g,n.get("semicolon","\uff1b")+"<br>")),Q?(e=!0,k=n.get("haveNotGetDataEntityAuthority","\u5c1a\u672a\u83b7\u5f97\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650"),qa.text(n.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(e=!1,k=n.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a")),
ca.text(k),!e&&ca.append(Y);else if(2101018==c){A=!1;e=ea.getSupportQingAnalysisUrl();(k=/(?:\u3010\s)(.+)(?=\s\u3011)/.exec(q))&&(q=k[1]);var ha=$("<a onclick='javascript:window.open(\""+e+"\");' href='#'>");ha.css({cursor:"pointer",color:"#5582f3"});ha.text(n.get("viewDocument","\u67e5\u770b\u5e2e\u52a9\u6587\u6863"));Y=$("<p>");Y.addClass("carderror-errorprompt-support-qing-text");Y.html(q.replace(/,/g,n.get("semicolon","\uff1b")+"<br>"));Q?(e=!0,k=n.get("entityNotSupportQingAnalysis","\u4e1a\u52a1\u5b9e\u4f53\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e  "),
qa.text(n.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(e=!1,k=n.get("notSupportQingAnalysisTip","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e  "),d.css("overflow-y","auto"),va.css("max-height","unset"));ca.text(k);ca.append(ha);!e&&ca.append(Y)}else 4040002==c||4040003==c||4040004==c?(A=e=!0,k=n.get("serverBusy","\u5f53\u524d\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")):
4100001==c?(A=e=!0,k=n.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25")):(A=e=!0,k=c+"",k=0==k.indexOf("21")&&7==k.length?n.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==k.indexOf("30")&&6==k.length?n.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==k.indexOf("40")&&6==k.length?n.get("executeFail","\u56fe\u8868\u6267\u884c\u5931\u8d25"):n.get("unknownException","\u53d1\u751f\u4e86\u672a\u77e5\u9519\u8bef"));e&&la?(qa.show(),qa.on("click",function(U){w(c,
q,h)})):qa.hide();2101018!=c&&2101006!=c&&ca.text(k);setTimeout(D,500)},D=function(){var c=d.height()-2;d.width();if(0!=c){var q=va.height()+10,h=c-q;70>h?(V.hide(),h=0):(V.show(),200<h&&(h=200),V.css("height",h+"px"));va.css("min-height","unset");fa.css({"margin-top":-Math.floor((h+q)/2)+"px",top:"50%",height:h+q+"px"});0>c-q&&(d.css("overflow-y","auto"),d.css("overflow-x","auto"))}},w=function(c,q,h){if(2101006==c){var e=new R($(document.body));e.setSize(440,330);e.setTitle(n.get("permissionTitle",
"\u6743\u9650\u63d0\u793a"));e.showDialog(S(n.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a"),Y),!0)}else if(2101018==c)e=new R($(document.body)),e.setSize(440,330),e.setTitle(n.get("DetailInfo","\u8be6\u7ec6\u4fe1\u606f")),e.showDialog(S(n.get("notSupportQingAnalysis","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff1a"),Y),!0);else if(ra)ra(c,
q,h);else{if(!Ca){Ca=$("<div>");Ca.addClass("carderror-errorprompt-logdetail-container");e=$("<div>");e.addClass("carderror-errorprompt-logdetail-container-title");var k=$("<div>");k.addClass("carderror-errorprompt-logdetail-titiletag");var ha=$("<div>");ha.addClass("carderror-errorprompt-logdetail-title-lable");ha.text(n.get("errorLog","\u9519\u8bef\u65e5\u5fd7"));var U=$("<div>");U.addClass("carderror-errorprompt-logdetail-close");K.Icons.background(U,"icon_errorclose");U.on("click",N);e.append(k);
e.append(ha);e.append(U);ja=$("<div>");ja.css("padding","10px");ja.text(n.get("errorCode","\u9519\u8bef\u7801\uff1a")+c);X=$("<pre>");X.addClass("carderror-errorprompt-logdetail-content-container-text");X.text("\u9519\u8bef\u4fe1\u606f\uff1a"+q+(null!=h?"\r\n\u9519\u8bef\u6808\uff1a"+h:""));var O=$("<div>");O.addClass("carderror-errorprompt-logdetail-content-container");var L=$("<span>");L.text(n.get("copy","\u590d\u5236"));L.addClass("carderror-errorprompt-logdetail-content-copybutton");L.click(function(){var ba=
I("\u9519\u8bef\u7801\uff1a"+c+"\r\n\u9519\u8bef\u4fe1\u606f\uff1a"+q+"\r\n\u9519\u8bef\u6808\uff1a"+h),Z=$("<span>");Z.addClass("carderror-errorprompt-logdetail-content-copybutton-end");O.append(Z);ba?Z.text(n.get("copy success!","\u590d\u5236\u6210\u529f\uff01")):Z.text(n.get("copy error!","\u590d\u5236\u5931\u8d25\uff01"));setTimeout(function(){Z.remove()},1500)});O.mouseover(function(){L.css("visibility","visible")});O.mouseout(function(){L.css("visibility","hidden")});O.append(ja);O.append(X);
O.append(L);Ca.append(e);Ca.append(O);C=$("<div class='sa-ctrl-common-modallayer'>");Ca.appendTo(C)}e=$(document.body);C.appendTo(e)}},I=function(c){var q=document.createElement("textarea");document.body.appendChild(q);q.value=c;q.select();c=document.execCommand("copy");document.body.removeChild(q);return c},S=function(c,q){var h=$("<div>");h.addClass("carderror-errorprompt-logdetail-content");var e=$("<p>");e.addClass("carderror-errorprompt-logdetail-contenxt-texttitle");e.text(c);c=$("<p>");c.addClass("carderror-errorprompt-logdetail-contenxt-text");
c.html(q);h.append(e);h.append(c);return h},R=function(c){var q=$("<div class='sa-ctrl-common-modallayer'>"),h=new pa(q),e=0,k=0,ha=320,U=240,O=c?c:$(document.body),L,ba;this.setTitle=function(Z){ba=Z};this.setClosingListener=function(Z){L=Z};this.setSize=function(Z,da){ha=Z;U=da};this.showDialog=function(Z,da){q.appendTo(O);if(!e){var Ba=O.prop("clientWidth"),ma=O.prop("clientHeight");e=Ba-ha>>1;k=(ma-U)/3}h.setBounds(e,k,ha,U);h.setToolbarVisible(!1);h.setContent(Z,da);h.setTitle(ba);h.addClosingListener(function(oa,
Ea){if(Ea)L(Ea);else return oa.destroy(),q.remove(),!0});h.addClosedListener(function(oa){oa.destroy();q.remove()});h.showFooterPane(this.createFooter);h.show()};this.setContent=function(Z,da){h.setContent(Z,da)};this.destroy=function(){h.destroy();q.remove()};this.createFooter=function(Z){var da=new Da(n.get("iknow","\u6211\u77e5\u9053\u4e86"));da.setHighlight(!0);var Ba=da.getJqUi();Ga.layoutCtrlWithLRTB(Ba,"50%",0,100,null,13,28);Ba.addClass("dialog-footer-close");Ba.css("margin-left","-50px");
Ba.appendTo(Z);da.addActionListener(function(ma){h.destroy();q.remove()})}},N=function(){C&&C.detach()}}function M(){var u,d,fa;this.setIsSquare=function(V){u=V};this.getIsSquare=function(){return u};this.setLoadSchema=function(V){d=V};this.getLoadSchema=function(){return d};this.setSaveSchema=function(V){fa=V};this.getSaveSchema=function(){return fa}}function G(){Ha.call(this);this.protectedShowErrorImpl=function(u,d,fa,V){u=new y(u);u.setIsDsbComponent(!0);u.show(d,fa,V);return!0}}function J(){aa.call(this);
this.protectedShowErrorImpl=function(u,d,fa,V){u=new y(u);u.setIsDsbComponent(!0);u.show(d,fa,V);return!0}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.scene&&(com.kingdee.bos.qing.scene={});"undefined"==typeof com.kingdee.bos.qing.scene.common&&(com.kingdee.bos.qing.scene.common={});"undefined"==
typeof com.kingdee.bos.qing.scene.common.square&&(com.kingdee.bos.qing.scene.common.square={});"undefined"==typeof com.kingdee.bos.qing.scene.common.square.exhibition&&(com.kingdee.bos.qing.scene.common.square.exhibition={});var K=com.kingdee.bos.qing.scene.common.square.exhibition,za,n,Aa,Ha,aa,ka,ea,pa,Da,Ga;(function(){var u=com.kingdee.bos.qing.framework.common;za=u.AbstractIcons;n=u.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);ea=ea=u.OfficialArticleUtil;u=com.kingdee.bos.qing;
Aa=u.CodeLoader;Ha=u.DashboardSquareScene;aa=u.DashboardLongerScene;u=com.kingdee.bos.qing.ui.component;ka=u.MessageDialog;pa=u.Dialog;Da=u.Button;u=com.kingdee.bos.qing.common;Ga=u.DomUtil})();K.Icons=new function(){za.call(this);var u=this.protectedMethod,d;this.setComboIconImpl=function(fa){d=fa};this.protectedInit=function(fa,V){if(!d)throw Error("Please setComboIconImpl() first.");d.define(V,"scene-error-image-sprite");V.setStartPosition(1,1);V.setGap(1);V.setIconSize(20,20);u.registIcon(0,0,
"icon_qhfInfo");u.registIcon(0,1,"icon_errorclose");d.define(V,"errorbackground");V.setStartPosition(0,0);V.setGap(0);V.setIconSize(200,200);u.registIcon(0,0,"icon_errorbackground");d.define(V,"nodata");u.registIcon(0,1,"icon_nodata")}};K.CardErrorUi=y;K.DsbIntegrationScene=function(){var u,d,fa,V,ca;this.setResetSquare=function(C){V=C};this.setFacade=function(C){fa=C};this.setParamPathPrefix=function(C){};this.setMessageCurtain=function(C){d=C};this.setCoreRemoteUrl=function(C){u=C};this.setDesignerSceneCreator=
function(C){ca=C};this.createSquareDesignerScene=function(C){var ja=new G;ja.setRemoteUrl(u);C(ja)};this.createLongerDesignerScene=function(C){var ja=new J;ja.setRemoteUrl(u);C(ja)};this.loadImage=function(C,ja,X){var A=C.refToId;A&&0!=$.trim(A).length?(C=fa(function(la){var Q=la.imageHeight;la=la.imageWidth;if(Q||la){var na=com.kingdee.bos.qing.framework.common.RemoteFramework.getLoadImgUrl(A,"image-library");ja(na,la,Q)}else X&&X("")},function(la,Q){return!1}),C.setShowBlocking(!1),C.getImageSize(A)):
(C=C.widgetSourcePath,X&&X(C))};this.createSquareDesigner=function(C,ja,X,A,la,Q){var na=new M;na.setIsSquare(!0);na.setLoadSchema(function(ra,Y){fa(ra,Y).squareLoadSchema(X)});na.setSaveSchema(function(ra,Y,sa){fa(Y,sa).squareSaveSchema(X,ra)});qa(na,C,ja,X,A,la,Q,!0)};this.createLongerDesigner=function(C,ja,X,A,la,Q,na){var ra=new M;ra.setIsSquare(!1);ra.setLoadSchema(function(Y,sa){fa(Y,sa).longerLoadSchema(X,na)});ra.setSaveSchema(function(Y,sa,wa){fa(sa,wa).longerSaveSchema(X,Y)});qa(ra,C,ja,
X,A,la,Q,!1)};var qa=function(C,ja,X,A,la,Q,na,ra){var Y=ca(),sa=function(wa){Y.hide();na(wa)};Y.setIsSquare(C.getIsSquare());Y.setRemoteUrl(u);Y.setRemoteTag(la);Y.setDesignerOperationJudger(Q);Y.setSquareOrLonger(ra);Y.setClosable(X);Y.setSchemaLoader(function(wa,g){va(C,A,wa,g,sa)});Y.setSchemaSaver(function(wa){Ca(C,A,wa,sa)});null!=V&&Y.setSchemaReseter(function(wa){V(A,wa,sa)});Y.show(ja,function(){sa(null)})},va=function(C,ja,X,A,la){ja.uid?C.getLoadSchema()(function(Q){Q.model?(X.setJsonModelBook(Q.model),
A(!0)):A(!1)},function(Q,na){la();Q=Q.toString();return"9"==Q.substr(0,1)&&6==Q.length?(d&&d.showError(n.get("failToLoadSchema","\u52a0\u8f7d\u65b9\u6848\u5931\u8d25\u3002")),!0):!1}):A(!1)},Ca=function(C,ja,X,A){var la=X.getJsonModelBook();C.getSaveSchema()(la,function(Q){A(la)},function(Q,na){if(909002==Q)return Q=ka.createFeedbackDialog(),Q.setMessage(n.get("noSelectMapTemplate","\u8bf7\u9009\u62e9\u5730\u56fe\u6a21\u677f")),Q.setMsgImageType(ka.MSG_WARNING),Q.setOptionType(ka.OPTION_OK),Q.setButtonText(ka.OPTION_OK,
n.get("iknow","\u6211\u77e5\u9053\u4e86")),Q.showDialog(),!0;A();Q=Q.toString();return"9"==Q.substr(0,1)&&6==Q.length?(d&&d.showError(n.get("failToTemporarySchema","\u6682\u5b58\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})}}})();(function(){function y(){Da.call(this);var g,z,H,D,w;this.setIsSquare=function(I){H=I};this.protectedIsSquare=function(){return H};this.protectedInitDesigner=function(I){I.getConductor().insertToolbarButton(function(S){z(I)},null,d.get("finish","\u5b8c\u6210"));I.getConductor().insertToolbarSeperator();I.setDesignerOperationJudger(w?null:D,w?D:null)};this.protectedLoading=function(I,S){g(I,S)};this.setSchemaLoader=function(I){g=I};this.setSchemaSaver=function(I){z=I};this.setDesignerOperationJudger=
function(I){D=I};this.setSquareOrLonger=function(I){w=I};this.protectedIsSquare=function(){return w}}function M(){com.kingdee.bos.qing.dashboard.AbstractImportUi.call(this);this.protectedInitUi=function(){var g=new qa;g.setText(d.get("fromCardLibrary","\u4ece\u5361\u7247\u5e93\u5f15\u5165"));return g};this.doNext=function(g,z,H){z=g.getDsbRemoteImpl();var D=new G;D.setStepContentInfo(g);D.setDsbRemoteImpl(z);H([D])}}function G(){com.kingdee.bos.qing.dashboard.AbstractImportStep.call(this);var g=this.protectedMethod,
z,H,D,w,I,S,R;this.setDsbRemoteImpl=function(N){w=N};this.setStepContentInfo=function(N){I=N};this.over=function(N){N&&(N=I.getAllStepOverCallback())&&N(D,H,!1,S,R)};this.isLastStep=function(){return!0};this.getSubTitle=function(){return d.get("selectCard","\u9009\u62e9\u5361\u7247")};this.getSuggestedDialogSize=function(){return[810,580]};this.protectedCreateUi=function(){var N=u.decodeParamFromUrl(location.search,"path"),c=(N?N:"/ierp")+"/qing/publishTo.do",q=new com.kingdee.bos.qing.RemoteImpl;
q.setRemoteUrl(c);z=new com.kingdee.bos.qing.publish.CardSelector(q);z.setOuterMessageCurtain(g.getMessageCurtain());z.setParamPathPrefix(N);z.setSingleSelected(!0);return z.getJqUi()};this.intoThisStep=function(N,c){};this.outThisStep=function(N,c){if(N)c();else if(N=z.getSelectedPublishModels(),0<N.length){var q=N[0];N=q.getSchemeId();H=q.getName();q=q.getId();(new com.kingdee.bos.qing.dashboard.DsbFacade(w,function(h){h.noModeling?g.getMessageCurtain().showPrompt(d.get("noModeling","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e3b\u9898\u6ca1\u6709\u8fdb\u884c\u6570\u636e\u51c6\u5907\uff0c\u5361\u7247\u65e0\u6cd5\u4f7f\u7528\u3002")):
h.noTheme?g.getMessageCurtain().showPrompt(d.get("noTheme","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e3b\u9898\u5df2\u88ab\u5220\u9664\uff0c\u5361\u7247\u65e0\u6cd5\u4f7f\u7528\u3002")):(D=h.ref,S=h.model,R=h.operation,c())},function(h,e){return"900001"==h?(c(),g.getMessageCurtain().showError(d.get("failToloadCardContent","\u52a0\u8f7d\u5361\u7247\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})).getCardReferenceMap(q,N)}else N=d.get("chooseImportCard","\u8bf7\u9009\u62e9\u8981\u5f15\u5165\u7684\u5361\u7247\u3002"),
g.getMessageCurtain().showPrompt(N,2E3)}}function J(){com.kingdee.bos.qing.dashboard.AbstractImportUi.call(this);var g=J.LONGER_TYPE,z=com.kingdee.bos.qing.publish.env.PublishAppMenuFolderNode;this.protectedInitUi=function(){var D=new qa;D.setText(d.get("fromAppMenu","\u4ece\u5e94\u7528\u83dc\u5355\u5f15\u5165"));return D};this.doNext=function(D,w,I){var S=D.getDsbRemoteImpl();S=new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(S,function(R){var N=R.appmenu;R=R.publish;var c=!1,q=!0,h=new z;
h.fromJsonObject(N);h=h.getChildren();N=[];for(var e=0;e<h.length;e++)H(N,h[e]);for(e=0;e<R.length;e++)R[e].publishAppMenuBO.isPreset?c=!0:q=!1;if(0==N.length)w.showPrompt(d.get("noPublish","\u6682\u65e0\u53d1\u5e03\u3002"));else{switch(g){case J.LONGER_TYPE:h=new za;break;case J.EXTREPORT_TYPE:h=new aa;break;default:throw Error("do not support this type!");}h.setAppmenu(N);h.setAppmenuPublish(R);h.setStepContentInfo(D);h.showPresetFilter(c,q);I([h]);h.refreshTable()}},function(R,N){R=N.toString();
return"9"==R.substr(0,1)&&6==R.length?(w.showError(d.get("failToGetAppMenu","\u83b7\u53d6\u5e94\u7528\u83dc\u5355\u5931\u8d25\u3002")),!0):!1});g==J.LONGER_TYPE&&S.loadAppMenuTree();g==J.EXTREPORT_TYPE&&S.loadAppMenuTreeForExtreport()};var H=function(D,w){D.push(w);if(w instanceof z&&(w=w.getChildren()))for(var I=0;I<w.length;I++)H(D,w[I])};this.protectedMethod={setImportType:function(D){g=D}}}function K(){function g(r){KTDefaultCellRender.call(this,r);var t=this,x=this.paintCellUI;this.paintCellUI=
function(B,E){var F=t.getCurrentRow(),P=t.getCurrentColIdx();if(t.getCurrentRowIdx()<X.getHeadRowCount()||1==P||2==P)x(B,E);else if(0==P){E=F.getUserObject();F=new qa;a.addElement(F);R&&R.getPublishAppMenuBO().formParams.publishId==E.getPublishAppMenuBO().formParams.publishId&&F.setChecked(!0);F.setUserObject(E);P=F.getJqUi();F=$("<div class='appmenu-publish-item-btn-name'>");if(oa){var W=E.getPublishAppMenuBO().qingMenuName;if(oa&&W){var ya=oa.toUpperCase(),ta=W.toUpperCase(),ua=ta.split(ya),La=
ya.length;for(Fa in ua){var xa=ta.indexOf(ua[Fa]),Ka=W.substr(Ja,ua[Fa].length);xa+=ua[Fa].length;var Ia=ta.length-xa;ta=ta.substr(xa,Ia);W=W.substr(xa,Ia);xa=$("<span>");xa.text(Ka);xa.appendTo(F);if(Fa!=ua.length-1&&1<ua.length){var Ja=ta.indexOf(ya);Ka=W.substr(Ja,La);xa=Ja+La;Ia=ta.length-xa;ta=ta.substr(xa,Ia);W=W.substr(xa,Ia);xa=$("<span>");xa.text(Ka);xa.css("color","red");xa.clone().appendTo(F)}}}else F.text(W)}else F.text(E.getPublishAppMenuBO().qingMenuName);P.addClass("appmenu-publish-item-btn");
P.appendTo(B);if(E.getPublishAppMenuBO().isPreset){var Fa=$("<div>");Fa.text(d.get("preset","\u9884\u7f6e"));Fa.addClass("appmenu-publish-item-btn-preset-tag");Fa.appendTo(B)}F.appendTo(B)}}}com.kingdee.bos.qing.dashboard.AbstractImportStep.call(this);var z=this,H=this.protectedMethod,D,w,I,S,R,N,c,q,h,e,k,ha=com.kingdee.bos.qing.publish.common.FilterModelType,U=com.kingdee.bos.qing.publish.common.CardFilterType,O,L,ba=!1,Z=[new U(d.get("myLonger","\u6211\u7684\u5206\u6790"),!1),new U(d.get("presetLonger",
"\u9884\u7f6e\u5206\u6790"),!0)],da=[void 0,void 0],Ba=!1,ma,oa="",Ea,a=new Ca;a.addChangedListener(function(r,t){R=r.getUserObject()?r.getUserObject():R});var b=new ja;b.setFormatString("yyyy-MM-dd HH:mm:ss");this.isLastStep=function(){return!1};this.setStepContentInfo=function(r){D=r};this.setAppmenu=function(r){w=r};this.setAppmenuPublish=function(r){I=r};this.showPresetFilter=function(r,t){L=r;(ba=t)&&Z.reverse()};this.refreshTable=function(){e&&X.refresh(e)};this.getSubTitle=function(){return d.get("selectAppmenu",
"\u9009\u62e9\u5e94\u7528\u83dc\u5355")};this.protectedCreateUi=function(){var r=$("<div>"),t=$("<div>"),x=p,B=new ha;B.setSearchType(Z);B.setSelectedChangedListener(x);O=B.getJqUi();O.css({top:"-4px",left:"6px"});O.appendTo(t);!L&&O.hide();ma?x=ma.getJqUi():(ma=new A,ma.addSearchListener(v),ma.setSearchListenerDelay(100),ma.setPlaceholder(d.get("searchBoxPlaceholder","\u641c\u7d22\u53d1\u5e03\u540d\u79f0")),ma.setShowSearchIcon(!0),x=ma.getJqUi(),x.addClass("import-longer-from-appmenu-search-box"),
x.css({position:"relative",width:"175px",height:"23px"}));x.appendTo(t);t.appendTo(r);t=$("<div>");t.addClass("import-longer-from-appmenu");for(x=0;x<w.length;x++){B=w[x];var E=B;var F=[];for(var P=E.getAppId(),W=E.getAppMenuId(),ya=E.getAppMenuId2(),ta=P?W?ya?ya:W:P:null,ua=0;ua<I.length;ua++)E=new Aa,E.fromJsonObject(I[ua]),P=E.getPublishAppMenuBO().appId,W=E.getPublishAppMenuBO().appMenuId,ya=E.getPublishAppMenuBO().appMenuId2,ta===(P?W?ya?ya:W:P:null)&&F.push(E);F&&0<F.length&&B.setPublishModels(F)}S=
new n;Ea=N=l();S.setCurrentNode(Ea);S.setTreeItemSelectedListener(m);f();S.getJqUi(w).appendTo(t);h=$("<div>");h.addClass("appmenu-publish-table");e=X.createTable();X.bindTableListenerForCtrl(e);x=new g(e);x.setOutsideVisible(!1);e.setCellRender(x);e.addColumns(3);e.getColumn(0).setWidth(220);e.getColumn(1).setWidth(90);e.getColumn(2).setWidth(150);x=X.createHeadRow(e);x.getCell(0).setValue(d.get("publishName","\u53d1\u5e03\u540d\u79f0"));x.getCell(1).setValue(d.get("publishPerson","\u53d1\u5e03\u4eba"));
x.getCell(2).setValue(d.get("publishTime","\u53d1\u5e03\u65f6\u95f4"));x=N.getPublishModels();B=!1;for(F=0;F<x.length;F++)W=x[F],ba==W.getPublishAppMenuBO().isPreset&&(B||(R=W,B=!0),P=X.createRow(e),P.setUserObject(W),P.getCell(0).setValue(W.getPublishAppMenuBO().name),P.getCell(1).setValue(W.getPublishPersonName()),W=Number(W.getPublishAppMenuBO().formParams.publishTime),P.getCell(2).setValue(b.format(W)));X.refresh(e);c=$(e.getUI());c.appendTo(h);h.appendTo(t);t.appendTo(r);return r};var f=function(){for(var r=
0;r<w.length;r++)w[r].setIsShow(!1);for(r=0;r<w.length;r++){var t;if(t=w[r].getPublishModels())a:{t=w[r].getPublishModels();for(var x=0;x<t.length;x++)if(t[x].getPublishAppMenuBO().isPreset==ba){t=!0;break a}t=!1}if(t)for(t=w[r],t.setIsShow(!0);t.getParentNode()&&t.getParentNode().getDisplayName();)t=t.getParentNode(),t.getIsShow()||t.setIsShow(!0)}},p=function(r,t,x){ba=x.getTypeId();f();ba?(da[1]=S.getCurrentNode(),da[0]||(r=l(),da[0]=r),m(da[0]),S.setCurrentNode(da[0])):(da[0]=S.getCurrentNode(),
da[1]||(r=l(),da[1]=r),m(da[1]),S.setCurrentNode(da[1]));v()},l=function(){for(var r=0;r<w.length;r++){for(var t=w[r],x=t.getPublishModels(),B=[],E=0;x&&E<x.length;E++)x[E].getPublishAppMenuBO().isPreset==ba&&B.push(x[E]);if(x&&0<B.length)return t}},v=function(){oa=ma.getText().trim();if(0<oa.length){Ba=!0;for(var r={},t=0;t<w.length;t++){var x=0,B=w[t],E=B.getPublishModels();if(E&&0<E.length)for(var F=0;F<E.length;F++){var P=E[F],W=-1<P.getPublishAppMenuBO().qingMenuName.toUpperCase().indexOf(oa.toUpperCase());
ba==P.getPublishAppMenuBO().isPreset&&W&&x++}F=B;B=F.getAppId();E=F.getAppMenuId();F=F.getAppMenuId2();r[B?E?F?B+E+F:B+E:B:null]=x}ia(Ea.getPublishModels(),!1);S.setSearchStatus(!0);S.updateTreeUi(w,r)}else Ba=!1,ia(Ea.getPublishModels(),!1),S.setSearchStatus(!1),S.updateTreeUi(w)},m=function(r){Ea=r;(r=r.getPublishModels())&&0<r.length?ia(r,!0):T()},T=function(){c&&c.hide();if(q)q.show();else{q=$("<div>");q.css({position:"absolute",height:"82%",width:"100%",top:"33px"});k=$("<div>");k.text(d.get("noSearchData",
"\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));C.layoutCtrlCenterAlign(k,444);k.css({height:"20px","line-height":"20px","text-align":"center","font-size":"16px",color:"#BBBBBB",top:"50%","margin-top":"98.5px"});k.appendTo(q);var r=$("<div>");ka.Icons.background(r,"no-data");C.layoutCtrlCenterAlign(r,187);r.css({"background-size":"contain",top:"50%",height:"187px","margin-top":"-113.5px"});r.appendTo(q);h.append(q)}r=oa?d.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"):
d.get("noData","\u6682\u65e0\u53d1\u5e03\u8bb0\u5f55");k.text(r)},ia=function(r,t){c&&c.show();q&&q.hide();X.clearWithoutHead(e);for(var x=0,B,E=0;r&&E<r.length;E++){var F=r[E];if(ba==F.getPublishAppMenuBO().isPreset){t&&!B&&(R=F,B=!0);var P=-1<F.getPublishAppMenuBO().qingMenuName.toUpperCase().indexOf(oa.toUpperCase());if(!Ba||P)P=X.createRow(e),P.setUserObject(F),P.getCell(0).setValue(F.getPublishAppMenuBO().qingMenuName),P.getCell(1).setValue(F.getPublishPersonName()),F=Number(F.getPublishAppMenuBO().formParams.publishTime),
P.getCell(2).setValue(b.format(F)),x++}}0===x&&T();z.refreshTable()};this.intoThisStep=function(r,t){};this.outThisStep=function(r,t){r?t():null==R?H.getMessageCurtain().showPrompt(d.get("notSelectAppMenuPublish","\u672a\u9009\u4e2d\u53d1\u5e03\u4fe1\u606f\u3002")):(r=R.getPublishAppMenuBO(),z.protectedDoNext(r,D,t))};this.protectedDoNext=function(r,t,x){throw Error("overwrite me!");};this.protectedMethod.getStepContentInfo=function(){return D}}function za(){K.call(this);var g=this.protectedMethod;
this.protectedDoNext=function(z,H,D){var w=z.formParams.publishId;z=H.getDsbRemoteImpl();(new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(z,function(I){if(I.noModeling)g.getMessageCurtain().showPrompt(d.get("publishOfSubjectNoModeling","\u8be5\u53d1\u5e03\u5bf9\u5e94\u7684\u4e3b\u9898\u6ca1\u6709\u8fdb\u884c\u6570\u636e\u51c6\u5907\uff0c\u65e0\u6cd5\u4f7f\u7528\u3002"));else if(I.noTheme)g.getMessageCurtain().showPrompt(d.get("publishOfSubjectBeDeleted","\u8be5\u53d1\u5e03\u5bf9\u5e94\u7684\u4e3b\u9898\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u4f7f\u7528\u3002"));
else{var S=new com.kingdee.bos.qing.dashboard.ImportLongerThirdStep;S.setPublishType("appmenu_qing");S.setPublishId(w);H.setSchema(I);H.setImportSourceIsPublish(!0);S.setStepContentInfo(H);D([S])}},function(I,S){I=I.toString();return"9"==I.substr(0,1)&&6==I.length?(g.getMessageCurtain().showError(d.get("failToGetPublishSchemaList","\u83b7\u53d6\u53d1\u5e03\u65b9\u6848\u5217\u8868\u5931\u8d25\u3002")),!0):!1})).getPublishSchema(w)}}function n(){function g(h){KTDefaultCellRender.call(this,h);var e=
this;this.paintCellUI=function(U,O){var L=e.getCell(),ba=L.getValue();L=k(ba,L);O?(U=$(O),L.appendTo(U)):(U=$(U),L.appendTo(U))};var k=function(U,O){O=U.getDisplayName();var L=$("<div>");L.addClass("appmenu-item ");var ba=$("<div>");ba.css({overflow:"hidden","max-width":"96px","text-overflow":"ellipsis"});var Z=wa.createWarning();C.layoutCtrl(Z,0,12);O==N.CLOUD_HAS_BEEN_DELETED?(O=d.get("cloudHasBeenDeleted","\u8be5\u670d\u52a1\u4e91\u5df2\u88ab\u5220\u9664"),ba.css({"margin-left":"6px",overflow:"unset"}),
L.append(Z)):O==N.APP_HAS_BEEN_DELETED?(O=d.get("appHasBeenDeleted","\u8be5\u5e94\u7528\u5df2\u88ab\u5220\u9664"),ba.css({"margin-left":"6px",overflow:"unset"}),L.append(Z)):O==N.APP_MENU_HAS_BEEN_DELETED&&(O=d.get("appMenuHasBeenDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664"),ba.css({"margin-left":"6px",overflow:"unset"}),L.append(Z));L.attr("title",O);Z.attr("title",O);ba.text(O);0<U.getSubNodeLevel()&&(L.css("cursor","pointer"),q(R)===q(U)&&L.addClass("appmenu-item-selected"),
L.on("mousedown",function(da){q(R)!==q(U)&&(z.find(".appmenu-item-selected").removeClass("appmenu-item-selected"),L.addClass("appmenu-item-selected"),R=U,w&&w(U))}));L.append(ba);C.layoutCtrlWithLRTB(L,0,0,null,0,0,null);I&&0<U.getSubNodeLevel()&&ha(ba,L,U,O);return L},ha=function(U,O,L,ba){L=S[q(L)];var Z="("+L+")",da=$("<div>");da.addClass(0<L?"appmenu-item-search-hits-number-with-color":"appmenu-item-search-hits-number");da.text(Z);U.append(da);O.attr("title",ba+" "+Z)}}var z,H,D,w,I=!1,S,R,N=
com.kingdee.bos.qing.publish.env.AbstractPublishAppMenuNode;this.setTreeItemSelectedListener=function(h){w=h};this.setCurrentNode=function(h){R=h};this.getCurrentNode=function(){return R};this.setSearchStatus=function(h){I=h};this.getJqUi=function(h){z||(z=$("<div>"),z.append(c(h)));return z};var c=function(h){D=H=null;H=new KTable;D=$(H.getUI());D.children().css("overflow-x","hidden");H.setCellRender(new g(H));H.setSyncUIWhenModelChanged(!1);H.addColumn().setWidth(170);var e=new KTStyle;e.setVerticalAlign("middle");
H.setStyle(e);e=H;for(var k=0;k<h.length;k++){var ha=h[k];if(ha.getIsShow()){var U=e.addRow();U.setHeight(36);U=U.getCell(0);U.setValue(ha);ha=ha.getSubNodeLevel();ha=new KTCellTreeModel(ha);U.setTreeModel(ha)}}H.updateUI();D.addClass("appmenu-table");return D};this.updateTreeUi=function(h,e){z.empty();I&&(S=e);c(h).appendTo(z)};var q=function(h){var e=h.getAppId(),k=h.getAppMenuId();h=h.getAppMenuId2();return e?k?h?e+k+h:e+k:e:null}}function Aa(){var g,z;this.getPublishAppMenuBO=function(){return g};
this.setPublishAppMenuBO=function(H){g=H};this.setPublishPersonName=function(H){z=H};this.getPublishPersonName=function(){return z};this.fromJsonObject=function(H){g=H.publishAppMenuBO;z=H.publishPersonName}}function Ha(){J.call(this);this.protectedMethod.setImportType(J.EXTREPORT_TYPE)}function aa(){K.call(this);var g=this.protectedMethod,z,H,D;this.isLastStep=function(){return!0};this.over=function(w){w&&((w=g.getStepContentInfo().getAllStepOverCallback())&&w(D,H),w=com.kingdee.bos.qing.dashboard.UserOperationReporter,
w.occur(w.DSB_IMPORT_EXREPORT_TYPE,w.IMPORT_EXTREPORTAPP))};this.protectedDoNext=function(w,I,S){w=w.formParams;z=w.publishId;H=w.caption;w=g.getStepContentInfo().getDsbRemoteImpl();(new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(w,function(R){D=R.ref;S()},function(R,N){})).getPublishReferenceMap(z,"appmenu_rpt")}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&
(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.scene&&(com.kingdee.bos.qing.scene={});"undefined"==typeof com.kingdee.bos.qing.scene.common&&(com.kingdee.bos.qing.scene.common={});"undefined"==typeof com.kingdee.bos.qing.scene.common.designer&&(com.kingdee.bos.qing.scene.common.designer={});var ka=com.kingdee.bos.qing.scene.common.designer;ka.AbstractDashboardDesignerSceneImpl=function(){pa.call(this);var g=this,z=this.protectedMethod,H,D,w=!0,I,S,R;this.protectedSetSourceDetail=
function(a,b){throw Error("override me");};this.protectedGetSourceDetail=function(){throw Error("override me");};this.protectedGetRemoteUrl=function(){throw Error("override me");};this.protectedLoading=function(a,b,f){throw Error("override me");};this.addDsbResourceLock=function(){throw Error("override me");};this.setCloseResourceLock=function(a){R=a};this.protectedSaveModel=function(a){throw Error("override me");};this.protectedOverrideDsbSource=function(a){throw Error("override me");};this.protectedCreateNewDsb=
function(a,b,f){throw Error("override me");};this.protectedListUnpresetThemeGroup=function(){throw Error("override me");};this.protectedInitBehaviorManager=function(){};this.protectedCreateFacade=function(a,b,f){return new com.kingdee.bos.qing.dashboard.DsbFacade(a,b,f)};this.protectedImportMoreCode=function(a){a.pushSkinJs("scene","skin");a.pushI18n("scene","scene");a.pushJs("biz-common/qing-biz-common.js");a.pushSkinCss("biz-common","biz-common");a.pushSkinJs("biz-common","skin");a.pushI18n("biz-common",
"biz-common");a.pushJs("common/qing-schedule.js");a.pushI18n("common","qing-schedule");a.pushSkinCss("publish","qing-publish");a.pushSkinJs("publish","skin");a.pushI18n("publish","publish");a.pushJs("schema-manage/schema-manage-initialize.js");a.pushJs("schema-manage/schema-manage-ui.js");a.pushJs("publish/qing-publish.js");a.pushSkinCss("timedpush","qing-timedpush");a.pushSkinJs("timedpush","skin");a.pushI18n("timedpush","timedpush");a.pushJs("timedpush/qing-timedpush.js");a.pushJs("lightapp/common/qing-lapp-env.js");
a.pushJs("timedpush/qing-timedpush-lapp.js");a.pushSkinJs("imagelib","skin");a.pushI18n("dashboard","dsb-integration");a.pushSkinCss("imagelib","qing-imagelib");a.pushJs("imagelib/imagelib.js");a.pushI18n("imagelib","imagelib");a.pushSkinJs("dashboard","skin-dsb-integration");a.pushJs("dashboard/dsb-integration.js");a.pushSkinCss("dashboard","dsb-integration");a.pushSkinJs("linkage","skin");a.pushJs("linkage/linkage.js");a.pushSkinCss("linkage","linkage");a.pushSkinJs("map-designer","integration-skin");
a.pushJs("map-designer/map-integration.js");a.pushSkinCss("map-designer","map-integration");a.pushI18n("map-designer","map-integration");a.pushJs("qhf/qing-qhf.js");a.pushSkinJs("theme-manage","skin");a.pushJs("theme-manage/qing-theme-manage.js")};this.protectedCustomInitEnv=function(){I=com.kingdee.bos.qing.theme.model.ThemeGroupModel;S=com.kingdee.bos.qing.theme.model.ThemeModel;var a=com.kingdee.bos.qing.map.common.Integration,b=u.decodeParamFromUrl(location.search,"path");b=b?b:"/ierp";a.setRemoteUrl(b+
"/qing/mapManage.do");var f=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(p,l){f.setParamPathPrefix(b);f.showDialog(p,l)});com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser();g.protectedInitBehaviorManager()};this.protectedRegisterImplements=function(a){var b=new com.kingdee.bos.qing.dashboard.WidgetSourceSelector;b.setDsbRemoteImpl(g.getRemoteImpl());b.setParamPathPrefix(oa());b.setCustomLongerImportFuncTypes([J]);
b.setCustomSquareImportFuncTypes([M]);b.setCustomQingReportImportFuncTypes([Ha]);var f=new com.kingdee.bos.qing.scene.common.square.exhibition.DsbIntegrationScene;a.registerBuiltinVisualWidgetEditableConfirmerParser(function(p){var l=p.operation?p.operation:{};p=p.scene;var v=com.kingdee.bos.qing.publish.model.OperType,m=l[v.SQUARE];l=l[v.LONGER];return"square"==p?new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(m|l):"longer"==p?new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(l):
null});f.setFacade(function(p,l){return g.protectedCreateFacade(g.getRemoteImpl(),p,l)});f.setParamPathPrefix(oa());f.setMessageCurtain(ma());f.setCoreRemoteUrl(g.getCoreRemoteUrl());f.setDesignerSceneCreator(function(){return new y});a.registerWidgetSourceSelector(b);a.registerPictrueLoader(function(p,l,v){f.loadImage(p,l,v)});a.registerSquareDesignerCreator(function(p,l,v,m,T,ia){D&&D.setCurrentLinkageTag(m);f.createSquareDesigner(p,l,v,m,T,ia)});a.registerSquareSceneCreator(function(p,l){f.createSquareDesignerScene(l)});
a.registerLongerDesignerCreator(function(p,l,v,m,T,ia){D&&D.setCurrentLinkageTag(m);f.createLongerDesigner(p,l,v,m,T,ia)});a.registerLongerSceneCreator(function(p,l){f.createLongerDesignerScene(l)});b=new com.kingdee.bos.qing.dashboard.qingreport.QingReportExecutor;b.setDsbRemoteImpl(g.getRemoteImpl());a.registerQingReportExecutor(b)};this.protectedInitDesigner=function(a){w&&Ea();a.getConductor().setDirtyListener(function(b){va.setTabStatus(b)});"true"!=z.getUrlParamUtil().getUrlParam("isPreset")?
a.getConductor().insertToolbarButton(function(){g.protectedSaveModel(a)},"btn_save",d.get("save","\u4fdd\u5b58"),d.get("save","\u4fdd\u5b58")):ma().showPrompt(d.get("presetDsbTips","\u9884\u7f6e\u7684\u4eea\u8868\u677f\u4e0d\u5141\u8bb8\u4fdd\u5b58\u3001\u53d1\u5e03\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),-1)};var N=function(a){var b=d.get("publishSourceColons","\u53d1\u5e03\u6765\u6e90\uff1a");g.checkDsbIsOpened(function(){var f=
d.get("SyncSchemaPublishConfirm","\u540c\u6b65\u540e\uff0c\u5f53\u524d\u4eea\u8868\u677f\u5185\u5bb9\u5c06\u4f1a\u8986\u76d6\u53d1\u5e03\u6765\u6e90\uff0c\u786e\u5b9a\u540c\u6b65\u5417\uff1f");g.showSyncConfirm(f,b,a.getUserObject())},function(){var f=d.get("SyncSchemaPublishRefuse","\u6b63\u5728\u7f16\u8f91\u8be5\u53d1\u5e03\u8bb0\u5f55\u5bf9\u5e94\u7684\u53d1\u5e03\u6765\u6e90\uff0c\u8bf7\u5148\u5173\u95ed\u53d1\u5e03\u6765\u6e90\u9875\u9762\u518d\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002");g.showSyncRefused(f,
!0,b)})},c=function(a){var b=d.get("TPSourceColons","\u63a8\u9001\u6765\u6e90\uff1a");g.checkDsbIsOpened(function(){var f=d.get("SyncSchemaTPConfirm","\u540c\u6b65\u540e\uff0c\u5f53\u524d\u4eea\u8868\u677f\u5185\u5bb9\u5c06\u4f1a\u8986\u76d6\u63a8\u9001\u6765\u6e90\uff0c\u786e\u5b9a\u540c\u6b65\u5417\uff1f");g.showSyncConfirm(f,b,a.getUserObject())},function(){var f=d.get("SyncSchemaTPRefuse","\u6b63\u5728\u7f16\u8f91\u8be5\u63a8\u9001\u8bb0\u5f55\u5bf9\u5e94\u7684\u63a8\u9001\u6765\u6e90\uff0c\u8bf7\u5148\u5173\u95ed\u63a8\u9001\u6765\u6e90\u9875\u9762\u518d\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002");
g.showSyncRefused(f,!0,b)})};this.checkDsbIsOpened=function(a,b){throw Error("override me");};this.protectedCheckPublishLogExist=function(a,b){throw Error("override me");};var q=function(a){g.protectedCheckPublishLogExist(function(){h&&h(a)},function(){console&&console.log("\u5f39\u7a97\u63d0\u793alog\u88ab\u5220\u9664")})},h=function(a){var b=[];g.protectedListUnpresetThemeGroup(function(f){if(f)for(var p=0;p<f.length;p++){var l=new I;l.fromJsonObject(f[p]);b.push(l)}f=a.getUserObject();p=new e;
p.setThemeGroupModel(b);p.addSuccessCallback(f);p.createDialog().show();return!0})};this.showSyncConfirm=function(a,b,f){var p=com.kingdee.bos.qing.ui.component.MessageDialog,l=p.createFeedbackDialog();l.setOptionType(p.OPTION_OK_CANCEL);l.setMessage(a);l.setClosingChecker(function(v){v==p.RETURN_OK&&f&&f();return!0});l.setBounds(380,330,0,0);l.setExtendPainter(function(v,m){var T=g.protectedGetSourceDetail(),ia=$("<div>");ia.addClass("sa-ctrl-feedback-dialog-text");ia.text(m);ia.attr("title",m);
ia.appendTo(v);m=$("<div>");m.addClass("sa-ctrl-feedback-dialog-text");m.css({color:"#999999",height:"60px",top:"53px"});m.text(b+T);m.attr("title",b+T);m.appendTo(v)});l.showDialog()};this.showSyncRefused=function(a,b,f){var p=function(m,T){var ia=g.protectedGetSourceDetail(),r=$("<div>");r.addClass("sa-ctrl-feedback-dialog-text");r.text(T);r.attr("title",T);r.appendTo(m);T=$("<div>");T.addClass("sa-ctrl-feedback-dialog-text");T.css({top:"60px",height:"40px",color:"#999999"});T.text(f+ia);T.attr("title",
f+ia);T.appendTo(m)},l=com.kingdee.bos.qing.ui.component.MessageDialog,v=l.createFeedbackDialog();v.setOptionType(l.OPTION_OK);v.setMsgImageType(l.MSG_WARNING);v.setButtonText(l.OPTION_OK,d.get("iknow","\u6211\u77e5\u9053\u4e86"));v.setMessage(a);b&&(v.setBounds(380,310,0,0),v.setExtendPainter(p));v.showDialog()};var e=function(){var a=new S,b=[400,380],f=[],p,l,v,m,T=[];this.addSuccessCallback=function(t){f.push(t)};this.setThemeGroupModel=function(t){T=t};this.createDialog=function(){var t=$(document.body),
x=$("<div class='sa-ctrl-common-modallayer'>");x.appendTo(t);var B=new Q(x);B.setSelectable(!0);B.setTitle(d.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"));var E=b[0],F=b[1],P=t.prop("clientWidth"),W=t.prop("clientHeight");B.setBounds(P-E>>1,W-F>>1,E,F);B.setToolbarVisible(!1);B.setContent(r());B.showFooterPane();x.appendTo(t);var ya=function(){B.destroy();x.remove()};B.addClosingListener(function(ta,ua){ua?ia(ya,ta.getMessageCurtain()):ya()});return B};var ia=function(t,
x){var B=$.trim(l.getText()),E=$.trim(v.getText()),F=function(W){1010003==W?(W=d.get("duplicateDSBNameInCategory","\u8be5\u5206\u7c7b\u4e0b\u5b58\u5728\u540c\u540d\u4eea\u8868\u677f\u3002"),x.showPrompt(W,2E3)):null==W&&t()},P;""!=B&&50<B.length?P=d.get("nameTooLong","\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):""==B&&(P=d.get("nameCannotBeEmpty","\u8bf7\u8f93\u5165#1\u540d\u79f0\u3002").replace("#1","\u4eea\u8868\u677f"));""!=E&&500<E.length&&(P=d.get("descriptionTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7500\u4e2a\u5b57\u7b26\u3002"));
if(P)x.showPrompt(P,2E3);else for(a.setThemeName(B),a.setThemeGroupID(p),a.setThemeDescription(E),a.setThemeType("1"),a.setIsPreset(!1),B=0;B<f.length;B++)(E=f[B])&&E(a,F)},r=function(){var t=$("<div>"),x=new na;x.setRequired(!0);x.setText(d.get("category","\u5206\u7c7b"));x=x.getJqUi();var B=T[0];p=B.getThemeGroupID();m=new ra;m.setItemModels(T);m.setSelected(B);m.setCustomPainter(function(ya,ta,ua){ta.text(ua.getThemeGroupName())});m.addSelectedChangedListener(function(ya,ta,ua){p=ua.getThemeGroupID()});
B=m.getJqUi();var E=new na;E.setRequired(!0);E.setText(d.get("themeName","\u540d\u79f0"));E=E.getJqUi();l=new Y;l.setText(a.getThemeName());var F=l.getJqUi(),P=new na;P.setText(d.get("description","\u63cf\u8ff0"));P=P.getJqUi();v=new sa;v.setText(a.getThemeDescription());var W=v.getJqUi();x.appendTo(t);B.appendTo(t);E.appendTo(t);F.appendTo(t);P.appendTo(t);W.appendTo(t);C.layoutCtrl(x,8,0,70,23);C.layoutCtrl(B,76,0,280,23);C.layoutCtrl(E,8,48,70,23);C.layoutCtrl(F,76,48,280,23);C.layoutCtrl(P,8,
96,70,23);C.layoutCtrl(W,76,100,280,120);return t}},k=function(){var a=z.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},ha=function(){return function(a,b,f){var p=com.kingdee.bos.qing.publish.model.PublishTargetType;if(f&&p.MOBILE==f){f=a.getPublishId();var l=a.getId()}else f=a.getId();p=z.getUrlParamUtil().getParamPathPrefix();var v=ea.getUrlParamValue(),m=z.getUrlParamUtil().getParamLanguage();p=u.appendParamToUrl((p?
p:"/ierp")+"/qing/publishContentEditEntrance.do","skin",v);p=u.appendParamToUrl(p,"language",m);p=u.appendParamToUrl(p,"publishId",f);l&&(p=u.appendParamToUrl(p,"lappId",l));l=p;b&&(f="editPublishedContent-"+f,m=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,m.putSubscribe(f,b),p=u.appendParamToUrl(p,"subscribeKey",f),p=u.appendParamToUrl(p,"currentPageClientId",m.getCurrentPageClientId()));com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(d.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+
a.getName(),p,l)}},U=function(){return function(a){var b=z.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var f=d.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(a instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var p=a.getId(),l=a.getPublishSourceType();v=a.getSchemaSourceType();b=u.appendParamToUrl(b,"configId",p);b=u.appendParamToUrl(b,"publishSourceType",l);b=u.appendParamToUrl(b,"schemaType",v);b=u.appendParamToUrl(b,
"pushTarget","email");f=f+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=u.appendParamToUrl(b,"errorCode","2301001"))}else{p=a.getId();l=a.getPushTargetType();var v=a.getSchemaType();b=u.appendParamToUrl(b,"configId",p);b=u.appendParamToUrl(b,"pushTargetType",l);b=u.appendParamToUrl(b,"schemaType",v);b=u.appendParamToUrl(b,"pushTarget","lapp");f=f+"-"+a.getName();a.getSourceName()||(b=u.appendParamToUrl(b,"errorCode","2301001"))}a=ea.getUrlParamValue();v=z.getUrlParamUtil().getParamLanguage();
a&&(b=u.appendParamToUrl(b,"skin",a));v&&(b=u.appendParamToUrl(b,"language",v));com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(f,b)}},O=function(a){var b=com.kingdee.bos.qing.publish.model,f=b.PublishSourceType;b=com.kingdee.bos.qing.publish.common;b=new b.PublishContext;b.setBizTag(z.getUrlParamUtil().getUrlParam("dsbId"));b.setCurrentSourceType(f.DASHBOARD);b.setCurrentContentModel(a);b.setScene(f.DASHBOARD);a=oa();b.setParamPathPrefix(a);b.setLappEntranceUrl(a+"/qing/lappEntrance.do");
return b},L=function(){var a=oa()+"/qing/publishTo.do",b=new com.kingdee.bos.qing.RemoteImpl;b.setRemoteUrl(a);return b},ba=function(a){return 0==a.page.widgets.length?!1:!0},Z=function(){var a=ea.getUrlParamValue(),b=z.getUrlParamUtil().getParamLanguage(),f=oa()+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";a&&(f=u.appendParamToUrl(f,"skin",a));b&&(f=u.appendParamToUrl(f,"language",
b));return f},da=function(){var a=ea.getUrlParamValue(),b=z.getUrlParamUtil().getParamLanguage(),f=oa()+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";a&&(f=u.appendParamToUrl(f,"skin",a));b&&(f=u.appendParamToUrl(f,"language",b));return f};this.getCoreRemoteUrl=function(){return oa()+"/qing/core.do"};var Ba=function(a){a.getConductor().isDirty()?(va.showConfirmExitDialog(),R&&va.setClosingListener(R)):R?R(function(){Ga.closeCurrentTab()}):Ga.closeCurrentTab()},ma=function(){H||
(H=new fa,H.getJqUi().appendTo($(document.body)));return H},oa=function(){var a=z.getUrlParamUtil().getParamPathPrefix();return a?a:"/ierp"},Ea=function(){var a=oa()+"/qing/linkage.do",b=com.kingdee.bos.qing.integration.LinkageJumper;D=new com.kingdee.bos.qing.linkage.LinkageManage;D.initDesigntime(a,b.jump)};this.protectedMethod.getMessageCurtain=ma;this.protectedMethod.hookCloseTab=function(a){a.getConductor().appendToolbarButton(function(){Ba(a)},"error_close",d.get("closeTab","\u9000\u51fa"))};
this.protectedMethod.hookSyncPublishToDsb=function(a){var b=d.get("SchemeSynced","\u540c\u6b65\u4e0e\u53e6\u5b58"),f=d.get("SyncSchemaToDSB","\u540c\u6b65\u56de\u539f\u4eea\u8868\u677f"),p=d.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"),l=new V,v=new ca(N);v.setText(f);v.setUserObject(function(){g.protectedOverrideDsbSource(a)});l.addItemModel(v);f=new ca(q);f.setText(p);f.setUserObject(function(m,T){g.protectedCreateNewDsb(a,m,T)});l.addItemModel(f);a.getConductor().appendToolbarMenu(l,
"sync_scheme_to_publish",b)};this.protectedMethod.hookSyncTimePushToDsb=function(a){var b=d.get("SchemeSynced","\u540c\u6b65\u4e0e\u53e6\u5b58"),f=d.get("SyncSchemaToDSB","\u540c\u6b65\u56de\u539f\u4eea\u8868\u677f"),p=d.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"),l=new V,v=new ca(c);v.setText(f);v.setUserObject(function(){g.protectedOverrideDsbSource(a)});l.addItemModel(v);f=new ca(q);f.setText(p);f.setUserObject(function(m,T){g.protectedCreateNewDsb(a,m,T)});l.addItemModel(f);
a.getConductor().appendToolbarMenu(l,"sync_scheme_to_push",b)};this.protectedMethod.hookPublishTo=function(a){var b=com.kingdee.bos.qing.publish.model,f=b.PublishTargetType;b=com.kingdee.bos.qing.publish.common;var p=b.PublishFactory,l=function(T){if(ba(a.getJsonModel())){var ia=T.getUserObject();T=T.getText().replace("...","");var r=O(a.getJsonModel());r.setWidgetsExecutingTag(a.collectBuiltinWidgetsExecutingTag());ia=p.createPublishToDialog(T,L(),r,ia,ha());ia.setOuterMessageCurtain(ma());ia.showDialog()}else ma().showPrompt(d.get("noWidgets",
"\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)};b=new V;var v=new ca(l);v.setUserObject(f.APPMENU);v.setText(d.get("toAppMenu","\u5e94\u7528\u83dc\u5355..."));b.addItemModel(v);v=new ca(l);v.setUserObject(f.CENTER);v.setText(d.get("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));b.addItemModel(v);v=new ca(l);v.setUserObject(f.CARD_REPOSITORY);v.setText(d.get("toCardRepository","\u5361\u7247\u5e93..."));b.addItemModel(v);l=new ca(l);l.setUserObject(f.MOBILE);l.setText(d.get("toMobile",
"\u79fb\u52a8\u8f7b\u5e94\u7528..."));b.addItemModel(l);com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(L());k();var m=O(a.getJsonModel());b.addSeperator();v=new ca(function(){(new com.kingdee.bos.qing.publish.common.PublishManagerDialog(L(),m,ha())).showDialog()});v.setUserObject();v.setText(d.get("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");b.addItemModel(v);f=d.get("publishTo","\u53d1\u5e03\u5230");a.getConductor().appendToolbarMenu(b,"publish_to",f)};this.protectedMethod.hookCommunicateTo=
function(a){var b=function(m){m=d.get("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var T=O(a.getJsonModel());m=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(m,L(),T);m.setOuterMessageCurtain(ma());m.showDialog()},f=function(m){ba(a.getJsonModel())?(m=com.kingdee.bos.qing.CodeLoader.createSafety(),m.pushJs("yzj-web/qingjs.js"),m.pushJs("yzj-web/imcloud.js"),m.pushJs("yzj-web/imsdkerp.js"),m.pushJs("yzj-web/imShare.js"),m.pushSkinCss("yzj-web",
"imcloud"),m.pushSkinCss("yzj-web","imsdk"),m.pushSkinCss("yzj-web","imsdkerp"),m.load(function(){})):ma().showPrompt(d.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)},p=new V;(new ca(function(m){window.beLoadedImCloud?b(m):f(m)})).setText(d.get("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var l=new ca(function(m){if(ba(a.getJsonModel())){m=m.getText().replace("...","");var T=O(a.getJsonModel());m=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(m,L(),
T,Z(),da(),U());m.setOuterMessageCurtain(ma());m.showDialog()}else ma().showPrompt(d.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)});l.setText(d.get("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));p.addItemModel(l);l=new ca(function(m){if(ba(a.getJsonModel())){var T=O(a.getJsonModel()),ia=new com.kingdee.bos.qing.timedpush.LappSchedulePush;m=m.getText().replace("...","");ia.createDialog(m,L(),T,U(),a)}else ma().showPrompt(d.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),
2E3)});l.setText(d.get("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");p.addItemModel(l);var v=O(a.getJsonModel());p.addSeperator();l=new ca(function(){var m=new com.kingdee.bos.qing.publish.common.PushManager(U()),T=com.kingdee.bos.qing.timedpush;m.registerEmailPushPanelConstructor(T.EmailConfigManagePanel);m.initEmailPushConfig(L(),Z(),da());m.registerLappPushPanelConstructor(T.LappPushManagePanel);m.initLappPushConfig(function(ia,r,t){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
L(),ia,r,t)},v);m.showDialog()});l.setUserObject();l.setText(d.get("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");p.addItemModel(l);p=a.getConductor().appendToolbarMenu(p,"btn_communicate",d.get("timedPush","\u5b9a\u65f6\u63a8\u9001"));p.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=b)});return p};this.protectedMethod.setNeedShowLinkage=function(a){w=a}};var ea,pa,Da,Ga,u,d,fa,V,ca,qa,va,Ca,C,ja,X,A,la,Q,na,ra,Y,sa,wa;(function(){var g=com.kingdee.bos.qing;
ea=g.SkinUtil;pa=g.AbstractDashboardDesignerScene;Da=g.AbstractModalDesignerScene;g=com.kingdee.bos.qing.common;u=g.Util;C=g.DomUtil;ja=g.DateFormater;g=com.kingdee.bos.qing.common.ui;X=g.TableUtil;wa=g.CommonIconUtil;g=com.kingdee.bos.qing.framework.common;Ga=g.TabbedUiUtil;la=g.AbstractIcons;g=com.kingdee.bos.qing.ui.component;fa=g.MessageCurtain;V=g.MenuModel;ca=g.MenuItemModel;qa=g.RadioButton;Ca=g.RadioButtonGroup;A=g.SearchBox;Q=g.Dialog;na=g.Label;ra=g.ComboBox;Y=g.TextField;sa=g.TextArea;
g=com.kingdee.bos.qing.framework.common;d=g.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);g=com.kingdee.bos.qing.integration;va=g.TabStatusHelper})();ka.Icons=new function(){la.call(this);var g=this.protectedMethod,z;this.setComboIconImpl=function(H){z=H};this.protectedInit=function(H,D){if(!z)throw Error("Please setComboIconImpl() first.");z.define(D,"no-data");D.setStartPosition(0,0);D.setGap(0);D.setIconSize(220,220);g.registIcon(0,0,"no-data")}};J.SQUARE_TYPE=1;J.LONGER_TYPE=
0;J.EXTREPORT_TYPE=2})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.scene&&(com.kingdee.bos.qing.scene={});var y=com.kingdee.bos.qing.scene;y.DashboardDesignerScene=function(){M.call(this);var J=this,K=this.protectedMethod;this.protectedInitBehaviorManager=function(){var aa=com.kingdee.bos.qing.behavior.BehaviorManager;
aa.interestInBehaviorEntrance(aa.ENTRANCE_THEME_DASHBOARD);var ka=com.kingdee.bos.qing.dashboard.UserOperationReporter;ka.hookCollector(function(ea,pa){aa.interestInBehavior(ea,pa)});ka=com.kingdee.bos.qing.publish.common.UserOperationReporter;ka.hookCollector(function(ea,pa,Da){aa.interestInBehavior(ea,pa,0,Da)})};this.protectedGetRemoteUrl=function(){var aa=K.getUrlParamUtil().getParamPathPrefix();return(aa?aa:"/ierp")+"/qing/dashboard.do"};this.protectedGetDashboardUniqueId=function(){return Aa()};
this.protectedSaveModel=function(aa){if(aa.getConductor().isDirty()){var ka=JSON.stringify(aa.getJsonModel());(new com.kingdee.bos.qing.dashboard.DsbFacade(J.getRemoteImpl(),function(ea){K.getMessageCurtain().showSuccess(G.get("saveDsbSuccess","\u4fdd\u5b58\u4eea\u8868\u677f\u6210\u529f\u3002"));aa.getConductor().clearDirty()},function(ea,pa){return 900003==ea||900004==ea?(K.getMessageCurtain().showError(G.get("failToSaveDsb","\u4fdd\u5b58\u4eea\u8868\u677f\u5931\u8d25\u3002")),!0):2010001==ea?(K.getMessageCurtain().showPrompt(G.get("dsbIsDeletedCurtain",
"\u5bf9\u5e94\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),!0):2010003==ea?(K.getMessageCurtain().showPrompt(G.get("noOperationPermissionsCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002")),!0):1030001==ea?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(ea,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(pa))),!0):!1})).saveModel(Aa(),ka)}else K.getMessageCurtain().showPrompt(G.get("noEditCurtain","\u4eea\u8868\u677f\u5185\u5bb9\u6ca1\u6709\u4fee\u6539\u3002"),
2E3)};this.addDsbResourceLock=function(){var aa=Aa();(new com.kingdee.bos.qing.dashboard.DsbFacade(J.getRemoteImpl(),function(ka){return!0},function(ka,ea){return!1})).tryAddResourceLock("theme-dashboard-design-scene",aa)};var za=function(aa){var ka=Aa();(new com.kingdee.bos.qing.dashboard.DsbFacade(J.getRemoteImpl(),function(ea){aa&&aa();return!0},function(ea,pa){return!1})).closeResourceLock("theme-dashboard-design-scene",ka)},n=J.protectedInitDesigner;this.protectedInitDesigner=function(aa){n(aa);
"true"!=K.getUrlParamUtil().getUrlParam("isPreset")&&(K.hookPublishTo(aa),K.hookCommunicateTo(aa));K.hookCloseTab(aa);Ha(aa);J.setCloseResourceLock(za);J.addDsbResourceLock()};this.protectedLoading=function(aa,ka,ea){aa=Aa();(new com.kingdee.bos.qing.dashboard.DsbFacade(J.getRemoteImpl(),function(pa){pa?(ka.setJsonModel(pa,function(Da){Da.isError()&&K.getMessageCurtain().showError(G.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5185\u5bb9\u5931\u8d25\u3002"))}),ea(!0)):ea(!1)},function(pa,
Da){return"900003"==pa||"900004"==pa?(K.getMessageCurtain().showError(G.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5185\u5bb9\u5931\u8d25\u3002")),!0):1030001==pa?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(pa,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(Da))),!0):!1})).loadModel(aa)};var Aa=function(){return K.getUrlParamUtil().getUrlParam("dsbId")},Ha=function(aa){var ka=Aa();com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(ka,
function(){return{dsbId:ka,sceneType:com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_DSB_DESIGNER}},function(){return aa.getConductor().isDirty()?(K.getMessageCurtain().showPrompt(G.get("dirtyTips","\u4eea\u8868\u677f\u5185\u5bb9\u5df2\u4fee\u6539\uff0c\u8bf7\u5148\u4fdd\u5b58\u540e\u518d\u5bfc\u51fa\u3002")),!0):!1})}};var M,G;(function(){var J=com.kingdee.bos.qing.scene.common.designer;M=J.AbstractDashboardDesignerSceneImpl;J=com.kingdee.bos.qing.framework.common;G=J.MultilanguageManager.createPackageAccessor(y)})()})();
//qingVersionTag: 20250807