(function(){function E(){ca.call(this);var t=this,p=this.protectedMethod,V,Z,x,v,M;this.setCurrentPublishSchema=function(a){M=a};this.setUserOperatorPrevCheck=function(a){x=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"});K(a);t.protectedNeedToShowMessageBox()&&Q(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var K=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")},Q=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");aa(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")},aa=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=D.getUrlParamValue();var h=a+"/qing/publishEntrance.do";h=k.appendParamToUrl(h,"publishId",d);"extreport"==n?(h=k.appendParamToUrl(h,"appID","qing_rpt"),c&&(h=k.appendParamToUrl(h,"skin",c)),B.openNewTabInAppId(g,h,h,B.QING_RPT)):(c&&(h=k.appendParamToUrl(h,"skin",c)),B.openNewTabInAppId(g,h,h,B.QING_ANALYSIS))});m.setResourceRemoteUrl(a+"/qing/resource.do");m.setDataModelEntrance(function(d,c,g){var n=D.getUrlParamValue();c=y.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+c;var h=a+
"/qing/dataModelingEntrance.do";h=k.appendParamToUrl(h,"themeID",d);h=k.appendParamToUrl(h,"isPreset",g);n&&(h=k.appendParamToUrl(h,"skin",n));B.openNewTabInAppId(c,h,h,B.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=D.getUrlParamValue(),c=N.getUrlParamValue("language"),g=a+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
d&&(g=k.appendParamToUrl(g,"skin",d));c&&(g=k.appendParamToUrl(g,"language",c));return g});m.setFunPublishedEmailAnonymousViewUrl(function(){var d=D.getUrlParamValue(),c=N.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=k.appendParamToUrl(g,"skin",d));c&&(g=k.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 h=d.getId()}else n=d.getId();var l=D.getUrlParamValue(),I=N.getUrlParamValue("language");g=a+"/qing/publishContentEditEntrance.do";g=k.appendParamToUrl(g,"skin",l);g=k.appendParamToUrl(g,"language",I);g=k.appendParamToUrl(g,"publishId",n);h&&(g=k.appendParamToUrl(g,"lappId",h));h=g;c&&(n="editPublishedContent-"+n,l=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,l.putSubscribe(n,c),
g=k.appendParamToUrl(g,"subscribeKey",n),g=k.appendParamToUrl(g,"currentPageClientId",l.getCurrentPageClientId()));c=com.kingdee.bos.qing.framework.common.TabbedUiUtil;c.openNewTabInAppId(y.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+d.getName(),g,h,c.QING_ANALYSIS)}});m.setFunTimedPushContentEditEntrance(function(){return function(d){var c=a+"/qing/timedPushContentEditEntrance.do",g=y.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(d instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var n=
d.getId(),h=d.getPublishSourceType();l=d.getSchemaSourceType();c=k.appendParamToUrl(c,"configId",n);c=k.appendParamToUrl(c,"publishSourceType",h);c=k.appendParamToUrl(c,"schemaType",l);c=k.appendParamToUrl(c,"pushTarget","email");g=g+"-"+d.getNameRule().getName();d.isSourceNameNotFound()&&(c=k.appendParamToUrl(c,"errorCode","2301001"))}else{n=d.getId();h=d.getPushTargetType();var l=d.getSchemaType();c=k.appendParamToUrl(c,"configId",n);c=k.appendParamToUrl(c,"pushTargetType",h);c=k.appendParamToUrl(c,
"schemaType",l);c=k.appendParamToUrl(c,"pushTarget","lapp");g=g+"-"+d.getName();d.getSourceName()||(c=k.appendParamToUrl(c,"errorCode","2301001"))}d=D.getUrlParamValue();l=N.getUrlParamValue("language");d&&(c=k.appendParamToUrl(c,"skin",d));l&&(c=k.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=D.getUrlParamValue(),
n=y.get("modelSet","\u6a21\u578b\u96c6-")+c,h=a+"/qing_modeler/modelSetMainPage.do";h=k.appendParamToUrl(h,"modelSetId",d);h=k.appendParamToUrl(h,"modelSetName",c);h=k.appendParamToUrl(h,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());g&&(h=k.appendParamToUrl(h,"skin",g));B.openNewTabInAppId(n,h,h,B.QING_MODELER)});m.setFunOpenModelDesign(function(d,c,g,n,h){var l=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,I=D.getUrlParamValue();h=(h=l.getModelTypeText(h))?
h+"-"+g:g;l=a+"/qing_modeler/deployDesignerEntrance.do";l=k.appendParamToUrl(l,"modelSetId",d);l=k.appendParamToUrl(l,"modelId",c);l=k.appendParamToUrl(l,"modelName",g);l=k.appendParamToUrl(l,"modelDeployId",n);I&&(l=k.appendParamToUrl(l,"skin",I));B.openNewTabInAppId(h,l,l,B.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=k.decodeParamFromUrl(location.search,"appID");b.setAppId(e)},O=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(F(),function(n){d&&d()},
function(n,h){return 2301016==n?(ba().showPrompt(y.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(F())},ja=function(){var a=p.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
P=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 h=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 h;b.setSchemaType(h.SCHEMATYPE_SYSTEM);b.setIsDefault(!0);b.setSchemaName(z("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(G){G+="/qinganalysis/lappPreviewEntrance.do";for(var r=window.location.search.substring(1).split("&"),C=0;C<r.length;C++){var A=r[C],L=A.indexOf("=");if(-1!=L){var W=A.substring(0,L);"clientID"!=W&&"safetyCode"!=W&&(A=A.substring(L+1),G+=0>G.indexOf("?")?"?":"&",G+=W,G+="=",G+=A)}}return G};e==h.SCHEMASOURCE_SQUARE?(q.setScene(n.Scene.Square),e=b(c),e=k.appendParamToUrl(e,"view","10"),q.setMobilePreviewUrl(e),c=k.appendParamToUrl(c+"/qing/lappEntrance.do",
"tag",a),c=k.appendParamToUrl(c,"view","10"),q.setLappEntranceUrl(c)):e==h.SCHEMASOURCE_LONGER&&(q.setScene(n.Scene.Longer),q.setMobilePreviewUrl(b(c)),c=k.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},R=function(a,b){x?x(function(e){var f=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(pa(),function(d){d.publishInfoPerCheck==E.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):d.publishInfoPerCheck==E.THEME_IS_DEL?fa($(document.body),"msg-warning",y.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==E.PUBLISHINFO_NOEXIST?fa($(document.body),"msg-warning",y.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
E.PERMISSION_CANCEL?fa($(document.body),"msg-jurisdiction",y.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+d.publishInfoUserName+'"'+y.get("authority","\u6388\u6743")):d.publishInfoPerCheck==E.PUBLSIHPLAN_DELETE&&fa($(document.body),"msg-warning",y.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(M.getCurrentSchemaId());m.setSchemaName(M.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},fa=function(a,b,e){a=new X;a.setOptionType(X.OPTION_OK);a.setButtonText(X.RETURN_OK,y.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");u.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)},ka=function(a,b,e){V?b(V):(new com.kingdee.bos.qing.core.Facade(a,function(f){V=f;b(f)},e)).getMeta()},la=function(a){V=null;ka(t.getRemoteImpl(),a)},F=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},ma=function(){var a=p.getUrlParamUtil().getParamPathPrefix(),b=D.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=k.appendParamToUrl(a,"skin",b));e&&(a=k.appendParamToUrl(a,"language",e));return a},na=function(){var a=
p.getUrlParamUtil().getParamPathPrefix(),b=D.getUrlParamValue(),e=p.getUrlParamUtil().getParamLanguage();a=(a?a:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";b&&(a=k.appendParamToUrl(a,"skin",b));e&&(a=k.appendParamToUrl(a,"language",e));return a},da=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=D.getUrlParamValue(),g=p.getUrlParamUtil().getParamLanguage();f=k.appendParamToUrl((f?f:"/ierp")+"/qing/publishContentEditEntrance.do","skin",c);f=k.appendParamToUrl(f,"language",g);f=k.appendParamToUrl(f,"publishId",e);m&&(f=k.appendParamToUrl(f,"lappId",m));d&&(f=k.appendParamToUrl(f,"lappUserType",d));m=f;b&&(d="editPublishedContent-"+e,e=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,e.putSubscribe(d,b),f=k.appendParamToUrl(f,"subscribeKey",d),f=k.appendParamToUrl(f,"currentPageClientId",
e.getCurrentPageClientId()));B.openNewTab(y.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),f,m)}},ha=function(){return function(a){var b=p.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var e=y.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=k.appendParamToUrl(b,"configId",
f);b=k.appendParamToUrl(b,"publishSourceType",m);b=k.appendParamToUrl(b,"schemaType",d);b=k.appendParamToUrl(b,"pushTarget","email");e=e+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=k.appendParamToUrl(b,"errorCode","2301001"))}else{f=a.getId();m=a.getPushTargetType();var d=a.getSchemaType();b=k.appendParamToUrl(b,"configId",f);b=k.appendParamToUrl(b,"pushTargetType",m);b=k.appendParamToUrl(b,"schemaType",d);b=k.appendParamToUrl(b,"pushTarget","lapp");e=e+"-"+a.getName();a.getSourceName()||
(b=k.appendParamToUrl(b,"errorCode","2301001"))}a=D.getUrlParamValue();d=p.getUrlParamUtil().getParamLanguage();a&&(b=k.appendParamToUrl(b,"skin",a));d&&(b=k.appendParamToUrl(b,"language",d));B.openNewTab(e,b)}},z=function(a,b){return y.get(a,b)},ba=function(){Z||(Z=new com.kingdee.bos.qing.ui.component.MessageCurtain,Z.getJqUi().appendTo($(document.body)));return Z};p.getMLS=z;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,G){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,J,0,G)});
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,G=q.getUserObject(),r=q.getText().replace("...",""),C=P(a,e,g.SCHEMASOURCE_LONGER,f,m,d);O(e,G,C,"longer",w.ANALYSIS_PUBLISH,function(){var A=J.createPublishToDialog(r,F(),C,G,da());A.setOuterMessageCurtain(ba());A.showDialog()})},h=com.kingdee.bos.qing.ui.component.MenuItemModel;c=new com.kingdee.bos.qing.ui.component.MenuModel;
var l=new h(function(q){R(n,q)});l.setUserObject(b.APPMENU);l.setText(z("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(l);l=new h(function(q){R(n,q)});l.setUserObject(b.CENTER);l.setText(z("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));c.addItemModel(l);l=new h(function(q){R(n,q)});l.setUserObject(b.MOBILE);l.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(l);ea();ja();var I=function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
J=P(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new q(F(),J,da())).showDialog()};l=new h(function(q){R(I,q)});l.setUserObject();l.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");c.addItemModel(l);b=z("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,h,l){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(n,
h,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 h=com.kingdee.bos.qing.publish.common.PublishFactory,l=n.getUserObject(),I=n.getText().replace("...",""),q=P(a,e,m.SCHEMASOURCE_SQUARE);O(e,l,q,"square",w.CARD_PUBLISH,function(){var J=h.createPublishToDialog(I,F(),q,l,da());J.setOuterMessageCurtain(ba());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(z("toCardRepository","\u5361\u7247\u5e93..."));f.addItemModel(g);d=new c(d);d.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.setUserObject(b.MOBILE);f.addItemModel(d);ea();ja();g=new c(function(){var n=com.kingdee.bos.qing.publish.common.PublishManagerDialog,h=P(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new n(F(),h,da())).showDialog()});g.setUserObject();g.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");f.addItemModel(g);b=z("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(f,"publish_to",b)};p.hookPublishManager=function(a,b,e){var f=z("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var m=com.kingdee.bos.qing.publish.common.PublishManagerDialog,d=P(a,b,e);(new m(F(),d,da())).showDialog()},"publish_manager",f)};p.hookCloseTab=function(a){var b=z("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
S.showConfirmExitDialog():B.closeCurrentTab()},"error_close",b)};p.hookShareTo=function(a,b,e,f,m){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,C,A){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,C,0,A)});var d=function(r){r=z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var C=P(a,f,b);r=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(r,F(),C);r.setOuterMessageCurtain(ba());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 Y;(new T(function(r){window.beLoadedImCloud?d(r):c(r)})).setText(z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var g=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
n=t.protectedHaveToCarryData(),h;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(h=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());h=h&&h.hasDirectModeTable();var l=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!h&&!n&&b==g.SCHEMASOURCE_LONGER){var I=function(r){var C=r.getText().replace("...",""),A=P(a,f,b,m);O(f,l.EMAIL,A,"longer",w.ANALYSIS_TIMEPUSH,function(){var L=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(C,
F(),A,ma(),na(),ha(),a);L.setOuterMessageCurtain(ba());L.showDialog()})},q=new T(function(r){R(I,r)});q.setText(z("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(q)}if(!h&&!n){var J=function(r){var C=P(a,f,b,m),A="longer",L=w.ANALYSIS_TIMEPUSH;b==g.SCHEMASOURCE_SQUARE&&(A="square",L=w.CARD_TIMEPUSH);O(f,l.EMAIL,C,A,L,function(){var W=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ia=r.getText().replace("...","");W.createDialog(ia,F(),C,ha(),a)})};n=new T(function(r){R(J,
r)});n.setText(z("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(n)}var G=function(){var r=com.kingdee.bos.qing.publish.common.PushManager,C=P(a,f,b);r=new r(ha());var A=com.kingdee.bos.qing.timedpush;r.registerEmailPushPanelConstructor(A.EmailConfigManagePanel);r.initEmailPushConfig(F(),ma(),na());r.registerLappPushPanelConstructor(A.LappPushManagePanel);r.initLappPushConfig(function(L,W,ia){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
F(),L,W,ia)},C);r.showDialog()};n=new T(function(r){R(G,r)});n.setUserObject();n.setText(z("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");e.addItemModel(n);e=a.getConductor().appendToolbarMenu(e,"btn_communicate",z("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=ka;p.reloadMeta=la;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)?la(function(d){var c=a.getJsonModelBook();a.prepareMeta(d);a.setJsonModelBook(c)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){R(f)},"btn_reset",
e)};p.getMessageCurtain=ba;p.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){S.setTabStatus(b)})};p.loadPublishOperList=function(a,b,e,f,m){v?e(v):(new com.kingdee.bos.qing.publish.common.PublishFacade(F(),function(d){v=d;e(v)},m)).loadPublishOperList(a,b,f)};p.loadPublishOperModel=function(a,b,e,f){v?e(v):(new com.kingdee.bos.qing.publish.common.PublishFacade(F(),function(m){v=m.noOperValueMap;e(v)},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 U=com.kingdee.bos.qing.scene.common.designer,D,ca,H,X,u,k,y,B,Y,T,S,N;(function(){var t=com.kingdee.bos.qing;D=t.SkinUtil;ca=t.AbstractDesignerScene;H=t.CodeLoader;N=t.Seer;t=com.kingdee.bos.qing.common;k=t.Util;t=com.kingdee.bos.qing.framework.common;y=t.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
B=t.TabbedUiUtil;t=com.kingdee.bos.qing.ui.component;Y=t.MenuModel;T=t.MenuItemModel;X=t.MessageDialog;u=t.Icons;t=com.kingdee.bos.qing.integration;S=t.TabStatusHelper})();U.AbstractDesignerSceneImpl=E;U.LongerDesignerOperationJudgerModel=function(t){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);t&&0!=t&&(this.protectedParseDesignable=function(){return 0==(t&w.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(t&w.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(t&w.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(t&w.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(t&w.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(t&w.ANALYSIS_TIMEPUSH)})};U.SquareDesignerOperationJudgerModel=function(t){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);t&&0!=t&&(this.protectedParsePublishable=function(){return 0==(t&w.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(t&w.CARD_TIMEPUSH)})};var w={};U.OperCodeType=w;w.ANALYSIS_EDITABLE=2;w.ANALYSIS_EXPORT=4;w.ANALYSIS_PRINT=8;w.ANALYSIS_PUBLISH=16;w.ANALYSIS_TIMEPUSH=32;w.ANALYSIS_DETAIL=64;w.CARD_PUBLISH=256;w.CARD_TIMEPUSH=512;w.ENTRY_ANALYSIS=1;w.ENTRY_SQUARE=128;E.THEME_IS_DEL="Theme is Delete";E.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";E.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";E.PERMISSION_CANCEL="Not Permission";E.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(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 E=com.kingdee.bos.qing.scene;E.ThemeAnalysisScene=function(){H.call(this);var u=this.protectedMethod,k,y,B,Y,T,S,N,w,t,p=this.protectedImportMoreCode;this.protectedImportMoreCode=function(x){p(x);
u.importForSchema(x);u.importForPublish(x);u.importLinkage(x);x.pushJs("qhf/qing-qhf.js")};var V=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(x){u.setModuleWithLonger(!0,!0);u.setModuleWithSquare(!1,!1);V(x);k=u.getUrlParamUtil().getUrlParam("bizTag");y="true"==u.getUrlParamUtil().getUrlParam("isPreset");B=u.getUrlParamUtil().getParamTag();Y=new U;var v=(v=u.getUrlParamUtil().getParamPathPrefix())?v:"/ierp";Y.setRemoteUrl(v+"/qing/schemaManage.do");Y.setTag(B);w=new U;w.setRemoteUrl(v+
"/qing/prepare.do");w.setTag(B);v=com.kingdee.bos.qing.behavior.BehaviorManager;v.interestInBehaviorEntrance(v.ENTRANCE_THEME_ANALYSIS);t=new X(null);x()};this.protectedInitDesignerForLonger=function(x){x.setDesignerOperationJudger(t,null);if(y)N||(N=new D,N.getJqUi().appendTo($(document.body))),N.showPrompt(ca.get("presetAnalysisTips","\u9884\u7f6e\u7684\u6570\u636e\u5206\u6790\u4e0d\u5141\u8bb8\u4fdd\u5b58\u5206\u6790\u65b9\u6848\u3001\u53d1\u5e03\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),
-1);else{var v=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER,M=com.kingdee.bos.qing.publish.model.PublishSourceType,K=u.hookLongerPublishTo(x,T,M.SUBJECT,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER),Q=u.hookShareTo(x,v,null,M.SUBJECT);v=function(aa){Q.setEnabled(aa);K.setEnabled(aa)};v(!1);x.setExhibitionContentChangedListener(v);u.hookSetCurrentTabStatus(x)}u.hookRefresh(x,com.kingdee.bos.qing.prepare.DataExtractor);u.hookCloseTab(x);
u.initDesigntimeLinkage();Z(x)};this.protectedLoadingLonger=function(x,v,M){u.loadMeta(x,function(K){var Q=com.kingdee.bos.qing.schemamanage.SchemaManage,aa=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;v.prepareMeta(K);K=new Q(k,aa.SCHEMASOURCE_LONGER);K.setReloadMetaFun(function(O){u.reloadMeta(function(ea){v.prepareMeta(ea);O&&O()})});K.initialize(Y,v,function(O){S||(S=v.getJsonModelBook());M(O)},null,y);T=K.getSchemaContext()})};var Z=function(x){var v=u.getUrlParamUtil().getUrlParam("tag");
com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(v,function(){var M=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER,K=com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_SUBJECT_LONGER,Q=x.getJsonModelBook();return{themeId:k,initSchemaContext:S?JSON.stringify(S):null,finalSchemaContext:Q?JSON.stringify(Q):null,schemaType:M,sceneType:K}})}};var U,D,ca,H,X;(function(){var u=com.kingdee.bos.qing;U=u.RemoteImpl;u=com.kingdee.bos.qing.ui.component;D=u.MessageCurtain;u=
com.kingdee.bos.qing.framework.common;ca=u.MultilanguageManager.createPackageAccessor(E);u=com.kingdee.bos.qing.scene.common.designer;H=u.AbstractDesignerSceneImpl;X=u.LongerDesignerOperationJudgerModel})()})();
//qingVersionTag: 20250415