(function(){function G(){ba.call(this);var t=this,p=this.protectedMethod,U,V,ca,u,x;this.setCurrentPublishSchema=function(a){x=a};this.setUserOperatorPrevCheck=function(a){ca=a};this.setCloseResourceLock=function(a){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var a=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"});z(a);t.protectedNeedToShowMessageBox()&&H(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var z=function(a){K.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(p.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});K.loadCss("support/support.css");
K.loadJs("support/support-ui.js");K.loadI18n("support","support")},H=function(a){K.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");S(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)});K.loadSkinCss("message","message");
K.loadSkinJs("message","skin");K.loadJs("message/message-manage-ui.js");K.loadI18n("message","message")},S=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=F.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)),C.openNewTabInAppId(g,k,k,C.QING_RPT)):(c&&(k=h.appendParamToUrl(k,"skin",c)),C.openNewTabInAppId(g,k,k,C.QING_ANALYSIS))});m.setResourceRemoteUrl(a+"/qing/resource.do");m.setDataModelEntrance(function(d,c,g){var n=F.getUrlParamValue();c=y.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));C.openNewTabInAppId(c,k,k,C.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=F.getUrlParamValue(),c=Q.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=F.getUrlParamValue(),c=Q.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=F.getUrlParamValue(),L=Q.getUrlParamValue("language");g=a+"/qing/publishContentEditEntrance.do";g=h.appendParamToUrl(g,"skin",l);g=h.appendParamToUrl(g,"language",L);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(y.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=y.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=F.getUrlParamValue();l=Q.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=F.getUrlParamValue(),
n=y.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));C.openNewTabInAppId(n,k,k,C.QING_MODELER)});m.setFunOpenModelDesign(function(d,c,g,n,k){var l=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,L=F.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);L&&(l=h.appendParamToUrl(l,"skin",L));C.openNewTabInAppId(k,l,l,C.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)},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(I(),function(n){d&&d()},
function(n,k){return 2301016==n?(Z().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()},O=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(I())},fa=function(){var a=p.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
R=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"),L=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 M=q&&q.hasDirectModeTable();
q=new n;q.setSource(m);q.setBizTag(l);q.setCurrentSourceType(b);q.setHaveToCarryData(L);q.setHasDirectModeTable(M);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(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(J){J+="/qinganalysis/lappPreviewEntrance.do";for(var r=window.location.search.substring(1).split("&"),E=0;E<r.length;E++){var B=r[E],N=B.indexOf("=");if(-1!=N){var W=B.substring(0,N);"clientID"!=W&&"safetyCode"!=W&&(B=B.substring(N+1),J+=0>J.indexOf("?")?"?":"&",J+=W,J+="=",J+=B)}}return J};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},T=function(a,b){ca?ca(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?ha($(document.body),"msg-warning",y.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==G.PUBLISHINFO_NOEXIST?ha($(document.body),"msg-warning",y.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
G.PERMISSION_CANCEL?ha($(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==G.PUBLSIHPLAN_DELETE&&ha($(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(x.getCurrentSchemaId());m.setSchemaName(x.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},ha=function(a,b,e){a=new D;a.setOptionType(D.OPTION_OK);a.setButtonText(D.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");w.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)},I=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=F.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},na=function(){var a=
p.getUrlParamUtil().getParamPathPrefix(),b=F.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},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=F.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()));C.openNewTab(y.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),f,m)}},ia=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=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=F.getUrlParamValue();d=p.getUrlParamUtil().getParamLanguage();a&&(b=h.appendParamToUrl(b,"skin",a));d&&(b=h.appendParamToUrl(b,"language",d));C.openNewTab(e,b)}},A=function(a,b){return y.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,M,J){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,M,0,J)});
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 M=com.kingdee.bos.qing.publish.common.PublishFactory,J=q.getUserObject(),r=q.getText().replace("...",""),E=R(a,e,g.SCHEMASOURCE_LONGER,f,m,d);aa(e,J,E,"longer",v.ANALYSIS_PUBLISH,function(){var B=M.createPublishToDialog(r,I(),E,J,da());B.setOuterMessageCurtain(Z());B.showDialog()})},k=com.kingdee.bos.qing.ui.component.MenuItemModel;c=new com.kingdee.bos.qing.ui.component.MenuModel;
var l=new k(function(q){T(n,q)});l.setUserObject(b.APPMENU);l.setText(A("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(l);l=new k(function(q){T(n,q)});l.setUserObject(b.CENTER);l.setText(A("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));c.addItemModel(l);l=new k(function(q){T(n,q)});l.setUserObject(b.MOBILE);l.setText(A("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(l);O();fa();var L=function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
M=R(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new q(I(),M,da())).showDialog()};l=new k(function(q){T(L,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,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(),L=n.getText().replace("...",""),q=R(a,e,m.SCHEMASOURCE_SQUARE);aa(e,l,q,"square",v.CARD_PUBLISH,function(){var M=k.createPublishToDialog(L,I(),q,l,da());M.setOuterMessageCurtain(Z());M.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);O();fa();g=new c(function(){var n=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=R(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new n(I(),k,da())).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=R(a,b,e);(new m(I(),d,da())).showDialog()},"publish_manager",f)};p.hookCloseTab=function(a){var b=A("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
X.showConfirmExitDialog():C.closeCurrentTab()},"error_close",b)};p.hookShareTo=function(a,b,e,f,m){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,E,B){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,E,0,B)});var d=function(r){r=A("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var E=R(a,f,b);r=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(r,I(),E);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 ea;(new P(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(),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 L=function(r){var E=r.getText().replace("...",""),B=R(a,f,b,m);aa(f,l.EMAIL,B,"longer",v.ANALYSIS_TIMEPUSH,function(){var N=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(E,
I(),B,ma(),na(),ia(),a);N.setOuterMessageCurtain(Z());N.showDialog()})},q=new P(function(r){T(L,r)});q.setText(A("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(q)}if(!k&&!n){var M=function(r){var E=R(a,f,b,m),B="longer",N=v.ANALYSIS_TIMEPUSH;b==g.SCHEMASOURCE_SQUARE&&(B="square",N=v.CARD_TIMEPUSH);aa(f,l.EMAIL,E,B,N,function(){var W=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ja=r.getText().replace("...","");W.createDialog(ja,I(),E,ia(),a)})};n=new P(function(r){T(M,
r)});n.setText(A("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(n)}var J=function(){var r=com.kingdee.bos.qing.publish.common.PushManager,E=R(a,f,b);r=new r(ia());var B=com.kingdee.bos.qing.timedpush;r.registerEmailPushPanelConstructor(B.EmailConfigManagePanel);r.initEmailPushConfig(I(),ma(),na());r.registerLappPushPanelConstructor(B.LappPushManagePanel);r.initLappPushConfig(function(N,W,ja){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
I(),N,W,ja)},E);r.showDialog()};n=new P(function(r){T(J,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(){T(f)},"btn_reset",
e)};p.getMessageCurtain=Z;p.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){X.setTabStatus(b)})};p.loadPublishOperList=function(a,b,e,f,m){u?e(u):(new com.kingdee.bos.qing.publish.common.PublishFacade(I(),function(d){u=d;e(u)},m)).loadPublishOperList(a,b,f)};p.loadPublishOperModel=function(a,b,e,f){u?e(u):(new com.kingdee.bos.qing.publish.common.PublishFacade(I(),function(m){u=m.noOperValueMap;e(u)},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 Y=com.kingdee.bos.qing.scene.common.designer,F,ba,K,D,w,h,y,C,ea,P,X,Q;(function(){var t=com.kingdee.bos.qing;F=t.SkinUtil;ba=t.AbstractDesignerScene;K=t.CodeLoader;Q=t.Seer;t=com.kingdee.bos.qing.common;h=t.Util;t=com.kingdee.bos.qing.framework.common;y=t.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
C=t.TabbedUiUtil;t=com.kingdee.bos.qing.ui.component;ea=t.MenuModel;P=t.MenuItemModel;D=t.MessageDialog;w=t.Icons;t=com.kingdee.bos.qing.integration;X=t.TabStatusHelper})();Y.AbstractDesignerSceneImpl=G;Y.LongerDesignerOperationJudgerModel=function(t){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);t&&0!=t&&(this.protectedParseDesignable=function(){return 0==(t&v.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(t&v.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(t&v.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(t&v.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(t&v.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(t&v.ANALYSIS_TIMEPUSH)})};Y.SquareDesignerOperationJudgerModel=function(t){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);t&&0!=t&&(this.protectedParsePublishable=function(){return 0==(t&v.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(t&v.CARD_TIMEPUSH)})};var v={};Y.OperCodeType=v;v.ANALYSIS_EDITABLE=2;v.ANALYSIS_EXPORT=4;v.ANALYSIS_PRINT=8;v.ANALYSIS_PUBLISH=16;v.ANALYSIS_TIMEPUSH=32;v.ANALYSIS_DETAIL=64;v.CARD_PUBLISH=256;v.CARD_TIMEPUSH=512;v.ENTRY_ANALYSIS=1;v.ENTRY_SQUARE=128;G.THEME_IS_DEL="Theme is Delete";G.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";G.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";G.PERMISSION_CANCEL="Not Permission";G.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){"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(){Y.call(this);var D=this,w=this.protectedMethod,h,y,C,ea,P,X,Q,v,t,p=this.protectedImportMoreCode;this.protectedImportMoreCode=function(u){p(u);
w.importForSchema(u);w.importForPublish(u);w.importLinkage(u);u.pushJs("qhf/qing-qhf.js")};var U=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(u){w.setModuleWithLonger(!0,!0);w.setModuleWithSquare(!1,!1);U(u);h=w.getUrlParamUtil().getUrlParam("bizTag");y=w.getUrlParamUtil().getUrlParam("publishSourceType");C="true"==w.getUrlParamUtil().getUrlParam("isPreset");ea=w.getUrlParamUtil().getUrlParam("timedPush");P=new G;var x=V()+"/qing/schemaManage.do";P.setRemoteUrl(x);P.setTag(w.getUrlParamUtil().getParamTag());
X=new G;x=V()+"/qing/prepare.do";X.setRemoteUrl(x);x=w.getUrlParamUtil().getUrlParam("tag");X.setTag(x);x=w.getUrlParamUtil().getUrlParam("publishTargetType");var z=com.kingdee.bos.qing.behavior.BehaviorManager;z.interestInBehaviorEntrance(z.getEntrance(z.ENTRANCE_PUBLISH_ANALYSIS,x));x=com.kingdee.bos.qing.common.Util.createUUID();z.initAccessRecordParams(h,x,z.SourceType.QING_PUBLISH,z.AppType.QING);z.recordResourceOperation(z.OperationType.QING_VISIT);window.addEventListener("unload",function(){z.recordResourceOperation(z.OperationType.QING_EXIT)});
w.loadPublishOperList(h,null,function(H){var S=com.kingdee.bos.qing.publish.model.OperType;t=new K(H?H[S.LONGER]:null);u()},ea)};this.protectedInitDesignerForLonger=function(u){u.setDesignerOperationJudger(t,null);if(!C){var x=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER;t.protectedParsePublishable()&&w.hookLongerPublishTo(u,Q,y);!D.protectedHaveToCarryData()&&t.protectedParseTimingPushable()&&w.hookShareTo(u,x,null,y);w.hookSetCurrentTabStatus(u)}D.protectedHaveToCarryData()||
(D.setUserOperatorPrevCheck(function(z){z&&z(h)}),w.hookRefresh(u,com.kingdee.bos.qing.prepare.DataExtractor));x=window.com.kingdee.bos.qing.AnalysisSceneOuterApi;t.protectedParseDesignable()&&x.inside.setDirtyChecker(function(){return u.getConductor().isDirty()});x.inside.setBeforeClosing(function(){return ba.setTabStatus(!1)});ca(u);w.initDesigntimeLinkage();return u.getConductor().appendToolbarButton(x.inside.requestClosing,"error_close",F.get("closeTab","\u9000\u51fa"))};this.protectedHaveToCarryData=
function(){return"true"==w.getUrlParamUtil().getUrlParam("haveToCarryData")};this.protectedNeedToShowMessageBox=function(){return"qing_workbench"!==w.getUrlParamUtil().getUrlParam("openFrom")};this.protectedLoadingLonger=function(u,x,z){w.loadMeta(u,function(H){var S=com.kingdee.bos.qing.schemamanage.SchemaManage,aa=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;x.prepareMeta(H);H=new S(h,aa.SCHEMASOURCE_LONGER);H.setDesignerOperationJudger(t);H.setCheckPublishInfoAuthority(function(O){O&&
O(y)});H.setReloadMetaFun(function(O){w.reloadMeta(function(fa){x.prepareMeta(fa);O&&O()})});H.initialize(P,x,function(O){v||(v=x.getJsonModelBook());z(O)},null,C);Q=H.getSchemaContext();D.setCurrentPublishSchema(Q)})};var V=function(){var u=w.getUrlParamUtil().getParamPathPrefix();return u?u:"/ierp"},ca=function(u){var x=w.getUrlParamUtil().getUrlParam("tag");com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(x,function(){var z=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER;
var H="subject"==y?com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_SUBJECT_LONGER:com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_EMBEDDED_LONGER;var S=u.getJsonModelBook();return{publishId:h,initSchemaContext:v?JSON.stringify(v):null,finalSchemaContext:S?JSON.stringify(S):null,schemaType:z,sceneType:H}})}};var G,Y,F,ba,K;(function(){var D=com.kingdee.bos.qing;G=D.RemoteImpl;D=com.kingdee.bos.qing.scene.common.designer;Y=D.AbstractDesignerSceneImpl;K=D.LongerDesignerOperationJudgerModel;
D=com.kingdee.bos.qing.framework.common;F=D.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);D=com.kingdee.bos.qing.integration;ba=D.TabStatusHelper})()})();
//qingVersionTag: 20250415