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