(function(){function H(k,v,r,w){C.call(this,k,v,r,w);var m=this.protectedMethod;this.getMetricReferenceMap=function(B,y){m.remote("getMetricReferenceMap",{refToId:y,workbenchId:B})}}function F(){A.call(this);var k;this.getRemoteUrl=function(){return k};this.setRemoteUrl=function(v){k=v}}var c,D,C,A,t;(function(){var k=com.kingdee.bos.qing.workbench.common;c=k.AbstractMetricHelper;D=k.MetricIntegration;k=com.kingdee.bos.qing.framework.common;A=k.AbstractRemoteCall;C=k.AbstractFacade;k=com.kingdee.bos.qing.common;
t=k.Util})();D.registerImpl(new function(){c.call(this);this.getMetricReferenceMap=function(k,v,r){(new H(z(),function(w){r(w)})).getMetricReferenceMap(k,v)};this.getMetricSquareEntrance=function(k){var v=t.decodeParamFromUrl(window.location.search,"path"),r=t.decodeParamFromUrl(window.location.search,"pageId");k=t.appendParamToUrl((v?v:"/ierp")+"/qing/metricSquareEntrance.do","metricLibId",k);return k=t.appendParamToUrl(k,"pageId",r)}});var z=function(){var k=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,
"path");k=(k?k:"/ierp")+"/qing/workbench.do";var v=new F;v.setRemoteUrl(k);return v}})();(function(){function H(){com.kingdee.bos.qing.AbstractSquareDivScene.call(this);var m=this.protectedMethod,B,y,E;this.setSchemaContent=function(u){B=u};this.setSchemaLoadCallback=function(u){E=u};this.createChartInfoUi=function(u){return m.createChartInfoUi(u)};this.createInsightUi=function(u){return m.createInsightUi(u)};this.createInsightContentMaker=function(){return m.createInsightContentMaker()};this.redraw=function(){m.redraw()};this.changeChartType=function(u){return m.changeChartType(u)};
this.protectedLoadingImpl=function(u){u=u(B);E&&E(u)};this.protectedShowErrorImpl=function(u,x,I,J){y||(y=new com.kingdee.bos.qing.scene.common.square.exhibition.CardErrorUi(u),y.setShowDetail(!0));y.show(x,I,J);return!0};this.protectedInitMode=function(){}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.scene&&
(com.kingdee.bos.qing.scene={});var F=com.kingdee.bos.qing.scene;F.WorkbenchScene=function(){C.call(this);var m=this,B=[];this.protectedGetRemoteUrl=function(){return x()+"/qing/workbench.do"};this.protectedGetPublishEntranceUrl=function(d){var f=x()+"/qing/publishEntrance.do";f=c.appendParamToUrl(f,"publishId",d);d=m.getUrlParam("pageId");f=c.appendParamToUrl(f,"pageId",d);f=c.appendParamToUrl(f,"openFrom","qing_workbench");(d=r.getUrlParamValue())&&(f=c.appendParamToUrl(f,"skin",d));(d=w.getUrlParamValue("language"))&&
(f=c.appendParamToUrl(f,"language",d));return f=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(f)};this.protectedCustomInitEnv=function(){z.setFunMessageBoxPainter(J);z.setWorkbenchRemoteUrl(x()+"/qing/workbench.do");z.setCoreRemoteUrl(y());z.setFunGetDsbIFrameUrl(E);z.setFunGetReportIFrameUrl(u);z.setFunGetOpenAnalysisUrl(I);z.setLinkageRemoteURL(x()+"/qing/linkage.do");com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser();K();L();var d=com.kingdee.bos.qing.behavior.BehaviorManager;
d.interestInBehaviorEntrance(d.ENTRANCE_WORKBENCH)};var y=function(){return x()+"/qing/core.do"},E=function(d){var f=x()+"/qing/publishEntrance.do";f=c.appendParamToUrl(f,"publishId",d);d=m.getUrlParam("pageId");f=c.appendParamToUrl(f,"pageId",d);f=c.appendParamToUrl(f,"openFrom","qing_workbench");(d=r.getUrlParamValue())&&(f=c.appendParamToUrl(f,"skin",d));(d=w.getUrlParamValue("language"))&&(f=c.appendParamToUrl(f,"language",d));return f=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(f)},
u=function(d,f,n,q,h){var a=x()+"/qing/extreportEntrance.do";a=c.appendParamToUrl(a,"publishId",d);a=c.appendParamToUrl(a,"exhibitionScene",f);a=c.appendParamToUrl(a,"publishTargetType",n);a=c.appendParamToUrl(a,"extreportWidgetId",q);a=c.appendParamToUrl(a,"extReportName",h);a=c.appendParamToUrl(a,"isFullScreen",!1);a=c.appendParamToUrl(a,"schemaBiztagId",q);(d=c.decodeParamFromUrl(location.search,"pageId"))&&(a=c.appendParamToUrl(a,"pageId",d));(d=r.getUrlParamValue())&&(a=c.appendParamToUrl(a,
"skin",d));(d=w.getUrlParamValue("language"))&&(a=c.appendParamToUrl(a,"language",d));return a=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(a)},x=function(){var d=c.decodeParamFromUrl(location.search,"path");return d?d:"/ierp"},I=function(d,f,n,q,h){var a=x()+"/qing/workbenchWidgetAnalysisEntrance.do";a=c.appendParamToUrl(a,"widgetBizId",f);a=c.appendParamToUrl(a,"schemaAdditionalTag",h);a=c.appendParamToUrl(a,"workbenchId",n);a=c.appendParamToUrl(a,"tag",d);a=c.appendParamToUrl(a,"refType",
q);(d=c.decodeParamFromUrl(location.search,"pageId"))&&(a=c.appendParamToUrl(a,"pageId",d));(d=r.getUrlParamValue())&&(a=c.appendParamToUrl(a,"skin",d));(d=w.getUrlParamValue("language"))&&(a=c.appendParamToUrl(a,"language",d));a=c.appendParamToUrl(a,"openFrom","qing_workbench");return a=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(a)},J=function(d){A.setCallback(function(){var f=c.decodeParamFromUrl(window.location.search,"path");f=f?f:"/ierp";com.kingdee.bos.qing.message.common.Integration.setRemoteUrl(f+
"/qing/messageManage.do");M(f);var n=new com.kingdee.bos.qing.message.ui.Main;n.setFunOpenMessageDialog(function(){n.setViewSize(null,5,10,null)});n.setMessageWidth(80);f=n.getJqUi(25);D.layoutCtrlWithLRTB(f,null,-5,null,10,null,null);f.appendTo(d)});A.loadSkinCss("message","message");A.loadSkinJs("message","skin");A.loadJs("message/message-manage-ui.js");A.loadI18n("message","message")},M=function(d){var f=com.kingdee.bos.qing.message.common.Integration;f.setImportJSCodeForManager(function(){var q=
com.kingdee.bos.qing.CodeLoader;q.setCallback(function(){var h=com.kingdee.bos.qing.theme.message.panel.common.Integration;h.setFunPublishRemoteImpl(function(){var a=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;a.setRemoteUrl(d+"/qing/publishTo.do");return a});h.setFunQingCenterAndMenuEntrance(function(a,b,e,p){b=r.getUrlParamValue();var g=d+"/qing/publishEntrance.do";g=c.appendParamToUrl(g,"publishId",a);"extreport"==p?(g=c.appendParamToUrl(g,"appID","qing_rpt"),b&&(g=c.appendParamToUrl(g,
"skin",b)),t.openNewTabInAppId(e,g,g,t.QING_RPT)):(b&&(g=c.appendParamToUrl(g,"skin",b)),t.openNewTabInAppId(e,g,g,t.QING_ANALYSIS))});h.setResourceRemoteUrl(d+"/qing/resource.do");h.setDataModelEntrance(function(a,b,e){var p=r.getUrlParamValue();b=k.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+b;var g=d+"/qing/dataModelingEntrance.do";g=c.appendParamToUrl(g,"themeID",a);g=c.appendParamToUrl(g,"isPreset",e);p&&(g=c.appendParamToUrl(g,"skin",p));t.openNewTabInAppId(b,g,g,t.QING_ANALYSIS)});h.setFunPublishContext(function(){var a=
new com.kingdee.bos.qing.publish.common.PublishContext;a.setParamPathPrefix(d);a.setLappEntranceUrl(d+"/qing/lappEntrance.do");return a});h.setFunPublishedEmailLoginViewUrl(function(){var a=r.getUrlParamValue(),b=w.getUrlParamValue("language"),e=d+"/qing/publishedEmailEntrance.do?publishId=(publishId)";a&&(e=c.appendParamToUrl(e,"skin",a));b&&(e=c.appendParamToUrl(e,"language",b));return e});h.setFunPublishedEmailAnonymousViewUrl(function(){var a=r.getUrlParamValue(),b=w.getUrlParamValue("language"),
e=d+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";a&&(e=c.appendParamToUrl(e,"skin",a));b&&(e=c.appendParamToUrl(e,"language",b));return e});h.setFunPublishContentEditEntrance(function(){return function(a,b,e){var p=com.kingdee.bos.qing.publish.model.PublishTargetType;if(e&&p.MOBILE==e){p=a.getPublishId();var g=a.getId()}else p=a.getId();var l=r.getUrlParamValue(),G=w.getUrlParamValue("language");
e=d+"/qing/publishContentEditEntrance.do";e=c.appendParamToUrl(e,"skin",l);e=c.appendParamToUrl(e,"language",G);e=c.appendParamToUrl(e,"publishId",p);g&&(e=c.appendParamToUrl(e,"lappId",g));g=e;b&&(p="editPublishedContent-"+p,l=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,l.putSubscribe(p,b),e=c.appendParamToUrl(e,"subscribeKey",p),e=c.appendParamToUrl(e,"currentPageClientId",l.getCurrentPageClientId()));b=com.kingdee.bos.qing.framework.common.TabbedUiUtil;b.openNewTabInAppId(k.get("editPublishedContent",
"\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),e,g,b.QING_ANALYSIS)}});h.setFunTimedPushContentEditEntrance(function(){return function(a){var b=d+"/qing/timedPushContentEditEntrance.do",e=k.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(a instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var p=a.getId(),g=a.getPublishSourceType();l=a.getSchemaSourceType();b=c.appendParamToUrl(b,"configId",p);b=c.appendParamToUrl(b,"publishSourceType",g);b=c.appendParamToUrl(b,
"schemaType",l);b=c.appendParamToUrl(b,"pushTarget","email");e=e+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=c.appendParamToUrl(b,"errorCode","2301001"))}else{p=a.getId();g=a.getPushTargetType();var l=a.getSchemaType();b=c.appendParamToUrl(b,"configId",p);b=c.appendParamToUrl(b,"pushTargetType",g);b=c.appendParamToUrl(b,"schemaType",l);b=c.appendParamToUrl(b,"pushTarget","lapp");e=e+"-"+a.getName();a.getSourceName()||(b=c.appendParamToUrl(b,"errorCode","2301001"))}a=r.getUrlParamValue();
l=w.getUrlParamValue("language");a&&(b=c.appendParamToUrl(b,"skin",a));l&&(b=c.appendParamToUrl(b,"language",l));a=com.kingdee.bos.qing.framework.common.TabbedUiUtil;a.openNewTabInAppId(e,b,b,a.QING_ANALYSIS)}});h=com.kingdee.bos.qing.modeler.message.panel.common.Integration;h.setFunOpenModelSetPage(function(a,b){var e=r.getUrlParamValue(),p=k.get("modelSet","\u6a21\u578b\u96c6-")+b,g=d+"/qing_modeler/modelSetMainPage.do";g=c.appendParamToUrl(g,"modelSetId",a);g=c.appendParamToUrl(g,"modelSetName",
b);g=c.appendParamToUrl(g,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());e&&(g=c.appendParamToUrl(g,"skin",e));t.openNewTabInAppId(p,g,g,t.QING_MODELER)});h.setFunOpenModelDesign(function(a,b,e,p,g){var l=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,G=r.getUrlParamValue();g=(g=l.getModelTypeText(g))?g+"-"+e:e;l=d+"/qing_modeler/deployDesignerEntrance.do";l=c.appendParamToUrl(l,"modelSetId",a);l=c.appendParamToUrl(l,"modelId",b);l=c.appendParamToUrl(l,
"modelName",e);l=c.appendParamToUrl(l,"modelDeployId",p);G&&(l=c.appendParamToUrl(l,"skin",G));t.openNewTabInAppId(g,l,l,t.QING_MODELER)})});q.loadSkinCss("message","messagepanel");q.loadSkinJs("message","skin");q.loadJs("message/message-content-panel-management.js");q.loadI18n("message","messagepanel");q.loadSkinCss("qingmodeler/message","message-modeler-panel");q.loadSkinJs("qingmodeler/message","skin");q.loadJs("qingmodeler/message/message-content-panel-management.js");q.loadI18n("qingmodeler/message",
"message-modeler-panel")});var n=c.decodeParamFromUrl(location.search,"appID");f.setAppId(n)},K=function(){var d=new v;d.setDelay(100);d.setCallback(function(){for(var n=0;n<B.length;n++)(0,B[n])()});d.observe();com.kingdee.bos.qing.assistant.common.Integration.setSquareExhibitionLoader(N);com.kingdee.bos.qing.assistant.common.Integration.setOpenDesigner(O);com.kingdee.bos.qing.assistant.common.Integration.setRemoteUrl(x()+"/qing/gpt.do");d=com.kingdee.bos.qing.Seer.getUrlParamValue("showAssistantEntrance");
var f=com.kingdee.bos.qing.Seer.getUrlParamValue("showAssistantPanel");com.kingdee.bos.qing.assistant.common.Integration.setShowAssistantEntrance("true"==d);com.kingdee.bos.qing.assistant.common.Integration.setShowAssistantPanel("true"==f)},N=function(d,f,n,q,h){var a=y(),b=new H;b.setRemoteUrl(a);b.setRemoteTag(d);b.setSchemaContent(n);b.setSchemaLoadCallback(function(e){q(e)});b.setExecutedListener(function(e){h(e,b.createChartInfoUi,b.showChartInfo,b.createInsightUi,b.createInsightContentMaker,
b.redraw,b.changeChartType)});B.push(b.redraw);b.show(f)},O=function(d,f,n,q){var h=new com.kingdee.bos.qing.workbench.DesignerScene,a=function(b){h.hide();b&&q(b)};h.setIsSquare(!0);h.setRemoteUrl(y());h.setRemoteTag(d);h.setTag(d);h.setSquareOrLonger(!0);h.setClosable(!0);h.hideResetBtn();h.setSchemaLoader(function(b,e){b.setJsonModelBook(n);e(!0)});h.setSchemaSaver(function(b){b=b.getJsonModelBook();a(b)});h.setSchemaReseter(function(b){a(null)});h.show(f,function(){a(null)})},L=function(){var d=
com.kingdee.bos.qing.map.common.Integration,f=x();d.setRemoteUrl(f+"/qing/mapManage.do");var n=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(q,h){n.setParamPathPrefix(f);n.showDialog(q,h)})}};var c,D,C,A,t,z,k,v,r,w;(function(){var m=com.kingdee.bos.qing;A=m.CodeLoader;r=m.SkinUtil;w=m.Seer;m=com.kingdee.bos.qing.common;c=m.Util;D=m.DomUtil;m=com.kingdee.bos.qing.framework.common;t=m.TabbedUiUtil;k=m.MultilanguageManager.createPackageAccessor(F);
v=m.WindowResizeObserver;m=com.kingdee.bos.qing.workbench;C=m.WorkbenchEntrance;m=com.kingdee.bos.qing.workbench.common;z=m.Integration})()})();
//qingVersionTag: 20250415