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