(function(){function G(){ba.call(this);var u=this,q=this.protectedMethod,J,T,ca,Q,da;this.setCurrentPublishSchema=function(a){da=a};this.setUserOperatorPrevCheck=function(a){ca=a};this.setCloseResourceLock=function(a){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var a=q.getUrlParamUtil().getParamPathPrefix();return(a?a:"/ierp")+"/qing/core.do"};this.protectedImportMoreCode=function(a){a.pushSkinJs("scene",
"skin");a.pushI18n("scene","scene")};this.protectedCustomInitEnv=function(a){a=$("<div>");a.css({position:"fixed",bottom:"3px",right:"1px",width:"180px",height:"18px",zIndex:"999"});w(a);u.protectedNeedToShowMessageBox()&&x(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var w=function(a){H.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(q.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});H.loadCss("support/support.css");
H.loadJs("support/support-ui.js");H.loadI18n("support","support")},x=function(a){H.setCallback(function(){var b=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");b=b?b:"/ierp";com.kingdee.bos.qing.message.common.Integration.setRemoteUrl(b+"/qing/messageManage.do");R(b);var e=new com.kingdee.bos.qing.message.ui.Main;e.setFunOpenMessageDialog(function(){e.setViewSize(null,null,10,30)});e.setMessageWidth(80);e.getJqUi(25).appendTo(a)});H.loadSkinCss("message","message");
H.loadSkinJs("message","skin");H.loadJs("message/message-manage-ui.js");H.loadI18n("message","message")},R=function(a){var b=com.kingdee.bos.qing.message.common.Integration;b.setImportJSCodeForManager(function(){var g=com.kingdee.bos.qing.CodeLoader;g.setCallback(function(){var n=com.kingdee.bos.qing.theme.message.panel.common.Integration;n.setFunPublishRemoteImpl(function(){var d=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;d.setRemoteUrl(a+"/qing/publishTo.do");return d});n.setFunQingCenterAndMenuEntrance(function(d,
c,h,p){c=C.getUrlParamValue();var k=a+"/qing/publishEntrance.do";k=f.appendParamToUrl(k,"publishId",d);"extreport"==p?(k=f.appendParamToUrl(k,"appID","qing_rpt"),c&&(k=f.appendParamToUrl(k,"skin",c)),y.openNewTabInAppId(h,k,k,y.QING_RPT)):(c&&(k=f.appendParamToUrl(k,"skin",c)),y.openNewTabInAppId(h,k,k,y.QING_ANALYSIS))});n.setResourceRemoteUrl(a+"/qing/resource.do");n.setDataModelEntrance(function(d,c,h){var p=C.getUrlParamValue();c=l.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+c;var k=a+
"/qing/dataModelingEntrance.do";k=f.appendParamToUrl(k,"themeID",d);k=f.appendParamToUrl(k,"isPreset",h);p&&(k=f.appendParamToUrl(k,"skin",p));y.openNewTabInAppId(c,k,k,y.QING_ANALYSIS)});n.setFunPublishContext(function(){var d=new com.kingdee.bos.qing.publish.common.PublishContext;d.setParamPathPrefix(a);d.setLappEntranceUrl(a+"/qing/lappEntrance.do");return d});n.setFunPublishedEmailLoginViewUrl(function(){var d=C.getUrlParamValue(),c=K.getUrlParamValue("language"),h=a+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
d&&(h=f.appendParamToUrl(h,"skin",d));c&&(h=f.appendParamToUrl(h,"language",c));return h});n.setFunPublishedEmailAnonymousViewUrl(function(){var d=C.getUrlParamValue(),c=K.getUrlParamValue("language"),h=a+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";d&&(h=f.appendParamToUrl(h,"skin",d));c&&(h=f.appendParamToUrl(h,"language",c));return h});n.setFunPublishContentEditEntrance(function(){return function(d,
c,h){var p=com.kingdee.bos.qing.publish.model.PublishTargetType;if(h&&p.MOBILE==h){p=d.getPublishId();var k=d.getId()}else p=d.getId();var m=C.getUrlParamValue(),L=K.getUrlParamValue("language");h=a+"/qing/publishContentEditEntrance.do";h=f.appendParamToUrl(h,"skin",m);h=f.appendParamToUrl(h,"language",L);h=f.appendParamToUrl(h,"publishId",p);k&&(h=f.appendParamToUrl(h,"lappId",k));k=h;c&&(p="editPublishedContent-"+p,m=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,m.putSubscribe(p,c),
h=f.appendParamToUrl(h,"subscribeKey",p),h=f.appendParamToUrl(h,"currentPageClientId",m.getCurrentPageClientId()));c=com.kingdee.bos.qing.framework.common.TabbedUiUtil;c.openNewTabInAppId(l.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+d.getName(),h,k,c.QING_ANALYSIS)}});n.setFunTimedPushContentEditEntrance(function(){return function(d){var c=a+"/qing/timedPushContentEditEntrance.do",h=l.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(d instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var p=
d.getId(),k=d.getPublishSourceType();m=d.getSchemaSourceType();c=f.appendParamToUrl(c,"configId",p);c=f.appendParamToUrl(c,"publishSourceType",k);c=f.appendParamToUrl(c,"schemaType",m);c=f.appendParamToUrl(c,"pushTarget","email");h=h+"-"+d.getNameRule().getName();d.isSourceNameNotFound()&&(c=f.appendParamToUrl(c,"errorCode","2301001"))}else{p=d.getId();k=d.getPushTargetType();var m=d.getSchemaType();c=f.appendParamToUrl(c,"configId",p);c=f.appendParamToUrl(c,"pushTargetType",k);c=f.appendParamToUrl(c,
"schemaType",m);c=f.appendParamToUrl(c,"pushTarget","lapp");h=h+"-"+d.getName();d.getSourceName()||(c=f.appendParamToUrl(c,"errorCode","2301001"))}d=C.getUrlParamValue();m=K.getUrlParamValue("language");d&&(c=f.appendParamToUrl(c,"skin",d));m&&(c=f.appendParamToUrl(c,"language",m));d=com.kingdee.bos.qing.framework.common.TabbedUiUtil;d.openNewTabInAppId(h,c,c,d.QING_ANALYSIS)}});n=com.kingdee.bos.qing.modeler.message.panel.common.Integration;n.setFunOpenModelSetPage(function(d,c){var h=C.getUrlParamValue(),
p=l.get("modelSet","\u6a21\u578b\u96c6-")+c,k=a+"/qing_modeler/modelSetMainPage.do";k=f.appendParamToUrl(k,"modelSetId",d);k=f.appendParamToUrl(k,"modelSetName",c);k=f.appendParamToUrl(k,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());h&&(k=f.appendParamToUrl(k,"skin",h));y.openNewTabInAppId(p,k,k,y.QING_MODELER)});n.setFunOpenModelDesign(function(d,c,h,p,k){var m=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,L=C.getUrlParamValue();k=(k=m.getModelTypeText(k))?
k+"-"+h:h;m=a+"/qing_modeler/deployDesignerEntrance.do";m=f.appendParamToUrl(m,"modelSetId",d);m=f.appendParamToUrl(m,"modelId",c);m=f.appendParamToUrl(m,"modelName",h);m=f.appendParamToUrl(m,"modelDeployId",p);L&&(m=f.appendParamToUrl(m,"skin",L));y.openNewTabInAppId(k,m,m,y.QING_MODELER)})});g.loadSkinCss("message","messagepanel");g.loadSkinJs("message","skin");g.loadJs("message/message-content-panel-management.js");g.loadI18n("message","messagepanel");g.loadSkinCss("qingmodeler/message","message-modeler-panel");
g.loadSkinJs("qingmodeler/message","skin");g.loadJs("qingmodeler/message/message-content-panel-management.js");g.loadI18n("qingmodeler/message","message-modeler-panel")});var e=f.decodeParamFromUrl(location.search,"appID");b.setAppId(e)},D=function(a,b,e,g,n,d){var c=com.kingdee.bos.qing.publish.model.PublishSourceType,h=com.kingdee.bos.qing.publish.model.PublishTargetType;a!=c.EXTREPORT&&a!=c.DASHBOARD&&b!=h.GUIMENU?(a=new com.kingdee.bos.qing.publish.common.PublishFacade(E(),function(p){d&&d()},
function(p,k){return 2301016==p?(Z().showPrompt(l.get("publishNoOperAuthExceptionCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),!0):!1}),b=e.getBizTag(),c=e.getDsbPublishId(),e.getRefToId()&&(b=e.getRefToId()),a.judgePublishOper(b,c,g,n)):d&&d()},ea=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(E())},ja=function(){var a=q.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
P=function(a,b,e,g,n,d){var c=q.getUrlParamUtil().getParamPathPrefix(),h=com.kingdee.bos.qing.publish.common,p=h.PublishContext;h=com.kingdee.bos.qing.schemamanage.model;var k=h.SchemaAttrModel;h=h.SchemaModel;var m=q.getUrlParamUtil().getUrlParam("bizTag"),L=u.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());var M=r&&r.hasDirectModeTable();
r=new p;r.setSource(n);r.setBizTag(m);r.setCurrentSourceType(b);r.setHaveToCarryData(L);r.setHasDirectModeTable(M);r.setParamPathPrefix(c);r.setSchemaTag("Dashboard-Analysis"==d?q.getUrlParamUtil().getUrlParam("schemaTag"):null);b=new k;b.setSchemaType(k.SCHEMATYPE_SYSTEM);b.setIsDefault(!0);b.setSchemaName(z("sysPublishScheme","\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848"));b.setSource(e);n=new h;n.setSchemaAttr(b);n.setSchemaContent(a.getJsonModelBook());a=n.toJsonObject();r.setCurrentContentModel(a);
a=q.getUrlParamUtil().getParamTag();b=function(F){F+="/qinganalysis/lappPreviewEntrance.do";for(var t=window.location.search.substring(1).split("&"),B=0;B<t.length;B++){var A=t[B],O=A.indexOf("=");if(-1!=O){var X=A.substring(0,O);"clientID"!=X&&"safetyCode"!=X&&(A=A.substring(O+1),F+=0>F.indexOf("?")?"?":"&",F+=X,F+="=",F+=A)}}return F};e==k.SCHEMASOURCE_SQUARE?(r.setScene(p.Scene.Square),e=b(c),e=f.appendParamToUrl(e,"view","10"),r.setMobilePreviewUrl(e),c=f.appendParamToUrl(c+"/qing/lappEntrance.do",
"tag",a),c=f.appendParamToUrl(c,"view","10"),r.setLappEntranceUrl(c)):e==k.SCHEMASOURCE_LONGER&&(r.setScene(p.Scene.Longer),r.setMobilePreviewUrl(b(c)),c=f.appendParamToUrl(c+"/qing/lappEntrance.do","tag",a),r.setLappEntranceUrl(c));g&&(r.setRefToId(q.getUrlParamUtil().getUrlParam("publishId")),r.setDsbPublishId(g),r.setDashBoardAnalysis(!0));return r},U=function(a){var b=!1;if(a&&(a=a.tables)&&0<a.length)for(var e=0;e<a.length;e++)if(a[e].subViews){b=!0;break}return b},I=function(a,b){ca?ca(function(e){var g=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(fa(),function(d){d.publishInfoPerCheck==G.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):d.publishInfoPerCheck==G.THEME_IS_DEL?V($(document.body),"msg-warning",l.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==G.PUBLISHINFO_NOEXIST?V($(document.body),"msg-warning",l.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
G.PERMISSION_CANCEL?V($(document.body),"msg-jurisdiction",l.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+d.publishInfoUserName+'"'+l.get("authority","\u6388\u6743")):d.publishInfoPerCheck==G.PUBLSIHPLAN_DELETE&&V($(document.body),"msg-warning",l.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))}),n=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
n.setFId(da.getCurrentSchemaId());n.setSchemaName(da.getCurrentSchemaName());g.checkPublishInfoAndAuthority(e,n)}):a&&a(b)},fa=function(){var a=q.getUrlParamUtil().getParamPathPrefix(),b=q.getUrlParamUtil().getParamTag();a=(a?a:"/ierp")+"/qing/schemaManage.do";var e=new com.kingdee.bos.qing.RemoteImpl;e.setRemoteUrl(a);e.setTag(b);return e},V=function(a,b,e){a=new Y;a.setOptionType(Y.OPTION_OK);a.setButtonText(Y.RETURN_OK,l.get("ISee","\u6211\u77e5\u9053\u4e86"));var g={};g.text=e;g.iconName=b;a.setMessage(g);
a.setCustomPainter(function(n,d){var c=$("<div>");c.addClass("sa-ctrl-msgdlg-icon");ha.background(c,d.iconName);var h=$("<div>");h.addClass("sa-ctrl-msgdlg-content");h.text(d.text);n.append(c);n.append(h)});a.showDialog(380,280)},ka=function(a,b,e){J?b(J):(new com.kingdee.bos.qing.core.Facade(a,function(g){J=g;b(g)},e)).getMeta()},na=function(a){J=null;ka(u.getRemoteImpl(),a)},E=function(){var a=q.getUrlParamUtil().getParamPathPrefix(),b=q.getUrlParamUtil().getParamTag();a=(a?a:"/ierp")+"/qing/publishTo.do";
var e=new com.kingdee.bos.qing.RemoteImpl;e.setRemoteUrl(a);e.setTag(b);return e},oa=function(){var a=q.getUrlParamUtil().getParamPathPrefix(),b=C.getUrlParamValue(),e=q.getUrlParamUtil().getParamLanguage();a=(a?a:"/ierp")+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";b&&(a=f.appendParamToUrl(a,"skin",b));e&&(a=f.appendParamToUrl(a,"language",e));return a},pa=function(){var a=
q.getUrlParamUtil().getParamPathPrefix(),b=C.getUrlParamValue(),e=q.getUrlParamUtil().getParamLanguage();a=(a?a:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";b&&(a=f.appendParamToUrl(a,"skin",b));e&&(a=f.appendParamToUrl(a,"language",e));return a},ia=function(){return function(a,b,e){var g=com.kingdee.bos.qing.publish.model.PublishTargetType;if(e&&g.MOBILE==e){e=a.getPublishId();var n=a.getId();var d=a.getLappUserType()}else e=a.getId();g=q.getUrlParamUtil().getParamPathPrefix();
var c=C.getUrlParamValue(),h=q.getUrlParamUtil().getParamLanguage();g=f.appendParamToUrl((g?g:"/ierp")+"/qing/publishContentEditEntrance.do","skin",c);g=f.appendParamToUrl(g,"language",h);g=f.appendParamToUrl(g,"publishId",e);n&&(g=f.appendParamToUrl(g,"lappId",n));d&&(g=f.appendParamToUrl(g,"lappUserType",d));n=g;b&&(d="editPublishedContent-"+e,e=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,e.putSubscribe(d,b),g=f.appendParamToUrl(g,"subscribeKey",d),g=f.appendParamToUrl(g,"currentPageClientId",
e.getCurrentPageClientId()));y.openNewTab(l.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),g,n)}},la=function(){return function(a){var b=q.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var e=l.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(a instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var g=a.getId(),n=a.getPublishSourceType();d=a.getSchemaSourceType();b=f.appendParamToUrl(b,"configId",
g);b=f.appendParamToUrl(b,"publishSourceType",n);b=f.appendParamToUrl(b,"schemaType",d);b=f.appendParamToUrl(b,"pushTarget","email");e=e+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=f.appendParamToUrl(b,"errorCode","2301001"))}else{g=a.getId();n=a.getPushTargetType();var d=a.getSchemaType();b=f.appendParamToUrl(b,"configId",g);b=f.appendParamToUrl(b,"pushTargetType",n);b=f.appendParamToUrl(b,"schemaType",d);b=f.appendParamToUrl(b,"pushTarget","lapp");e=e+"-"+a.getName();a.getSourceName()||
(b=f.appendParamToUrl(b,"errorCode","2301001"))}a=C.getUrlParamValue();d=q.getUrlParamUtil().getParamLanguage();a&&(b=f.appendParamToUrl(b,"skin",a));d&&(b=f.appendParamToUrl(b,"language",d));y.openNewTab(e,b)}},z=function(a,b){return l.get(a,b)},Z=function(){T||(T=new com.kingdee.bos.qing.ui.component.MessageCurtain,T.getJqUi().appendTo($(document.body)));return T};q.getMLS=z;q.importLinkage=function(a){a.pushSkinJs("linkage","skin");a.pushJs("linkage/linkage.js");a.pushSkinCss("linkage","linkage")};
q.importForSchema=function(a){a.pushSkinJs("schema-manage","skin-initialize");a.pushJs("schema-manage/schema-manage-initialize.js");a.pushI18n("schema-manage","schema-initialize");a.pushSkinCss("schema-manage","schema-manage");a.pushJs("schema-manage/schema-manage-ui.js");a.pushI18n("schema-manage","schema-ui")};q.importForPublish=function(a){a.pushJs("biz-common/qing-biz-common.js");a.pushSkinCss("biz-common","biz-common");a.pushSkinJs("biz-common","skin");a.pushI18n("biz-common","biz-common");a.pushSkinJs("imagelib",
"skin");a.pushSkinCss("imagelib","qing-imagelib");a.pushJs("imagelib/imagelib.js");a.pushI18n("imagelib","imagelib");a.pushJs("common/qing-schedule.js");a.pushI18n("common","qing-schedule");a.pushSkinCss("publish","qing-publish");a.pushSkinJs("publish","skin");a.pushI18n("publish","publish");a.pushJs("publish/qing-publish.js");a.pushSkinCss("timedpush","qing-timedpush");a.pushSkinJs("timedpush","skin");a.pushI18n("timedpush","timedpush");a.pushJs("timedpush/qing-timedpush.js");a.pushJs("lightapp/common/qing-lapp-env.js");
a.pushJs("timedpush/qing-timedpush-lapp.js");a.pushJs("timedpush/html2canvas.js")};q.importForMap=function(a){a.pushSkinJs("map-designer","integration-skin");a.pushJs("map-designer/map-integration.js");a.pushSkinCss("map-designer","map-integration");a.pushI18n("map-designer","map-integration")};q.hookLongerPublishTo=function(a,b,e,g,n,d){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,M,F){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,M,0,F)});
var c=com.kingdee.bos.qing.publish.model;b=c.PublishTargetType;c=com.kingdee.bos.qing.schemamanage.model;var h=c.SchemaAttrModel,p=function(r){var M=com.kingdee.bos.qing.publish.common.PublishFactory,F=r.getUserObject(),t=r.getText().replace("...",""),B=P(a,e,h.SCHEMASOURCE_LONGER,g,n,d);D(e,F,B,"longer",v.ANALYSIS_PUBLISH,function(){var A=M.createPublishToDialog(t,E(),B,F,ia());A.setOuterMessageCurtain(Z());A.showDialog()})},k=com.kingdee.bos.qing.ui.component.MenuItemModel;c=new com.kingdee.bos.qing.ui.component.MenuModel;
var m=new k(function(r){I(p,r)});m.setUserObject(b.APPMENU);m.setText(z("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(m);m=new k(function(r){I(p,r)});m.setUserObject(b.CENTER);m.setText(z("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));c.addItemModel(m);m=new k(function(r){I(p,r)});m.setUserObject(b.MOBILE);m.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(m);ea();ja();var L=function(){var r=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
M=P(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new r(E(),M,ia())).showDialog()};m=new k(function(r){I(L,r)});m.setUserObject();m.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");c.addItemModel(m);b=z("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(c,"publish_to",b)};q.hookSquarePublishTo=function(a,b,e){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(p,k,m){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(p,
k,0,m)});var g=com.kingdee.bos.qing.publish.model;b=g.PublishTargetType;g=com.kingdee.bos.qing.schemamanage.model;var n=g.SchemaAttrModel,d=function(p){var k=com.kingdee.bos.qing.publish.common.PublishFactory,m=p.getUserObject(),L=p.getText().replace("...",""),r=P(a,e,n.SCHEMASOURCE_SQUARE);D(e,m,r,"square",v.CARD_PUBLISH,function(){var M=k.createPublishToDialog(L,E(),r,m,ia());M.setOuterMessageCurtain(Z());M.showDialog()})},c=com.kingdee.bos.qing.ui.component.MenuItemModel;g=new com.kingdee.bos.qing.ui.component.MenuModel;
var h=new c(d);h.setUserObject(b.CARD_REPOSITORY);h.setText(z("toCardRepository","\u5361\u7247\u5e93..."));g.addItemModel(h);d=new c(d);d.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.setUserObject(b.MOBILE);g.addItemModel(d);ea();ja();h=new c(function(){var p=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=P(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new p(E(),k,ia())).showDialog()});h.setUserObject();h.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");g.addItemModel(h);b=z("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(g,"publish_to",b)};q.hookPublishManager=function(a,b,e){var g=z("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var n=com.kingdee.bos.qing.publish.common.PublishManagerDialog,d=P(a,b,e);(new n(E(),d,ia())).showDialog()},"publish_manager",g)};q.hookCloseTab=function(a){var b=z("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
S.showConfirmExitDialog():y.closeCurrentTab()},"error_close",b)};q.hookShareTo=function(a,b,e,g,n){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(t,B,A){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(t,B,0,A)});var d=function(t){t=z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var B=P(a,g,b);t=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(t,E(),B);t.setOuterMessageCurtain(Z());t.showDialog()},
c=function(t){t=com.kingdee.bos.qing.CodeLoader.createSafety();t.pushJs("yzj-web/qingjs.js");t.pushJs("yzj-web/imcloud.js");t.pushJs("yzj-web/imsdkerp.js");t.pushJs("yzj-web/imShare.js");t.pushSkinCss("yzj-web","imcloud");t.pushSkinCss("yzj-web","imsdk");t.pushSkinCss("yzj-web","imsdkerp");t.load(function(){})};e=new W;(new N(function(t){window.beLoadedImCloud?d(t):c(t)})).setText(z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var h=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
p=u.protectedHaveToCarryData(),k;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(k=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());k=k&&k.hasDirectModeTable();var m=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!k&&!p&&b==h.SCHEMASOURCE_LONGER){var L=function(t){var B=t.getText().replace("...",""),A=P(a,g,b,n);D(g,m.EMAIL,A,"longer",v.ANALYSIS_TIMEPUSH,function(){var O=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(B,
E(),A,oa(),pa(),la(),a);O.setOuterMessageCurtain(Z());O.showDialog()})},r=new N(function(t){I(L,t)});r.setText(z("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(r)}if(!k&&!p){var M=function(t){var B=P(a,g,b,n),A="longer",O=v.ANALYSIS_TIMEPUSH;b==h.SCHEMASOURCE_SQUARE&&(A="square",O=v.CARD_TIMEPUSH);D(g,m.EMAIL,B,A,O,function(){var X=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ma=t.getText().replace("...","");X.createDialog(ma,E(),B,la(),a)})};p=new N(function(t){I(M,
t)});p.setText(z("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(p)}var F=function(){var t=com.kingdee.bos.qing.publish.common.PushManager,B=P(a,g,b);t=new t(la());var A=com.kingdee.bos.qing.timedpush;t.registerEmailPushPanelConstructor(A.EmailConfigManagePanel);t.initEmailPushConfig(E(),oa(),pa());t.registerLappPushPanelConstructor(A.LappPushManagePanel);t.initLappPushConfig(function(O,X,ma){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
E(),O,X,ma)},B);t.showDialog()};p=new N(function(t){I(F,t)});p.setUserObject();p.setText(z("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");e.addItemModel(p);e=a.getConductor().appendToolbarMenu(e,"btn_communicate",z("timedPush","\u5b9a\u65f6\u63a8\u9001"));e.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=d)});return e};q.initDesigntimeLinkage=function(){var a=q.getUrlParamUtil().getParamPathPrefix(),b=(a?a:"/ierp")+"/qing/linkage.do",e=com.kingdee.bos.qing.integration.LinkageJumper;
a=new com.kingdee.bos.qing.linkage.LinkageManage;a.initDesigntime(b,e.jump);b=q.getUrlParamUtil().getParamTag();a.setCurrentLinkageTag(b)};q.loadMeta=ka;q.reloadMeta=na;q.hookRefresh=function(a,b){var e=q.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),g=function(){b.restart();b.setExtractDataFinishedSuccessCallback(function(n){n||U(J)?na(function(d){var c=a.getJsonModelBook();a.prepareMeta(d);a.setJsonModelBook(c)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){I(g)},"btn_reset",
e)};q.getMessageCurtain=Z;q.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){S.setTabStatus(b)})};q.loadPublishOperList=function(a,b,e,g,n){Q?e(Q):(new com.kingdee.bos.qing.publish.common.PublishFacade(E(),function(d){Q=d;e(Q)},n)).loadPublishOperList(a,b,g)};q.loadPublishOperModel=function(a,b,e,g){Q?e(Q):(new com.kingdee.bos.qing.publish.common.PublishFacade(E(),function(n){Q=n.noOperValueMap;e(Q)},g)).loadPublishOperModel(a,b)};q.registMapMapLibrary=function(a){com.kingdee.bos.qing.map.common.Integration.setRemoteUrl(a+
"/qing/mapManage.do");var b=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(e,g){b.setParamPathPrefix(a);b.showDialog(e,g)})}}"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 aa=com.kingdee.bos.qing.scene.common.designer,C,ba,H,Y,ha,f,l,y,W,N,S,K;(function(){var u=com.kingdee.bos.qing;C=u.SkinUtil;ba=u.AbstractDesignerScene;H=u.CodeLoader;K=u.Seer;u=com.kingdee.bos.qing.common;f=u.Util;u=com.kingdee.bos.qing.framework.common;l=u.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
y=u.TabbedUiUtil;u=com.kingdee.bos.qing.ui.component;W=u.MenuModel;N=u.MenuItemModel;Y=u.MessageDialog;ha=u.Icons;u=com.kingdee.bos.qing.integration;S=u.TabStatusHelper})();aa.AbstractDesignerSceneImpl=G;aa.LongerDesignerOperationJudgerModel=function(u){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);u&&0!=u&&(this.protectedParseDesignable=function(){return 0==(u&v.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(u&v.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(u&v.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(u&v.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(u&v.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(u&v.ANALYSIS_TIMEPUSH)})};aa.SquareDesignerOperationJudgerModel=function(u){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);u&&0!=u&&(this.protectedParsePublishable=function(){return 0==(u&v.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(u&v.CARD_TIMEPUSH)})};var v={};aa.OperCodeType=v;v.ANALYSIS_EDITABLE=2;v.ANALYSIS_EXPORT=4;v.ANALYSIS_PRINT=8;v.ANALYSIS_PUBLISH=16;v.ANALYSIS_TIMEPUSH=32;v.ANALYSIS_DETAIL=64;v.CARD_PUBLISH=256;v.CARD_TIMEPUSH=512;v.ENTRY_ANALYSIS=1;v.ENTRY_SQUARE=128;G.THEME_IS_DEL="Theme is Delete";G.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";G.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";G.PERMISSION_CANCEL="Not Permission";G.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){function G(f,l,y,W){ba.call(this,f,l,y,W);var N=this.protectedMethod;this.loadSquareSchema=function(S,K){S={ref:JSON.stringify(S),dashboardUniqueId:K};N.remote("squareLoadSchema",S)}}function aa(){H.call(this);var f;this.getRemoteUrl=function(l){return f};this.setRemoteUrl=function(l){f=l}}"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={});com.kingdee.bos.qing.scene.DashboardAnalysisdScene=function(){Y.call(this);var f=this,l=this.protectedMethod,y,W,N,S,K,v,u,q,J,T,ca=this.protectedImportMoreCode;this.protectedImportMoreCode=function(w){ca(w);l.importForSchema(w);l.importForPublish(w);l.importLinkage(w)};var Q=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(w){l.setModuleWithLonger(!0,!0);l.setModuleWithSquare(!1,!1);Q(w);y=l.getUrlParamUtil().getUrlParam("schemaTag");
W=l.getUrlParamUtil().getUrlParam("publishSourceType");N=l.getUrlParamUtil().getUrlParam("dsbPublishId");S=l.getUrlParamUtil().getUrlParam("refUid");K="true"==l.getUrlParamUtil().getUrlParam("isPreset");v=l.getUrlParamUtil().getUrlParam("timedPush");u=new C;var x=l.getUrlParamUtil().getParamPathPrefix();u.setRemoteUrl((x?x:"/ierp")+"/qing/schemaManage.do");u.setTag(l.getUrlParamUtil().getParamTag());x=com.kingdee.bos.qing.behavior.BehaviorManager;x.interestInBehaviorEntrance(x.ENTRANCE_PUBLISH_DASHBOARD_ANALYSIS);
l.loadPublishOperList(l.getUrlParamUtil().getUrlParam("publishId"),N,function(R){var D=com.kingdee.bos.qing.publish.model.OperType;T=0;R[D.SQUARE]&&(T|=R[D.SQUARE]);R[D.LONGER]&&(T|=R[D.LONGER]);J=new ha(T);w()},v)};this.protectedInitDesignerForLonger=function(w){w.setDesignerOperationJudger(J,null);var x=com.kingdee.bos.qing.publish.model.PublishTargetType,R=l.getUrlParamUtil().getUrlParam("publishTargetType");K||x.EMAIL==R?K&&l.getMessageCurtain().showPrompt(l.getMLS("presetPublishAnalysisTipsCurtain",
"\u9884\u7f6e\u7684\u6570\u636e\u5206\u6790\u4e0d\u5141\u8bb8\u53d1\u5e03\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),5E3):(x=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER,J.protectedParsePublishable()&&l.hookLongerPublishTo(w,q,W,l.getUrlParamUtil().getUrlParam("dsbPublishId"),0,"Dashboard-Analysis"),!f.protectedHaveToCarryData()&&J.protectedParseTimingPushable()&&l.hookShareTo(w,x,null,W,l.getUrlParamUtil().getUrlParam("dsbPublishId")),
f.protectedHaveToCarryData()||l.hookRefresh(w,com.kingdee.bos.qing.prepare.DataExtractor),l.hookSetCurrentTabStatus(w));l.initDesigntimeLinkage();(x=window.com.kingdee.bos.qing.AnalysisSceneOuterApi)?(J.protectedParseDesignable()&&x.inside.setDirtyChecker(function(){return w.getConductor().isDirty()}),x.inside.setBeforeClosing(function(){return com.kingdee.bos.qing.integration.TabStatusHelper.setTabStatus(!1)}),w.getConductor().appendToolbarButton(x.inside.requestClosing,"error_close",l.getMLS("closeTab",
"\u9000\u51fa"))):l.hookCloseTab(w)};this.protectedHaveToCarryData=function(){return"true"==l.getUrlParamUtil().getUrlParam("haveToCarryData")};this.protectedNeedToShowMessageBox=function(){return"qing_workbench"!==l.getUrlParamUtil().getUrlParam("openFrom")};this.protectedLoadingLonger=function(w,x,R){l.loadMeta(w,function(D){var ea=com.kingdee.bos.qing.schemamanage.SchemaManage,ja=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,P=com.kingdee.bos.qing.schemamanage.LoadSchemaError;x.prepareMeta(D);
var U=new ea(y,ja.SCHEMASOURCE_LONGER);U.setDesignerOperationJudger(J);U.setPublishId(l.getUrlParamUtil().getUrlParam("publishId"));U.setDsbPublishId(N);U.setReloadMetaFun(function(I){l.reloadMeta(function(fa){x.prepareMeta(fa);I&&I()})});D={};D.uid=S;(new G(da(),function(I){var fa=I.model;U.initialize(u,x,function(V){V||(V=l.createSquare2LongerModelTransformer(),x.setJsonModelBook(fa,function(ka){(new P).showErrorMsg(ka)},V));R(!0)},null,K)},function(){return!1})).loadSquareSchema(D,N);q=U.getSchemaContext()},
function(D,ea){return 301201==D?(l.getMessageCurtain().showError(l.getMLS("extractDataFailToRefreshCurtain","\u51c6\u5907\u6570\u636e\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u51fa\u6570\u636e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002")),!0):!1})};var da=function(){var w=new aa,x=l.getUrlParamUtil().getParamPathPrefix();w.setRemoteUrl((x?x:"/ierp")+"/qing/runtimeDashboard.do");return w}};var C,ba,H,Y,ha;(function(){var f=com.kingdee.bos.qing;C=f.RemoteImpl;f=com.kingdee.bos.qing.framework.common;ba=f.AbstractFacade;
H=f.AbstractRemoteCall;f=com.kingdee.bos.qing.scene.common.designer;Y=f.AbstractDesignerSceneImpl;ha=f.LongerDesignerOperationJudgerModel})()})();
//qingVersionTag: 20250415