(function(){function G(){da.call(this);var u=this,p=this.protectedMethod,S,P,W,Q,ea;this.setCurrentPublishSchema=function(a){ea=a};this.setUserOperatorPrevCheck=function(a){W=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"});ja(a);u.protectedNeedToShowMessageBox()&&w(a);a.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var ja=function(a){H.setCallback(function(){var b=new com.kingdee.bos.qing.support.Main;b.setParamLanguage(p.getUrlParamUtil().getParamLanguage());b.creatSupportUi(a)});H.loadCss("support/support.css");
H.loadJs("support/support-ui.js");H.loadI18n("support","support")},w=function(a){H.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");x(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)});H.loadSkinCss("message","message");
H.loadSkinJs("message","skin");H.loadJs("message/message-manage-ui.js");H.loadI18n("message","message")},x=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=C.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)),y.openNewTabInAppId(h,k,k,y.QING_RPT)):(c&&(k=f.appendParamToUrl(k,"skin",c)),y.openNewTabInAppId(h,k,k,y.QING_ANALYSIS))});m.setResourceRemoteUrl(a+"/qing/resource.do");m.setDataModelEntrance(function(d,c,h){var n=C.getUrlParamValue();c=t.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));y.openNewTabInAppId(c,k,k,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=C.getUrlParamValue(),c=T.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=C.getUrlParamValue(),c=T.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=C.getUrlParamValue(),L=T.getUrlParamValue("language");h=a+"/qing/publishContentEditEntrance.do";h=f.appendParamToUrl(h,"skin",l);h=f.appendParamToUrl(h,"language",L);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(t.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=t.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=C.getUrlParamValue();l=T.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=C.getUrlParamValue(),
n=t.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));y.openNewTabInAppId(n,k,k,y.QING_MODELER)});m.setFunOpenModelDesign(function(d,c,h,n,k){var l=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,L=C.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);L&&(l=f.appendParamToUrl(l,"skin",L));y.openNewTabInAppId(k,l,l,y.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)},E=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(I(),function(n){d&&d()},
function(n,k){return 2301016==n?(aa().showPrompt(t.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()},F=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(I())},J=function(){var a=p.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(a+"/qing/lappPrivateInfo.do")},
D=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"),L=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 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(z("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(K){K+="/qinganalysis/lappPreviewEntrance.do";for(var r=window.location.search.substring(1).split("&"),B=0;B<r.length;B++){var A=r[B],N=A.indexOf("=");if(-1!=N){var X=A.substring(0,N);"clientID"!=X&&"safetyCode"!=X&&(A=A.substring(N+1),K+=0>K.indexOf("?")?"?":"&",K+=X,K+="=",K+=A)}}return K};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},fa=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},O=function(a,b){W?W(function(e){var g=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(ba(),function(d){d.publishInfoPerCheck==G.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?a&&a(b):d.publishInfoPerCheck==G.THEME_IS_DEL?R($(document.body),"msg-warning",t.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):d.publishInfoPerCheck==G.PUBLISHINFO_NOEXIST?R($(document.body),"msg-warning",t.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):d.publishInfoPerCheck==
G.PERMISSION_CANCEL?R($(document.body),"msg-jurisdiction",t.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+d.publishInfoUserName+'"'+t.get("authority","\u6388\u6743")):d.publishInfoPerCheck==G.PUBLSIHPLAN_DELETE&&R($(document.body),"msg-warning",t.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(ea.getCurrentSchemaId());m.setSchemaName(ea.getCurrentSchemaName());g.checkPublishInfoAndAuthority(e,m)}):a&&a(b)},ba=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},R=function(a,b,e){a=new Y;a.setOptionType(Y.OPTION_OK);a.setButtonText(Y.RETURN_OK,t.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");ha.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)},ka=function(a,b,e){S?b(S):(new com.kingdee.bos.qing.core.Facade(a,function(g){S=g;b(g)},e)).getMeta()},na=function(a){S=null;ka(u.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},oa=function(){var a=p.getUrlParamUtil().getParamPathPrefix(),b=C.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},pa=function(){var a=
p.getUrlParamUtil().getParamPathPrefix(),b=C.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},ia=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=C.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()));y.openNewTab(t.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+a.getName(),g,m)}},la=function(){return function(a){var b=p.getUrlParamUtil().getParamPathPrefix();b=(b?b:"/ierp")+"/qing/timedPushContentEditEntrance.do";var e=t.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=C.getUrlParamValue();d=p.getUrlParamUtil().getParamLanguage();a&&(b=f.appendParamToUrl(b,"skin",a));d&&(b=f.appendParamToUrl(b,"language",d));y.openNewTab(e,b)}},z=function(a,b){return t.get(a,b)},aa=function(){P||(P=new com.kingdee.bos.qing.ui.component.MessageCurtain,P.getJqUi().appendTo($(document.body)));return P};p.getMLS=z;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,M,K){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(q,M,0,K)});
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 M=com.kingdee.bos.qing.publish.common.PublishFactory,K=q.getUserObject(),r=q.getText().replace("...",""),B=D(a,e,h.SCHEMASOURCE_LONGER,g,m,d);E(e,K,B,"longer",v.ANALYSIS_PUBLISH,function(){var A=M.createPublishToDialog(r,I(),B,K,ia());A.setOuterMessageCurtain(aa());A.showDialog()})},k=com.kingdee.bos.qing.ui.component.MenuItemModel;c=new com.kingdee.bos.qing.ui.component.MenuModel;
var l=new k(function(q){O(n,q)});l.setUserObject(b.APPMENU);l.setText(z("toAppMenu","\u5e94\u7528\u83dc\u5355..."));c.addItemModel(l);l=new k(function(q){O(n,q)});l.setUserObject(b.CENTER);l.setText(z("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));c.addItemModel(l);l=new k(function(q){O(n,q)});l.setUserObject(b.MOBILE);l.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));c.addItemModel(l);F();J();var L=function(){var q=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
M=D(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new q(I(),M,ia())).showDialog()};l=new k(function(q){O(L,q)});l.setUserObject();l.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");c.addItemModel(l);b=z("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(),L=n.getText().replace("...",""),q=D(a,e,m.SCHEMASOURCE_SQUARE);E(e,l,q,"square",v.CARD_PUBLISH,function(){var M=k.createPublishToDialog(L,I(),q,l,ia());M.setOuterMessageCurtain(aa());M.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(z("toCardRepository","\u5361\u7247\u5e93..."));g.addItemModel(h);d=new c(d);d.setText(z("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));d.setUserObject(b.MOBILE);g.addItemModel(d);F();J();h=new c(function(){var n=com.kingdee.bos.qing.publish.common.PublishManagerDialog,k=D(a,e,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new n(I(),k,ia())).showDialog()});h.setUserObject();h.setText(z("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");g.addItemModel(h);b=z("publishTo","\u53d1\u5e03\u5230");return a.getConductor().appendToolbarMenu(g,"publish_to",b)};p.hookPublishManager=function(a,b,e){var g=z("publishManager","\u53d1\u5e03\u7ba1\u7406");return a.getConductor().appendToolbarButton(function(){var m=com.kingdee.bos.qing.publish.common.PublishManagerDialog,d=D(a,b,e);(new m(I(),d,ia())).showDialog()},"publish_manager",g)};p.hookCloseTab=function(a){var b=z("closeTab","\u9000\u51fa");return a.getConductor().appendToolbarButton(function(){a.getConductor().isDirty()?
Z.showConfirmExitDialog():y.closeCurrentTab()},"error_close",b)};p.hookShareTo=function(a,b,e,g,m){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(r,B,A){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(r,B,0,A)});var d=function(r){r=z("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var B=D(a,g,b);r=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(r,I(),B);r.setOuterMessageCurtain(aa());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 ca;(new V(function(r){window.beLoadedImCloud?d(r):c(r)})).setText(z("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 L=function(r){var B=r.getText().replace("...",""),A=D(a,g,b,m);E(g,l.EMAIL,A,"longer",v.ANALYSIS_TIMEPUSH,function(){var N=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(B,
I(),A,oa(),pa(),la(),a);N.setOuterMessageCurtain(aa());N.showDialog()})},q=new V(function(r){O(L,r)});q.setText(z("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));e.addItemModel(q)}if(!k&&!n){var M=function(r){var B=D(a,g,b,m),A="longer",N=v.ANALYSIS_TIMEPUSH;b==h.SCHEMASOURCE_SQUARE&&(A="square",N=v.CARD_TIMEPUSH);E(g,l.EMAIL,B,A,N,function(){var X=new com.kingdee.bos.qing.timedpush.LappSchedulePush,ma=r.getText().replace("...","");X.createDialog(ma,I(),B,la(),a)})};n=new V(function(r){O(M,
r)});n.setText(z("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");e.addItemModel(n)}var K=function(){var r=com.kingdee.bos.qing.publish.common.PushManager,B=D(a,g,b);r=new r(la());var A=com.kingdee.bos.qing.timedpush;r.registerEmailPushPanelConstructor(A.EmailConfigManagePanel);r.initEmailPushConfig(I(),oa(),pa());r.registerLappPushPanelConstructor(A.LappPushManagePanel);r.initLappPushConfig(function(N,X,ma){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
I(),N,X,ma)},B);r.showDialog()};n=new V(function(r){O(K,r)});n.setUserObject();n.setText(z("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");e.addItemModel(n);e=a.getConductor().appendToolbarMenu(e,"btn_communicate",z("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=na;p.hookRefresh=function(a,b){var e=p.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),g=function(){b.restart();b.setExtractDataFinishedSuccessCallback(function(m){m||fa(S)?na(function(d){var c=a.getJsonModelBook();a.prepareMeta(d);a.setJsonModelBook(c)}):a.reExecute()})};return a.getConductor().appendToolbarButton(function(){O(g)},"btn_reset",
e)};p.getMessageCurtain=aa;p.hookSetCurrentTabStatus=function(a){a.getConductor().setDirtyListener(function(b){Z.setTabStatus(b)})};p.loadPublishOperList=function(a,b,e,g,m){Q?e(Q):(new com.kingdee.bos.qing.publish.common.PublishFacade(I(),function(d){Q=d;e(Q)},m)).loadPublishOperList(a,b,g)};p.loadPublishOperModel=function(a,b,e,g){Q?e(Q):(new com.kingdee.bos.qing.publish.common.PublishFacade(I(),function(m){Q=m.noOperValueMap;e(Q)},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 U=com.kingdee.bos.qing.scene.common.designer,C,da,H,Y,ha,f,t,y,ca,V,Z,T;(function(){var u=com.kingdee.bos.qing;C=u.SkinUtil;da=u.AbstractDesignerScene;H=u.CodeLoader;T=u.Seer;u=com.kingdee.bos.qing.common;f=u.Util;u=com.kingdee.bos.qing.framework.common;t=u.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
y=u.TabbedUiUtil;u=com.kingdee.bos.qing.ui.component;ca=u.MenuModel;V=u.MenuItemModel;Y=u.MessageDialog;ha=u.Icons;u=com.kingdee.bos.qing.integration;Z=u.TabStatusHelper})();U.AbstractDesignerSceneImpl=G;U.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)})};U.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={};U.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={});var G=com.kingdee.bos.qing.scene;G.WorkbenchWidgetAnalysis=function(){function f(w,x,E,F){Y.call(this,w,x,E,F);var J=this.protectedMethod;this.loadWidgetSchema=function(D,fa){J.remote("loadSchemaByRefMapUid",
{workbenchId:D,refMapUid:fa})}}C.call(this);var t=this.protectedMethod,y,ca,V,Z,T,v,u,p,S,P,W,Q=this.protectedImportMoreCode;this.protectedImportMoreCode=function(w){Q(w);t.importForSchema(w);t.importForPublish(w);t.importLinkage(w)};var ea=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(w){t.setModuleWithLonger(!0,!0);t.setModuleWithSquare(!1,!1);ea(w);t.getUrlParamUtil().getUrlParam("bizTag");Z=t.getUrlParamUtil().getParamTag();u=t.getUrlParamUtil().getUrlParam("workbenchId");S=
t.getUrlParamUtil().getUrlParam("refType");p=t.getUrlParamUtil().getUrlParam("widgetBizId");P=t.getUrlParamUtil().getUrlParam("publishSourceType");W=t.getUrlParamUtil().getUrlParam("schemaAdditionalTag");y=new U;var x=ja();y.setRemoteUrl(x+"/qing/schemaManage.do");y.setTag(Z);T=new U;T.setRemoteUrl(x+"/qing/prepare.do");T.setTag(Z);ca=new U;ca.setRemoteUrl(ja()+"/qing/workbench.do");x=com.kingdee.bos.qing.behavior.BehaviorManager;x.interestInBehaviorEntrance(x.ENTRANCE_THEME_ANALYSIS);P?t.loadPublishOperList(p,
null,function(E){var F=com.kingdee.bos.qing.publish.model.OperType,J=0;E[F.SQUARE]&&(J|=E[F.SQUARE]);E[F.LONGER]&&(J|=E[F.LONGER]);v=new H(J);w()}):(v=new H(null),w())};this.protectedInitDesignerForLonger=function(w){w.setDesignerOperationJudger(v,null);var x=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER,E=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER;if(P){var F,J;"metric_library"!==S&&v.protectedParsePublishable()&&(F=t.hookLongerPublishTo(w,
void 0,P,E));"metric_library"!==S&&"true"!==t.getUrlParamUtil().getUrlParam("haveToCarryData")&&v.protectedParseTimingPushable()&&(J=t.hookShareTo(w,x,null,P));x=function(D){J&&J.setEnabled(D);F&&F.setEnabled(D)};x(!1);w.setExhibitionContentChangedListener(x)}t.hookSetCurrentTabStatus(w);t.hookRefresh(w,new com.kingdee.bos.qing.prepare.WorkbenchWidgetDesignerExtractor);t.initDesigntimeLinkage();x=window.com.kingdee.bos.qing.AnalysisSceneOuterApi;x.inside.setDirtyChecker(function(){return w.getConductor().isDirty()});
x.inside.setBeforeClosing(function(){return ha.setTabStatus(!1)});w.getConductor().appendToolbarButton(x.inside.requestClosing,"error_close",da.get("closeTab","\u9000\u51fa"))};this.protectedNeedToShowMessageBox=function(){return"qing_workbench"!==t.getUrlParamUtil().getUrlParam("openFrom")};this.protectedLoadingLonger=function(w,x,E){t.loadMeta(w,function(F){var J=com.kingdee.bos.qing.schemamanage.SchemaManage,D=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,fa=com.kingdee.bos.qing.schemamanage.LoadSchemaError;
x.prepareMeta(F);var O=new J(W,D.SCHEMASOURCE_LONGER);O.setReloadMetaFun(function(ba){t.reloadMeta(function(R){x.prepareMeta(R);ba&&ba()})});(new f(ca,function(ba){O.initialize(y,x,function(R){R||(R=t.createSquare2LongerModelTransformer(),x.setJsonModelBook(ba,function(ka){(new fa).showErrorMsg(ka)},R));V||(V=x.getJsonModelBook());E(!0)})})).loadWidgetSchema(u,W)})};var ja=function(){var w=t.getUrlParamUtil().getParamPathPrefix();return w?w:"/ierp"}};var U,C,da,H,Y,ha;(function(){var f=com.kingdee.bos.qing;
U=f.RemoteImpl;f=com.kingdee.bos.qing.framework.common;da=f.MultilanguageManager.createPackageAccessor(G);Y=f.AbstractFacade;f=com.kingdee.bos.qing.scene.common.designer;C=f.AbstractDesignerSceneImpl;H=f.LongerDesignerOperationJudgerModel;f=com.kingdee.bos.qing.integration;ha=f.TabStatusHelper})()})();
//qingVersionTag: 20250415