(function(){function E(){Z.call(this);var t=this,l=this.protectedMethod,B,U,R,I,aa;this.setCurrentPublishSchema=function(a){aa=a};this.setUserOperatorPrevCheck=function(a){R=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"});ha(a);t.protectedNeedToShowMessageBox()&&da(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var ha=function(a){F.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(l.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});F.loadCss("support/support.css");
F.loadJs("support/support-ui.js");F.loadI18n("support","support")},da=function(a){F.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");V(b);var f=new com.kingdee.bos.qing.message.ui.Main;f.setFunOpenMessageDialog(function(){f.setViewSize(null,null,10,30)});f.setMessageWidth(80);f.getJqUi(25).appendTo(a)});F.loadSkinCss("message","message");
F.loadSkinJs("message","skin");F.loadJs("message/message-manage-ui.js");F.loadI18n("message","message")},V=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 n=com.kingdee.bos.qing.theme.message.panel.common.Integration;n.setFunPublishRemoteImpl(function(){var e=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;e.setRemoteUrl(a+"/qing/publishTo.do");return e});n.setFunQingCenterAndMenuEntrance(function(e,
d,h,p){d=A.getUrlParamValue();var k=a+"/qing/publishEntrance.do";k=c.appendParamToUrl(k,"publishId",e);"extreport"==p?(k=c.appendParamToUrl(k,"appID","qing_rpt"),d&&(k=c.appendParamToUrl(k,"skin",d)),w.openNewTabInAppId(h,k,k,w.QING_RPT)):(d&&(k=c.appendParamToUrl(k,"skin",d)),w.openNewTabInAppId(h,k,k,w.QING_ANALYSIS))});n.setResourceRemoteUrl(a+"/qing/resource.do");n.setDataModelEntrance(function(e,d,h){var p=A.getUrlParamValue();d=v.get("dataModeling","\u6570\u636e\u51c6\u5907")+"-"+d;var k=a+
"/qing/dataModelingEntrance.do";k=c.appendParamToUrl(k,"themeID",e);k=c.appendParamToUrl(k,"isPreset",h);p&&(k=c.appendParamToUrl(k,"skin",p));w.openNewTabInAppId(d,k,k,w.QING_ANALYSIS)});n.setFunPublishContext(function(){var e=new com.kingdee.bos.qing.publish.common.PublishContext;e.setParamPathPrefix(a);e.setLappEntranceUrl(a+"/qing/lappEntrance.do");return e});n.setFunPublishedEmailLoginViewUrl(function(){var e=A.getUrlParamValue(),d=L.getUrlParamValue("language"),h=a+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
e&&(h=c.appendParamToUrl(h,"skin",e));d&&(h=c.appendParamToUrl(h,"language",d));return h});n.setFunPublishedEmailAnonymousViewUrl(function(){var e=A.getUrlParamValue(),d=L.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)";e&&(h=c.appendParamToUrl(h,"skin",e));d&&(h=c.appendParamToUrl(h,"language",d));return h});n.setFunPublishContentEditEntrance(function(){return function(e,
d,h){var p=com.kingdee.bos.qing.publish.model.PublishTargetType;if(h&&p.MOBILE==h){p=e.getPublishId();var k=e.getId()}else p=e.getId();var m=A.getUrlParamValue(),G=L.getUrlParamValue("language");h=a+"/qing/publishContentEditEntrance.do";h=c.appendParamToUrl(h,"skin",m);h=c.appendParamToUrl(h,"language",G);h=c.appendParamToUrl(h,"publishId",p);k&&(h=c.appendParamToUrl(h,"lappId",k));k=h;d&&(p="editPublishedContent-"+p,m=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,m.putSubscribe(p,d),
h=c.appendParamToUrl(h,"subscribeKey",p),h=c.appendParamToUrl(h,"currentPageClientId",m.getCurrentPageClientId()));d=com.kingdee.bos.qing.framework.common.TabbedUiUtil;d.openNewTabInAppId(v.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+e.getName(),h,k,d.QING_ANALYSIS)}});n.setFunTimedPushContentEditEntrance(function(){return function(e){var d=a+"/qing/timedPushContentEditEntrance.do",h=v.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(e instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var p=
e.getId(),k=e.getPublishSourceType();m=e.getSchemaSourceType();d=c.appendParamToUrl(d,"configId",p);d=c.appendParamToUrl(d,"publishSourceType",k);d=c.appendParamToUrl(d,"schemaType",m);d=c.appendParamToUrl(d,"pushTarget","email");h=h+"-"+e.getNameRule().getName();e.isSourceNameNotFound()&&(d=c.appendParamToUrl(d,"errorCode","2301001"))}else{p=e.getId();k=e.getPushTargetType();var m=e.getSchemaType();d=c.appendParamToUrl(d,"configId",p);d=c.appendParamToUrl(d,"pushTargetType",k);d=c.appendParamToUrl(d,
"schemaType",m);d=c.appendParamToUrl(d,"pushTarget","lapp");h=h+"-"+e.getName();e.getSourceName()||(d=c.appendParamToUrl(d,"errorCode","2301001"))}e=A.getUrlParamValue();m=L.getUrlParamValue("language");e&&(d=c.appendParamToUrl(d,"skin",e));m&&(d=c.appendParamToUrl(d,"language",m));e=com.kingdee.bos.qing.framework.common.TabbedUiUtil;e.openNewTabInAppId(h,d,d,e.QING_ANALYSIS)}});n=com.kingdee.bos.qing.modeler.message.panel.common.Integration;n.setFunOpenModelSetPage(function(e,d){var h=A.getUrlParamValue(),
p=v.get("modelSet","\u6a21\u578b\u96c6-")+d,k=a+"/qing_modeler/modelSetMainPage.do";k=c.appendParamToUrl(k,"modelSetId",e);k=c.appendParamToUrl(k,"modelSetName",d);k=c.appendParamToUrl(k,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());h&&(k=c.appendParamToUrl(k,"skin",h));w.openNewTabInAppId(p,k,k,w.QING_MODELER)});n.setFunOpenModelDesign(function(e,d,h,p,k){var m=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,G=A.getUrlParamValue();k=(k=m.getModelTypeText(k))?
k+"-"+h:h;m=a+"/qing_modeler/deployDesignerEntrance.do";m=c.appendParamToUrl(m,"modelSetId",e);m=c.appendParamToUrl(m,"modelId",d);m=c.appendParamToUrl(m,"modelName",h);m=c.appendParamToUrl(m,"modelDeployId",p);G&&(m=c.appendParamToUrl(m,"skin",G));w.openNewTabInAppId(k,m,m,w.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 f=c.decodeParamFromUrl(location.search,"appID");b.setAppId(f)},P=function(a,b,f,g,n,e){var d=com.kingdee.bos.qing.publish.model.PublishSourceType,h=com.kingdee.bos.qing.publish.model.PublishTargetType;a!=d.EXTREPORT&&a!=d.DASHBOARD&&b!=h.GUIMENU?(a=new com.kingdee.bos.qing.publish.common.PublishFacade(C(),function(p){e&&e()},
function(p,k){return 2301016==p?(W().showPrompt(v.get("publishNoOperAuthExceptionCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),!0):!1}),b=f.getBizTag(),d=f.getDsbPublishId(),f.getRefToId()&&(b=f.getRefToId()),a.judgePublishOper(b,d,g,n)):e&&e()},X=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(C())},ea=function(){var a=l.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
M=function(a,b,f,g,n,e){var d=l.getUrlParamUtil().getParamPathPrefix(),h=com.kingdee.bos.qing.publish.common,p=h.PublishContext;h=com.kingdee.bos.qing.schemamanage.model;var k=h.SchemaAttrModel;h=h.SchemaModel;var m=l.getUrlParamUtil().getUrlParam("bizTag"),G=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 H=q&&q.hasDirectModeTable();
q=new p;q.setSource(n);q.setBizTag(m);q.setCurrentSourceType(b);q.setHaveToCarryData(G);q.setHasDirectModeTable(H);q.setParamPathPrefix(d);q.setSchemaTag("Dashboard-Analysis"==e?l.getUrlParamUtil().getUrlParam("schemaTag"):null);b=new k;b.setSchemaType(k.SCHEMATYPE_SYSTEM);b.setIsDefault(!0);b.setSchemaName(x("sysPublishScheme","\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848"));b.setSource(f);n=new h;n.setSchemaAttr(b);n.setSchemaContent(a.getJsonModelBook());a=n.toJsonObject();q.setCurrentContentModel(a);
a=l.getUrlParamUtil().getParamTag();b=function(D){D+="/qinganalysis/lappPreviewEntrance.do";for(var r=window.location.search.substring(1).split("&"),z=0;z<r.length;z++){var y=r[z],J=y.indexOf("=");if(-1!=J){var S=y.substring(0,J);"clientID"!=S&&"safetyCode"!=S&&(y=y.substring(J+1),D+=0>D.indexOf("?")?"?":"&",D+=S,D+="=",D+=y)}}return D};f==k.SCHEMASOURCE_SQUARE?(q.setScene(p.Scene.Square),f=b(d),f=c.appendParamToUrl(f,"view","10"),q.setMobilePreviewUrl(f),d=c.appendParamToUrl(d+"/qing/lappEntrance.do",
"tag",a),d=c.appendParamToUrl(d,"view","10"),q.setLappEntranceUrl(d)):f==k.SCHEMASOURCE_LONGER&&(q.setScene(p.Scene.Longer),q.setMobilePreviewUrl(b(d)),d=c.appendParamToUrl(d+"/qing/lappEntrance.do","tag",a),q.setLappEntranceUrl(d));g&&(q.setRefToId(l.getUrlParamUtil().getUrlParam("publishId")),q.setDsbPublishId(g),q.setDashBoardAnalysis(!0));return q},oa=function(a){var b=!1;if(a&&(a=a.tables)&&0<a.length)for(var f=0;f<a.length;f++)if(a[f].subViews){b=!0;break}return b},Q=function(a,b){R?R(function(f){var g=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(pa(),function(e){e.publishInfoPerCheck==E.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):e.publishInfoPerCheck==E.THEME_IS_DEL?fa($(document.body),"msg-warning",v.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):e.publishInfoPerCheck==E.PUBLISHINFO_NOEXIST?fa($(document.body),"msg-warning",v.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):e.publishInfoPerCheck==
E.PERMISSION_CANCEL?fa($(document.body),"msg-jurisdiction",v.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+e.publishInfoUserName+'"'+v.get("authority","\u6388\u6743")):e.publishInfoPerCheck==E.PUBLSIHPLAN_DELETE&&fa($(document.body),"msg-warning",v.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))}),n=new com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
n.setFId(aa.getCurrentSchemaId());n.setSchemaName(aa.getCurrentSchemaName());g.checkPublishInfoAndAuthority(f,n)}):a&&a(b)},pa=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=l.getUrlParamUtil().getParamTag();a=(a?a:"/ierp")+"/qing/schemaManage.do";var f=new com.kingdee.bos.qing.RemoteImpl;f.setRemoteUrl(a);f.setTag(b);return f},fa=function(a,b,f){a=new T;a.setOptionType(T.OPTION_OK);a.setButtonText(T.RETURN_OK,v.get("ISee","\u6211\u77e5\u9053\u4e86"));var g={};g.text=f;g.iconName=b;a.setMessage(g);
a.setCustomPainter(function(n,e){var d=$("<div>");d.addClass("sa-ctrl-msgdlg-icon");ba.background(d,e.iconName);var h=$("<div>");h.addClass("sa-ctrl-msgdlg-content");h.text(e.text);n.append(d);n.append(h)});a.showDialog(380,280)},ka=function(a,b,f){B?b(B):(new com.kingdee.bos.qing.core.Facade(a,function(g){B=g;b(g)},f)).getMeta()},la=function(a){B=null;ka(t.getRemoteImpl(),a)},C=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=l.getUrlParamUtil().getParamTag();a=(a?a:"/ierp")+"/qing/publishTo.do";
var f=new com.kingdee.bos.qing.RemoteImpl;f.setRemoteUrl(a);f.setTag(b);return f},ma=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=A.getUrlParamValue(),f=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=c.appendParamToUrl(a,"skin",b));f&&(a=c.appendParamToUrl(a,"language",f));return a},na=function(){var a=
l.getUrlParamUtil().getParamPathPrefix(),b=A.getUrlParamValue(),f=l.getUrlParamUtil().getParamLanguage();a=(a?a:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";b&&(a=c.appendParamToUrl(a,"skin",b));f&&(a=c.appendParamToUrl(a,"language",f));return a},ca=function(){return function(a,b,f){var g=com.kingdee.bos.qing.publish.model.PublishTargetType;if(f&&g.MOBILE==f){f=a.getPublishId();var n=a.getId();var e=a.getLappUserType()}else f=a.getId();g=l.getUrlParamUtil().getParamPathPrefix();
var d=A.getUrlParamValue(),h=l.getUrlParamUtil().getParamLanguage();g=c.appendParamToUrl((g?g:"/ierp")+"/qing/publishContentEditEntrance.do","skin",d);g=c.appendParamToUrl(g,"language",h);g=c.appendParamToUrl(g,"publishId",f);n&&(g=c.appendParamToUrl(g,"lappId",n));e&&(g=c.appendParamToUrl(g,"lappUserType",e));n=g;b&&(e="editPublishedContent-"+f,f=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,f.putSubscribe(e,b),g=c.appendParamToUrl(g,"subscribeKey",e),g=c.appendParamToUrl(g,"currentPageClientId",
f.getCurrentPageClientId()));w.openNewTab(v.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),g,n)}},ia=function(){return function(a){var b=l.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var f=v.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(a instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var g=a.getId(),n=a.getPublishSourceType();e=a.getSchemaSourceType();b=c.appendParamToUrl(b,"configId",
g);b=c.appendParamToUrl(b,"publishSourceType",n);b=c.appendParamToUrl(b,"schemaType",e);b=c.appendParamToUrl(b,"pushTarget","email");f=f+"-"+a.getNameRule().getName();a.isSourceNameNotFound()&&(b=c.appendParamToUrl(b,"errorCode","2301001"))}else{g=a.getId();n=a.getPushTargetType();var e=a.getSchemaType();b=c.appendParamToUrl(b,"configId",g);b=c.appendParamToUrl(b,"pushTargetType",n);b=c.appendParamToUrl(b,"schemaType",e);b=c.appendParamToUrl(b,"pushTarget","lapp");f=f+"-"+a.getName();a.getSourceName()||
(b=c.appendParamToUrl(b,"errorCode","2301001"))}a=A.getUrlParamValue();e=l.getUrlParamUtil().getParamLanguage();a&&(b=c.appendParamToUrl(b,"skin",a));e&&(b=c.appendParamToUrl(b,"language",e));w.openNewTab(f,b)}},x=function(a,b){return v.get(a,b)},W=function(){U||(U=new com.kingdee.bos.qing.ui.component.MessageCurtain,U.getJqUi().appendTo($(document.body)));return U};l.getMLS=x;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,f,g,n,e){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(q,H,D){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,H,0,D)});
var d=com.kingdee.bos.qing.publish.model;b=d.PublishTargetType;d=com.kingdee.bos.qing.schemamanage.model;var h=d.SchemaAttrModel,p=function(q){var H=com.kingdee.bos.qing.publish.common.PublishFactory,D=q.getUserObject(),r=q.getText().replace("...",""),z=M(a,f,h.SCHEMASOURCE_LONGER,g,n,e);P(f,D,z,"longer",u.ANALYSIS_PUBLISH,function(){var y=H.createPublishToDialog(r,C(),z,D,ca());y.setOuterMessageCurtain(W());y.showDialog()})},k=com.kingdee.bos.qing.ui.component.MenuItemModel;d=new com.kingdee.bos.qing.ui.component.MenuModel;
var m=new k(function(q){Q(p,q)});m.setUserObject(b.APPMENU);m.setText(x("toAppMenu","\u5e94\u7528\u83dc\u5355..."));d.addItemModel(m);m=new k(function(q){Q(p,q)});m.setUserObject(b.CENTER);m.setText(x("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));d.addItemModel(m);m=new k(function(q){Q(p,q)});m.setUserObject(b.MOBILE);m.setText(x("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.addItemModel(m);X();ea();var G=function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
H=M(a,f,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new q(C(),H,ca())).showDialog()};m=new k(function(q){Q(G,q)});m.setUserObject();m.setText(x("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");d.addItemModel(m);b=x("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(d,"publish_to",b)};l.hookSquarePublishTo=function(a,b,f){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(p,k,m){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(p,
k,0,m)});var g=com.kingdee.bos.qing.publish.model;b=g.PublishTargetType;g=com.kingdee.bos.qing.schemamanage.model;var n=g.SchemaAttrModel,e=function(p){var k=com.kingdee.bos.qing.publish.common.PublishFactory,m=p.getUserObject(),G=p.getText().replace("...",""),q=M(a,f,n.SCHEMASOURCE_SQUARE);P(f,m,q,"square",u.CARD_PUBLISH,function(){var H=k.createPublishToDialog(G,C(),q,m,ca());H.setOuterMessageCurtain(W());H.showDialog()})},d=com.kingdee.bos.qing.ui.component.MenuItemModel;g=new com.kingdee.bos.qing.ui.component.MenuModel;
var h=new d(e);h.setUserObject(b.CARD_REPOSITORY);h.setText(x("toCardRepository","\u5361\u7247\u5e93..."));g.addItemModel(h);e=new d(e);e.setText(x("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));e.setUserObject(b.MOBILE);g.addItemModel(e);X();ea();h=new d(function(){var p=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=M(a,f,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new p(C(),k,ca())).showDialog()});h.setUserObject();h.setText(x("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");g.addItemModel(h);b=x("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(g,"publish_to",b)};l.hookPublishManager=function(a,b,f){var g=x("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var n=com.kingdee.bos.qing.publish.common.PublishManagerDialog,e=M(a,b,f);(new n(C(),e,ca())).showDialog()},"publish_manager",g)};l.hookCloseTab=function(a){var b=x("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
N.showConfirmExitDialog():w.closeCurrentTab()},"error_close",b)};l.hookShareTo=function(a,b,f,g,n){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,z,y){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,z,0,y)});var e=function(r){r=x("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var z=M(a,g,b);r=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(r,C(),z);r.setOuterMessageCurtain(W());r.showDialog()},
d=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(){})};f=new O;(new K(function(r){window.beLoadedImCloud?e(r):d(r)})).setText(x("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var h=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
p=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 m=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!k&&!p&&b==h.SCHEMASOURCE_LONGER){var G=function(r){var z=r.getText().replace("...",""),y=M(a,g,b,n);P(g,m.EMAIL,y,"longer",u.ANALYSIS_TIMEPUSH,function(){var J=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(z,
C(),y,ma(),na(),ia(),a);J.setOuterMessageCurtain(W());J.showDialog()})},q=new K(function(r){Q(G,r)});q.setText(x("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));f.addItemModel(q)}if(!k&&!p){var H=function(r){var z=M(a,g,b,n),y="longer",J=u.ANALYSIS_TIMEPUSH;b==h.SCHEMASOURCE_SQUARE&&(y="square",J=u.CARD_TIMEPUSH);P(g,m.EMAIL,z,y,J,function(){var S=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ja=r.getText().replace("...","");S.createDialog(ja,C(),z,ia(),a)})};p=new K(function(r){Q(H,
r)});p.setText(x("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");f.addItemModel(p)}var D=function(){var r=com.kingdee.bos.qing.publish.common.PushManager,z=M(a,g,b);r=new r(ia());var y=com.kingdee.bos.qing.timedpush;r.registerEmailPushPanelConstructor(y.EmailConfigManagePanel);r.initEmailPushConfig(C(),ma(),na());r.registerLappPushPanelConstructor(y.LappPushManagePanel);r.initLappPushConfig(function(J,S,ja){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
C(),J,S,ja)},z);r.showDialog()};p=new K(function(r){Q(D,r)});p.setUserObject();p.setText(x("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");f.addItemModel(p);f=a.getConductor().appendToolbarMenu(f,"btn_communicate",x("timedPush","\u5b9a\u65f6\u63a8\u9001"));f.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=e)});return f};l.initDesigntimeLinkage=function(){var a=l.getUrlParamUtil().getParamPathPrefix(),b=(a?a:"/ierp")+"/qing/linkage.do",f=com.kingdee.bos.qing.integration.LinkageJumper;
a=new com.kingdee.bos.qing.linkage.LinkageManage;a.initDesigntime(b,f.jump);b=l.getUrlParamUtil().getParamTag();a.setCurrentLinkageTag(b)};l.loadMeta=ka;l.reloadMeta=la;l.hookRefresh=function(a,b){var f=l.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),g=function(){b.restart();b.setExtractDataFinishedSuccessCallback(function(n){n||oa(B)?la(function(e){var d=a.getJsonModelBook();a.prepareMeta(e);a.setJsonModelBook(d)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){Q(g)},"btn_reset",
f)};l.getMessageCurtain=W;l.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){N.setTabStatus(b)})};l.loadPublishOperList=function(a,b,f,g,n){I?f(I):(new com.kingdee.bos.qing.publish.common.PublishFacade(C(),function(e){I=e;f(I)},n)).loadPublishOperList(a,b,g)};l.loadPublishOperModel=function(a,b,f,g){I?f(I):(new com.kingdee.bos.qing.publish.common.PublishFacade(C(),function(n){I=n.noOperValueMap;f(I)},g)).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(f,g){b.setParamPathPrefix(a);b.showDialog(f,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 Y=com.kingdee.bos.qing.scene.common.designer,A,Z,F,T,ba,c,v,w,O,K,N,L;(function(){var t=com.kingdee.bos.qing;A=t.SkinUtil;Z=t.AbstractDesignerScene;F=t.CodeLoader;L=t.Seer;t=com.kingdee.bos.qing.common;c=t.Util;t=com.kingdee.bos.qing.framework.common;v=t.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
w=t.TabbedUiUtil;t=com.kingdee.bos.qing.ui.component;O=t.MenuModel;K=t.MenuItemModel;T=t.MessageDialog;ba=t.Icons;t=com.kingdee.bos.qing.integration;N=t.TabStatusHelper})();Y.AbstractDesignerSceneImpl=E;Y.LongerDesignerOperationJudgerModel=function(t){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);t&&0!=t&&(this.protectedParseDesignable=function(){return 0==(t&u.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(t&u.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(t&u.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(t&u.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(t&u.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(t&u.ANALYSIS_TIMEPUSH)})};Y.SquareDesignerOperationJudgerModel=function(t){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);t&&0!=t&&(this.protectedParsePublishable=function(){return 0==(t&u.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(t&u.CARD_TIMEPUSH)})};var u={};Y.OperCodeType=u;u.ANALYSIS_EDITABLE=2;u.ANALYSIS_EXPORT=4;u.ANALYSIS_PRINT=8;u.ANALYSIS_PUBLISH=16;u.ANALYSIS_TIMEPUSH=32;u.ANALYSIS_DETAIL=64;u.CARD_PUBLISH=256;u.CARD_TIMEPUSH=512;u.ENTRY_ANALYSIS=1;u.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(){function E(c,v,w,O){Z.call(this,c,v,w,O);var K=this.protectedMethod;this.loadSquareSchema=function(N,L){N={ref:JSON.stringify(N),dashboardUniqueId:L};K.remote("squareLoadSchema",N)}}function Y(){F.call(this);var c;this.getRemoteUrl=function(v){return c};this.setRemoteUrl=function(v){c=v}}"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.QHFPublishDsbAnalysisdScene=function(){T.call(this);var c=this.protectedMethod,v,w,O,K,N=this.protectedImportMoreCode;this.protectedImportMoreCode=function(l){N(l);c.importForSchema(l);c.importForPublish(l)};var L=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(l){c.setModuleWithLonger(!0,!0);c.setModuleWithSquare(!1,!1);L(l);w=c.getUrlParamUtil().getUrlParam("ref");v=c.getUrlParamUtil().getUrlParam("dashboardUniqueId");
O=new A;var B=t()+"/qing/qhfRuntimeDsb.do";O.setRemoteUrl(B);O.setTag(c.getUrlParamUtil().getParamTag());K=new ba(null);l()};this.protectedInitDesignerForLonger=function(l){l.setDesignerOperationJudger(K,null);c.hookCloseTab(l)};this.protectedLoadingLonger=function(l,B,U){c.loadMeta(l,function(R){var I=com.kingdee.bos.qing.schemamanage.SchemaManage,aa=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,ha=com.kingdee.bos.qing.schemamanage.LoadSchemaError;B.prepareMeta(R);var da=new I(v,aa.SCHEMASOURCE_LONGER);
da.setReloadMetaFun(function(V){c.reloadMeta(function(P){B.prepareMeta(P);V&&V()})});(new E(u(),function(V){var P=V.model;da.initialize(O,B,function(X){X||(X=c.createSquare2LongerModelTransformer(),B.setJsonModelBook(P,function(ea){(new ha).showErrorMsg(ea)},X));U(!0)},null,!0)},function(){return!1})).loadSquareSchema(JSON.parse(w),v)},function(R,I){return 301201==R?(c.getMessageCurtain().showError(c.getMLS("extractDataFailToRefresh","\u51c6\u5907\u6570\u636e\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u51fa\u6570\u636e\u518d\u8fdb\u884c\u8be5\u64cd\u4f5c\u3002")),
!0):!1})};this.protectedGetRemoteUrl=function(){return t()+"/qing/qhfCore.do"};var u=function(){var l=new Y,B=t()+"/qing/qhfRuntimeDsb.do";l.setRemoteUrl(B);return l},t=function(){var l=c.getUrlParamUtil().getParamPathPrefix();return l?l:"/ierp"}};var A,Z,F,T,ba;(function(){var c=com.kingdee.bos.qing;A=c.RemoteImpl;c=com.kingdee.bos.qing.framework.common;Z=c.AbstractFacade;F=c.AbstractRemoteCall;c=com.kingdee.bos.qing.scene.common.designer;T=c.AbstractDesignerSceneImpl;ba=c.LongerDesignerOperationJudgerModel})()})();
//qingVersionTag: 20250415