(function(){function H(){da.call(this);var u=this,p=this.protectedMethod,V,aa,x,y,L;this.setCurrentPublishSchema=function(a){L=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"});E(a);u.protectedNeedToShowMessageBox()&&I(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var E=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")},I=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");ia(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")},ia=function(a){var b=com.kingdee.bos.qing.message.common.Integration;b.setImportJSCodeForManager(function(){var g=com.kingdee.bos.qing.CodeLoader;g.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,h,n){c=D.getUrlParamValue();var k=a+"/qing/publishEntrance.do";k=f.appendParamToUrl(k,"publishId",d);"extreport"==n?(k=f.appendParamToUrl(k,"appID","qing_rpt"),c&&(k=f.appendParamToUrl(k,"skin",c)),z.openNewTabInAppId(h,k,k,z.QING_RPT)):(c&&(k=f.appendParamToUrl(k,"skin",c)),z.openNewTabInAppId(h,k,k,z.QING_ANALYSIS))});m.setResourceRemoteUrl(a+"/qing/resource.do");m.setDataModelEntrance(function(d,c,h){var n=D.getUrlParamValue();c=w.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+c;var k=a+
"/qing/dataModelingEntrance.do";k=f.appendParamToUrl(k,"themeID",d);k=f.appendParamToUrl(k,"isPreset",h);n&&(k=f.appendParamToUrl(k,"skin",n));z.openNewTabInAppId(c,k,k,z.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=P.getUrlParamValue("language"),h=a+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
d&&(h=f.appendParamToUrl(h,"skin",d));c&&(h=f.appendParamToUrl(h,"language",c));return h});m.setFunPublishedEmailAnonymousViewUrl(function(){var d=D.getUrlParamValue(),c=P.getUrlParamValue("language"),h=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&&(h=f.appendParamToUrl(h,"skin",d));c&&(h=f.appendParamToUrl(h,"language",c));return h});m.setFunPublishContentEditEntrance(function(){return function(d,
c,h){var n=com.kingdee.bos.qing.publish.model.PublishTargetType;if(h&&n.MOBILE==h){n=d.getPublishId();var k=d.getId()}else n=d.getId();var l=D.getUrlParamValue(),M=P.getUrlParamValue("language");h=a+"/qing/publishContentEditEntrance.do";h=f.appendParamToUrl(h,"skin",l);h=f.appendParamToUrl(h,"language",M);h=f.appendParamToUrl(h,"publishId",n);k&&(h=f.appendParamToUrl(h,"lappId",k));k=h;c&&(n="editPublishedContent-"+n,l=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,l.putSubscribe(n,c),
h=f.appendParamToUrl(h,"subscribeKey",n),h=f.appendParamToUrl(h,"currentPageClientId",l.getCurrentPageClientId()));c=com.kingdee.bos.qing.framework.common.TabbedUiUtil;c.openNewTabInAppId(w.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+d.getName(),h,k,c.QING_ANALYSIS)}});m.setFunTimedPushContentEditEntrance(function(){return function(d){var c=a+"/qing/timedPushContentEditEntrance.do",h=w.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=f.appendParamToUrl(c,"configId",n);c=f.appendParamToUrl(c,"publishSourceType",k);c=f.appendParamToUrl(c,"schemaType",l);c=f.appendParamToUrl(c,"pushTarget","email");h=h+"-"+d.getNameRule().getName();d.isSourceNameNotFound()&&(c=f.appendParamToUrl(c,"errorCode","2301001"))}else{n=d.getId();k=d.getPushTargetType();var l=d.getSchemaType();c=f.appendParamToUrl(c,"configId",n);c=f.appendParamToUrl(c,"pushTargetType",k);c=f.appendParamToUrl(c,
"schemaType",l);c=f.appendParamToUrl(c,"pushTarget","lapp");h=h+"-"+d.getName();d.getSourceName()||(c=f.appendParamToUrl(c,"errorCode","2301001"))}d=D.getUrlParamValue();l=P.getUrlParamValue("language");d&&(c=f.appendParamToUrl(c,"skin",d));l&&(c=f.appendParamToUrl(c,"language",l));d=com.kingdee.bos.qing.framework.common.TabbedUiUtil;d.openNewTabInAppId(h,c,c,d.QING_ANALYSIS)}});m=com.kingdee.bos.qing.modeler.message.panel.common.Integration;m.setFunOpenModelSetPage(function(d,c){var h=D.getUrlParamValue(),
n=w.get("modelSet","\u6a21\u578b\u96c6-")+c,k=a+"/qing_modeler/modelSetMainPage.do";k=f.appendParamToUrl(k,"modelSetId",d);k=f.appendParamToUrl(k,"modelSetName",c);k=f.appendParamToUrl(k,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());h&&(k=f.appendParamToUrl(k,"skin",h));z.openNewTabInAppId(n,k,k,z.QING_MODELER)});m.setFunOpenModelDesign(function(d,c,h,n,k){var l=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,M=D.getUrlParamValue();k=(k=l.getModelTypeText(k))?
k+"-"+h:h;l=a+"/qing_modeler/deployDesignerEntrance.do";l=f.appendParamToUrl(l,"modelSetId",d);l=f.appendParamToUrl(l,"modelId",c);l=f.appendParamToUrl(l,"modelName",h);l=f.appendParamToUrl(l,"modelDeployId",n);M&&(l=f.appendParamToUrl(l,"skin",M));z.openNewTabInAppId(k,l,l,z.QING_MODELER)})});g.loadSkinCss("message","messagepanel");g.loadSkinJs("message","skin");g.loadJs("message/message-content-panel-management.js");g.loadI18n("message","messagepanel");g.loadSkinCss("qingmodeler/message","message-modeler-panel");
g.loadSkinJs("qingmodeler/message","skin");g.loadJs("qingmodeler/message/message-content-panel-management.js");g.loadI18n("qingmodeler/message","message-modeler-panel")});var e=f.decodeParamFromUrl(location.search,"appID");b.setAppId(e)},ca=function(a,b,e,g,m,d){var c=com.kingdee.bos.qing.publish.model.PublishSourceType,h=com.kingdee.bos.qing.publish.model.PublishTargetType;a!=c.EXTREPORT&&a!=c.DASHBOARD&&b!=h.GUIMENU?(a=new com.kingdee.bos.qing.publish.common.PublishFacade(F(),function(n){d&&d()},
function(n,k){return 2301016==n?(ba().showPrompt(w.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,g,m)):d&&d()},U=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(F())},W=function(){var a=p.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
K=function(a,b,e,g,m,d){var c=p.getUrlParamUtil().getParamPathPrefix(),h=com.kingdee.bos.qing.publish.common,n=h.PublishContext;h=com.kingdee.bos.qing.schemamanage.model;var k=h.SchemaAttrModel;h=h.SchemaModel;var l=p.getUrlParamUtil().getUrlParam("bizTag"),M=u.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 N=q&&q.hasDirectModeTable();
q=new n;q.setSource(m);q.setBizTag(l);q.setCurrentSourceType(b);q.setHaveToCarryData(M);q.setHasDirectModeTable(N);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 h;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 B=r[C],O=B.indexOf("=");if(-1!=O){var X=B.substring(0,O);"clientID"!=X&&"safetyCode"!=X&&(B=B.substring(O+1),G+=0>G.indexOf("?")?"?":"&",G+=X,G+="=",G+=B)}}return G};e==k.SCHEMASOURCE_SQUARE?(q.setScene(n.Scene.Square),e=b(c),e=f.appendParamToUrl(e,"view","10"),q.setMobilePreviewUrl(e),c=f.appendParamToUrl(c+"/qing/lappEntrance.do",
"tag",a),c=f.appendParamToUrl(c,"view","10"),q.setLappEntranceUrl(c)):e==k.SCHEMASOURCE_LONGER&&(q.setScene(n.Scene.Longer),q.setMobilePreviewUrl(b(c)),c=f.appendParamToUrl(c+"/qing/lappEntrance.do","tag",a),q.setLappEntranceUrl(c));g&&(q.setRefToId(p.getUrlParamUtil().getUrlParam("publishId")),q.setDsbPublishId(g),q.setDashBoardAnalysis(!0));return q},ea=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},Q=function(a,b){x?x(function(e){var g=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(pa(),function(d){d.publishInfoPerCheck==H.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):d.publishInfoPerCheck==H.THEME_IS_DEL?ha($(document.body),"msg-warning",w.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==H.PUBLISHINFO_NOEXIST?ha($(document.body),"msg-warning",w.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
H.PERMISSION_CANCEL?ha($(document.body),"msg-jurisdiction",w.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+d.publishInfoUserName+'"'+w.get("authority","\u6388\u6743")):d.publishInfoPerCheck==H.PUBLSIHPLAN_DELETE&&ha($(document.body),"msg-warning",w.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(L.getCurrentSchemaId());m.setSchemaName(L.getCurrentSchemaName());g.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 Y;a.setOptionType(Y.OPTION_OK);a.setButtonText(Y.RETURN_OK,w.get("ISee","\u6211\u77e5\u9053\u4e86"));var g={};g.text=e;g.iconName=b;a.setMessage(g);
a.setCustomPainter(function(m,d){var c=$("<div>");c.addClass("sa-ctrl-msgdlg-icon");t.background(c,d.iconName);var h=$("<div>");h.addClass("sa-ctrl-msgdlg-content");h.text(d.text);m.append(c);m.append(h)});a.showDialog(380,280)},la=function(a,b,e){V?b(V):(new com.kingdee.bos.qing.core.Facade(a,function(g){V=g;b(g)},e)).getMeta()},ma=function(a){V=null;la(u.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},na=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=f.appendParamToUrl(a,"skin",b));e&&(a=f.appendParamToUrl(a,"language",e));return a},oa=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=f.appendParamToUrl(a,"skin",b));e&&(a=f.appendParamToUrl(a,"language",e));return a},fa=function(){return function(a,b,e){var g=com.kingdee.bos.qing.publish.model.PublishTargetType;if(e&&g.MOBILE==e){e=a.getPublishId();var m=a.getId();var d=a.getLappUserType()}else e=a.getId();g=p.getUrlParamUtil().getParamPathPrefix();
var c=D.getUrlParamValue(),h=p.getUrlParamUtil().getParamLanguage();g=f.appendParamToUrl((g?g:"/ierp")+"/qing/publishContentEditEntrance.do","skin",c);g=f.appendParamToUrl(g,"language",h);g=f.appendParamToUrl(g,"publishId",e);m&&(g=f.appendParamToUrl(g,"lappId",m));d&&(g=f.appendParamToUrl(g,"lappUserType",d));m=g;b&&(d="editPublishedContent-"+e,e=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,e.putSubscribe(d,b),g=f.appendParamToUrl(g,"subscribeKey",d),g=f.appendParamToUrl(g,"currentPageClientId",
e.getCurrentPageClientId()));z.openNewTab(w.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),g,m)}},ja=function(){return function(a){var b=p.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var e=w.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(a instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var g=a.getId(),m=a.getPublishSourceType();d=a.getSchemaSourceType();b=f.appendParamToUrl(b,"configId",
g);b=f.appendParamToUrl(b,"publishSourceType",m);b=f.appendParamToUrl(b,"schemaType",d);b=f.appendParamToUrl(b,"pushTarget","email");e=e+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=f.appendParamToUrl(b,"errorCode","2301001"))}else{g=a.getId();m=a.getPushTargetType();var d=a.getSchemaType();b=f.appendParamToUrl(b,"configId",g);b=f.appendParamToUrl(b,"pushTargetType",m);b=f.appendParamToUrl(b,"schemaType",d);b=f.appendParamToUrl(b,"pushTarget","lapp");e=e+"-"+a.getName();a.getSourceName()||
(b=f.appendParamToUrl(b,"errorCode","2301001"))}a=D.getUrlParamValue();d=p.getUrlParamUtil().getParamLanguage();a&&(b=f.appendParamToUrl(b,"skin",a));d&&(b=f.appendParamToUrl(b,"language",d));z.openNewTab(e,b)}},A=function(a,b){return w.get(a,b)},ba=function(){aa||(aa=new com.kingdee.bos.qing.ui.component.MessageCurtain,aa.getJqUi().appendTo($(document.body)));return aa};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,g,m,d){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(q,N,G){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,N,0,G)});
var c=com.kingdee.bos.qing.publish.model;b=c.PublishTargetType;c=com.kingdee.bos.qing.schemamanage.model;var h=c.SchemaAttrModel,n=function(q){var N=com.kingdee.bos.qing.publish.common.PublishFactory,G=q.getUserObject(),r=q.getText().replace("...",""),C=K(a,e,h.SCHEMASOURCE_LONGER,g,m,d);ca(e,G,C,"longer",v.ANALYSIS_PUBLISH,function(){var B=N.createPublishToDialog(r,F(),C,G,fa());B.setOuterMessageCurtain(ba());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){Q(n,q)});l.setUserObject(b.APPMENU);l.setText(A("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(l);l=new k(function(q){Q(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){Q(n,q)});l.setUserObject(b.MOBILE);l.setText(A("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(l);U();W();var M=function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
N=K(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new q(F(),N,fa())).showDialog()};l=new k(function(q){Q(M,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 g=com.kingdee.bos.qing.publish.model;b=g.PublishTargetType;g=com.kingdee.bos.qing.schemamanage.model;var m=g.SchemaAttrModel,d=function(n){var k=com.kingdee.bos.qing.publish.common.PublishFactory,l=n.getUserObject(),M=n.getText().replace("...",""),q=K(a,e,m.SCHEMASOURCE_SQUARE);ca(e,l,q,"square",v.CARD_PUBLISH,function(){var N=k.createPublishToDialog(M,F(),q,l,fa());N.setOuterMessageCurtain(ba());N.showDialog()})},c=com.kingdee.bos.qing.ui.component.MenuItemModel;g=new com.kingdee.bos.qing.ui.component.MenuModel;
var h=new c(d);h.setUserObject(b.CARD_REPOSITORY);h.setText(A("toCardRepository","\u5361\u7247\u5e93..."));g.addItemModel(h);d=new c(d);d.setText(A("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.setUserObject(b.MOBILE);g.addItemModel(d);U();W();h=new c(function(){var n=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=K(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new n(F(),k,fa())).showDialog()});h.setUserObject();h.setText(A("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");g.addItemModel(h);b=A("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(g,"publish_to",b)};p.hookPublishManager=function(a,b,e){var g=A("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var m=com.kingdee.bos.qing.publish.common.PublishManagerDialog,d=K(a,b,e);(new m(F(),d,fa())).showDialog()},"publish_manager",g)};p.hookCloseTab=function(a){var b=A("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
R.showConfirmExitDialog():z.closeCurrentTab()},"error_close",b)};p.hookShareTo=function(a,b,e,g,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=K(a,g,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 T;(new S(function(r){window.beLoadedImCloud?d(r):c(r)})).setText(A("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var h=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
n=u.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==h.SCHEMASOURCE_LONGER){var M=function(r){var C=r.getText().replace("...",""),B=K(a,g,b,m);ca(g,l.EMAIL,B,"longer",v.ANALYSIS_TIMEPUSH,function(){var O=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(C,
F(),B,na(),oa(),ja(),a);O.setOuterMessageCurtain(ba());O.showDialog()})},q=new S(function(r){Q(M,r)});q.setText(A("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(q)}if(!k&&!n){var N=function(r){var C=K(a,g,b,m),B="longer",O=v.ANALYSIS_TIMEPUSH;b==h.SCHEMASOURCE_SQUARE&&(B="square",O=v.CARD_TIMEPUSH);ca(g,l.EMAIL,C,B,O,function(){var X=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ka=r.getText().replace("...","");X.createDialog(ka,F(),C,ja(),a)})};n=new S(function(r){Q(N,
r)});n.setText(A("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(n)}var G=function(){var r=com.kingdee.bos.qing.publish.common.PushManager,C=K(a,g,b);r=new r(ja());var B=com.kingdee.bos.qing.timedpush;r.registerEmailPushPanelConstructor(B.EmailConfigManagePanel);r.initEmailPushConfig(F(),na(),oa());r.registerLappPushPanelConstructor(B.LappPushManagePanel);r.initLappPushConfig(function(O,X,ka){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
F(),O,X,ka)},C);r.showDialog()};n=new S(function(r){Q(G,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=la;p.reloadMeta=ma;p.hookRefresh=function(a,b){var e=p.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),g=function(){b.restart();b.setExtractDataFinishedSuccessCallback(function(m){m||ea(V)?ma(function(d){var c=a.getJsonModelBook();a.prepareMeta(d);a.setJsonModelBook(c)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){Q(g)},"btn_reset",
e)};p.getMessageCurtain=ba;p.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){R.setTabStatus(b)})};p.loadPublishOperList=function(a,b,e,g,m){y?e(y):(new com.kingdee.bos.qing.publish.common.PublishFacade(F(),function(d){y=d;e(y)},m)).loadPublishOperList(a,b,g)};p.loadPublishOperModel=function(a,b,e,g){y?e(y):(new com.kingdee.bos.qing.publish.common.PublishFacade(F(),function(m){y=m.noOperValueMap;e(y)},g)).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,g){b.setParamPathPrefix(a);b.showDialog(e,g)})}}"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 Z=com.kingdee.bos.qing.scene.common.designer,D,da,J,Y,t,f,w,z,T,S,R,P;(function(){var u=com.kingdee.bos.qing;D=u.SkinUtil;da=u.AbstractDesignerScene;J=u.CodeLoader;P=u.Seer;u=com.kingdee.bos.qing.common;f=u.Util;u=com.kingdee.bos.qing.framework.common;w=u.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
z=u.TabbedUiUtil;u=com.kingdee.bos.qing.ui.component;T=u.MenuModel;S=u.MenuItemModel;Y=u.MessageDialog;t=u.Icons;u=com.kingdee.bos.qing.integration;R=u.TabStatusHelper})();Z.AbstractDesignerSceneImpl=H;Z.LongerDesignerOperationJudgerModel=function(u){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);u&&0!=u&&(this.protectedParseDesignable=function(){return 0==(u&v.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(u&v.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(u&v.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(u&v.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(u&v.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(u&v.ANALYSIS_TIMEPUSH)})};Z.SquareDesignerOperationJudgerModel=function(u){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);u&&0!=u&&(this.protectedParsePublishable=function(){return 0==(u&v.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(u&v.CARD_TIMEPUSH)})};var v={};Z.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;H.THEME_IS_DEL="Theme is Delete";H.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";H.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";H.PERMISSION_CANCEL="Not Permission";H.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){function H(t,f,w,z){da.call(this,t,f,w,z);var T=this.protectedMethod;this.loadSquareSchema=function(S,R,P){T.remote("loadSquareSchema",{publishId:S,bizTag:R,schemaAdditionalTag:P})}}function Z(){J.call(this);var t,f;this.getRemoteUrl=function(w){w.tag=f;return t};this.setRemoteUrl=function(w){t=w};this.setTag=function(w){f=w}}"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.CardAnalysisScene=function(){D.call(this);var t=this.protectedMethod,f,w,z,T,S,R,P,v,u;this.protectedHaveToCarryData=function(){return"true"==t.getUrlParamUtil().getUrlParam("haveToCarryData")};var p=this.protectedImportMoreCode;this.protectedImportMoreCode=function(x){p(x);t.importForSchema(x);t.importForPublish(x);t.importLinkage(x);x.pushJs("qhf/qing-qhf.js")};var V=
this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(x){t.setModuleWithLonger(!0,!0);t.setModuleWithSquare(!1,!1);V(x);f=t.getUrlParamUtil().getUrlParam("bizTag");z=t.getUrlParamUtil().getUrlParam("schemaAdditionalTag");T=t.getUrlParamUtil().getUrlParam("publishSourceType");S="true"==t.getUrlParamUtil().getUrlParam("isPreset");w=t.getUrlParamUtil().getUrlParam("publishId");R=new Z;var y=t.getUrlParamUtil().getParamPathPrefix();R.setRemoteUrl((y?y:"/ierp")+"/qing/schemaManage.do");R.setTag(t.getUrlParamUtil().getParamTag());
y=com.kingdee.bos.qing.behavior.BehaviorManager;y.interestInBehaviorEntrance(y.ENTRANCE_CARD_ANALYSIS);t.loadPublishOperList(w,null,function(L){var E=com.kingdee.bos.qing.publish.model.OperType,I=0;L[E.SQUARE]&&(I|=L[E.SQUARE]);L[E.LONGER]&&(I|=L[E.LONGER]);u=new Y(I);x()})};this.protectedInitDesignerForLonger=function(x){x.setDesignerOperationJudger(u,null);if(S)t.getMessageCurtain().showPrompt(t.getMLS("presetPublishAnalysisTipsCurtain","\u9884\u7f6e\u7684\u6570\u636e\u5206\u6790\u4e0d\u5141\u8bb8\u53d1\u5e03\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),
5E3);else{var y=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER;u.protectedParsePublishable()&&t.hookLongerPublishTo(x,P,T);"true"!=t.getUrlParamUtil().getUrlParam("haveToCarryData")&&u.protectedParseTimingPushable()&&t.hookShareTo(x,y,null,T);"true"!=t.getUrlParamUtil().getUrlParam("haveToCarryData")&&t.hookRefresh(x,com.kingdee.bos.qing.prepare.DataExtractor)}t.hookCloseTab(x);t.hookSetCurrentTabStatus(x);t.initDesigntimeLinkage();aa(x)};this.protectedLoadingLonger=function(x,
y,L){t.loadMeta(x,function(E){var I=com.kingdee.bos.qing.schemamanage.SchemaManage,ia=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,ca=com.kingdee.bos.qing.schemamanage.LoadSchemaError;y.prepareMeta(E);var U=new I(f+z,ia.SCHEMASOURCE_LONGER);U.setPublishId(f);U.setDesignerOperationJudger(u);U.setReloadMetaFun(function(W){t.reloadMeta(function(K){y.prepareMeta(K);W&&W()})});E=t.getUrlParamUtil().getParamPathPrefix();E=(E?E:"/ierp")+"/qing/card.do";I=new Z;I.setRemoteUrl(E);(new H(I,function(W){var K=
W.schemaContent;U.initialize(R,y,function(ea){ea||(ea=t.createSquare2LongerModelTransformer(),y.setJsonModelBook(K,function(Q){(new ca).showErrorMsg(Q)},ea));v||(v=y.getJsonModelBook());L(!0)})})).loadSquareSchema(w,f,z);P=U.getSchemaContext()})};var aa=function(x){var y=t.getUrlParamUtil().getUrlParam("tag");com.kingdee.bos.qing.qhf.QHFSceneExporterRegister.register(y,function(){var L=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER;var E="subject"==T?com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_SUBJECT_LONGER:
com.kingdee.bos.qing.qhf.QHFExporter.SCENE_TYPE_PUBLISH_EMBEDDED_LONGER;var I=x.getJsonModelBook();return{publishId:f,schemaId:f+z,initSchemaContext:v?JSON.stringify(v):null,finalSchemaContext:I?JSON.stringify(I):null,schemaType:L,sceneType:E}})}};var D,da,J,Y;(function(){var t=com.kingdee.bos.qing.framework.common;da=t.AbstractFacade;J=t.AbstractRemoteCall;t=com.kingdee.bos.qing.scene.common.designer;D=t.AbstractDesignerSceneImpl;Y=t.LongerDesignerOperationJudgerModel})()})();
//qingVersionTag: 20250415