(function(){function B(){Y.call(this);var m=this,l=this.protectedMethod,D,J,T,O,Q;this.setCurrentPublishSchema=function(a){Q=a};this.setUserOperatorPrevCheck=function(a){T=a};this.setCloseResourceLock=function(a){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var a=l.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);m.protectedNeedToShowMessageBox()&&Z(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var K=function(a){L.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(l.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});L.loadCss("support/support.css");
L.loadJs("support/support-ui.js");L.loadI18n("support","support")},Z=function(a){L.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)});L.loadSkinCss("message","message");
L.loadSkinJs("message","skin");L.loadJs("message/message-manage-ui.js");L.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 p=com.kingdee.bos.qing.theme.message.panel.common.Integration;p.setFunPublishRemoteImpl(function(){var d=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;d.setRemoteUrl(a+"/qing/publishTo.do");return d});p.setFunQingCenterAndMenuEntrance(function(d,
c,g,q){c=E.getUrlParamValue();var k=a+"/qing/publishEntrance.do";k=h.appendParamToUrl(k,"publishId",d);"extreport"==q?(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))});p.setResourceRemoteUrl(a+"/qing/resource.do");p.setDataModelEntrance(function(d,c,g){var q=E.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);q&&(k=h.appendParamToUrl(k,"skin",q));A.openNewTabInAppId(c,k,k,A.QING_ANALYSIS)});p.setFunPublishContext(function(){var d=new com.kingdee.bos.qing.publish.common.PublishContext;d.setParamPathPrefix(a);d.setLappEntranceUrl(a+"/qing/lappEntrance.do");return d});p.setFunPublishedEmailLoginViewUrl(function(){var d=E.getUrlParamValue(),c=u.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});p.setFunPublishedEmailAnonymousViewUrl(function(){var d=E.getUrlParamValue(),c=u.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});p.setFunPublishContentEditEntrance(function(){return function(d,
c,g){var q=com.kingdee.bos.qing.publish.model.PublishTargetType;if(g&&q.MOBILE==g){q=d.getPublishId();var k=d.getId()}else q=d.getId();var n=E.getUrlParamValue(),M=u.getUrlParamValue("language");g=a+"/qing/publishContentEditEntrance.do";g=h.appendParamToUrl(g,"skin",n);g=h.appendParamToUrl(g,"language",M);g=h.appendParamToUrl(g,"publishId",q);k&&(g=h.appendParamToUrl(g,"lappId",k));k=g;c&&(q="editPublishedContent-"+q,n=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,n.putSubscribe(q,c),
g=h.appendParamToUrl(g,"subscribeKey",q),g=h.appendParamToUrl(g,"currentPageClientId",n.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)}});p.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 q=
d.getId(),k=d.getPublishSourceType();n=d.getSchemaSourceType();c=h.appendParamToUrl(c,"configId",q);c=h.appendParamToUrl(c,"publishSourceType",k);c=h.appendParamToUrl(c,"schemaType",n);c=h.appendParamToUrl(c,"pushTarget","email");g=g+"-"+d.getNameRule().getName();d.isSourceNameNotFound()&&(c=h.appendParamToUrl(c,"errorCode","2301001"))}else{q=d.getId();k=d.getPushTargetType();var n=d.getSchemaType();c=h.appendParamToUrl(c,"configId",q);c=h.appendParamToUrl(c,"pushTargetType",k);c=h.appendParamToUrl(c,
"schemaType",n);c=h.appendParamToUrl(c,"pushTarget","lapp");g=g+"-"+d.getName();d.getSourceName()||(c=h.appendParamToUrl(c,"errorCode","2301001"))}d=E.getUrlParamValue();n=u.getUrlParamValue("language");d&&(c=h.appendParamToUrl(c,"skin",d));n&&(c=h.appendParamToUrl(c,"language",n));d=com.kingdee.bos.qing.framework.common.TabbedUiUtil;d.openNewTabInAppId(g,c,c,d.QING_ANALYSIS)}});p=com.kingdee.bos.qing.modeler.message.panel.common.Integration;p.setFunOpenModelSetPage(function(d,c){var g=E.getUrlParamValue(),
q=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(q,k,k,A.QING_MODELER)});p.setFunOpenModelDesign(function(d,c,g,q,k){var n=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,M=E.getUrlParamValue();k=(k=n.getModelTypeText(k))?
k+"-"+g:g;n=a+"/qing_modeler/deployDesignerEntrance.do";n=h.appendParamToUrl(n,"modelSetId",d);n=h.appendParamToUrl(n,"modelId",c);n=h.appendParamToUrl(n,"modelName",g);n=h.appendParamToUrl(n,"modelDeployId",q);M&&(n=h.appendParamToUrl(n,"skin",M));A.openNewTabInAppId(k,n,n,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)},ba=function(a,b,e,f,p,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(G(),function(q){d&&d()},
function(q,k){return 2301016==q?(X().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,p)):d&&d()},ha=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(G())},ia=function(){var a=l.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
R=function(a,b,e,f,p,d){var c=l.getUrlParamUtil().getParamPathPrefix(),g=com.kingdee.bos.qing.publish.common,q=g.PublishContext;g=com.kingdee.bos.qing.schemamanage.model;var k=g.SchemaAttrModel;g=g.SchemaModel;var n=l.getUrlParamUtil().getUrlParam("bizTag"),M=m.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 N=r&&r.hasDirectModeTable();
r=new q;r.setSource(p);r.setBizTag(n);r.setCurrentSourceType(b);r.setHaveToCarryData(M);r.setHasDirectModeTable(N);r.setParamPathPrefix(c);r.setSchemaTag("Dashboard-Analysis"==d?l.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);p=new g;p.setSchemaAttr(b);p.setSchemaContent(a.getJsonModelBook());a=p.toJsonObject();r.setCurrentContentModel(a);
a=l.getUrlParamUtil().getParamTag();b=function(H){H+="/qinganalysis/lappPreviewEntrance.do";for(var t=window.location.search.substring(1).split("&"),C=0;C<t.length;C++){var z=t[C],P=z.indexOf("=");if(-1!=P){var U=z.substring(0,P);"clientID"!=U&&"safetyCode"!=U&&(z=z.substring(P+1),H+=0>H.indexOf("?")?"?":"&",H+=U,H+="=",H+=z)}}return H};e==k.SCHEMASOURCE_SQUARE?(r.setScene(q.Scene.Square),e=b(c),e=h.appendParamToUrl(e,"view","10"),r.setMobilePreviewUrl(e),c=h.appendParamToUrl(c+"/qing/lappEntrance.do",
"tag",a),c=h.appendParamToUrl(c,"view","10"),r.setLappEntranceUrl(c)):e==k.SCHEMASOURCE_LONGER&&(r.setScene(q.Scene.Longer),r.setMobilePreviewUrl(b(c)),c=h.appendParamToUrl(c+"/qing/lappEntrance.do","tag",a),r.setLappEntranceUrl(c));f&&(r.setRefToId(l.getUrlParamUtil().getUrlParam("publishId")),r.setDsbPublishId(f),r.setDashBoardAnalysis(!0));return r},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},S=function(a,b){T?T(function(e){var f=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(pa(),function(d){d.publishInfoPerCheck==B.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):d.publishInfoPerCheck==B.THEME_IS_DEL?ca($(document.body),"msg-warning",x.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==B.PUBLISHINFO_NOEXIST?ca($(document.body),"msg-warning",x.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
B.PERMISSION_CANCEL?ca($(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==B.PUBLSIHPLAN_DELETE&&ca($(document.body),"msg-warning",x.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))}),p=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
p.setFId(Q.getCurrentSchemaId());p.setSchemaName(Q.getCurrentSchemaName());f.checkPublishInfoAndAuthority(e,p)}):a&&a(b)},pa=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=l.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},ca=function(a,b,e){a=new I;a.setOptionType(I.OPTION_OK);a.setButtonText(I.RETURN_OK,x.get("ISee","\u6211\u77e5\u9053\u4e86"));var f={};f.text=e;f.iconName=b;a.setMessage(f);
a.setCustomPainter(function(p,d){var c=$("<div>");c.addClass("sa-ctrl-msgdlg-icon");F.background(c,d.iconName);var g=$("<div>");g.addClass("sa-ctrl-msgdlg-content");g.text(d.text);p.append(c);p.append(g)});a.showDialog(380,280)},ja=function(a,b,e){D?b(D):(new com.kingdee.bos.qing.core.Facade(a,function(f){D=f;b(f)},e)).getMeta()},ka=function(a){D=null;ja(m.getRemoteImpl(),a)},G=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=l.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},la=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=E.getUrlParamValue(),e=l.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},ma=function(){var a=
l.getUrlParamUtil().getParamPathPrefix(),b=E.getUrlParamValue(),e=l.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},aa=function(){return function(a,b,e){var f=com.kingdee.bos.qing.publish.model.PublishTargetType;if(e&&f.MOBILE==e){e=a.getPublishId();var p=a.getId();var d=a.getLappUserType()}else e=a.getId();f=l.getUrlParamUtil().getParamPathPrefix();
var c=E.getUrlParamValue(),g=l.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);p&&(f=h.appendParamToUrl(f,"lappId",p));d&&(f=h.appendParamToUrl(f,"lappUserType",d));p=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,p)}},ea=function(){return function(a){var b=l.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(),p=a.getPublishSourceType();d=a.getSchemaSourceType();b=h.appendParamToUrl(b,"configId",
f);b=h.appendParamToUrl(b,"publishSourceType",p);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();p=a.getPushTargetType();var d=a.getSchemaType();b=h.appendParamToUrl(b,"configId",f);b=h.appendParamToUrl(b,"pushTargetType",p);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=E.getUrlParamValue();d=l.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)},X=function(){J||(J=new com.kingdee.bos.qing.ui.component.MessageCurtain,J.getJqUi().appendTo($(document.body)));return J};l.getMLS=y;l.importLinkage=function(a){a.pushSkinJs("linkage","skin");a.pushJs("linkage/linkage.js");a.pushSkinCss("linkage","linkage")};
l.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")};l.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")};l.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")};l.hookLongerPublishTo=function(a,b,e,f,p,d){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,N,H){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,N,0,H)});
var c=com.kingdee.bos.qing.publish.model;b=c.PublishTargetType;c=com.kingdee.bos.qing.schemamanage.model;var g=c.SchemaAttrModel,q=function(r){var N=com.kingdee.bos.qing.publish.common.PublishFactory,H=r.getUserObject(),t=r.getText().replace("...",""),C=R(a,e,g.SCHEMASOURCE_LONGER,f,p,d);ba(e,H,C,"longer",v.ANALYSIS_PUBLISH,function(){var z=N.createPublishToDialog(t,G(),C,H,aa());z.setOuterMessageCurtain(X());z.showDialog()})},k=com.kingdee.bos.qing.ui.component.MenuItemModel;c=new com.kingdee.bos.qing.ui.component.MenuModel;
var n=new k(function(r){S(q,r)});n.setUserObject(b.APPMENU);n.setText(y("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(n);n=new k(function(r){S(q,r)});n.setUserObject(b.CENTER);n.setText(y("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));c.addItemModel(n);n=new k(function(r){S(q,r)});n.setUserObject(b.MOBILE);n.setText(y("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(n);ha();ia();var M=function(){var r=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
N=R(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new r(G(),N,aa())).showDialog()};n=new k(function(r){S(M,r)});n.setUserObject();n.setText(y("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");c.addItemModel(n);b=y("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(c,"publish_to",b)};l.hookSquarePublishTo=function(a,b,e){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(q,k,n){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,
k,0,n)});var f=com.kingdee.bos.qing.publish.model;b=f.PublishTargetType;f=com.kingdee.bos.qing.schemamanage.model;var p=f.SchemaAttrModel,d=function(q){var k=com.kingdee.bos.qing.publish.common.PublishFactory,n=q.getUserObject(),M=q.getText().replace("...",""),r=R(a,e,p.SCHEMASOURCE_SQUARE);ba(e,n,r,"square",v.CARD_PUBLISH,function(){var N=k.createPublishToDialog(M,G(),r,n,aa());N.setOuterMessageCurtain(X());N.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);ha();ia();g=new c(function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=R(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new q(G(),k,aa())).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)};l.hookPublishManager=function(a,b,e){var f=y("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var p=com.kingdee.bos.qing.publish.common.PublishManagerDialog,d=R(a,b,e);(new p(G(),d,aa())).showDialog()},"publish_manager",f)};l.hookCloseTab=function(a){var b=y("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
w.showConfirmExitDialog():A.closeCurrentTab()},"error_close",b)};l.hookShareTo=function(a,b,e,f,p){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(t,C,z){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(t,C,0,z)});var d=function(t){t=y("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var C=R(a,f,b);t=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(t,G(),C);t.setOuterMessageCurtain(X());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 da;(new V(function(t){window.beLoadedImCloud?d(t):c(t)})).setText(y("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var g=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
q=m.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 n=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!k&&!q&&b==g.SCHEMASOURCE_LONGER){var M=function(t){var C=t.getText().replace("...",""),z=R(a,f,b,p);ba(f,n.EMAIL,z,"longer",v.ANALYSIS_TIMEPUSH,function(){var P=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(C,
G(),z,la(),ma(),ea(),a);P.setOuterMessageCurtain(X());P.showDialog()})},r=new V(function(t){S(M,t)});r.setText(y("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(r)}if(!k&&!q){var N=function(t){var C=R(a,f,b,p),z="longer",P=v.ANALYSIS_TIMEPUSH;b==g.SCHEMASOURCE_SQUARE&&(z="square",P=v.CARD_TIMEPUSH);ba(f,n.EMAIL,C,z,P,function(){var U=new com.kingdee.bos.qing.timedpush.LappSchedulePush,fa=t.getText().replace("...","");U.createDialog(fa,G(),C,ea(),a)})};q=new V(function(t){S(N,
t)});q.setText(y("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(q)}var H=function(){var t=com.kingdee.bos.qing.publish.common.PushManager,C=R(a,f,b);t=new t(ea());var z=com.kingdee.bos.qing.timedpush;t.registerEmailPushPanelConstructor(z.EmailConfigManagePanel);t.initEmailPushConfig(G(),la(),ma());t.registerLappPushPanelConstructor(z.LappPushManagePanel);t.initLappPushConfig(function(P,U,fa){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
G(),P,U,fa)},C);t.showDialog()};q=new V(function(t){S(H,t)});q.setUserObject();q.setText(y("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");e.addItemModel(q);e=a.getConductor().appendToolbarMenu(e,"btn_communicate",y("timedPush","\u5b9a\u65f6\u63a8\u9001"));e.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=d)});return e};l.initDesigntimeLinkage=function(){var a=l.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=l.getUrlParamUtil().getParamTag();a.setCurrentLinkageTag(b)};l.loadMeta=ja;l.reloadMeta=ka;l.hookRefresh=function(a,b){var e=l.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),f=function(){b.restart();b.setExtractDataFinishedSuccessCallback(function(p){p||oa(D)?ka(function(d){var c=a.getJsonModelBook();a.prepareMeta(d);a.setJsonModelBook(c)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){S(f)},"btn_reset",
e)};l.getMessageCurtain=X;l.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){w.setTabStatus(b)})};l.loadPublishOperList=function(a,b,e,f,p){O?e(O):(new com.kingdee.bos.qing.publish.common.PublishFacade(G(),function(d){O=d;e(O)},p)).loadPublishOperList(a,b,f)};l.loadPublishOperModel=function(a,b,e,f){O?e(O):(new com.kingdee.bos.qing.publish.common.PublishFacade(G(),function(p){O=p.noOperValueMap;e(O)},f)).loadPublishOperModel(a,b)};l.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 W=com.kingdee.bos.qing.scene.common.designer,E,Y,L,I,F,h,x,A,da,V,w,u;(function(){var m=com.kingdee.bos.qing;E=m.SkinUtil;Y=m.AbstractDesignerScene;L=m.CodeLoader;u=m.Seer;m=com.kingdee.bos.qing.common;h=m.Util;m=com.kingdee.bos.qing.framework.common;x=m.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
A=m.TabbedUiUtil;m=com.kingdee.bos.qing.ui.component;da=m.MenuModel;V=m.MenuItemModel;I=m.MessageDialog;F=m.Icons;m=com.kingdee.bos.qing.integration;w=m.TabStatusHelper})();W.AbstractDesignerSceneImpl=B;W.LongerDesignerOperationJudgerModel=function(m){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);m&&0!=m&&(this.protectedParseDesignable=function(){return 0==(m&v.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(m&v.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(m&v.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(m&v.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(m&v.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(m&v.ANALYSIS_TIMEPUSH)})};W.SquareDesignerOperationJudgerModel=function(m){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);m&&0!=m&&(this.protectedParsePublishable=function(){return 0==(m&v.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(m&v.CARD_TIMEPUSH)})};var v={};W.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;B.THEME_IS_DEL="Theme is Delete";B.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";B.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";B.PERMISSION_CANCEL="Not Permission";B.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={});com.kingdee.bos.qing.scene.PublishAnalysisdScene=function(){function I(w){var u;this.show=function(m){if(!u){u=$("<div>");u.css("position","absolute");u.css("top","10px");u.css("right","150px");u.css("border-radius",
"5px");u.css("padding","5px 10px");u.css("color","#666");u.css("font-size","12px");u.css("line-height","16px");u.css("text-align","center");u.css("background","#fff");u.css("box-shadow","0 2px 6px 0 rgba(57, 75, 115, 0.15)");u.css("user-select","none");u.css("cursor","move");u.css("z-index","999");var l=$("<div>");l.css("position","absolute");l.css("top","50%");l.css("margin-top","-5px");l.css("width","10px");l.css("height","10px");l.css("background-color","yellow");l.css("color","#bc1118");l.css("border",
"solid 1px #bc1118");l.css("border-radius","5px");l.css("font-size","10px");l.css("font-weight","bold");l.css("text-align","center");l.css("line-height","10px");l.css("cursor","default");l.text("!");var D=$("<div>");D.css("padding-left","18px");D.css("color","red");D.text(m);l.appendTo(u);D.appendTo(u);u.appendTo(w);v()}};var v=function(){var m=!1,l,D,J,T=w.css("cursor"),O=function(K){if(m){var Z=B.getCurrentTargetPosition(K);Z=B.upwardCoordinate(K.target,Z,w[0]);K=l-(Z[0]-J[0])-D;K<=l-D&&0<K&&u.css("right",
K+"px")}else Q()},Q=function(K){m=!1;w.css("cursor",T);w.off("mousemove",O);w.off("mouseleave",Q);w.off("mouseup",Q)};u.on("mousedown",function(K){m=!0;J=B.getCurrentTargetPosition(K);J=B.upwardCoordinate(K.target,J,u[0]);l=w.width();D=u.outerWidth();w.on("mousemove",O);w.on("mouseleave",Q);w.on("mouseup",Q);w.css("cursor","move")});u.on("mouseup",function(K){m=!1;J=null})}}Y.call(this);var F=this.protectedMethod,h,x,A,da=this.protectedImportMoreCode;this.protectedImportMoreCode=function(w){da(w);
F.importForSchema(w);F.importForPublish(w)};var V=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(w){F.setModuleWithLonger(!0,!0);F.setModuleWithSquare(!1,!1);V(w);h=F.getUrlParamUtil().getUrlParam("bizTag");x=new E;var u=F.getUrlParamUtil().getParamPathPrefix();x.setRemoteUrl((u?u:"/ierp")+"/qing/schemaManage.do");x.setTag(F.getUrlParamUtil().getParamTag());"true"==F.getUrlParamUtil().getUrlParam("isAnonymousView")&&(new I($(document.body))).show(F.getMLS("anonymousViewTips","\u60a8\u6b63\u5728\u4ee5\u533f\u540d\u65b9\u5f0f\u67e5\u9605\u5f53\u524d\u8f7b\u5206\u6790\u5185\u5bb9"));
var v=com.kingdee.bos.qing.behavior.BehaviorManager;v.interestInBehaviorEntrance(v.ENTRANCE_PUBLISH_EMAIL_ANALYSIS);u=W.createUUID();v.initAccessRecordParams(h,u,v.SourceType.QING_PUBLISH,v.AppType.QING);v.recordResourceOperation(v.OperationType.QING_VISIT);window.addEventListener("unload",function(){v.recordResourceOperation(v.OperationType.QING_EXIT)});F.loadPublishOperList(h,null,function(m){var l=com.kingdee.bos.qing.publish.model.OperType;A=new L(m?m[l.LONGER]:null);w()},!0)};this.protectedInitDesignerForLonger=
function(w){w.setDesignerOperationJudger(A,null)};this.protectedHaveToCarryData=function(){return"true"==F.getUrlParamUtil().getUrlParam("haveToCarryData")};this.protectedLoadingLonger=function(w,u,v){F.loadMeta(w,function(m){var l=com.kingdee.bos.qing.schemamanage.SchemaManage,D=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;u.prepareMeta(m);m=new l(h,D.SCHEMASOURCE_LONGER);m.setDesignerOperationJudger(A);m.setReloadMetaFun(function(J){F.reloadMeta(function(T){u.prepareMeta(T);J&&J()})});
m.initalizeParameter(x,u);m.loadDefaultSchema(v,null)})}};var B,W,E,Y,L;(function(){var I=com.kingdee.bos.qing;E=I.RemoteImpl;I=com.kingdee.bos.qing.common;B=I.DomUtil;W=I.Util;I=com.kingdee.bos.qing.scene.common.designer;Y=I.AbstractDesignerSceneImpl;L=I.LongerDesignerOperationJudgerModel})()})();
//qingVersionTag: 20250415