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(K,X,M){if(K==Array.prototype||K==Object.prototype)return K;K[X]=M.value;return K};
$jscomp.getGlobal=function(K){K=["object"==typeof globalThis&&globalThis,K,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var X=0;X<K.length;++X){var M=K[X];if(M&&M.Math==Math)return M}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(K,X){var M=$jscomp.propertyToPolyfillSymbol[X];if(null==M)return K[X];M=K[M];return void 0!==M?M:K[X]};$jscomp.polyfill=function(K,X,M,ha){X&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(K,X,M,ha):$jscomp.polyfillUnisolated(K,X,M,ha))};
$jscomp.polyfillUnisolated=function(K,X,M,ha){M=$jscomp.global;K=K.split(".");for(ha=0;ha<K.length-1;ha++){var W=K[ha];if(!(W in M))return;M=M[W]}K=K[K.length-1];ha=M[K];X=X(ha);X!=ha&&null!=X&&$jscomp.defineProperty(M,K,{configurable:!0,writable:!0,value:X})};
$jscomp.polyfillIsolated=function(K,X,M,ha){var W=K.split(".");K=1===W.length;ha=W[0];ha=!K&&ha in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var la=0;la<W.length-1;la++){var z=W[la];if(!(z in ha))return;ha=ha[z]}W=W[W.length-1];M=$jscomp.IS_SYMBOL_NATIVE&&"es6"===M?ha[W]:null;X=X(M);null!=X&&(K?$jscomp.defineProperty($jscomp.polyfills,W,{configurable:!0,writable:!0,value:X}):X!==M&&(void 0===$jscomp.propertyToPolyfillSymbol[W]&&(M=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[W]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(W):$jscomp.POLYFILL_PREFIX+M+"$"+W),$jscomp.defineProperty(ha,$jscomp.propertyToPolyfillSymbol[W],{configurable:!0,writable:!0,value:X})))};
$jscomp.polyfill("String.prototype.replaceAll",function(K){return K?K:function(X,M){if(X instanceof RegExp&&!X.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return X instanceof RegExp?this.replace(X,M):this.replace(new RegExp(String(X).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),M)}},"es_2021","es3");
$jscomp.findInternal=function(K,X,M){K instanceof String&&(K=String(K));for(var ha=K.length,W=0;W<ha;W++){var la=K[W];if(X.call(M,la,W,K))return{i:W,v:la}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(K){return K?K:function(X,M){return $jscomp.findInternal(this,X,M).v}},"es6","es3");
(function(){function K(){ha.call(this);var q=this,a=this.protectedMethod,T,P,H,U,G;this.setCurrentPublishSchema=function(b){G=b};this.setUserOperatorPrevCheck=function(b){H=b};this.setCloseResourceLock=function(b){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var b=a.getUrlParamUtil().getParamPathPrefix();return(b?b:"/ierp")+"/qing/core.do"};this.protectedImportMoreCode=function(b){b.pushSkinJs("scene",
"skin");b.pushI18n("scene","scene")};this.protectedCustomInitEnv=function(b){b=$("<div>");b.css({position:"fixed",bottom:"3px",right:"1px",width:"180px",height:"18px",zIndex:"999"});h(b);q.protectedNeedToShowMessageBox()&&m(b);b.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var h=function(b){W.setCallback(function(){var c=new com.kingdee.bos.qing.support.Main;c.setParamLanguage(a.getUrlParamUtil().getParamLanguage());c.creatSupportUi(b)});W.loadCss("support/support.css");
W.loadJs("support/support-ui.js");W.loadI18n("support","support")},m=function(b){W.setCallback(function(){var c=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");c=c?c:"/ierp";com.kingdee.bos.qing.message.common.Integration.setRemoteUrl(c+"/qing/messageManage.do");x(c);var g=new com.kingdee.bos.qing.message.ui.Main;g.setFunOpenMessageDialog(function(){g.setViewSize(null,null,10,30)});g.setMessageWidth(80);g.getJqUi(25).appendTo(b)});W.loadSkinCss("message","message");
W.loadSkinJs("message","skin");W.loadJs("message/message-manage-ui.js");W.loadI18n("message","message")},x=function(b){var c=com.kingdee.bos.qing.message.common.Integration;c.setImportJSCodeForManager(function(){var f=com.kingdee.bos.qing.CodeLoader;f.setCallback(function(){var k=com.kingdee.bos.qing.theme.message.panel.common.Integration;k.setFunPublishRemoteImpl(function(){var e=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;e.setRemoteUrl(b+"/qing/publishTo.do");return e});k.setFunQingCenterAndMenuEntrance(function(e,
p,t,y){p=M.getUrlParamValue();var r=b+"/qing/publishEntrance.do";r=C.appendParamToUrl(r,"publishId",e);"extreport"==y?(r=C.appendParamToUrl(r,"appID","qing_rpt"),p&&(r=C.appendParamToUrl(r,"skin",p)),xa.openNewTabInAppId(t,r,r,xa.QING_RPT)):(p&&(r=C.appendParamToUrl(r,"skin",p)),xa.openNewTabInAppId(t,r,r,xa.QING_ANALYSIS))});k.setResourceRemoteUrl(b+"/qing/resource.do");k.setDataModelEntrance(function(e,p,t){var y=M.getUrlParamValue();p=ua.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+p;var r=
b+"/qing/dataModelingEntrance.do";r=C.appendParamToUrl(r,"themeID",e);r=C.appendParamToUrl(r,"isPreset",t);y&&(r=C.appendParamToUrl(r,"skin",y));xa.openNewTabInAppId(p,r,r,xa.QING_ANALYSIS)});k.setFunPublishContext(function(){var e=new com.kingdee.bos.qing.publish.common.PublishContext;e.setParamPathPrefix(b);e.setLappEntranceUrl(b+"/qing/lappEntrance.do");return e});k.setFunPublishedEmailLoginViewUrl(function(){var e=M.getUrlParamValue(),p=qa.getUrlParamValue("language"),t=b+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
e&&(t=C.appendParamToUrl(t,"skin",e));p&&(t=C.appendParamToUrl(t,"language",p));return t});k.setFunPublishedEmailAnonymousViewUrl(function(){var e=M.getUrlParamValue(),p=qa.getUrlParamValue("language"),t=b+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";e&&(t=C.appendParamToUrl(t,"skin",e));p&&(t=C.appendParamToUrl(t,"language",p));return t});k.setFunPublishContentEditEntrance(function(){return function(e,
p,t){var y=com.kingdee.bos.qing.publish.model.PublishTargetType;if(t&&y.MOBILE==t){y=e.getPublishId();var r=e.getId()}else y=e.getId();var A=M.getUrlParamValue(),ia=qa.getUrlParamValue("language");t=b+"/qing/publishContentEditEntrance.do";t=C.appendParamToUrl(t,"skin",A);t=C.appendParamToUrl(t,"language",ia);t=C.appendParamToUrl(t,"publishId",y);r&&(t=C.appendParamToUrl(t,"lappId",r));r=t;p&&(y="editPublishedContent-"+y,A=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,A.putSubscribe(y,
p),t=C.appendParamToUrl(t,"subscribeKey",y),t=C.appendParamToUrl(t,"currentPageClientId",A.getCurrentPageClientId()));p=com.kingdee.bos.qing.framework.common.TabbedUiUtil;p.openNewTabInAppId(ua.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+e.getName(),t,r,p.QING_ANALYSIS)}});k.setFunTimedPushContentEditEntrance(function(){return function(e){var p=b+"/qing/timedPushContentEditEntrance.do",t=ua.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(e instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var y=
e.getId(),r=e.getPublishSourceType();A=e.getSchemaSourceType();p=C.appendParamToUrl(p,"configId",y);p=C.appendParamToUrl(p,"publishSourceType",r);p=C.appendParamToUrl(p,"schemaType",A);p=C.appendParamToUrl(p,"pushTarget","email");t=t+"-"+e.getNameRule().getName();e.isSourceNameNotFound()&&(p=C.appendParamToUrl(p,"errorCode","2301001"))}else{y=e.getId();r=e.getPushTargetType();var A=e.getSchemaType();p=C.appendParamToUrl(p,"configId",y);p=C.appendParamToUrl(p,"pushTargetType",r);p=C.appendParamToUrl(p,
"schemaType",A);p=C.appendParamToUrl(p,"pushTarget","lapp");t=t+"-"+e.getName();e.getSourceName()||(p=C.appendParamToUrl(p,"errorCode","2301001"))}e=M.getUrlParamValue();A=qa.getUrlParamValue("language");e&&(p=C.appendParamToUrl(p,"skin",e));A&&(p=C.appendParamToUrl(p,"language",A));e=com.kingdee.bos.qing.framework.common.TabbedUiUtil;e.openNewTabInAppId(t,p,p,e.QING_ANALYSIS)}});k=com.kingdee.bos.qing.modeler.message.panel.common.Integration;k.setFunOpenModelSetPage(function(e,p){var t=M.getUrlParamValue(),
y=ua.get("modelSet","\u6a21\u578b\u96c6-")+p,r=b+"/qing_modeler/modelSetMainPage.do";r=C.appendParamToUrl(r,"modelSetId",e);r=C.appendParamToUrl(r,"modelSetName",p);r=C.appendParamToUrl(r,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());t&&(r=C.appendParamToUrl(r,"skin",t));xa.openNewTabInAppId(y,r,r,xa.QING_MODELER)});k.setFunOpenModelDesign(function(e,p,t,y,r){var A=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,ia=M.getUrlParamValue();r=(r=
A.getModelTypeText(r))?r+"-"+t:t;A=b+"/qing_modeler/deployDesignerEntrance.do";A=C.appendParamToUrl(A,"modelSetId",e);A=C.appendParamToUrl(A,"modelId",p);A=C.appendParamToUrl(A,"modelName",t);A=C.appendParamToUrl(A,"modelDeployId",y);ia&&(A=C.appendParamToUrl(A,"skin",ia));xa.openNewTabInAppId(r,A,A,xa.QING_MODELER)})});f.loadSkinCss("message","messagepanel");f.loadSkinJs("message","skin");f.loadJs("message/message-content-panel-management.js");f.loadI18n("message","messagepanel");f.loadSkinCss("qingmodeler/message",
"message-modeler-panel");f.loadSkinJs("qingmodeler/message","skin");f.loadJs("qingmodeler/message/message-content-panel-management.js");f.loadI18n("qingmodeler/message","message-modeler-panel")});var g=C.decodeParamFromUrl(location.search,"appID");c.setAppId(g)},n=function(b,c,g,f,k,e){var p=com.kingdee.bos.qing.publish.model.PublishSourceType,t=com.kingdee.bos.qing.publish.model.PublishTargetType;b!=p.EXTREPORT&&b!=p.DASHBOARD&&c!=t.GUIMENU?(b=new com.kingdee.bos.qing.publish.common.PublishFacade(L(),
function(y){e&&e()},function(y,r){return 2301016==y?(fa().showPrompt(ua.get("publishNoOperAuthExceptionCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),!0):!1}),c=g.getBizTag(),p=g.getDsbPublishId(),g.getRefToId()&&(c=g.getRefToId()),b.judgePublishOper(c,p,f,k)):e&&e()},v=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(L())},V=function(){var b=a.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(b+"/qing/lappPrivateInfo.do")},
B=function(b,c,g,f,k,e){var p=a.getUrlParamUtil().getParamPathPrefix(),t=com.kingdee.bos.qing.publish.common,y=t.PublishContext;t=com.kingdee.bos.qing.schemamanage.model;var r=t.SchemaAttrModel;t=t.SchemaModel;var A=a.getUrlParamUtil().getUrlParam("bizTag"),ia=q.protectedHaveToCarryData(),J;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(J=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());var ya=J&&J.hasDirectModeTable();
J=new y;J.setSource(k);J.setBizTag(A);J.setCurrentSourceType(c);J.setHaveToCarryData(ia);J.setHasDirectModeTable(ya);J.setParamPathPrefix(p);J.setSchemaTag("Dashboard-Analysis"==e?a.getUrlParamUtil().getUrlParam("schemaTag"):null);c=new r;c.setSchemaType(r.SCHEMATYPE_SYSTEM);c.setIsDefault(!0);c.setSchemaName(S("sysPublishScheme","\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848"));c.setSource(g);k=new t;k.setSchemaAttr(c);k.setSchemaContent(b.getJsonModelBook());b=k.toJsonObject();J.setCurrentContentModel(b);
b=a.getUrlParamUtil().getParamTag();c=function(ra){ra+="/qinganalysis/lappPreviewEntrance.do";for(var Q=window.location.search.substring(1).split("&"),va=0;va<Q.length;va++){var d=Q[va],l=d.indexOf("=");if(-1!=l){var u=d.substring(0,l);"clientID"!=u&&"safetyCode"!=u&&(d=d.substring(l+1),ra+=0>ra.indexOf("?")?"?":"&",ra+=u,ra+="=",ra+=d)}}return ra};g==r.SCHEMASOURCE_SQUARE?(J.setScene(y.Scene.Square),g=c(p),g=C.appendParamToUrl(g,"view","10"),J.setMobilePreviewUrl(g),p=C.appendParamToUrl(p+"/qing/lappEntrance.do",
"tag",b),p=C.appendParamToUrl(p,"view","10"),J.setLappEntranceUrl(p)):g==r.SCHEMASOURCE_LONGER&&(J.setScene(y.Scene.Longer),J.setMobilePreviewUrl(c(p)),p=C.appendParamToUrl(p+"/qing/lappEntrance.do","tag",b),J.setLappEntranceUrl(p));f&&(J.setRefToId(a.getUrlParamUtil().getUrlParam("publishId")),J.setDsbPublishId(f),J.setDashBoardAnalysis(!0));return J},ma=function(b){var c=!1;if(b&&(b=b.tables)&&0<b.length)for(var g=0;g<b.length;g++)if(b[g].subViews){c=!0;break}return c},na=function(b,c){H?H(function(g){var f=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(sa(),function(e){e.publishInfoPerCheck==K.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?b&&b(c):e.publishInfoPerCheck==K.THEME_IS_DEL?za($(document.body),"msg-warning",ua.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):e.publishInfoPerCheck==K.PUBLISHINFO_NOEXIST?za($(document.body),"msg-warning",ua.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):e.publishInfoPerCheck==
K.PERMISSION_CANCEL?za($(document.body),"msg-jurisdiction",ua.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+e.publishInfoUserName+'"'+ua.get("authority","\u6388\u6743")):e.publishInfoPerCheck==K.PUBLSIHPLAN_DELETE&&za($(document.body),"msg-warning",ua.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))}),k=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
k.setFId(G.getCurrentSchemaId());k.setSchemaName(G.getCurrentSchemaName());f.checkPublishInfoAndAuthority(g,k)}):b&&b(c)},sa=function(){var b=a.getUrlParamUtil().getParamPathPrefix(),c=a.getUrlParamUtil().getParamTag();b=(b?b:"/ierp")+"/qing/schemaManage.do";var g=new com.kingdee.bos.qing.RemoteImpl;g.setRemoteUrl(b);g.setTag(c);return g},za=function(b,c,g){b=new la;b.setOptionType(la.OPTION_OK);b.setButtonText(la.RETURN_OK,ua.get("ISee","\u6211\u77e5\u9053\u4e86"));var f={};f.text=g;f.iconName=c;
b.setMessage(f);b.setCustomPainter(function(k,e){var p=$("<div>");p.addClass("sa-ctrl-msgdlg-icon");z.background(p,e.iconName);var t=$("<div>");t.addClass("sa-ctrl-msgdlg-content");t.text(e.text);k.append(p);k.append(t)});b.showDialog(380,280)},Ca=function(b,c,g){T?c(T):(new com.kingdee.bos.qing.core.Facade(b,function(f){T=f;c(f)},g)).getMeta()},w=function(b){T=null;Ca(q.getRemoteImpl(),b)},L=function(){var b=a.getUrlParamUtil().getParamPathPrefix(),c=a.getUrlParamUtil().getParamTag();b=(b?b:"/ierp")+
"/qing/publishTo.do";var g=new com.kingdee.bos.qing.RemoteImpl;g.setRemoteUrl(b);g.setTag(c);return g},ba=function(){var b=a.getUrlParamUtil().getParamPathPrefix(),c=M.getUrlParamValue(),g=a.getUrlParamUtil().getParamLanguage();b=(b?b:"/ierp")+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";c&&(b=C.appendParamToUrl(b,"skin",c));g&&(b=C.appendParamToUrl(b,"language",g));return b},
Z=function(){var b=a.getUrlParamUtil().getParamPathPrefix(),c=M.getUrlParamValue(),g=a.getUrlParamUtil().getParamLanguage();b=(b?b:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";c&&(b=C.appendParamToUrl(b,"skin",c));g&&(b=C.appendParamToUrl(b,"language",g));return b},N=function(){return function(b,c,g){var f=com.kingdee.bos.qing.publish.model.PublishTargetType;if(g&&f.MOBILE==g){g=b.getPublishId();var k=b.getId();var e=b.getLappUserType()}else g=b.getId();f=a.getUrlParamUtil().getParamPathPrefix();
var p=M.getUrlParamValue(),t=a.getUrlParamUtil().getParamLanguage();f=C.appendParamToUrl((f?f:"/ierp")+"/qing/publishContentEditEntrance.do","skin",p);f=C.appendParamToUrl(f,"language",t);f=C.appendParamToUrl(f,"publishId",g);k&&(f=C.appendParamToUrl(f,"lappId",k));e&&(f=C.appendParamToUrl(f,"lappUserType",e));k=f;c&&(e="editPublishedContent-"+g,g=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,g.putSubscribe(e,c),f=C.appendParamToUrl(f,"subscribeKey",e),f=C.appendParamToUrl(f,"currentPageClientId",
g.getCurrentPageClientId()));xa.openNewTab(ua.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+b.getName(),f,k)}},ca=function(){return function(b){var c=a.getUrlParamUtil().getParamPathPrefix();c=(c?c:"/ierp")+"/qing/timedPushContentEditEntrance.do";var g=ua.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(b instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var f=b.getId(),k=b.getPublishSourceType();e=b.getSchemaSourceType();c=C.appendParamToUrl(c,
"configId",f);c=C.appendParamToUrl(c,"publishSourceType",k);c=C.appendParamToUrl(c,"schemaType",e);c=C.appendParamToUrl(c,"pushTarget","email");g=g+"-"+b.getNameRule().getName();b.isSourceNameNotFound()&&(c=C.appendParamToUrl(c,"errorCode","2301001"))}else{f=b.getId();k=b.getPushTargetType();var e=b.getSchemaType();c=C.appendParamToUrl(c,"configId",f);c=C.appendParamToUrl(c,"pushTargetType",k);c=C.appendParamToUrl(c,"schemaType",e);c=C.appendParamToUrl(c,"pushTarget","lapp");g=g+"-"+b.getName();b.getSourceName()||
(c=C.appendParamToUrl(c,"errorCode","2301001"))}b=M.getUrlParamValue();e=a.getUrlParamUtil().getParamLanguage();b&&(c=C.appendParamToUrl(c,"skin",b));e&&(c=C.appendParamToUrl(c,"language",e));xa.openNewTab(g,c)}},S=function(b,c){return ua.get(b,c)},fa=function(){P||(P=new com.kingdee.bos.qing.ui.component.MessageCurtain,P.getJqUi().appendTo($(document.body)));return P};a.getMLS=S;a.importLinkage=function(b){b.pushSkinJs("linkage","skin");b.pushJs("linkage/linkage.js");b.pushSkinCss("linkage","linkage")};
a.importForSchema=function(b){b.pushSkinJs("schema-manage","skin-initialize");b.pushJs("schema-manage/schema-manage-initialize.js");b.pushI18n("schema-manage","schema-initialize");b.pushSkinCss("schema-manage","schema-manage");b.pushJs("schema-manage/schema-manage-ui.js");b.pushI18n("schema-manage","schema-ui")};a.importForPublish=function(b){b.pushJs("biz-common/qing-biz-common.js");b.pushSkinCss("biz-common","biz-common");b.pushSkinJs("biz-common","skin");b.pushI18n("biz-common","biz-common");b.pushSkinJs("imagelib",
"skin");b.pushSkinCss("imagelib","qing-imagelib");b.pushJs("imagelib/imagelib.js");b.pushI18n("imagelib","imagelib");b.pushJs("common/qing-schedule.js");b.pushI18n("common","qing-schedule");b.pushSkinCss("publish","qing-publish");b.pushSkinJs("publish","skin");b.pushI18n("publish","publish");b.pushJs("publish/qing-publish.js");b.pushSkinCss("timedpush","qing-timedpush");b.pushSkinJs("timedpush","skin");b.pushI18n("timedpush","timedpush");b.pushJs("timedpush/qing-timedpush.js");b.pushJs("lightapp/common/qing-lapp-env.js");
b.pushJs("timedpush/qing-timedpush-lapp.js");b.pushJs("timedpush/html2canvas.js")};a.importForMap=function(b){b.pushSkinJs("map-designer","integration-skin");b.pushJs("map-designer/map-integration.js");b.pushSkinCss("map-designer","map-integration");b.pushI18n("map-designer","map-integration")};a.hookLongerPublishTo=function(b,c,g,f,k,e){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(J,ya,ra){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(J,ya,0,
ra)});var p=com.kingdee.bos.qing.publish.model;c=p.PublishTargetType;p=com.kingdee.bos.qing.schemamanage.model;var t=p.SchemaAttrModel,y=function(J){var ya=com.kingdee.bos.qing.publish.common.PublishFactory,ra=J.getUserObject(),Q=J.getText().replace("...",""),va=B(b,g,t.SCHEMASOURCE_LONGER,f,k,e);n(g,ra,va,"longer",ja.ANALYSIS_PUBLISH,function(){var d=ya.createPublishToDialog(Q,L(),va,ra,N());d.setOuterMessageCurtain(fa());d.showDialog()})},r=com.kingdee.bos.qing.ui.component.MenuItemModel;p=new com.kingdee.bos.qing.ui.component.MenuModel;
var A=new r(function(J){na(y,J)});A.setUserObject(c.APPMENU);A.setText(S("toAppMenu","\u5e94\u7528\u83dc\u5355..."));p.addItemModel(A);A=new r(function(J){na(y,J)});A.setUserObject(c.CENTER);A.setText(S("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));p.addItemModel(A);A=new r(function(J){na(y,J)});A.setUserObject(c.MOBILE);A.setText(S("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));p.addItemModel(A);v();V();var ia=function(){var J=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
ya=B(b,g,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new J(L(),ya,N())).showDialog()};A=new r(function(J){na(ia,J)});A.setUserObject();A.setText(S("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");p.addItemModel(A);c=S("publishTo","\u53d1\u5e03\u5230");return b.getConductor().appendToolbarMenu(p,"publish_to",c)};a.hookSquarePublishTo=function(b,c,g){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(y,r,A){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(y,
r,0,A)});var f=com.kingdee.bos.qing.publish.model;c=f.PublishTargetType;f=com.kingdee.bos.qing.schemamanage.model;var k=f.SchemaAttrModel,e=function(y){var r=com.kingdee.bos.qing.publish.common.PublishFactory,A=y.getUserObject(),ia=y.getText().replace("...",""),J=B(b,g,k.SCHEMASOURCE_SQUARE);n(g,A,J,"square",ja.CARD_PUBLISH,function(){var ya=r.createPublishToDialog(ia,L(),J,A,N());ya.setOuterMessageCurtain(fa());ya.showDialog()})},p=com.kingdee.bos.qing.ui.component.MenuItemModel;f=new com.kingdee.bos.qing.ui.component.MenuModel;
var t=new p(e);t.setUserObject(c.CARD_REPOSITORY);t.setText(S("toCardRepository","\u5361\u7247\u5e93..."));f.addItemModel(t);e=new p(e);e.setText(S("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));e.setUserObject(c.MOBILE);f.addItemModel(e);v();V();t=new p(function(){var y=com.kingdee.bos.qing.publish.common.PublishManagerDialog,r=B(b,g,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new y(L(),r,N())).showDialog()});t.setUserObject();t.setText(S("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");f.addItemModel(t);c=S("publishTo","\u53d1\u5e03\u5230");return b.getConductor().appendToolbarMenu(f,"publish_to",c)};a.hookPublishManager=function(b,c,g){var f=S("publishManager","\u53d1\u5e03\u7ba1\u7406");return b.getConductor().appendToolbarButton(function(){var k=com.kingdee.bos.qing.publish.common.PublishManagerDialog,e=B(b,c,g);(new k(L(),e,N())).showDialog()},"publish_manager",f)};a.hookCloseTab=function(b){var c=S("closeTab","\u9000\u51fa");return b.getConductor().appendToolbarButton(function(){b.getConductor().isDirty()?
ka.showConfirmExitDialog():xa.closeCurrentTab()},"error_close",c)};a.hookShareTo=function(b,c,g,f,k){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(Q,va,d){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(Q,va,0,d)});var e=function(Q){Q=S("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var va=B(b,f,c);Q=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(Q,L(),va);Q.setOuterMessageCurtain(fa());Q.showDialog()},
p=function(Q){Q=com.kingdee.bos.qing.CodeLoader.createSafety();Q.pushJs("yzj-web/qingjs.js");Q.pushJs("yzj-web/imcloud.js");Q.pushJs("yzj-web/imsdkerp.js");Q.pushJs("yzj-web/imShare.js");Q.pushSkinCss("yzj-web","imcloud");Q.pushSkinCss("yzj-web","imsdk");Q.pushSkinCss("yzj-web","imsdkerp");Q.load(function(){})};g=new Ba;(new Aa(function(Q){window.beLoadedImCloud?e(Q):p(Q)})).setText(S("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var t=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
y=q.protectedHaveToCarryData(),r;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(r=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());r=r&&r.hasDirectModeTable();var A=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!r&&!y&&c==t.SCHEMASOURCE_LONGER){var ia=function(Q){var va=Q.getText().replace("...",""),d=B(b,f,c,k);n(f,A.EMAIL,d,"longer",ja.ANALYSIS_TIMEPUSH,function(){var l=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(va,
L(),d,ba(),Z(),ca(),b);l.setOuterMessageCurtain(fa());l.showDialog()})},J=new Aa(function(Q){na(ia,Q)});J.setText(S("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));g.addItemModel(J)}if(!r&&!y){var ya=function(Q){var va=B(b,f,c,k),d="longer",l=ja.ANALYSIS_TIMEPUSH;c==t.SCHEMASOURCE_SQUARE&&(d="square",l=ja.CARD_TIMEPUSH);n(f,A.EMAIL,va,d,l,function(){var u=new com.kingdee.bos.qing.timedpush.LappSchedulePush,D=Q.getText().replace("...","");u.createDialog(D,L(),va,ca(),b)})};y=new Aa(function(Q){na(ya,
Q)});y.setText(S("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");g.addItemModel(y)}var ra=function(){var Q=com.kingdee.bos.qing.publish.common.PushManager,va=B(b,f,c);Q=new Q(ca());var d=com.kingdee.bos.qing.timedpush;Q.registerEmailPushPanelConstructor(d.EmailConfigManagePanel);Q.initEmailPushConfig(L(),ba(),Z());Q.registerLappPushPanelConstructor(d.LappPushManagePanel);Q.initLappPushConfig(function(l,u,D){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
L(),l,u,D)},va);Q.showDialog()};y=new Aa(function(Q){na(ra,Q)});y.setUserObject();y.setText(S("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");g.addItemModel(y);g=b.getConductor().appendToolbarMenu(g,"btn_communicate",S("timedPush","\u5b9a\u65f6\u63a8\u9001"));g.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=e)});return g};a.initDesigntimeLinkage=function(){var b=a.getUrlParamUtil().getParamPathPrefix(),c=(b?b:"/ierp")+"/qing/linkage.do",g=com.kingdee.bos.qing.integration.LinkageJumper;
b=new com.kingdee.bos.qing.linkage.LinkageManage;b.initDesigntime(c,g.jump);c=a.getUrlParamUtil().getParamTag();b.setCurrentLinkageTag(c)};a.loadMeta=Ca;a.reloadMeta=w;a.hookRefresh=function(b,c){var g=a.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),f=function(){c.restart();c.setExtractDataFinishedSuccessCallback(function(k){k||ma(T)?w(function(e){var p=b.getJsonModelBook();b.prepareMeta(e);b.setJsonModelBook(p)}):b.reExecute()})};return b.getConductor().appendToolbarButton(function(){na(f)},"btn_reset",
g)};a.getMessageCurtain=fa;a.hookSetCurrentTabStatus=function(b){b.getConductor().setDirtyListener(function(c){ka.setTabStatus(c)})};a.loadPublishOperList=function(b,c,g,f,k){U?g(U):(new com.kingdee.bos.qing.publish.common.PublishFacade(L(),function(e){U=e;g(U)},k)).loadPublishOperList(b,c,f)};a.loadPublishOperModel=function(b,c,g,f){U?g(U):(new com.kingdee.bos.qing.publish.common.PublishFacade(L(),function(k){U=k.noOperValueMap;g(U)},f)).loadPublishOperModel(b,c)};a.registMapMapLibrary=function(b){com.kingdee.bos.qing.map.common.Integration.setRemoteUrl(b+
"/qing/mapManage.do");var c=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(g,f){c.setParamPathPrefix(b);c.showDialog(g,f)})}}"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 X=com.kingdee.bos.qing.scene.common.designer,M,ha,W,la,z,C,ua,xa,Ba,Aa,ka,qa;(function(){var q=com.kingdee.bos.qing;M=q.SkinUtil;ha=q.AbstractDesignerScene;W=q.CodeLoader;qa=q.Seer;q=com.kingdee.bos.qing.common;C=q.Util;q=com.kingdee.bos.qing.framework.common;ua=q.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
xa=q.TabbedUiUtil;q=com.kingdee.bos.qing.ui.component;Ba=q.MenuModel;Aa=q.MenuItemModel;la=q.MessageDialog;z=q.Icons;q=com.kingdee.bos.qing.integration;ka=q.TabStatusHelper})();X.AbstractDesignerSceneImpl=K;X.LongerDesignerOperationJudgerModel=function(q){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);q&&0!=q&&(this.protectedParseDesignable=function(){return 0==(q&ja.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(q&ja.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(q&ja.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(q&ja.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(q&ja.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(q&ja.ANALYSIS_TIMEPUSH)})};X.SquareDesignerOperationJudgerModel=function(q){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);q&&0!=q&&(this.protectedParsePublishable=function(){return 0==(q&ja.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(q&ja.CARD_TIMEPUSH)})};var ja={};X.OperCodeType=ja;ja.ANALYSIS_EDITABLE=2;ja.ANALYSIS_EXPORT=4;ja.ANALYSIS_PRINT=8;ja.ANALYSIS_PUBLISH=16;ja.ANALYSIS_TIMEPUSH=32;ja.ANALYSIS_DETAIL=64;ja.CARD_PUBLISH=256;ja.CARD_TIMEPUSH=512;ja.ENTRY_ANALYSIS=1;ja.ENTRY_SQUARE=128;K.THEME_IS_DEL="Theme is Delete";K.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";K.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";K.PERMISSION_CANCEL="Not Permission";K.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){function K(q){var a,T,P,H,U,G,h,m,x,n,v,V=!0,B=!1,ma=!1,na,sa,za="icon_nodata",Ca="12px";this.setShowErrorDetailListener=function(c){na=c};this.setIsQingreportDsbComponent=function(c){ma=c};this.setIsDsbComponent=function(c){B=c};this.show=function(c,g,f){a?ba(c,g,f):w(c,g,f)};this.setShowDetail=function(c){V=c};this.getShowOperate=function(){return v};this.setBackgroundIcon=function(c){za=c};this.setFontSize=function(c){Ca=c};var w=function(c,g,f){a=$("<div>");a.text("loading...");a.appendTo(q);
C.setCallback(function(){L();ba(c,g,f)});C.loadSkinCss("scene","common-square-exhibition")},L=function(){a.empty();a.addClass("carderror-errorprompt");!B&&a.css("top","22px");T=$("<div>");T.css({position:"absolute",margin:"0px auto",width:"100%",height:"100%"});T.appendTo(a);var c=$("<iframe>");c.addClass("carderror-errorprompt-size-listener");c.appendTo(a);c[0].contentWindow&&c[0].contentWindow.addEventListener("resize",function(){Z()});P=$("<div>");P.addClass("carderror-errorprompt-img");W.Icons.background(P,
za);P.appendTo(T);G=$("<div>");G.addClass("carderror-errorprompt-errorinfo");G.appendTo(T);H=$("<span>");H.addClass("carderror-errorprompt-text");H.css("font-size",Ca);H.appendTo(G);U=$("<span>");U.addClass("carderror-errorprompt-error-btn");U.text(z.get("showErrorLog","\u663e\u793a\u9519\u8bef\u65e5\u5fd7"));U.appendTo(G)},ba=function(c,g,f){var k;if(2101001==c){v=k=!1;var e=z.get("themeIsDeleted","\u5bf9\u5e94\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")}else if(2101002==c||2101003==
c||2101004==c||2101005==c)v=k=!1,e=z.get("themeHasNoData","\u5bf9\u5e94\u4e3b\u9898\u6ca1\u6709\u5b9a\u4e49\u6570\u636e");else if(2103001==c||2103002==c)v=k=!1,e=z.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2101016==c)v=k=!1,e=z.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)k=!0,v=!1,e=z.get("subjectDataSourceError","\u6570\u636e\u6e90\u53d1\u751f\u5f02\u5e38");else if(2101010==c)v=k=!1,e=z.get("qingStorageFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3");else if(2100001==c)v=k=!1,e=z.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8");else if(2101011==c)k=!0,v=!1,e=z.get("subjectDBDataSourceError","\u6570\u636e\u6e90\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38");
else if(2101012==c)e=z.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)e=z.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)e=z.get("entityDestroyed","\u5bf9\u5e94\u4e3b\u9898\u7684\u6570\u636e\u8868\u88ab\u635f\u574f");else if(2101015==
c)e=z.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",g);else if(2101021==c)e=z.get("notExistTable","\u65e0\u6cd5\u5728\u6a21\u5f0f\u201c#1\u201d\u4e2d\u627e\u5230\u8be5\u5b9e\u4f53\u6570\u636e\u8868").replaceAll("#1",g);else if(2101022==c)e=z.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",
g);else if(2101024==c)e=z.get("ownerNotExistTable","\u6570\u636e\u6e90\u5f02\u5e38\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6570\u636e\u6e90");else if(2101025==c)e=z.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",g);else if(2215011==c)e=z.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)e=z.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",g);else if(2215020==c)e=z.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",g);else if(2301001==c)v=k=!1,e=B||ma?z.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664"):
z.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2301005==c)v=k=!1,e=B?z.get("componentSourceNoAuthority","\u6ca1\u6709\u8be5\u7ec4\u4ef6\u6765\u6e90\u7684\u67e5\u770b\u6743\u9650"):ma?z.get("extreportCardNoAuthority","\u6ca1\u6709\u8be5\u8f7b\u62a5\u8868\u7684\u67e5\u770b\u6743\u9650"):z.get("cardNoAuthority","\u6ca1\u6709\u8be5\u5361\u7247\u7684\u67e5\u770b\u6743\u9650");else if(2105E3==c)v=k=!1,e=z.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u5220\u9664");
else if(2201003==c)v=k=!1,e=z.get("cardNoDefaultSchema","\u8be5\u5361\u7247\u6ca1\u6709\u5b9a\u4e49\u9ed8\u8ba4\u65b9\u6848");else if(909001==c)v=k=!1,e=z.get("unsupportedDsbRefSource","\u5f53\u524d\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u7ec4\u4ef6\u6765\u6e90");else if(3010002==c)v=k=!1,e=z.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)v=k=!1,e=z.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)v=k=!1,e=z.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)v=k=!1,e=z.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)v=k=!1,e=z.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)v=k=!1,e=z.get("qingRuntimeException",
"\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(3001002==c)v=k=!0,e=z.get("qingRuntimeException","\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(1030001==c)v=k=!1,e=g;else if("unsetCardSource"==c)v=k=!1,e=z.get("unsetCardSource","\u8bf7\u9009\u62e9\u5361\u7247\u6765\u6e90");else if(8099001==c)v=k=!1,e=z.get("extreportNotFound","\u8be5\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664");else if(21000008==c)v=k=!1,e=z.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)v=!1,(e=g.match(/(\(|\uff08)([^(\)|\uff09)]+)(\)|\uff09)/))&&(g=e[2]),sa=$("<p>"),sa.addClass("carderror-errorprompt-support-qing-text"),sa.html(g.replace(/,/g,z.get("semicolon","\uff1b")+"<br>")),B?(k=!0,e=z.get("haveNotGetDataEntityAuthority","\u5c1a\u672a\u83b7\u5f97\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650"),U.text(z.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(k=!1,e=z.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a")),
H.text(e),!k&&H.append(sa);else if(2101018==c){v=!1;k=Aa.getSupportQingAnalysisUrl();(e=/(?:\u3010\s)(.+)(?=\s\u3011)/.exec(g))&&(g=e[1]);var p=$("<a onclick='javascript:window.open(\""+k+"\");' href='#'>");p.css({cursor:"pointer",color:"#5582f3"});p.text(z.get("viewDocument","\u67e5\u770b\u5e2e\u52a9\u6587\u6863"));sa=$("<p>");sa.addClass("carderror-errorprompt-support-qing-text");sa.html(g.replace(/,/g,z.get("semicolon","\uff1b")+"<br>"));B?(k=!0,e=z.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  "),
U.text(z.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(k=!1,e=z.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  "),a.css("overflow-y","auto"),G.css("max-height","unset"));H.text(e);H.append(p);!k&&H.append(sa)}else 4040002==c||4040003==c||4040004==c?(v=k=!0,e=z.get("serverBusy","\u5f53\u524d\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")):
4100001==c?(v=k=!0,e=z.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25")):(v=k=!0,e=c+"",e=0==e.indexOf("21")&&7==e.length?z.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==e.indexOf("30")&&6==e.length?z.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==e.indexOf("40")&&6==e.length?z.get("executeFail","\u56fe\u8868\u6267\u884c\u5931\u8d25"):z.get("unknownException","\u53d1\u751f\u4e86\u672a\u77e5\u9519\u8bef"));k&&V?(U.show(),U.on("click",function(t){N(c,
g,f)})):U.hide();2101018!=c&&2101006!=c&&H.text(e);setTimeout(Z,500)},Z=function(){var c=a.height()-2;a.width();if(0!=c){var g=G.height()+10,f=c-g;70>f?(P.hide(),f=0):(P.show(),200<f&&(f=200),P.css("height",f+"px"));G.css("min-height","unset");T.css({"margin-top":-Math.floor((f+g)/2)+"px",top:"50%",height:f+g+"px"});0>c-g&&(a.css("overflow-y","auto"),a.css("overflow-x","auto"))}},N=function(c,g,f){if(2101006==c){var k=new fa($(document.body));k.setSize(440,330);k.setTitle(z.get("permissionTitle",
"\u6743\u9650\u63d0\u793a"));k.showDialog(S(z.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a"),sa),!0)}else if(2101018==c)k=new fa($(document.body)),k.setSize(440,330),k.setTitle(z.get("DetailInfo","\u8be6\u7ec6\u4fe1\u606f")),k.showDialog(S(z.get("notSupportQingAnalysis","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff1a"),sa),!0);
else if(na)na(c,g,f);else{if(!h){h=$("<div>");h.addClass("carderror-errorprompt-logdetail-container");k=$("<div>");k.addClass("carderror-errorprompt-logdetail-container-title");var e=$("<div>");e.addClass("carderror-errorprompt-logdetail-titiletag");var p=$("<div>");p.addClass("carderror-errorprompt-logdetail-title-lable");p.text(z.get("errorLog","\u9519\u8bef\u65e5\u5fd7"));var t=$("<div>");t.addClass("carderror-errorprompt-logdetail-close");W.Icons.background(t,"icon_errorclose");t.on("click",b);
k.append(e);k.append(p);k.append(t);x=$("<div>");x.css("padding","10px");x.text(z.get("errorCode","\u9519\u8bef\u7801\uff1a")+c);n=$("<pre>");n.addClass("carderror-errorprompt-logdetail-content-container-text");n.text("\u9519\u8bef\u4fe1\u606f\uff1a"+g+(null!=f?"\r\n\u9519\u8bef\u6808\uff1a"+f:""));var y=$("<div>");y.addClass("carderror-errorprompt-logdetail-content-container");var r=$("<span>");r.text(z.get("copy","\u590d\u5236"));r.addClass("carderror-errorprompt-logdetail-content-copybutton");
r.click(function(){var A=ca("\u9519\u8bef\u7801\uff1a"+c+"\r\n\u9519\u8bef\u4fe1\u606f\uff1a"+g+"\r\n\u9519\u8bef\u6808\uff1a"+f),ia=$("<span>");ia.addClass("carderror-errorprompt-logdetail-content-copybutton-end");y.append(ia);A?ia.text(z.get("copy success!","\u590d\u5236\u6210\u529f\uff01")):ia.text(z.get("copy error!","\u590d\u5236\u5931\u8d25\uff01"));setTimeout(function(){ia.remove()},1500)});y.mouseover(function(){r.css("visibility","visible")});y.mouseout(function(){r.css("visibility","hidden")});
y.append(x);y.append(n);y.append(r);h.append(k);h.append(y);m=$("<div class='sa-ctrl-common-modallayer'>");h.appendTo(m)}k=$(document.body);m.appendTo(k)}},ca=function(c){var g=document.createElement("textarea");document.body.appendChild(g);g.value=c;g.select();c=document.execCommand("copy");document.body.removeChild(g);return c},S=function(c,g){var f=$("<div>");f.addClass("carderror-errorprompt-logdetail-content");var k=$("<p>");k.addClass("carderror-errorprompt-logdetail-contenxt-texttitle");k.text(c);
c=$("<p>");c.addClass("carderror-errorprompt-logdetail-contenxt-text");c.html(g);f.append(k);f.append(c);return f},fa=function(c){var g=$("<div class='sa-ctrl-common-modallayer'>"),f=new ka(g),k=0,e=0,p=320,t=240,y=c?c:$(document.body),r,A;this.setTitle=function(ia){A=ia};this.setClosingListener=function(ia){r=ia};this.setSize=function(ia,J){p=ia;t=J};this.showDialog=function(ia,J){g.appendTo(y);if(!k){var ya=y.prop("clientWidth"),ra=y.prop("clientHeight");k=ya-p>>1;e=(ra-t)/3}f.setBounds(k,e,p,t);
f.setToolbarVisible(!1);f.setContent(ia,J);f.setTitle(A);f.addClosingListener(function(Q,va){if(va)r(va);else return Q.destroy(),g.remove(),!0});f.addClosedListener(function(Q){Q.destroy();g.remove()});f.showFooterPane(this.createFooter);f.show()};this.setContent=function(ia,J){f.setContent(ia,J)};this.destroy=function(){f.destroy();g.remove()};this.createFooter=function(ia){var J=new qa(z.get("iknow","\u6211\u77e5\u9053\u4e86"));J.setHighlight(!0);var ya=J.getJqUi();ja.layoutCtrlWithLRTB(ya,"50%",
0,100,null,13,28);ya.addClass("dialog-footer-close");ya.css("margin-left","-50px");ya.appendTo(ia);J.addActionListener(function(ra){f.destroy();g.remove()})}},b=function(){m&&m.detach()}}function X(){var q,a,T;this.setIsSquare=function(P){q=P};this.getIsSquare=function(){return q};this.setLoadSchema=function(P){a=P};this.getLoadSchema=function(){return a};this.setSaveSchema=function(P){T=P};this.getSaveSchema=function(){return T}}function M(){ua.call(this);this.protectedShowErrorImpl=function(q,a,
T,P){q=new K(q);q.setIsDsbComponent(!0);q.show(a,T,P);return!0}}function ha(){xa.call(this);this.protectedShowErrorImpl=function(q,a,T,P){q=new K(q);q.setIsDsbComponent(!0);q.show(a,T,P);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 W=com.kingdee.bos.qing.scene.common.square.exhibition,la,z,C,ua,xa,Ba,Aa,ka,qa,ja;(function(){var q=com.kingdee.bos.qing.framework.common;la=q.AbstractIcons;z=q.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
Aa=Aa=q.OfficialArticleUtil;q=com.kingdee.bos.qing;C=q.CodeLoader;ua=q.DashboardSquareScene;xa=q.DashboardLongerScene;q=com.kingdee.bos.qing.ui.component;Ba=q.MessageDialog;ka=q.Dialog;qa=q.Button;q=com.kingdee.bos.qing.common;ja=q.DomUtil})();W.Icons=new function(){la.call(this);var q=this.protectedMethod,a;this.setComboIconImpl=function(T){a=T};this.protectedInit=function(T,P){if(!a)throw Error("Please setComboIconImpl() first.");a.define(P,"scene-error-image-sprite");P.setStartPosition(1,1);P.setGap(1);
P.setIconSize(20,20);q.registIcon(0,0,"icon_qhfInfo");q.registIcon(0,1,"icon_errorclose");a.define(P,"errorbackground");P.setStartPosition(0,0);P.setGap(0);P.setIconSize(200,200);q.registIcon(0,0,"icon_errorbackground");a.define(P,"nodata");q.registIcon(0,1,"icon_nodata")}};W.CardErrorUi=K;W.DsbIntegrationScene=function(){var q,a,T,P,H;this.setResetSquare=function(m){P=m};this.setFacade=function(m){T=m};this.setParamPathPrefix=function(m){};this.setMessageCurtain=function(m){a=m};this.setCoreRemoteUrl=
function(m){q=m};this.setDesignerSceneCreator=function(m){H=m};this.createSquareDesignerScene=function(m){var x=new M;x.setRemoteUrl(q);m(x)};this.createLongerDesignerScene=function(m){var x=new ha;x.setRemoteUrl(q);m(x)};this.loadImage=function(m,x,n){var v=m.refToId;v&&0!=$.trim(v).length?(m=T(function(V){var B=V.imageHeight;V=V.imageWidth;if(B||V){var ma=com.kingdee.bos.qing.framework.common.RemoteFramework.getLoadImgUrl(v,"image-library");x(ma,V,B)}else n&&n("")},function(V,B){return!1}),m.setShowBlocking(!1),
m.getImageSize(v)):(m=m.widgetSourcePath,n&&n(m))};this.createSquareDesigner=function(m,x,n,v,V,B){var ma=new X;ma.setIsSquare(!0);ma.setLoadSchema(function(na,sa){T(na,sa).squareLoadSchema(n)});ma.setSaveSchema(function(na,sa,za){T(sa,za).squareSaveSchema(n,na)});U(ma,m,x,n,v,V,B,!0)};this.createLongerDesigner=function(m,x,n,v,V,B,ma){var na=new X;na.setIsSquare(!1);na.setLoadSchema(function(sa,za){T(sa,za).longerLoadSchema(n,ma)});na.setSaveSchema(function(sa,za,Ca){T(za,Ca).longerSaveSchema(n,
sa)});U(na,m,x,n,v,V,B,!1)};var U=function(m,x,n,v,V,B,ma,na){var sa=H(),za=function(Ca){sa.hide();ma(Ca)};sa.setIsSquare(m.getIsSquare());sa.setRemoteUrl(q);sa.setRemoteTag(V);sa.setDesignerOperationJudger(B);sa.setSquareOrLonger(na);sa.setClosable(n);sa.setSchemaLoader(function(Ca,w){G(m,v,Ca,w,za)});sa.setSchemaSaver(function(Ca){h(m,v,Ca,za)});null!=P&&sa.setSchemaReseter(function(Ca){P(v,Ca,za)});sa.show(x,function(){za(null)})},G=function(m,x,n,v,V){x.uid?m.getLoadSchema()(function(B){B.model?
(n.setJsonModelBook(B.model),v(!0)):v(!1)},function(B,ma){V();B=B.toString();return"9"==B.substr(0,1)&&6==B.length?(a&&a.showError(z.get("failToLoadSchema","\u52a0\u8f7d\u65b9\u6848\u5931\u8d25\u3002")),!0):!1}):v(!1)},h=function(m,x,n,v){var V=n.getJsonModelBook();m.getSaveSchema()(V,function(B){v(V)},function(B,ma){if(909002==B)return B=Ba.createFeedbackDialog(),B.setMessage(z.get("noSelectMapTemplate","\u8bf7\u9009\u62e9\u5730\u56fe\u6a21\u677f")),B.setMsgImageType(Ba.MSG_WARNING),B.setOptionType(Ba.OPTION_OK),
B.setButtonText(Ba.OPTION_OK,z.get("iknow","\u6211\u77e5\u9053\u4e86")),B.showDialog(),!0;v();B=B.toString();return"9"==B.substr(0,1)&&6==B.length?(a&&a.showError(z.get("failToTemporarySchema","\u6682\u5b58\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})}}})();(function(){function K(){qa.call(this);var w,L,ba,Z,N;this.setIsSquare=function(ca){ba=ca};this.protectedIsSquare=function(){return ba};this.protectedInitDesigner=function(ca){ca.getConductor().insertToolbarButton(function(S){L(ca)},null,a.get("finish","\u5b8c\u6210"));ca.getConductor().insertToolbarSeperator();ca.setDesignerOperationJudger(N?null:Z,N?Z:null)};this.protectedLoading=function(ca,S){w(ca,S)};this.setSchemaLoader=function(ca){w=ca};this.setSchemaSaver=function(ca){L=ca};this.setDesignerOperationJudger=
function(ca){Z=ca};this.setSquareOrLonger=function(ca){N=ca};this.protectedIsSquare=function(){return N}}function X(){com.kingdee.bos.qing.dashboard.AbstractImportUi.call(this);this.protectedInitUi=function(){var w=new U;w.setText(a.get("fromCardLibrary","\u4ece\u5361\u7247\u5e93\u5f15\u5165"));return w};this.doNext=function(w,L,ba){L=w.getDsbRemoteImpl();var Z=new M;Z.setStepContentInfo(w);Z.setDsbRemoteImpl(L);ba([Z])}}function M(){com.kingdee.bos.qing.dashboard.AbstractImportStep.call(this);var w=
this.protectedMethod,L,ba,Z,N,ca,S,fa;this.setDsbRemoteImpl=function(b){N=b};this.setStepContentInfo=function(b){ca=b};this.over=function(b){b&&(b=ca.getAllStepOverCallback())&&b(Z,ba,!1,S,fa)};this.isLastStep=function(){return!0};this.getSubTitle=function(){return a.get("selectCard","\u9009\u62e9\u5361\u7247")};this.getSuggestedDialogSize=function(){return[810,580]};this.protectedCreateUi=function(){var b=q.decodeParamFromUrl(location.search,"path"),c=(b?b:"/ierp")+"/qing/publishTo.do",g=new com.kingdee.bos.qing.RemoteImpl;
g.setRemoteUrl(c);L=new com.kingdee.bos.qing.publish.CardSelector(g);L.setOuterMessageCurtain(w.getMessageCurtain());L.setParamPathPrefix(b);L.setSingleSelected(!0);return L.getJqUi()};this.intoThisStep=function(b,c){};this.outThisStep=function(b,c){if(b)c();else if(b=L.getSelectedPublishModels(),0<b.length){var g=b[0];b=g.getSchemeId();ba=g.getName();g=g.getId();(new com.kingdee.bos.qing.dashboard.DsbFacade(N,function(f){f.noModeling?w.getMessageCurtain().showPrompt(a.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")):
f.noTheme?w.getMessageCurtain().showPrompt(a.get("noTheme","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e3b\u9898\u5df2\u88ab\u5220\u9664\uff0c\u5361\u7247\u65e0\u6cd5\u4f7f\u7528\u3002")):(Z=f.ref,S=f.model,fa=f.operation,c())},function(f,k){return"900001"==f?(c(),w.getMessageCurtain().showError(a.get("failToloadCardContent","\u52a0\u8f7d\u5361\u7247\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})).getCardReferenceMap(g,b)}else b=a.get("chooseImportCard","\u8bf7\u9009\u62e9\u8981\u5f15\u5165\u7684\u5361\u7247\u3002"),
w.getMessageCurtain().showPrompt(b,2E3)}}function ha(){com.kingdee.bos.qing.dashboard.AbstractImportUi.call(this);var w=ha.LONGER_TYPE,L=com.kingdee.bos.qing.publish.env.PublishAppMenuFolderNode;this.protectedInitUi=function(){var Z=new U;Z.setText(a.get("fromAppMenu","\u4ece\u5e94\u7528\u83dc\u5355\u5f15\u5165"));return Z};this.doNext=function(Z,N,ca){var S=Z.getDsbRemoteImpl();S=new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(S,function(fa){var b=fa.appmenu;fa=fa.publish;var c=!1,g=!0,
f=new L;f.fromJsonObject(b);f=f.getChildren();b=[];for(var k=0;k<f.length;k++)ba(b,f[k]);for(k=0;k<fa.length;k++)fa[k].publishAppMenuBO.isPreset?c=!0:g=!1;if(0==b.length)N.showPrompt(a.get("noPublish","\u6682\u65e0\u53d1\u5e03\u3002"));else{switch(w){case ha.LONGER_TYPE:f=new la;break;case ha.EXTREPORT_TYPE:f=new xa;break;default:throw Error("do not support this type!");}f.setAppmenu(b);f.setAppmenuPublish(fa);f.setStepContentInfo(Z);f.showPresetFilter(c,g);ca([f]);f.refreshTable()}},function(fa,
b){fa=b.toString();return"9"==fa.substr(0,1)&&6==fa.length?(N.showError(a.get("failToGetAppMenu","\u83b7\u53d6\u5e94\u7528\u83dc\u5355\u5931\u8d25\u3002")),!0):!1});w==ha.LONGER_TYPE&&S.loadAppMenuTree();w==ha.EXTREPORT_TYPE&&S.loadAppMenuTreeForExtreport()};var ba=function(Z,N){Z.push(N);if(N instanceof L&&(N=N.getChildren()))for(var ca=0;ca<N.length;ca++)ba(Z,N[ca])};this.protectedMethod={setImportType:function(Z){w=Z}}}function W(){function w(I){KTDefaultCellRender.call(this,I);var O=this,Y=this.paintCellUI;
this.paintCellUI=function(aa,da){var ea=O.getCurrentRow(),oa=O.getCurrentColIdx();if(O.getCurrentRowIdx()<n.getHeadRowCount()||1==oa||2==oa)Y(aa,da);else if(0==oa){da=ea.getUserObject();ea=new U;d.addElement(ea);fa&&fa.getPublishAppMenuBO().formParams.publishId==da.getPublishAppMenuBO().formParams.publishId&&ea.setChecked(!0);ea.setUserObject(da);oa=ea.getJqUi();ea=$("<div class='appmenu-publish-item-btn-name'>");if(Q){var ta=da.getPublishAppMenuBO().qingMenuName;if(Q&&ta){var Ga=Q.toUpperCase(),
Da=ta.toUpperCase(),Ea=Da.split(Ga),La=Ga.length;for(Ha in Ea){var Fa=Da.indexOf(Ea[Ha]),Ka=ta.substr(Ja,Ea[Ha].length);Fa+=Ea[Ha].length;var Ia=Da.length-Fa;Da=Da.substr(Fa,Ia);ta=ta.substr(Fa,Ia);Fa=$("<span>");Fa.text(Ka);Fa.appendTo(ea);if(Ha!=Ea.length-1&&1<Ea.length){var Ja=Da.indexOf(Ga);Ka=ta.substr(Ja,La);Fa=Ja+La;Ia=Da.length-Fa;Da=Da.substr(Fa,Ia);ta=ta.substr(Fa,Ia);Fa=$("<span>");Fa.text(Ka);Fa.css("color","red");Fa.clone().appendTo(ea)}}}else ea.text(ta)}else ea.text(da.getPublishAppMenuBO().qingMenuName);
oa.addClass("appmenu-publish-item-btn");oa.appendTo(aa);if(da.getPublishAppMenuBO().isPreset){var Ha=$("<div>");Ha.text(a.get("preset","\u9884\u7f6e"));Ha.addClass("appmenu-publish-item-btn-preset-tag");Ha.appendTo(aa)}ea.appendTo(aa)}}}com.kingdee.bos.qing.dashboard.AbstractImportStep.call(this);var L=this,ba=this.protectedMethod,Z,N,ca,S,fa,b,c,g,f,k,e,p=com.kingdee.bos.qing.publish.common.FilterModelType,t=com.kingdee.bos.qing.publish.common.CardFilterType,y,r,A=!1,ia=[new t(a.get("myLonger","\u6211\u7684\u5206\u6790"),
!1),new t(a.get("presetLonger","\u9884\u7f6e\u5206\u6790"),!0)],J=[void 0,void 0],ya=!1,ra,Q="",va,d=new h;d.addChangedListener(function(I,O){fa=I.getUserObject()?I.getUserObject():fa});var l=new x;l.setFormatString("yyyy-MM-dd HH:mm:ss");this.isLastStep=function(){return!1};this.setStepContentInfo=function(I){Z=I};this.setAppmenu=function(I){N=I};this.setAppmenuPublish=function(I){ca=I};this.showPresetFilter=function(I,O){r=I;(A=O)&&ia.reverse()};this.refreshTable=function(){k&&n.refresh(k)};this.getSubTitle=
function(){return a.get("selectAppmenu","\u9009\u62e9\u5e94\u7528\u83dc\u5355")};this.protectedCreateUi=function(){var I=$("<div>"),O=$("<div>"),Y=D,aa=new p;aa.setSearchType(ia);aa.setSelectedChangedListener(Y);y=aa.getJqUi();y.css({top:"-4px",left:"6px"});y.appendTo(O);!r&&y.hide();ra?Y=ra.getJqUi():(ra=new v,ra.addSearchListener(R),ra.setSearchListenerDelay(100),ra.setPlaceholder(a.get("searchBoxPlaceholder","\u641c\u7d22\u53d1\u5e03\u540d\u79f0")),ra.setShowSearchIcon(!0),Y=ra.getJqUi(),Y.addClass("import-longer-from-appmenu-search-box"),
Y.css({position:"relative",width:"175px",height:"23px"}));Y.appendTo(O);O.appendTo(I);O=$("<div>");O.addClass("import-longer-from-appmenu");for(Y=0;Y<N.length;Y++){aa=N[Y];var da=aa;var ea=[];for(var oa=da.getAppId(),ta=da.getAppMenuId(),Ga=da.getAppMenuId2(),Da=oa?ta?Ga?Ga:ta:oa:null,Ea=0;Ea<ca.length;Ea++)da=new C,da.fromJsonObject(ca[Ea]),oa=da.getPublishAppMenuBO().appId,ta=da.getPublishAppMenuBO().appMenuId,Ga=da.getPublishAppMenuBO().appMenuId2,Da===(oa?ta?Ga?Ga:ta:oa:null)&&ea.push(da);ea&&
0<ea.length&&aa.setPublishModels(ea)}S=new z;va=b=E();S.setCurrentNode(va);S.setTreeItemSelectedListener(F);u();S.getJqUi(N).appendTo(O);f=$("<div>");f.addClass("appmenu-publish-table");k=n.createTable();n.bindTableListenerForCtrl(k);Y=new w(k);Y.setOutsideVisible(!1);k.setCellRender(Y);k.addColumns(3);k.getColumn(0).setWidth(220);k.getColumn(1).setWidth(90);k.getColumn(2).setWidth(150);Y=n.createHeadRow(k);Y.getCell(0).setValue(a.get("publishName","\u53d1\u5e03\u540d\u79f0"));Y.getCell(1).setValue(a.get("publishPerson",
"\u53d1\u5e03\u4eba"));Y.getCell(2).setValue(a.get("publishTime","\u53d1\u5e03\u65f6\u95f4"));Y=b.getPublishModels();aa=!1;for(ea=0;ea<Y.length;ea++)ta=Y[ea],A==ta.getPublishAppMenuBO().isPreset&&(aa||(fa=ta,aa=!0),oa=n.createRow(k),oa.setUserObject(ta),oa.getCell(0).setValue(ta.getPublishAppMenuBO().name),oa.getCell(1).setValue(ta.getPublishPersonName()),ta=Number(ta.getPublishAppMenuBO().formParams.publishTime),oa.getCell(2).setValue(l.format(ta)));n.refresh(k);c=$(k.getUI());c.appendTo(f);f.appendTo(O);
O.appendTo(I);return I};var u=function(){for(var I=0;I<N.length;I++)N[I].setIsShow(!1);for(I=0;I<N.length;I++){var O;if(O=N[I].getPublishModels())a:{O=N[I].getPublishModels();for(var Y=0;Y<O.length;Y++)if(O[Y].getPublishAppMenuBO().isPreset==A){O=!0;break a}O=!1}if(O)for(O=N[I],O.setIsShow(!0);O.getParentNode()&&O.getParentNode().getDisplayName();)O=O.getParentNode(),O.getIsShow()||O.setIsShow(!0)}},D=function(I,O,Y){A=Y.getTypeId();u();A?(J[1]=S.getCurrentNode(),J[0]||(I=E(),J[0]=I),F(J[0]),S.setCurrentNode(J[0])):
(J[0]=S.getCurrentNode(),J[1]||(I=E(),J[1]=I),F(J[1]),S.setCurrentNode(J[1]));R()},E=function(){for(var I=0;I<N.length;I++){for(var O=N[I],Y=O.getPublishModels(),aa=[],da=0;Y&&da<Y.length;da++)Y[da].getPublishAppMenuBO().isPreset==A&&aa.push(Y[da]);if(Y&&0<aa.length)return O}},R=function(){Q=ra.getText().trim();if(0<Q.length){ya=!0;for(var I={},O=0;O<N.length;O++){var Y=0,aa=N[O],da=aa.getPublishModels();if(da&&0<da.length)for(var ea=0;ea<da.length;ea++){var oa=da[ea],ta=-1<oa.getPublishAppMenuBO().qingMenuName.toUpperCase().indexOf(Q.toUpperCase());
A==oa.getPublishAppMenuBO().isPreset&&ta&&Y++}ea=aa;aa=ea.getAppId();da=ea.getAppMenuId();ea=ea.getAppMenuId2();I[aa?da?ea?aa+da+ea:aa+da:aa:null]=Y}wa(va.getPublishModels(),!1);S.setSearchStatus(!0);S.updateTreeUi(N,I)}else ya=!1,wa(va.getPublishModels(),!1),S.setSearchStatus(!1),S.updateTreeUi(N)},F=function(I){va=I;(I=I.getPublishModels())&&0<I.length?wa(I,!0):pa()},pa=function(){c&&c.hide();if(g)g.show();else{g=$("<div>");g.css({position:"absolute",height:"82%",width:"100%",top:"33px"});e=$("<div>");
e.text(a.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));m.layoutCtrlCenterAlign(e,444);e.css({height:"20px","line-height":"20px","text-align":"center","font-size":"16px",color:"#BBBBBB",top:"50%","margin-top":"98.5px"});e.appendTo(g);var I=$("<div>");Ba.Icons.background(I,"no-data");m.layoutCtrlCenterAlign(I,187);I.css({"background-size":"contain",top:"50%",height:"187px","margin-top":"-113.5px"});I.appendTo(g);f.append(g)}I=Q?a.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"):
a.get("noData","\u6682\u65e0\u53d1\u5e03\u8bb0\u5f55");e.text(I)},wa=function(I,O){c&&c.show();g&&g.hide();n.clearWithoutHead(k);for(var Y=0,aa,da=0;I&&da<I.length;da++){var ea=I[da];if(A==ea.getPublishAppMenuBO().isPreset){O&&!aa&&(fa=ea,aa=!0);var oa=-1<ea.getPublishAppMenuBO().qingMenuName.toUpperCase().indexOf(Q.toUpperCase());if(!ya||oa)oa=n.createRow(k),oa.setUserObject(ea),oa.getCell(0).setValue(ea.getPublishAppMenuBO().qingMenuName),oa.getCell(1).setValue(ea.getPublishPersonName()),ea=Number(ea.getPublishAppMenuBO().formParams.publishTime),
oa.getCell(2).setValue(l.format(ea)),Y++}}0===Y&&pa();L.refreshTable()};this.intoThisStep=function(I,O){};this.outThisStep=function(I,O){I?O():null==fa?ba.getMessageCurtain().showPrompt(a.get("notSelectAppMenuPublish","\u672a\u9009\u4e2d\u53d1\u5e03\u4fe1\u606f\u3002")):(I=fa.getPublishAppMenuBO(),L.protectedDoNext(I,Z,O))};this.protectedDoNext=function(I,O,Y){throw Error("overwrite me!");};this.protectedMethod.getStepContentInfo=function(){return Z}}function la(){W.call(this);var w=this.protectedMethod;
this.protectedDoNext=function(L,ba,Z){var N=L.formParams.publishId;L=ba.getDsbRemoteImpl();(new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(L,function(ca){if(ca.noModeling)w.getMessageCurtain().showPrompt(a.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(ca.noTheme)w.getMessageCurtain().showPrompt(a.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(N);ba.setSchema(ca);ba.setImportSourceIsPublish(!0);S.setStepContentInfo(ba);Z([S])}},function(ca,S){ca=ca.toString();return"9"==ca.substr(0,1)&&6==ca.length?(w.getMessageCurtain().showError(a.get("failToGetPublishSchemaList","\u83b7\u53d6\u53d1\u5e03\u65b9\u6848\u5217\u8868\u5931\u8d25\u3002")),!0):!1})).getPublishSchema(N)}}function z(){function w(f){KTDefaultCellRender.call(this,
f);var k=this;this.paintCellUI=function(t,y){var r=k.getCell(),A=r.getValue();r=e(A,r);y?(t=$(y),r.appendTo(t)):(t=$(t),r.appendTo(t))};var e=function(t,y){y=t.getDisplayName();var r=$("<div>");r.addClass("appmenu-item ");var A=$("<div>");A.css({overflow:"hidden","max-width":"96px","text-overflow":"ellipsis"});var ia=Ca.createWarning();m.layoutCtrl(ia,0,12);y==b.CLOUD_HAS_BEEN_DELETED?(y=a.get("cloudHasBeenDeleted","\u8be5\u670d\u52a1\u4e91\u5df2\u88ab\u5220\u9664"),A.css({"margin-left":"6px",overflow:"unset"}),
r.append(ia)):y==b.APP_HAS_BEEN_DELETED?(y=a.get("appHasBeenDeleted","\u8be5\u5e94\u7528\u5df2\u88ab\u5220\u9664"),A.css({"margin-left":"6px",overflow:"unset"}),r.append(ia)):y==b.APP_MENU_HAS_BEEN_DELETED&&(y=a.get("appMenuHasBeenDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664"),A.css({"margin-left":"6px",overflow:"unset"}),r.append(ia));r.attr("title",y);ia.attr("title",y);A.text(y);0<t.getSubNodeLevel()&&(r.css("cursor","pointer"),g(fa)===g(t)&&r.addClass("appmenu-item-selected"),
r.on("mousedown",function(J){g(fa)!==g(t)&&(L.find(".appmenu-item-selected").removeClass("appmenu-item-selected"),r.addClass("appmenu-item-selected"),fa=t,N&&N(t))}));r.append(A);m.layoutCtrlWithLRTB(r,0,0,null,0,0,null);ca&&0<t.getSubNodeLevel()&&p(A,r,t,y);return r},p=function(t,y,r,A){r=S[g(r)];var ia="("+r+")",J=$("<div>");J.addClass(0<r?"appmenu-item-search-hits-number-with-color":"appmenu-item-search-hits-number");J.text(ia);t.append(J);y.attr("title",A+" "+ia)}}var L,ba,Z,N,ca=!1,S,fa,b=com.kingdee.bos.qing.publish.env.AbstractPublishAppMenuNode;
this.setTreeItemSelectedListener=function(f){N=f};this.setCurrentNode=function(f){fa=f};this.getCurrentNode=function(){return fa};this.setSearchStatus=function(f){ca=f};this.getJqUi=function(f){L||(L=$("<div>"),L.append(c(f)));return L};var c=function(f){Z=ba=null;ba=new KTable;Z=$(ba.getUI());Z.children().css("overflow-x","hidden");ba.setCellRender(new w(ba));ba.setSyncUIWhenModelChanged(!1);ba.addColumn().setWidth(170);var k=new KTStyle;k.setVerticalAlign("middle");ba.setStyle(k);k=ba;for(var e=
0;e<f.length;e++){var p=f[e];if(p.getIsShow()){var t=k.addRow();t.setHeight(36);t=t.getCell(0);t.setValue(p);p=p.getSubNodeLevel();p=new KTCellTreeModel(p);t.setTreeModel(p)}}ba.updateUI();Z.addClass("appmenu-table");return Z};this.updateTreeUi=function(f,k){L.empty();ca&&(S=k);c(f).appendTo(L)};var g=function(f){var k=f.getAppId(),e=f.getAppMenuId();f=f.getAppMenuId2();return k?e?f?k+e+f:k+e:k:null}}function C(){var w,L;this.getPublishAppMenuBO=function(){return w};this.setPublishAppMenuBO=function(ba){w=
ba};this.setPublishPersonName=function(ba){L=ba};this.getPublishPersonName=function(){return L};this.fromJsonObject=function(ba){w=ba.publishAppMenuBO;L=ba.publishPersonName}}function ua(){ha.call(this);this.protectedMethod.setImportType(ha.EXTREPORT_TYPE)}function xa(){W.call(this);var w=this.protectedMethod,L,ba,Z;this.isLastStep=function(){return!0};this.over=function(N){N&&((N=w.getStepContentInfo().getAllStepOverCallback())&&N(Z,ba),N=com.kingdee.bos.qing.dashboard.UserOperationReporter,N.occur(N.DSB_IMPORT_EXREPORT_TYPE,
N.IMPORT_EXTREPORTAPP))};this.protectedDoNext=function(N,ca,S){N=N.formParams;L=N.publishId;ba=N.caption;N=w.getStepContentInfo().getDsbRemoteImpl();(new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(N,function(fa){Z=fa.ref;S()},function(fa,b){})).getPublishReferenceMap(L,"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 Ba=com.kingdee.bos.qing.scene.common.designer;Ba.AbstractDashboardDesignerSceneImpl=function(){ka.call(this);var w=this,L=this.protectedMethod,ba,Z,N=!0,ca,S,fa;this.protectedSetSourceDetail=function(d,l){throw Error("override me");
};this.protectedGetSourceDetail=function(){throw Error("override me");};this.protectedGetRemoteUrl=function(){throw Error("override me");};this.protectedLoading=function(d,l,u){throw Error("override me");};this.addDsbResourceLock=function(){throw Error("override me");};this.setCloseResourceLock=function(d){fa=d};this.protectedSaveModel=function(d){throw Error("override me");};this.protectedOverrideDsbSource=function(d){throw Error("override me");};this.protectedCreateNewDsb=function(d,l,u){throw Error("override me");
};this.protectedListUnpresetThemeGroup=function(){throw Error("override me");};this.protectedInitBehaviorManager=function(){};this.protectedCreateFacade=function(d,l,u){return new com.kingdee.bos.qing.dashboard.DsbFacade(d,l,u)};this.protectedImportMoreCode=function(d){d.pushSkinJs("scene","skin");d.pushI18n("scene","scene");d.pushJs("biz-common/qing-biz-common.js");d.pushSkinCss("biz-common","biz-common");d.pushSkinJs("biz-common","skin");d.pushI18n("biz-common","biz-common");d.pushJs("common/qing-schedule.js");
d.pushI18n("common","qing-schedule");d.pushSkinCss("publish","qing-publish");d.pushSkinJs("publish","skin");d.pushI18n("publish","publish");d.pushJs("schema-manage/schema-manage-initialize.js");d.pushJs("schema-manage/schema-manage-ui.js");d.pushJs("publish/qing-publish.js");d.pushSkinCss("timedpush","qing-timedpush");d.pushSkinJs("timedpush","skin");d.pushI18n("timedpush","timedpush");d.pushJs("timedpush/qing-timedpush.js");d.pushJs("lightapp/common/qing-lapp-env.js");d.pushJs("timedpush/qing-timedpush-lapp.js");
d.pushSkinJs("imagelib","skin");d.pushI18n("dashboard","dsb-integration");d.pushSkinCss("imagelib","qing-imagelib");d.pushJs("imagelib/imagelib.js");d.pushI18n("imagelib","imagelib");d.pushSkinJs("dashboard","skin-dsb-integration");d.pushJs("dashboard/dsb-integration.js");d.pushSkinCss("dashboard","dsb-integration");d.pushSkinJs("linkage","skin");d.pushJs("linkage/linkage.js");d.pushSkinCss("linkage","linkage");d.pushSkinJs("map-designer","integration-skin");d.pushJs("map-designer/map-integration.js");
d.pushSkinCss("map-designer","map-integration");d.pushI18n("map-designer","map-integration");d.pushJs("qhf/qing-qhf.js");d.pushSkinJs("theme-manage","skin");d.pushJs("theme-manage/qing-theme-manage.js")};this.protectedCustomInitEnv=function(){ca=com.kingdee.bos.qing.theme.model.ThemeGroupModel;S=com.kingdee.bos.qing.theme.model.ThemeModel;var d=com.kingdee.bos.qing.map.common.Integration,l=q.decodeParamFromUrl(location.search,"path");l=l?l:"/ierp";d.setRemoteUrl(l+"/qing/mapManage.do");var u=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;
com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(D,E){u.setParamPathPrefix(l);u.showDialog(D,E)});com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser();w.protectedInitBehaviorManager()};this.protectedRegisterImplements=function(d){var l=new com.kingdee.bos.qing.dashboard.WidgetSourceSelector;l.setDsbRemoteImpl(w.getRemoteImpl());l.setParamPathPrefix(Q());l.setCustomLongerImportFuncTypes([ha]);l.setCustomSquareImportFuncTypes([X]);l.setCustomQingReportImportFuncTypes([ua]);
var u=new com.kingdee.bos.qing.scene.common.square.exhibition.DsbIntegrationScene;d.registerBuiltinVisualWidgetEditableConfirmerParser(function(D){var E=D.operation?D.operation:{};D=D.scene;var R=com.kingdee.bos.qing.publish.model.OperType,F=E[R.SQUARE];E=E[R.LONGER];return"square"==D?new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(F|E):"longer"==D?new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(E):null});u.setFacade(function(D,E){return w.protectedCreateFacade(w.getRemoteImpl(),
D,E)});u.setParamPathPrefix(Q());u.setMessageCurtain(ra());u.setCoreRemoteUrl(w.getCoreRemoteUrl());u.setDesignerSceneCreator(function(){return new K});d.registerWidgetSourceSelector(l);d.registerPictrueLoader(function(D,E,R){u.loadImage(D,E,R)});d.registerSquareDesignerCreator(function(D,E,R,F,pa,wa){Z&&Z.setCurrentLinkageTag(F);u.createSquareDesigner(D,E,R,F,pa,wa)});d.registerSquareSceneCreator(function(D,E){u.createSquareDesignerScene(E)});d.registerLongerDesignerCreator(function(D,E,R,F,pa,wa){Z&&
Z.setCurrentLinkageTag(F);u.createLongerDesigner(D,E,R,F,pa,wa)});d.registerLongerSceneCreator(function(D,E){u.createLongerDesignerScene(E)});l=new com.kingdee.bos.qing.dashboard.qingreport.QingReportExecutor;l.setDsbRemoteImpl(w.getRemoteImpl());d.registerQingReportExecutor(l)};this.protectedInitDesigner=function(d){N&&va();d.getConductor().setDirtyListener(function(l){G.setTabStatus(l)});"true"!=L.getUrlParamUtil().getUrlParam("isPreset")?d.getConductor().insertToolbarButton(function(){w.protectedSaveModel(d)},
"btn_save",a.get("save","\u4fdd\u5b58"),a.get("save","\u4fdd\u5b58")):ra().showPrompt(a.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 b=function(d){var l=a.get("publishSourceColons","\u53d1\u5e03\u6765\u6e90\uff1a");w.checkDsbIsOpened(function(){var u=a.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");
w.showSyncConfirm(u,l,d.getUserObject())},function(){var u=a.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");w.showSyncRefused(u,!0,l)})},c=function(d){var l=a.get("TPSourceColons","\u63a8\u9001\u6765\u6e90\uff1a");w.checkDsbIsOpened(function(){var u=a.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");
w.showSyncConfirm(u,l,d.getUserObject())},function(){var u=a.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");w.showSyncRefused(u,!0,l)})};this.checkDsbIsOpened=function(d,l){throw Error("override me");};this.protectedCheckPublishLogExist=function(d,l){throw Error("override me");};var g=function(d){w.protectedCheckPublishLogExist(function(){f&&
f(d)},function(){console&&console.log("\u5f39\u7a97\u63d0\u793alog\u88ab\u5220\u9664")})},f=function(d){var l=[];w.protectedListUnpresetThemeGroup(function(u){if(u)for(var D=0;D<u.length;D++){var E=new ca;E.fromJsonObject(u[D]);l.push(E)}u=d.getUserObject();D=new k;D.setThemeGroupModel(l);D.addSuccessCallback(u);D.createDialog().show();return!0})};this.showSyncConfirm=function(d,l,u){var D=com.kingdee.bos.qing.ui.component.MessageDialog,E=D.createFeedbackDialog();E.setOptionType(D.OPTION_OK_CANCEL);
E.setMessage(d);E.setClosingChecker(function(R){R==D.RETURN_OK&&u&&u();return!0});E.setBounds(380,330,0,0);E.setExtendPainter(function(R,F){var pa=w.protectedGetSourceDetail(),wa=$("<div>");wa.addClass("sa-ctrl-feedback-dialog-text");wa.text(F);wa.attr("title",F);wa.appendTo(R);F=$("<div>");F.addClass("sa-ctrl-feedback-dialog-text");F.css({color:"#999999",height:"60px",top:"53px"});F.text(l+pa);F.attr("title",l+pa);F.appendTo(R)});E.showDialog()};this.showSyncRefused=function(d,l,u){var D=function(F,
pa){var wa=w.protectedGetSourceDetail(),I=$("<div>");I.addClass("sa-ctrl-feedback-dialog-text");I.text(pa);I.attr("title",pa);I.appendTo(F);pa=$("<div>");pa.addClass("sa-ctrl-feedback-dialog-text");pa.css({top:"60px",height:"40px",color:"#999999"});pa.text(u+wa);pa.attr("title",u+wa);pa.appendTo(F)},E=com.kingdee.bos.qing.ui.component.MessageDialog,R=E.createFeedbackDialog();R.setOptionType(E.OPTION_OK);R.setMsgImageType(E.MSG_WARNING);R.setButtonText(E.OPTION_OK,a.get("iknow","\u6211\u77e5\u9053\u4e86"));
R.setMessage(d);l&&(R.setBounds(380,310,0,0),R.setExtendPainter(D));R.showDialog()};var k=function(){var d=new S,l=[400,380],u=[],D,E,R,F,pa=[];this.addSuccessCallback=function(O){u.push(O)};this.setThemeGroupModel=function(O){pa=O};this.createDialog=function(){var O=$(document.body),Y=$("<div class='sa-ctrl-common-modallayer'>");Y.appendTo(O);var aa=new B(Y);aa.setSelectable(!0);aa.setTitle(a.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"));var da=l[0],ea=l[1],oa=O.prop("clientWidth"),
ta=O.prop("clientHeight");aa.setBounds(oa-da>>1,ta-ea>>1,da,ea);aa.setToolbarVisible(!1);aa.setContent(I());aa.showFooterPane();Y.appendTo(O);var Ga=function(){aa.destroy();Y.remove()};aa.addClosingListener(function(Da,Ea){Ea?wa(Ga,Da.getMessageCurtain()):Ga()});return aa};var wa=function(O,Y){var aa=$.trim(E.getText()),da=$.trim(R.getText()),ea=function(ta){1010003==ta?(ta=a.get("duplicateDSBNameInCategory","\u8be5\u5206\u7c7b\u4e0b\u5b58\u5728\u540c\u540d\u4eea\u8868\u677f\u3002"),Y.showPrompt(ta,
2E3)):null==ta&&O()},oa;""!=aa&&50<aa.length?oa=a.get("nameTooLong","\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):""==aa&&(oa=a.get("nameCannotBeEmpty","\u8bf7\u8f93\u5165#1\u540d\u79f0\u3002").replace("#1","\u4eea\u8868\u677f"));""!=da&&500<da.length&&(oa=a.get("descriptionTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7500\u4e2a\u5b57\u7b26\u3002"));if(oa)Y.showPrompt(oa,2E3);else for(d.setThemeName(aa),d.setThemeGroupID(D),d.setThemeDescription(da),d.setThemeType("1"),d.setIsPreset(!1),
aa=0;aa<u.length;aa++)(da=u[aa])&&da(d,ea)},I=function(){var O=$("<div>"),Y=new ma;Y.setRequired(!0);Y.setText(a.get("category","\u5206\u7c7b"));Y=Y.getJqUi();var aa=pa[0];D=aa.getThemeGroupID();F=new na;F.setItemModels(pa);F.setSelected(aa);F.setCustomPainter(function(Ga,Da,Ea){Da.text(Ea.getThemeGroupName())});F.addSelectedChangedListener(function(Ga,Da,Ea){D=Ea.getThemeGroupID()});aa=F.getJqUi();var da=new ma;da.setRequired(!0);da.setText(a.get("themeName","\u540d\u79f0"));da=da.getJqUi();E=new sa;
E.setText(d.getThemeName());var ea=E.getJqUi(),oa=new ma;oa.setText(a.get("description","\u63cf\u8ff0"));oa=oa.getJqUi();R=new za;R.setText(d.getThemeDescription());var ta=R.getJqUi();Y.appendTo(O);aa.appendTo(O);da.appendTo(O);ea.appendTo(O);oa.appendTo(O);ta.appendTo(O);m.layoutCtrl(Y,8,0,70,23);m.layoutCtrl(aa,76,0,280,23);m.layoutCtrl(da,8,48,70,23);m.layoutCtrl(ea,76,48,280,23);m.layoutCtrl(oa,8,96,70,23);m.layoutCtrl(ta,76,100,280,120);return O}},e=function(){var d=L.getUrlParamUtil().getParamPathPrefix();
com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(d+"/qing/lappPrivateInfo.do")},p=function(){return function(d,l,u){var D=com.kingdee.bos.qing.publish.model.PublishTargetType;if(u&&D.MOBILE==u){u=d.getPublishId();var E=d.getId()}else u=d.getId();D=L.getUrlParamUtil().getParamPathPrefix();var R=Aa.getUrlParamValue(),F=L.getUrlParamUtil().getParamLanguage();D=q.appendParamToUrl((D?D:"/ierp")+"/qing/publishContentEditEntrance.do","skin",R);D=q.appendParamToUrl(D,"language",F);D=q.appendParamToUrl(D,
"publishId",u);E&&(D=q.appendParamToUrl(D,"lappId",E));E=D;l&&(u="editPublishedContent-"+u,F=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,F.putSubscribe(u,l),D=q.appendParamToUrl(D,"subscribeKey",u),D=q.appendParamToUrl(D,"currentPageClientId",F.getCurrentPageClientId()));com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(a.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+d.getName(),D,E)}},t=function(){return function(d){var l=L.getUrlParamUtil().getParamPathPrefix();
l=(l?l:"/ierp")+"/qing/timedPushContentEditEntrance.do";var u=a.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(d instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var D=d.getId(),E=d.getPublishSourceType();R=d.getSchemaSourceType();l=q.appendParamToUrl(l,"configId",D);l=q.appendParamToUrl(l,"publishSourceType",E);l=q.appendParamToUrl(l,"schemaType",R);l=q.appendParamToUrl(l,"pushTarget","email");u=u+"-"+d.getNameRule().getName();d.isSourceNameNotFound()&&(l=q.appendParamToUrl(l,
"errorCode","2301001"))}else{D=d.getId();E=d.getPushTargetType();var R=d.getSchemaType();l=q.appendParamToUrl(l,"configId",D);l=q.appendParamToUrl(l,"pushTargetType",E);l=q.appendParamToUrl(l,"schemaType",R);l=q.appendParamToUrl(l,"pushTarget","lapp");u=u+"-"+d.getName();d.getSourceName()||(l=q.appendParamToUrl(l,"errorCode","2301001"))}d=Aa.getUrlParamValue();R=L.getUrlParamUtil().getParamLanguage();d&&(l=q.appendParamToUrl(l,"skin",d));R&&(l=q.appendParamToUrl(l,"language",R));com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(u,
l)}},y=function(d){var l=com.kingdee.bos.qing.publish.model,u=l.PublishSourceType;l=com.kingdee.bos.qing.publish.common;l=new l.PublishContext;l.setBizTag(L.getUrlParamUtil().getUrlParam("dsbId"));l.setCurrentSourceType(u.DASHBOARD);l.setCurrentContentModel(d);l.setScene(u.DASHBOARD);d=Q();l.setParamPathPrefix(d);l.setLappEntranceUrl(d+"/qing/lappEntrance.do");return l},r=function(){var d=Q()+"/qing/publishTo.do",l=new com.kingdee.bos.qing.RemoteImpl;l.setRemoteUrl(d);return l},A=function(d){return 0==
d.page.widgets.length?!1:!0},ia=function(){var d=Aa.getUrlParamValue(),l=L.getUrlParamUtil().getParamLanguage(),u=Q()+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";d&&(u=q.appendParamToUrl(u,"skin",d));l&&(u=q.appendParamToUrl(u,"language",l));return u},J=function(){var d=Aa.getUrlParamValue(),l=L.getUrlParamUtil().getParamLanguage(),u=Q()+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
d&&(u=q.appendParamToUrl(u,"skin",d));l&&(u=q.appendParamToUrl(u,"language",l));return u};this.getCoreRemoteUrl=function(){return Q()+"/qing/core.do"};var ya=function(d){d.getConductor().isDirty()?(G.showConfirmExitDialog(),fa&&G.setClosingListener(fa)):fa?fa(function(){ja.closeCurrentTab()}):ja.closeCurrentTab()},ra=function(){ba||(ba=new T,ba.getJqUi().appendTo($(document.body)));return ba},Q=function(){var d=L.getUrlParamUtil().getParamPathPrefix();return d?d:"/ierp"},va=function(){var d=Q()+"/qing/linkage.do",
l=com.kingdee.bos.qing.integration.LinkageJumper;Z=new com.kingdee.bos.qing.linkage.LinkageManage;Z.initDesigntime(d,l.jump)};this.protectedMethod.getMessageCurtain=ra;this.protectedMethod.hookCloseTab=function(d){d.getConductor().appendToolbarButton(function(){ya(d)},"error_close",a.get("closeTab","\u9000\u51fa"))};this.protectedMethod.hookSyncPublishToDsb=function(d){var l=a.get("SchemeSynced","\u540c\u6b65\u4e0e\u53e6\u5b58"),u=a.get("SyncSchemaToDSB","\u540c\u6b65\u56de\u539f\u4eea\u8868\u677f"),
D=a.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"),E=new P,R=new H(b);R.setText(u);R.setUserObject(function(){w.protectedOverrideDsbSource(d)});E.addItemModel(R);u=new H(g);u.setText(D);u.setUserObject(function(F,pa){w.protectedCreateNewDsb(d,F,pa)});E.addItemModel(u);d.getConductor().appendToolbarMenu(E,"sync_scheme_to_publish",l)};this.protectedMethod.hookSyncTimePushToDsb=function(d){var l=a.get("SchemeSynced","\u540c\u6b65\u4e0e\u53e6\u5b58"),u=a.get("SyncSchemaToDSB",
"\u540c\u6b65\u56de\u539f\u4eea\u8868\u677f"),D=a.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"),E=new P,R=new H(c);R.setText(u);R.setUserObject(function(){w.protectedOverrideDsbSource(d)});E.addItemModel(R);u=new H(g);u.setText(D);u.setUserObject(function(F,pa){w.protectedCreateNewDsb(d,F,pa)});E.addItemModel(u);d.getConductor().appendToolbarMenu(E,"sync_scheme_to_push",l)};this.protectedMethod.hookPublishTo=function(d){var l=com.kingdee.bos.qing.publish.model,u=l.PublishTargetType;
l=com.kingdee.bos.qing.publish.common;var D=l.PublishFactory,E=function(pa){if(A(d.getJsonModel())){var wa=pa.getUserObject();pa=pa.getText().replace("...","");var I=y(d.getJsonModel());I.setWidgetsExecutingTag(d.collectBuiltinWidgetsExecutingTag());wa=D.createPublishToDialog(pa,r(),I,wa,p());wa.setOuterMessageCurtain(ra());wa.showDialog()}else ra().showPrompt(a.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)};l=new P;var R=new H(E);R.setUserObject(u.APPMENU);R.setText(a.get("toAppMenu",
"\u5e94\u7528\u83dc\u5355..."));l.addItemModel(R);R=new H(E);R.setUserObject(u.CENTER);R.setText(a.get("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));l.addItemModel(R);R=new H(E);R.setUserObject(u.CARD_REPOSITORY);R.setText(a.get("toCardRepository","\u5361\u7247\u5e93..."));l.addItemModel(R);E=new H(E);E.setUserObject(u.MOBILE);E.setText(a.get("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));l.addItemModel(E);com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(r());
e();var F=y(d.getJsonModel());l.addSeperator();R=new H(function(){(new com.kingdee.bos.qing.publish.common.PublishManagerDialog(r(),F,p())).showDialog()});R.setUserObject();R.setText(a.get("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");l.addItemModel(R);u=a.get("publishTo","\u53d1\u5e03\u5230");d.getConductor().appendToolbarMenu(l,"publish_to",u)};this.protectedMethod.hookCommunicateTo=function(d){var l=function(F){F=a.get("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");
var pa=y(d.getJsonModel());F=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(F,r(),pa);F.setOuterMessageCurtain(ra());F.showDialog()},u=function(F){A(d.getJsonModel())?(F=com.kingdee.bos.qing.CodeLoader.createSafety(),F.pushJs("yzj-web/qingjs.js"),F.pushJs("yzj-web/imcloud.js"),F.pushJs("yzj-web/imsdkerp.js"),F.pushJs("yzj-web/imShare.js"),F.pushSkinCss("yzj-web","imcloud"),F.pushSkinCss("yzj-web","imsdk"),F.pushSkinCss("yzj-web","imsdkerp"),F.load(function(){})):ra().showPrompt(a.get("noWidgets",
"\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)},D=new P;(new H(function(F){window.beLoadedImCloud?l(F):u(F)})).setText(a.get("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var E=new H(function(F){if(A(d.getJsonModel())){F=F.getText().replace("...","");var pa=y(d.getJsonModel());F=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(F,r(),pa,ia(),J(),t());F.setOuterMessageCurtain(ra());F.showDialog()}else ra().showPrompt(a.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),
2E3)});E.setText(a.get("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));D.addItemModel(E);E=new H(function(F){if(A(d.getJsonModel())){var pa=y(d.getJsonModel()),wa=new com.kingdee.bos.qing.timedpush.LappSchedulePush;F=F.getText().replace("...","");wa.createDialog(F,r(),pa,t(),d)}else ra().showPrompt(a.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)});E.setText(a.get("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");D.addItemModel(E);
var R=y(d.getJsonModel());D.addSeperator();E=new H(function(){var F=new com.kingdee.bos.qing.publish.common.PushManager(t()),pa=com.kingdee.bos.qing.timedpush;F.registerEmailPushPanelConstructor(pa.EmailConfigManagePanel);F.initEmailPushConfig(r(),ia(),J());F.registerLappPushPanelConstructor(pa.LappPushManagePanel);F.initLappPushConfig(function(wa,I,O){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,r(),wa,I,
O)},R);F.showDialog()});E.setUserObject();E.setText(a.get("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");D.addItemModel(E);D=d.getConductor().appendToolbarMenu(D,"btn_communicate",a.get("timedPush","\u5b9a\u65f6\u63a8\u9001"));D.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=l)});return D};this.protectedMethod.setNeedShowLinkage=function(d){N=d}};var Aa,ka,qa,ja,q,a,T,P,H,U,G,h,m,x,n,v,V,B,ma,na,sa,za,Ca;(function(){var w=com.kingdee.bos.qing;Aa=w.SkinUtil;
ka=w.AbstractDashboardDesignerScene;qa=w.AbstractModalDesignerScene;w=com.kingdee.bos.qing.common;q=w.Util;m=w.DomUtil;x=w.DateFormater;w=com.kingdee.bos.qing.common.ui;n=w.TableUtil;Ca=w.CommonIconUtil;w=com.kingdee.bos.qing.framework.common;ja=w.TabbedUiUtil;V=w.AbstractIcons;w=com.kingdee.bos.qing.ui.component;T=w.MessageCurtain;P=w.MenuModel;H=w.MenuItemModel;U=w.RadioButton;h=w.RadioButtonGroup;v=w.SearchBox;B=w.Dialog;ma=w.Label;na=w.ComboBox;sa=w.TextField;za=w.TextArea;w=com.kingdee.bos.qing.framework.common;
a=w.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);w=com.kingdee.bos.qing.integration;G=w.TabStatusHelper})();Ba.Icons=new function(){V.call(this);var w=this.protectedMethod,L;this.setComboIconImpl=function(ba){L=ba};this.protectedInit=function(ba,Z){if(!L)throw Error("Please setComboIconImpl() first.");L.define(Z,"no-data");Z.setStartPosition(0,0);Z.setGap(0);Z.setIconSize(220,220);w.registIcon(0,0,"no-data")}};ha.SQUARE_TYPE=1;ha.LONGER_TYPE=0;ha.EXTREPORT_TYPE=2})();(function(){function K(){ha.call(this);var ka,qa,ja,q,a=!0,T,P=!0;this.setIsSquare=function(H){a=H};this.protectedIsSquare=function(){return a};this.protectedInitDesigner=function(H){var U=la.get("save","\u4fdd\u5b58");H.getConductor().insertToolbarButton(function(h){qa(H)},"btn_save",U,null);U=new C;var G=new ua(function(h){h=new xa;h.setText(la.get("resetConfirmTips","\u60a8\u786e\u5b9a\u8981\u91cd\u7f6e\u5230\u53d1\u5e03\u6700\u521d\u59cb\u7684\u72b6\u6001\uff0c\u5e76\u9000\u51fa\u5417\uff1f"));
h.setConfirmedListener(function(x){x&&ja(H)});var m=q.getJqUi();h.show(m)});G.setText(la.get("resetAndBack","\u91cd\u7f6e\u5e76\u8fd4\u56de"));U.addItemModel(G);q=H.getConductor().insertToolbarMenu(U,"btn_reset",la.get("reset","\u91cd\u7f6e"),null);H.setDesignerOperationJudger(P?null:T,P?T:null);if(U=window.com.kingdee.bos.qing.AnalysisSceneOuterApi)U.inside.setDirtyChecker(function(){return!1}),U.inside.setBeforeClosing(function(){return Aa.setTabStatus(!1)})};this.protectedLoading=function(H,U){ka(H,
U)};this.setSchemaLoader=function(H){ka=H};this.setSchemaSaver=function(H){qa=H};this.setSchemaReseter=function(H){ja=H};this.setDesignerOperationJudger=function(H){T=H};this.setSquareOrLonger=function(H){P=H};this.protectedIsSquare=function(){return P}}"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.exhibitioner&&(com.kingdee.bos.qing.scene.common.exhibitioner={});var X=com.kingdee.bos.qing.scene.common.exhibitioner;X.AbstractDashboardExhibitionerSceneImpl=function(){M.call(this);var ka=this,qa=this.protectedMethod,ja,q,a;this.protectedGetRemoteUrl=function(){throw Error("override me");};this.getCoreRemoteUrl=function(){throw Error("override me");
};this.protectedLoading=function(h,m,x){throw Error("override me");};this.squareAnalysisHandler=function(h,m,x){throw Error("override me");};this.protectedImportMoreCode=function(h){h.pushJs("biz-common/qing-biz-common.js");h.pushSkinCss("biz-common","biz-common");h.pushSkinJs("biz-common","skin");h.pushI18n("biz-common","biz-common");h.pushJs("qhf/qing-qhf.js");h.pushJs("common/qing-schedule.js");h.pushJs("schema-manage/schema-manage-initialize.js");h.pushJs("schema-manage/schema-manage-ui.js");
h.pushJs("publish/qing-publish.js");h.pushSkinJs("scene","skin");h.pushI18n("scene","scene");h.pushI18n("dashboard","dsb-integration");h.pushSkinJs("dashboard","skin-dsb-integration");h.pushJs("dashboard/dsb-integration.js");h.pushSkinCss("dashboard","dsb-integration");h.pushSkinJs("map-designer","integration-skin");h.pushJs("map-designer/map-integration.js");h.pushSkinCss("map-designer","map-integration");h.pushI18n("map-designer","map-integration");h.pushSkinJs("linkage","skin");h.pushJs("linkage/linkage.js");
h.pushSkinCss("linkage","linkage")};this.protectedCustomInitEnv=function(){var h=com.kingdee.bos.qing.map.common.Integration,m=W.decodeParamFromUrl(location.search,"path");m=m?m:"/ierp";h.setRemoteUrl(m+"/qing/mapManage.do");var x=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(V,B){x.setParamPathPrefix(m);x.showDialog(V,B)});h=qa.getUrlParamUtil().getUrlParam("publishTargetType");6!=h&&T();var n=com.kingdee.bos.qing.behavior.BehaviorManager;
n.interestInBehaviorEntrance(n.getEntrance(n.ENTRANCE_PUBLISH_DASHBOARD,h));if(5!=h){h=qa.getUrlParamUtil().getUrlParam("publishId");var v=W.createUUID();n.initAccessRecordParams(h,v,n.SourceType.QING_PUBLISH,n.AppType.QING);n.setRefuseOperationType([n.OperationType.QING_EXPORT,n.OperationType.QING_PRINT]);n.recordResourceOperation(n.OperationType.QING_VISIT);window.addEventListener("unload",function(){n.recordResourceOperation(n.OperationType.QING_EXIT)})}com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};
var T=function(){var h=qa.getUrlParamUtil().getParamPathPrefix();h=(h?h:"/ierp")+"/qing/linkage.do";var m=com.kingdee.bos.qing.integration.LinkageJumper;q=new com.kingdee.bos.qing.linkage.LinkageManage;q.initDesigntime(h,m.jump)};this.protectedRegisterImplements=function(h){var m=qa.getUrlParamUtil().getParamPathPrefix(),x=new com.kingdee.bos.qing.scene.common.square.exhibition.DsbIntegrationScene;x.setFacade(function(n,v){return new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(ka.getRemoteImpl(),
n,v)});x.setParamPathPrefix(m);x.setMessageCurtain(U());x.setCoreRemoteUrl(ka.getCoreRemoteUrl());x.setResetSquare(P);x.setDesignerSceneCreator(function(){return new K});h.registerSquareSceneCreator(function(n,v){x.createSquareDesignerScene(v)});h.registerBuiltinVisualWidgetEditableConfirmerParser(function(n){var v=n.operation?n.operation:{};n=n.scene;var V=com.kingdee.bos.qing.publish.model.OperType,B=v[V.SQUARE];v=v[V.LONGER];return"square"==n?new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(B|
v):"longer"==n?new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(v):null});h.registerSquareDesignerCreator(function(n,v,V,B,ma,na){q&&q.setCurrentLinkageTag(B);x.createSquareDesigner(n,v,V,B,ma,na)});h.registerSquareAnalysisHandler(ka.squareAnalysisHandler);h.registerPictrueLoader(function(n,v,V){x.loadImage(n,v,V)});h.registerLongerSceneCreator(function(n,v){x.createLongerDesignerScene(v)});h.registerLongerDesignerCreator(function(n,v,V,B,ma,na){q&&q.setCurrentLinkageTag(B);a=
qa.getUrlParamUtil().getUrlParam("timedPush");x.createLongerDesigner(n,v,V,B,ma,na,a)});m=new com.kingdee.bos.qing.dashboard.qingreport.QingReportExecutor;m.setDsbRemoteImpl(ka.getRemoteImpl());h.registerQingReportExecutor(m)};var P=function(h,m,x){(new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(ka.getRemoteImpl(),function(n){U().showSuccess(la.get("resetRefContentSuccess","\u91cd\u7f6e\u5f15\u7528\u6a21\u578b\u5185\u5bb9\u5230\u53d1\u5e03\u72b6\u6001\u6210\u529f\u3002"));x(n.model)},H)).squareResetAndGetPubSchema(h)},
H=function(h,m){return 900001==h?(U().showError(la.get("failToLoadRefContent","\u52a0\u8f7d\u5f15\u7528\u5185\u5bb9\u5931\u8d25\u3002")),!0):900004==h?(U().showError(la.get("dsbContentParseError","\u4eea\u8868\u677f\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),!0):900005==h?(U().showError(la.get("refContentParseError","\u5f15\u7528\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),!0):301201==h?(U().showError(la.get("extractDataFailToRefresh","\u51c6\u5907\u6570\u636e\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u51fa\u6570\u636e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002")),
!0):!1},U=function(){ja||(ja=new z,ja.getJqUi().appendTo($(document.body)));return ja};this.protectedLoadDashboardInfo=function(h){var m=qa.getUrlParamUtil().getUrlParam("publishId");m&&(new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(ka.getRemoteImpl(),function(x){var n=W.decodeParamFromUrl(location.search,"path"),v=qa.getUrlParamUtil().getUrlParam("publishTargetType"),V=qa.getUrlParamUtil().getUrlParam("skin");n=W.appendParamToUrl((n?n:"/ierp")+"/qing/publishEntrance.do","publishId",m);n=W.appendParamToUrl(n,
"publishTargetType",v);n=W.appendParamToUrl(n,"skin",V);n=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(n);G(h,n,x)},function(){})).getPublishUsername(m)};var G=function(h,m,x){var n=new z;n.getJqUi().appendTo(h[0].parentNode.parentNode.parentNode);var v=$("<div>");v.addClass("dsb-desc-publish-user");v.text(la.get("publisher","\u53d1\u5e03\u4eba\uff1a")+x);x=$("<div>");var V=$("<div>");V.addClass("dsb-desc-url-info");V.css({display:"inline-block","vertical-align":"middle"});V.text(la.get("dsbUrlInformation",
"\u4eea\u8868\u677f\u94fe\u63a5"));V.appendTo(x);V=$("<div>");V.addClass("dsb-desc-url");V.css("word-break","break-all");V.text(m);var B=$("<div>");B.addClass("dsb-desc-url-copyIcon");X.Icons.background(B,"copy_icon");B.css({"margin-left":"13px",width:"16px",height:"16px",display:"inline-block","vertical-align":"middle"});B.attr("title",la.get("copy","\u590d\u5236"));B.appendTo(x);B.on("mouseover",function(ma){X.Icons.background(B,"copy_icon_hover");B.css("vertical-align","middle")});B.on("mouseout",
function(ma){X.Icons.background(B,"copy_icon");B.css("vertical-align","middle")});B.on("click",function(ma){try{var na=document.createElement("input");document.body.appendChild(na);na.setAttribute("value",m);na.select();document.execCommand("copy");n.showSuccess(la.get("hasCopied","\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f"));document.body.removeChild(na)}catch(sa){n.showError(la.get("copyfailed","\u590d\u5236\u5931\u8d25"))}});v.appendTo(h);x.appendTo(h);V.appendTo(h)};this.protectedCreateVisualWidgetEditableConfirmer=
function(h,m){var x=com.kingdee.bos.qing.publish.model.OperType,n=new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(m[x.SQUARE]|m[x.LONGER]);m=new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(m[x.SQUARE_LONGER]);n=new com.kingdee.bos.qing.dsb.VisualWidgetEditableConfirmer(n,m);h.setVisualWidgetEditableConfirmer(n)}};var M,ha,W,la,z,C,ua,xa,Ba,Aa;(function(){var ka=com.kingdee.bos.qing;M=ka.AbstractDashboardExhibitionScene;ha=ka.AbstractModalDesignerScene;ka=
com.kingdee.bos.qing.common;W=ka.Util;ka=com.kingdee.bos.qing.framework.common;la=ka.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);Ba=ka.AbstractIcons;ka=com.kingdee.bos.qing.ui.component;z=ka.MessageCurtain;C=ka.MenuModel;ua=ka.MenuItemModel;xa=ka.SimpleConfirmer;ka=com.kingdee.bos.qing.integration;Aa=ka.TabStatusHelper})();X.Icons=new function(){Ba.call(this);var ka=this.protectedMethod,qa;this.setComboIconImpl=function(ja){qa=ja};this.protectedInit=function(ja,q){if(!qa)throw Error("Please setComboIconImpl() first.");
qa.define(q,"tm");q.setGap(1);q.setStartPosition(1,1);q.setIconSize(16,16);ka.registIcon(0,10,"copy_icon_hover");ka.registIcon(1,10,"copy_icon")}}})();(function(){function K(){ua.call(this);var a=this.protectedMethod,T,P=this.protectedImportMoreCode;this.protectedImportMoreCode=function(h){P(h);a.importLinkage(h);a.importForSchema(h);a.importForPublish(h)};var H=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(h){a.setModuleWithLonger(!0,!0);a.setModuleWithSquare(!1,!1);H(h);T=new Ba(null);h()};this.protectedLoadingLonger=function(h,m,x){a.loadMeta(h,function(n){m.prepareMeta(n);n=U();var v=com.kingdee.bos.qing.schemamanage.SchemaManage,
V=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER,B=a.getUrlParamUtil().getParamTag();v=new v(B,V);v.setReloadMetaFun(function(ma){a.reloadMeta(function(na){m.prepareMeta(na);ma&&ma()})});v.initialize(n,m,x,null,!0)});(new ka).getJqUi().appendTo($(document.body))};this.protectedInitDesignerForLonger=function(h){h.setDesignerOperationJudger(T,null);var m=a.getMLS("refresh","\u6570\u636e\u66f4\u65b0");h.getConductor().appendToolbarButton(function(){G(h)},"btn_reset",m);a.hookCloseTab(h);
a.hookSetCurrentTabStatus(h)};this.protectedGetRemoteUrl=function(){var h=a.getUrlParamUtil().getParamPathPrefix();return(h?h:"/ierp")+"/qing/qhfCore.do"};var U=function(){var h=a.getUrlParamUtil().getParamPathPrefix();h=(h?h:"/ierp")+"/qing/qhf.do";var m=a.getUrlParamUtil().getParamTag(),x=new ha;x.setRemoteUrl(h);x.setTag(m);return x},G=function(h){a.reloadMeta(function(m){var x=h.getJsonModelBook();h.prepareMeta(m);h.setJsonModelBook(x)})}}function X(){ua.call(this);var a=this.protectedMethod,
T=this.protectedImportMoreCode;this.protectedImportMoreCode=function(G){T(G);a.importLinkage(G);a.importForSchema(G);a.importForPublish(G);a.importForMap(G)};var P=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(G){a.setModuleWithLonger(!1,!1);a.setModuleWithSquare(!0,!0);P(G);var h=com.kingdee.bos.qing.map.common.Integration,m=a.getUrlParamUtil().getParamPathPrefix();h.setRemoteUrl(m+"/qing/mapManage.do");var x=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(n,
v){x.setParamPathPrefix(m);x.showDialog(n,v)});G()};this.protectedLoadingSquare=function(G,h,m){a.loadMeta(G,function(x){h.prepareMeta(x);x=H();var n=com.kingdee.bos.qing.schemamanage.SchemaManage,v=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE,V=a.getUrlParamUtil().getParamTag();n=new n(V,v);n.setReloadMetaFun(function(B){a.reloadMeta(function(ma){h.prepareMeta(ma);B&&B()})});n.initialize(x,h,m,null,!0)});(new ka).getJqUi().appendTo($(document.body))};this.protectedInitDesignerForSquare=
function(G){var h=a.getMLS("refresh","\u6570\u636e\u66f4\u65b0");G.getConductor().appendToolbarButton(function(){U(G)},"btn_reset",h);a.hookCloseTab(G);a.hookSetCurrentTabStatus(G);a.initDesigntimeLinkage()};this.protectedGetRemoteUrl=function(){var G=a.getUrlParamUtil().getParamPathPrefix();return(G?G:"/ierp")+"/qing/qhfCore.do"};var H=function(){var G=a.getUrlParamUtil().getParamPathPrefix();G=(G?G:"/ierp")+"/qing/qhf.do";var h=a.getUrlParamUtil().getParamTag(),m=new ha;m.setRemoteUrl(G);m.setTag(h);
return m},U=function(G){a.reloadMeta(function(h){var m=G.getJsonModelBook();G.prepareMeta(h);G.setJsonModelBook(m)})}}"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 M=com.kingdee.bos.qing.scene;M.QHFSceneFactory=new function(){var a={};this.createScene=function(T){if(T=
a[T])return new T;throw Error("unknown sSceneType");};this.register=function(T,P){a[T]=P}};var ha,W,la,z,C,ua,xa,Ba,Aa,ka,qa,ja,q;(function(){var a=com.kingdee.bos.qing;ha=a.RemoteImpl;a=com.kingdee.bos.qing.scene.common.exhibitioner;C=a.AbstractDashboardExhibitionerSceneImpl;a=com.kingdee.bos.qing.common;W=a.Util;a=com.kingdee.bos.qing.framework.common;la=a.MultilanguageManager.createPackageAccessor(M);z=a.TabbedUiUtil;a=com.kingdee.bos.qing.scene.common.designer;ua=a.AbstractDesignerSceneImpl;xa=
a.AbstractDashboardDesignerSceneImpl;Ba=a.LongerDesignerOperationJudgerModel;a=com.kingdee.bos.qing.qhf;Aa=a.QHFFacade;ka=a.QHFInfoIcon;qa=a.QHFExporter;a=com.kingdee.bos.qing.ui.component;ja=a.Dialog;q=a.MessageCurtain})();M.QHFSceneFactory.register(qa.SCENE_TYPE_SUBJECT_LONGER,K);M.QHFSceneFactory.register(qa.SCENE_TYPE_PUBLISH_SUBJECT_LONGER,K);M.QHFSceneFactory.register(qa.SCENE_TYPE_PUBLISH_EMBEDDED_LONGER,K);M.QHFSceneFactory.register(qa.SCENE_TYPE_SUBJECT_SQUARE,X);M.QHFSceneFactory.register(qa.SCENE_TYPE_PUBLISH_SUBJECT_SQUARE,
X);M.QHFSceneFactory.register(qa.SCENE_TYPE_PUBLISH_EMBEDDED_SQUARE,X);M.QHFSceneFactory.register(qa.SCENE_TYPE_EMBEDDED_LONGER_SQUARE,function(){ua.call(this);var a=this.protectedMethod,T=!1,P,H=this.protectedImportMoreCode;this.protectedImportMoreCode=function(h){H(h);a.importLinkage(h);a.importForSchema(h);a.importForPublish(h);a.importForMap(h)};var U=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(h){a.setModuleWithLonger(!0,!0);a.setModuleWithSquare(!0,!1);U(h);ja.setFullScreenPadding(0,
45,0,0);var m=com.kingdee.bos.qing.map.common.Integration,x=a.getUrlParamUtil().getParamPathPrefix();m.setRemoteUrl(x+"/qing/mapManage.do");var n=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(v,V){n.setParamPathPrefix(x);n.showDialog(v,V)});P=new Ba(null);h()};this.protectedInitDesignerForLonger=function(h){h.setDesignerOperationJudger(P,null);a.hookCloseTab(h);a.hookSetCurrentTabStatus(h)};this.protectedInitDesignerForSquare=
function(h){a.hookCloseTab(h);a.hookSetCurrentTabStatus(h);a.initDesigntimeLinkage()};this.protectedLoadingLonger=function(h,m,x){a.loadMeta(h,function(n){m.prepareMeta(n);n=G();var v=com.kingdee.bos.qing.schemamanage.SchemaManage,V=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER,B=a.getUrlParamUtil().getParamTag();v=new v(B,V);v.setReloadMetaFun(function(ma){a.reloadMeta(function(na){m.prepareMeta(na);ma&&ma()})});v.initialize(n,m,x,null,!0)});(new ka).getJqUi().appendTo($(document.body))};
this.protectedLoadingSquare=function(h,m,x){a.loadMeta(h,function(n){m.prepareMeta(n);n=G();var v=com.kingdee.bos.qing.schemamanage.SchemaManage,V=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE,B=a.getUrlParamUtil().getParamTag();v=new v(B,V);v.setReloadMetaFun(function(ma){a.reloadMeta(function(na){m.prepareMeta(na);ma&&ma()})});v.initialize(n,m,x,null,!0)});(new ka).getJqUi().appendTo($(document.body))};this.protectedIntoTab=function(h,m){T&&!m&&(h&&h.reExecute(),T=
!1)};var G=function(){var h=a.getUrlParamUtil().getParamPathPrefix();h=(h?h:"/ierp")+"/qing/qhf.do";var m=a.getUrlParamUtil().getParamTag(),x=new ha;x.setRemoteUrl(h);x.setTag(m);return x}});M.QHFSceneFactory.register(qa.SCENE_TYPE_DSB_DESIGNER,function(){xa.call(this);var a=this.protectedMethod;this.protectedCreateFacade=function(H,U,G){return new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(H,U,G)};this.protectedLoading=function(H,U,G){(new Aa(H,function(h){h&&U.setJsonModel(h,function(m){m.isError()&&
a.getMessageCurtain().showError(la.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5931\u8d25\u3002"))});G(!0)},function(h,m){return 1030001==h?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(h,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(m))),!0):!1})).loadModel();(new ka).getJqUi().appendTo($(document.body))};this.protectedGetRemoteUrl=function(){return P()+"/qing/qhfDsb.do"};this.protectedGetDashboardUniqueId=function(){return a.getUrlParamUtil().getUrlParam("tag")};
this.getCoreRemoteUrl=function(){return P()+"/qing/qhfCore.do"};var T=this.protectedInitDesigner;this.protectedInitDesigner=function(H){T(H);a.hookCloseTab(H)};this.protectedSaveModel=function(H){a.getMessageCurtain().showPrompt(la.get("QHFdsbNotSupportSave","\u5bfc\u5165\u7684\u5168\u4fe1\u606f\u6a21\u677f\u4e0d\u652f\u6301\u4fdd\u5b58\u3002"),2E3)};var P=function(){var H=a.getUrlParamUtil().getParamPathPrefix();return H?H:"/ierp"}});M.QHFSceneFactory.register(qa.SCENE_TYPE_PUBLISH_DSB,function(){C.call(this);
var a=this.protectedMethod,T;this.getCoreRemoteUrl=function(){return P()+"/qing/qhfCore.do"};this.protectedGetRemoteUrl=function(){return P()+"/qing/qhfRuntimeDsb.do"};this.protectedGetDashboardUniqueId=function(){return a.getUrlParamUtil().getUrlParam("tag")};this.squareAnalysisHandler=function(G,h,m){var x=com.kingdee.bos.qing.SkinUtil.getUrlParamValue(),n=P()+"/qing/exhibitionQHFPublishedDsbAnalysisEntrance.do";n=W.appendParamToUrl(n,"dashboardUniqueId",a.getUrlParamUtil().getUrlParam("tag"));
n=W.appendParamToUrl(n,"tag",m);n=W.appendParamToUrl(n,"ref",JSON.stringify(h));n=W.appendParamToUrl(n,"path",P());x&&(n=W.appendParamToUrl(n,"skin",x));G=la.get("dataAnalysis","\u6570\u636e\u5206\u6790")+(G?"-"+G:"");z.openNewTab(G,n)};this.protectedLoading=function(G,h,m){(new com.kingdee.bos.qing.dashboard.RuntimeDsbFacade(G,function(x){x&&h.setJsonModel(x,function(n){n.isError()&&U().showError(la.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5931\u8d25\u3002"))});m(!0)},H)).loadPublishedDsb();
(new ka).getJqUi().appendTo($(document.body))};var P=function(){var G=a.getUrlParamUtil().getParamPathPrefix();return G?G:"/ierp"},H=function(G,h){return 900001==G?(U().showError(la.get("failToLoadRefContent","\u52a0\u8f7d\u5f15\u7528\u5185\u5bb9\u5931\u8d25\u3002")),!0):900004==G?(U().showError(la.get("dsbContentParseError","\u4eea\u8868\u677f\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),!0):900005==G?(U().showError(la.get("refContentParseError","\u5f15\u7528\u6a21\u578b\u5185\u5bb9\u8f6c\u6362\u5931\u8d25\u3002")),
!0):301201==G?(U().showError(la.get("extractDataFailToRefresh","\u51c6\u5907\u6570\u636e\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u51fa\u6570\u636e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002")),!0):!1},U=function(){T||(T=new q,T.getJqUi().appendTo($(document.body)));return T}})})();
//qingVersionTag: 20250807