(function(){function E(){ba.call(this);var t=this,p=this.protectedMethod,U,v,x,F,I;this.setCurrentPublishSchema=function(a){I=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"});Q(a);t.protectedNeedToShowMessageBox()&&X(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var Q=function(a){J.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(p.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});J.loadCss("support/support.css");
J.loadJs("support/support-ui.js");J.loadI18n("support","support")},X=function(a){J.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");Y(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)});J.loadSkinCss("message","message");
J.loadSkinJs("message","skin");J.loadJs("message/message-manage-ui.js");J.loadI18n("message","message")},Y=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)),y.openNewTabInAppId(g,h,h,y.QING_RPT)):(c&&(h=k.appendParamToUrl(h,"skin",c)),y.openNewTabInAppId(g,h,h,y.QING_ANALYSIS))});m.setResourceRemoteUrl(a+"/qing/resource.do");m.setDataModelEntrance(function(d,c,g){var n=D.getUrlParamValue();c=z.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));y.openNewTabInAppId(c,h,h,y.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=O.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=O.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(),K=O.getUrlParamValue("language");g=a+"/qing/publishContentEditEntrance.do";g=k.appendParamToUrl(g,"skin",l);g=k.appendParamToUrl(g,"language",K);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(z.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=z.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=O.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=z.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));y.openNewTabInAppId(n,h,h,y.QING_MODELER)});m.setFunOpenModelDesign(function(d,c,g,n,h){var l=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,K=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);K&&(l=k.appendParamToUrl(l,"skin",K));y.openNewTabInAppId(h,l,l,y.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)},aa=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(G(),function(n){d&&d()},
function(n,h){return 2301016==n?(Z().showPrompt(z.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()},ia=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(G())},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"),K=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 L=q&&q.hasDirectModeTable();
q=new n;q.setSource(m);q.setBizTag(l);q.setCurrentSourceType(b);q.setHaveToCarryData(K);q.setHasDirectModeTable(L);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(A("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(H){H+="/qinganalysis/lappPreviewEntrance.do";for(var r=window.location.search.substring(1).split("&"),C=0;C<r.length;C++){var B=r[C],M=B.indexOf("=");if(-1!=M){var V=B.substring(0,M);"clientID"!=V&&"safetyCode"!=V&&(B=B.substring(M+1),H+=0>H.indexOf("?")?"?":"&",H+=V,H+="=",H+=B)}}return H};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?ea($(document.body),"msg-warning",z.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==E.PUBLISHINFO_NOEXIST?ea($(document.body),"msg-warning",z.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
E.PERMISSION_CANCEL?ea($(document.body),"msg-jurisdiction",z.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+d.publishInfoUserName+'"'+z.get("authority","\u6388\u6743")):d.publishInfoPerCheck==E.PUBLSIHPLAN_DELETE&&ea($(document.body),"msg-warning",z.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(I.getCurrentSchemaId());m.setSchemaName(I.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},ea=function(a,b,e){a=new W;a.setOptionType(W.OPTION_OK);a.setButtonText(W.RETURN_OK,z.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){U?b(U):(new com.kingdee.bos.qing.core.Facade(a,function(f){U=f;b(f)},e)).getMeta()},la=function(a){U=null;ka(t.getRemoteImpl(),a)},G=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},ca=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()));y.openNewTab(z.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),f,m)}},fa=function(){return function(a){var b=p.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var e=z.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));y.openNewTab(e,b)}},A=function(a,b){return z.get(a,b)},Z=function(){v||(v=new com.kingdee.bos.qing.ui.component.MessageCurtain,v.getJqUi().appendTo($(document.body)));return v};p.getMLS=A;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,L,H){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,L,0,H)});
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 L=com.kingdee.bos.qing.publish.common.PublishFactory,H=q.getUserObject(),r=q.getText().replace("...",""),C=P(a,e,g.SCHEMASOURCE_LONGER,f,m,d);aa(e,H,C,"longer",w.ANALYSIS_PUBLISH,function(){var B=L.createPublishToDialog(r,G(),C,H,ca());B.setOuterMessageCurtain(Z());B.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(A("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(l);l=new h(function(q){R(n,q)});l.setUserObject(b.CENTER);l.setText(A("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(A("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(l);ia();ja();var K=function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
L=P(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new q(G(),L,ca())).showDialog()};l=new h(function(q){R(K,q)});l.setUserObject();l.setText(A("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");c.addItemModel(l);b=A("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(),K=n.getText().replace("...",""),q=P(a,e,m.SCHEMASOURCE_SQUARE);aa(e,l,q,"square",w.CARD_PUBLISH,function(){var L=h.createPublishToDialog(K,G(),q,l,ca());L.setOuterMessageCurtain(Z());L.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(A("toCardRepository","\u5361\u7247\u5e93..."));f.addItemModel(g);d=new c(d);d.setText(A("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.setUserObject(b.MOBILE);f.addItemModel(d);ia();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(G(),h,ca())).showDialog()});g.setUserObject();g.setText(A("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");f.addItemModel(g);b=A("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(f,"publish_to",b)};p.hookPublishManager=function(a,b,e){var f=A("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(G(),d,ca())).showDialog()},"publish_manager",f)};p.hookCloseTab=function(a){var b=A("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
S.showConfirmExitDialog():y.closeCurrentTab()},"error_close",b)};p.hookShareTo=function(a,b,e,f,m){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,C,B){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,C,0,B)});var d=function(r){r=A("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var C=P(a,f,b);r=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(r,G(),C);r.setOuterMessageCurtain(Z());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 da;(new N(function(r){window.beLoadedImCloud?d(r):c(r)})).setText(A("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 K=function(r){var C=r.getText().replace("...",""),B=P(a,f,b,m);aa(f,l.EMAIL,B,"longer",w.ANALYSIS_TIMEPUSH,function(){var M=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(C,
G(),B,ma(),na(),fa(),a);M.setOuterMessageCurtain(Z());M.showDialog()})},q=new N(function(r){R(K,r)});q.setText(A("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(q)}if(!h&&!n){var L=function(r){var C=P(a,f,b,m),B="longer",M=w.ANALYSIS_TIMEPUSH;b==g.SCHEMASOURCE_SQUARE&&(B="square",M=w.CARD_TIMEPUSH);aa(f,l.EMAIL,C,B,M,function(){var V=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ha=r.getText().replace("...","");V.createDialog(ha,G(),C,fa(),a)})};n=new N(function(r){R(L,
r)});n.setText(A("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(n)}var H=function(){var r=com.kingdee.bos.qing.publish.common.PushManager,C=P(a,f,b);r=new r(fa());var B=com.kingdee.bos.qing.timedpush;r.registerEmailPushPanelConstructor(B.EmailConfigManagePanel);r.initEmailPushConfig(G(),ma(),na());r.registerLappPushPanelConstructor(B.LappPushManagePanel);r.initLappPushConfig(function(M,V,ha){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
G(),M,V,ha)},C);r.showDialog()};n=new N(function(r){R(H,r)});n.setUserObject();n.setText(A("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");e.addItemModel(n);e=a.getConductor().appendToolbarMenu(e,"btn_communicate",A("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(U)?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=Z;p.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){S.setTabStatus(b)})};p.loadPublishOperList=function(a,b,e,f,m){F?e(F):(new com.kingdee.bos.qing.publish.common.PublishFacade(G(),function(d){F=d;e(F)},m)).loadPublishOperList(a,b,f)};p.loadPublishOperModel=function(a,b,e,f){F?e(F):(new com.kingdee.bos.qing.publish.common.PublishFacade(G(),function(m){F=m.noOperValueMap;e(F)},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 T=com.kingdee.bos.qing.scene.common.designer,D,ba,J,W,u,k,z,y,da,N,S,O;(function(){var t=com.kingdee.bos.qing;D=t.SkinUtil;ba=t.AbstractDesignerScene;J=t.CodeLoader;O=t.Seer;t=com.kingdee.bos.qing.common;k=t.Util;t=com.kingdee.bos.qing.framework.common;z=t.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
y=t.TabbedUiUtil;t=com.kingdee.bos.qing.ui.component;da=t.MenuModel;N=t.MenuItemModel;W=t.MessageDialog;u=t.Icons;t=com.kingdee.bos.qing.integration;S=t.TabStatusHelper})();T.AbstractDesignerSceneImpl=E;T.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)})};T.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={};T.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.ThemeSquareScene=function(){J.call(this);var u=this.protectedMethod,k,z,y,da,N,S,O,w,t=this.protectedImportMoreCode;this.protectedImportMoreCode=function(v){t(v);u.importForSchema(v);
u.importForPublish(v);u.importLinkage(v);u.importForMap(v);v.pushJs("qhf/qing-qhf.js")};var p=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(v){u.setModuleWithSquare(!0,!0);p(v);k=u.getUrlParamUtil().getUrlParam("bizTag");z="true"==u.getUrlParamUtil().getUrlParam("isPreset");y=new T;var x=(x=u.getUrlParamUtil().getParamPathPrefix())?x:"/ierp";y.setRemoteUrl(x+"/qing/schemaManage.do");y.setTag(u.getUrlParamUtil().getParamTag());O=new T;O.setRemoteUrl(x+"/qing/prepare.do");O.setTag(u.getUrlParamUtil().getParamTag());
u.registMapMapLibrary(x);x=com.kingdee.bos.qing.behavior.BehaviorManager;x.interestInBehaviorEntrance(x.ENTRANCE_THEME_SQUARE);w=new W(null);v()};this.protectedInitDesignerForSquare=function(v){v.setDesignerOperationJudger(w,null);if(z)S||(S=new D,S.getJqUi().appendTo($(document.body))),S.showPrompt(ba.get("presetSquareTips","\u9884\u7f6e\u7684\u6570\u636e\u6597\u65b9\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 x=com.kingdee.bos.qing.publish.model.PublishSourceType,F=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE,I=u.hookSquarePublishTo(v,da,x.SUBJECT),Q=u.hookShareTo(v,F,null,x.SUBJECT);x=function(X){Q.setEnabled(X);I.setEnabled(X)};x(!1);v.setExhibitionContentChangedListener(x);u.hookSetCurrentTabStatus(v)}u.hookRefresh(v,com.kingdee.bos.qing.prepare.DataExtractor);u.hookCloseTab(v);u.initDesigntimeLinkage();U(v)};this.protectedLoadingSquare=function(v,x,F){u.loadMeta(v,
function(I){var Q=com.kingdee.bos.qing.schemamanage.SchemaManage,X=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;x.prepareMeta(I);I=new Q(k,X.SCHEMASOURCE_SQUARE);I.setReloadMetaFun(function(Y){u.reloadMeta(function(aa){x.prepareMeta(aa);Y&&Y()})});I.initialize(y,x,function(Y){N||(N=x.getJsonModelBook());F(Y)},null,z);da=I.getSchemaContext()})};var U=function(v){var x=u.getUrlParamUtil().getUrlParam("tag");com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(x,function(){var F=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE,
I=com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_SUBJECT_SQUARE,Q=v.getJsonModelBook();return{themeId:k,initSchemaContext:N?JSON.stringify(N):null,finalSchemaContext:Q?JSON.stringify(Q):null,schemaType:F,sceneType:I}})}};var T,D,ba,J,W;(function(){var u=com.kingdee.bos.qing;T=u.RemoteImpl;u=com.kingdee.bos.qing.ui.component;D=u.MessageCurtain;u=com.kingdee.bos.qing.framework.common;ba=u.MultilanguageManager.createPackageAccessor(E);u=com.kingdee.bos.qing.scene.common.designer;J=u.AbstractDesignerSceneImpl;
W=u.LongerDesignerOperationJudgerModel})()})();
//qingVersionTag: 20250415