var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(x,T,O){x instanceof String&&(x=String(x));for(var A=x.length,ba=0;ba<A;ba++){var Aa=x[ba];if(T.call(O,Aa,ba,x))return{i:ba,v:Aa}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(x,T,O){if(x==Array.prototype||x==Object.prototype)return x;x[T]=O.value;return x};$jscomp.getGlobal=function(x){x=["object"==typeof globalThis&&globalThis,x,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var T=0;T<x.length;++T){var O=x[T];if(O&&O.Math==Math)return O}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(x,T){var O=$jscomp.propertyToPolyfillSymbol[T];if(null==O)return x[T];O=x[O];return void 0!==O?O:x[T]};
$jscomp.polyfill=function(x,T,O,A){T&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(x,T,O,A):$jscomp.polyfillUnisolated(x,T,O,A))};$jscomp.polyfillUnisolated=function(x,T,O,A){O=$jscomp.global;x=x.split(".");for(A=0;A<x.length-1;A++){var ba=x[A];if(!(ba in O))return;O=O[ba]}x=x[x.length-1];A=O[x];T=T(A);T!=A&&null!=T&&$jscomp.defineProperty(O,x,{configurable:!0,writable:!0,value:T})};
$jscomp.polyfillIsolated=function(x,T,O,A){var ba=x.split(".");x=1===ba.length;A=ba[0];A=!x&&A in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Aa=0;Aa<ba.length-1;Aa++){var C=ba[Aa];if(!(C in A))return;A=A[C]}ba=ba[ba.length-1];O=$jscomp.IS_SYMBOL_NATIVE&&"es6"===O?A[ba]:null;T=T(O);null!=T&&(x?$jscomp.defineProperty($jscomp.polyfills,ba,{configurable:!0,writable:!0,value:T}):T!==O&&(void 0===$jscomp.propertyToPolyfillSymbol[ba]&&(O=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[ba]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(ba):$jscomp.POLYFILL_PREFIX+O+"$"+ba),$jscomp.defineProperty(A,$jscomp.propertyToPolyfillSymbol[ba],{configurable:!0,writable:!0,value:T})))};$jscomp.polyfill("Array.prototype.find",function(x){return x?x:function(T,O){return $jscomp.findInternal(this,T,O).v}},"es6","es3");
$jscomp.polyfill("String.prototype.replaceAll",function(x){return x?x:function(T,O){if(T instanceof RegExp&&!T.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return T instanceof RegExp?this.replace(T,O):this.replace(new RegExp(String(T).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),O)}},"es_2021","es3");
(function(){function x(){A.call(this);var a=this,c=this.protectedMethod,u,z,ca,ha,ra;this.setCurrentPublishSchema=function(b){ra=b};this.setUserOperatorPrevCheck=function(b){ca=b};this.setCloseResourceLock=function(b){};this.protectedHaveToCarryData=function(){return!1};this.protectedNeedToShowMessageBox=function(){return!0};this.protectedGetRemoteUrl=function(){var b=c.getUrlParamUtil().getParamPathPrefix();return(b?b:"/ierp")+"/qing/core.do"};this.protectedImportMoreCode=function(b){b.pushSkinJs("scene",
"skin");b.pushI18n("scene","scene")};this.protectedCustomInitEnv=function(b){b=$("<div>");b.css({position:"fixed",bottom:"3px",right:"1px",width:"180px",height:"18px",zIndex:"999"});za(b);a.protectedNeedToShowMessageBox()&&R(b);b.appendTo($(document.body));com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser()};var za=function(b){ba.setCallback(function(){var d=new com.kingdee.bos.qing.support.Main;d.setParamLanguage(c.getUrlParamUtil().getParamLanguage());d.creatSupportUi(b)});ba.loadCss("support/support.css");
ba.loadJs("support/support-ui.js");ba.loadI18n("support","support")},R=function(b){ba.setCallback(function(){var d=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");d=d?d:"/ierp";com.kingdee.bos.qing.message.common.Integration.setRemoteUrl(d+"/qing/messageManage.do");sa(d);var l=new com.kingdee.bos.qing.message.ui.Main;l.setFunOpenMessageDialog(function(){l.setViewSize(null,null,10,30)});l.setMessageWidth(80);l.getJqUi(25).appendTo(b)});ba.loadSkinCss("message","message");
ba.loadSkinJs("message","skin");ba.loadJs("message/message-manage-ui.js");ba.loadI18n("message","message")},sa=function(b){var d=com.kingdee.bos.qing.message.common.Integration;d.setImportJSCodeForManager(function(){var k=com.kingdee.bos.qing.CodeLoader;k.setCallback(function(){var m=com.kingdee.bos.qing.theme.message.panel.common.Integration;m.setFunPublishRemoteImpl(function(){var g=new com.kingdee.bos.qing.theme.message.panel.common.RemoteImpl;g.setRemoteUrl(b+"/qing/publishTo.do");return g});
m.setFunQingCenterAndMenuEntrance(function(g,q,t,y){q=O.getUrlParamValue();var r=b+"/qing/publishEntrance.do";r=F.appendParamToUrl(r,"publishId",g);"extreport"==y?(r=F.appendParamToUrl(r,"appID","qing_rpt"),q&&(r=F.appendParamToUrl(r,"skin",q)),H.openNewTabInAppId(t,r,r,H.QING_RPT)):(q&&(r=F.appendParamToUrl(r,"skin",q)),H.openNewTabInAppId(t,r,r,H.QING_ANALYSIS))});m.setResourceRemoteUrl(b+"/qing/resource.do");m.setDataModelEntrance(function(g,q,t){var y=O.getUrlParamValue();q=e.get("dataModeling",
"\u6570\u636e\u51c6\u5907")+"-"+q;var r=b+"/qing/dataModelingEntrance.do";r=F.appendParamToUrl(r,"themeID",g);r=F.appendParamToUrl(r,"isPreset",t);y&&(r=F.appendParamToUrl(r,"skin",y));H.openNewTabInAppId(q,r,r,H.QING_ANALYSIS)});m.setFunPublishContext(function(){var g=new com.kingdee.bos.qing.publish.common.PublishContext;g.setParamPathPrefix(b);g.setLappEntranceUrl(b+"/qing/lappEntrance.do");return g});m.setFunPublishedEmailLoginViewUrl(function(){var g=O.getUrlParamValue(),q=h.getUrlParamValue("language"),
t=b+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";g&&(t=F.appendParamToUrl(t,"skin",g));q&&(t=F.appendParamToUrl(t,"language",q));return t});m.setFunPublishedEmailAnonymousViewUrl(function(){var g=O.getUrlParamValue(),q=h.getUrlParamValue("language"),t=b+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";g&&(t=F.appendParamToUrl(t,"skin",g));q&&(t=F.appendParamToUrl(t,
"language",q));return t});m.setFunPublishContentEditEntrance(function(){return function(g,q,t){var y=com.kingdee.bos.qing.publish.model.PublishTargetType;if(t&&y.MOBILE==t){y=g.getPublishId();var r=g.getId()}else y=g.getId();var B=O.getUrlParamValue(),ia=h.getUrlParamValue("language");t=b+"/qing/publishContentEditEntrance.do";t=F.appendParamToUrl(t,"skin",B);t=F.appendParamToUrl(t,"language",ia);t=F.appendParamToUrl(t,"publishId",y);r&&(t=F.appendParamToUrl(t,"lappId",r));r=t;q&&(y="editPublishedContent-"+
y,B=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,B.putSubscribe(y,q),t=F.appendParamToUrl(t,"subscribeKey",y),t=F.appendParamToUrl(t,"currentPageClientId",B.getCurrentPageClientId()));q=com.kingdee.bos.qing.framework.common.TabbedUiUtil;q.openNewTabInAppId(e.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+g.getName(),t,r,q.QING_ANALYSIS)}});m.setFunTimedPushContentEditEntrance(function(){return function(g){var q=b+"/qing/timedPushContentEditEntrance.do",t=e.get("editTimedPushContent",
"\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(g instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var y=g.getId(),r=g.getPublishSourceType();B=g.getSchemaSourceType();q=F.appendParamToUrl(q,"configId",y);q=F.appendParamToUrl(q,"publishSourceType",r);q=F.appendParamToUrl(q,"schemaType",B);q=F.appendParamToUrl(q,"pushTarget","email");t=t+"-"+g.getNameRule().getName();g.isSourceNameNotFound()&&(q=F.appendParamToUrl(q,"errorCode","2301001"))}else{y=g.getId();r=g.getPushTargetType();var B=g.getSchemaType();
q=F.appendParamToUrl(q,"configId",y);q=F.appendParamToUrl(q,"pushTargetType",r);q=F.appendParamToUrl(q,"schemaType",B);q=F.appendParamToUrl(q,"pushTarget","lapp");t=t+"-"+g.getName();g.getSourceName()||(q=F.appendParamToUrl(q,"errorCode","2301001"))}g=O.getUrlParamValue();B=h.getUrlParamValue("language");g&&(q=F.appendParamToUrl(q,"skin",g));B&&(q=F.appendParamToUrl(q,"language",B));g=com.kingdee.bos.qing.framework.common.TabbedUiUtil;g.openNewTabInAppId(t,q,q,g.QING_ANALYSIS)}});m=com.kingdee.bos.qing.modeler.message.panel.common.Integration;
m.setFunOpenModelSetPage(function(g,q){var t=O.getUrlParamValue(),y=e.get("modelSet","\u6a21\u578b\u96c6-")+q,r=b+"/qing_modeler/modelSetMainPage.do";r=F.appendParamToUrl(r,"modelSetId",g);r=F.appendParamToUrl(r,"modelSetName",q);r=F.appendParamToUrl(r,"currentPageClientId",com.kingdee.bos.qing.framework.common.RemoteFramework.getClientID());t&&(r=F.appendParamToUrl(r,"skin",t));H.openNewTabInAppId(y,r,r,H.QING_MODELER)});m.setFunOpenModelDesign(function(g,q,t,y,r){var B=com.kingdee.bos.qing.modeler.message.panel.common.ModelType,
ia=O.getUrlParamValue();r=(r=B.getModelTypeText(r))?r+"-"+t:t;B=b+"/qing_modeler/deployDesignerEntrance.do";B=F.appendParamToUrl(B,"modelSetId",g);B=F.appendParamToUrl(B,"modelId",q);B=F.appendParamToUrl(B,"modelName",t);B=F.appendParamToUrl(B,"modelDeployId",y);ia&&(B=F.appendParamToUrl(B,"skin",ia));H.openNewTabInAppId(r,B,B,H.QING_MODELER)})});k.loadSkinCss("message","messagepanel");k.loadSkinJs("message","skin");k.loadJs("message/message-content-panel-management.js");k.loadI18n("message","messagepanel");
k.loadSkinCss("qingmodeler/message","message-modeler-panel");k.loadSkinJs("qingmodeler/message","skin");k.loadJs("qingmodeler/message/message-content-panel-management.js");k.loadI18n("qingmodeler/message","message-modeler-panel")});var l=F.decodeParamFromUrl(location.search,"appID");d.setAppId(l)},ma=function(b,d,l,k,m,g){var q=com.kingdee.bos.qing.publish.model.PublishSourceType,t=com.kingdee.bos.qing.publish.model.PublishTargetType;b!=q.EXTREPORT&&b!=q.DASHBOARD&&d!=t.GUIMENU?(b=new com.kingdee.bos.qing.publish.common.PublishFacade(K(),
function(y){g&&g()},function(y,r){return 2301016==y?(fa().showPrompt(e.get("publishNoOperAuthExceptionCurtain","\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002"),2E3),!0):!1}),d=l.getBizTag(),q=l.getDsbPublishId(),l.getRefToId()&&(d=l.getRefToId()),b.judgePublishOper(d,q,k,m)):g&&g()},U=function(){com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(K())},ua=function(){var b=c.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(b+"/qing/lappPrivateInfo.do")},
da=function(b,d,l,k,m,g){var q=c.getUrlParamUtil().getParamPathPrefix(),t=com.kingdee.bos.qing.publish.common,y=t.PublishContext;t=com.kingdee.bos.qing.schemamanage.model;var r=t.SchemaAttrModel;t=t.SchemaModel;var B=c.getUrlParamUtil().getUrlParam("bizTag"),ia=a.protectedHaveToCarryData(),J;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(J=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());var xa=J&&J.hasDirectModeTable();
J=new y;J.setSource(m);J.setBizTag(B);J.setCurrentSourceType(d);J.setHaveToCarryData(ia);J.setHasDirectModeTable(xa);J.setParamPathPrefix(q);J.setSchemaTag("Dashboard-Analysis"==g?c.getUrlParamUtil().getUrlParam("schemaTag"):null);d=new r;d.setSchemaType(r.SCHEMATYPE_SYSTEM);d.setIsDefault(!0);d.setSchemaName(S("sysPublishScheme","\u7cfb\u7edf\u9ed8\u8ba4\u65b9\u6848"));d.setSource(l);m=new t;m.setSchemaAttr(d);m.setSchemaContent(b.getJsonModelBook());b=m.toJsonObject();J.setCurrentContentModel(b);
b=c.getUrlParamUtil().getParamTag();d=function(na){na+="/qinganalysis/lappPreviewEntrance.do";for(var P=window.location.search.substring(1).split("&"),ta=0;ta<P.length;ta++){var f=P[ta],p=f.indexOf("=");if(-1!=p){var v=f.substring(0,p);"clientID"!=v&&"safetyCode"!=v&&(f=f.substring(p+1),na+=0>na.indexOf("?")?"?":"&",na+=v,na+="=",na+=f)}}return na};l==r.SCHEMASOURCE_SQUARE?(J.setScene(y.Scene.Square),l=d(q),l=F.appendParamToUrl(l,"view","10"),J.setMobilePreviewUrl(l),q=F.appendParamToUrl(q+"/qing/lappEntrance.do",
"tag",b),q=F.appendParamToUrl(q,"view","10"),J.setLappEntranceUrl(q)):l==r.SCHEMASOURCE_LONGER&&(J.setScene(y.Scene.Longer),J.setMobilePreviewUrl(d(q)),q=F.appendParamToUrl(q+"/qing/lappEntrance.do","tag",b),J.setLappEntranceUrl(q));k&&(J.setRefToId(c.getUrlParamUtil().getUrlParam("publishId")),J.setDsbPublishId(k),J.setDashBoardAnalysis(!0));return J},ya=function(b){var d=!1;if(b&&(b=b.tables)&&0<b.length)for(var l=0;l<b.length;l++)if(b[l].subViews){d=!0;break}return d},va=function(b,d){ca?ca(function(l){var k=
new com.kingdee.bos.qing.schemamanage.common.SchemaManageFacade(qa(),function(g){g.publishInfoPerCheck==x.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?b&&b(d):g.publishInfoPerCheck==x.THEME_IS_DEL?Ba($(document.body),"msg-warning",e.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):g.publishInfoPerCheck==x.PUBLISHINFO_NOEXIST?Ba($(document.body),"msg-warning",e.get("publishInfoExist","\u53d1\u5e03\u8bb0\u5f55\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):g.publishInfoPerCheck==
x.PERMISSION_CANCEL?Ba($(document.body),"msg-jurisdiction",e.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+g.publishInfoUserName+'"'+e.get("authority","\u6388\u6743")):g.publishInfoPerCheck==x.PUBLSIHPLAN_DELETE&&Ba($(document.body),"msg-warning",e.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(ra.getCurrentSchemaId());m.setSchemaName(ra.getCurrentSchemaName());k.checkPublishInfoAndAuthority(l,m)}):b&&b(d)},qa=function(){var b=c.getUrlParamUtil().getParamPathPrefix(),d=c.getUrlParamUtil().getParamTag();b=(b?b:"/ierp")+"/qing/schemaManage.do";var l=new com.kingdee.bos.qing.RemoteImpl;l.setRemoteUrl(b);l.setTag(d);return l},Ba=function(b,d,l){b=new Aa;b.setOptionType(Aa.OPTION_OK);b.setButtonText(Aa.RETURN_OK,e.get("ISee","\u6211\u77e5\u9053\u4e86"));var k={};k.text=l;k.iconName=
d;b.setMessage(k);b.setCustomPainter(function(m,g){var q=$("<div>");q.addClass("sa-ctrl-msgdlg-icon");C.background(q,g.iconName);var t=$("<div>");t.addClass("sa-ctrl-msgdlg-content");t.text(g.text);m.append(q);m.append(t)});b.showDialog(380,280)},Ca=function(b,d,l){u?d(u):(new com.kingdee.bos.qing.core.Facade(b,function(k){u=k;d(k)},l)).getMeta()},w=function(b){u=null;Ca(a.getRemoteImpl(),b)},K=function(){var b=c.getUrlParamUtil().getParamPathPrefix(),d=c.getUrlParamUtil().getParamTag();b=(b?b:"/ierp")+
"/qing/publishTo.do";var l=new com.kingdee.bos.qing.RemoteImpl;l.setRemoteUrl(b);l.setTag(d);return l},Y=function(){var b=c.getUrlParamUtil().getParamPathPrefix(),d=O.getUrlParamValue(),l=c.getUrlParamUtil().getParamLanguage();b=(b?b:"/ierp")+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";d&&(b=F.appendParamToUrl(b,"skin",d));l&&(b=F.appendParamToUrl(b,"language",l));return b},
W=function(){var b=c.getUrlParamUtil().getParamPathPrefix(),d=O.getUrlParamValue(),l=c.getUrlParamUtil().getParamLanguage();b=(b?b:"/ierp")+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";d&&(b=F.appendParamToUrl(b,"skin",d));l&&(b=F.appendParamToUrl(b,"language",l));return b},L=function(){return function(b,d,l){var k=com.kingdee.bos.qing.publish.model.PublishTargetType;if(l&&k.MOBILE==l){l=b.getPublishId();var m=b.getId();var g=b.getLappUserType()}else l=b.getId();k=c.getUrlParamUtil().getParamPathPrefix();
var q=O.getUrlParamValue(),t=c.getUrlParamUtil().getParamLanguage();k=F.appendParamToUrl((k?k:"/ierp")+"/qing/publishContentEditEntrance.do","skin",q);k=F.appendParamToUrl(k,"language",t);k=F.appendParamToUrl(k,"publishId",l);m&&(k=F.appendParamToUrl(k,"lappId",m));g&&(k=F.appendParamToUrl(k,"lappUserType",g));m=k;d&&(g="editPublishedContent-"+l,l=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,l.putSubscribe(g,d),k=F.appendParamToUrl(k,"subscribeKey",g),k=F.appendParamToUrl(k,"currentPageClientId",
l.getCurrentPageClientId()));H.openNewTab(e.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+b.getName(),k,m)}},Z=function(){return function(b){var d=c.getUrlParamUtil().getParamPathPrefix();d=(d?d:"/ierp")+"/qing/timedPushContentEditEntrance.do";var l=e.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(b instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var k=b.getId(),m=b.getPublishSourceType();g=b.getSchemaSourceType();d=F.appendParamToUrl(d,"configId",
k);d=F.appendParamToUrl(d,"publishSourceType",m);d=F.appendParamToUrl(d,"schemaType",g);d=F.appendParamToUrl(d,"pushTarget","email");l=l+"-"+b.getNameRule().getName();b.isSourceNameNotFound()&&(d=F.appendParamToUrl(d,"errorCode","2301001"))}else{k=b.getId();m=b.getPushTargetType();var g=b.getSchemaType();d=F.appendParamToUrl(d,"configId",k);d=F.appendParamToUrl(d,"pushTargetType",m);d=F.appendParamToUrl(d,"schemaType",g);d=F.appendParamToUrl(d,"pushTarget","lapp");l=l+"-"+b.getName();b.getSourceName()||
(d=F.appendParamToUrl(d,"errorCode","2301001"))}b=O.getUrlParamValue();g=c.getUrlParamUtil().getParamLanguage();b&&(d=F.appendParamToUrl(d,"skin",b));g&&(d=F.appendParamToUrl(d,"language",g));H.openNewTab(l,d)}},S=function(b,d){return e.get(b,d)},fa=function(){z||(z=new com.kingdee.bos.qing.ui.component.MessageCurtain,z.getJqUi().appendTo($(document.body)));return z};c.getMLS=S;c.importLinkage=function(b){b.pushSkinJs("linkage","skin");b.pushJs("linkage/linkage.js");b.pushSkinCss("linkage","linkage")};
c.importForSchema=function(b){b.pushSkinJs("schema-manage","skin-initialize");b.pushJs("schema-manage/schema-manage-initialize.js");b.pushI18n("schema-manage","schema-initialize");b.pushSkinCss("schema-manage","schema-manage");b.pushJs("schema-manage/schema-manage-ui.js");b.pushI18n("schema-manage","schema-ui")};c.importForPublish=function(b){b.pushJs("biz-common/qing-biz-common.js");b.pushSkinCss("biz-common","biz-common");b.pushSkinJs("biz-common","skin");b.pushI18n("biz-common","biz-common");b.pushSkinJs("imagelib",
"skin");b.pushSkinCss("imagelib","qing-imagelib");b.pushJs("imagelib/imagelib.js");b.pushI18n("imagelib","imagelib");b.pushJs("common/qing-schedule.js");b.pushI18n("common","qing-schedule");b.pushSkinCss("publish","qing-publish");b.pushSkinJs("publish","skin");b.pushI18n("publish","publish");b.pushJs("publish/qing-publish.js");b.pushSkinCss("timedpush","qing-timedpush");b.pushSkinJs("timedpush","skin");b.pushI18n("timedpush","timedpush");b.pushJs("timedpush/qing-timedpush.js");b.pushJs("lightapp/common/qing-lapp-env.js");
b.pushJs("timedpush/qing-timedpush-lapp.js");b.pushJs("timedpush/html2canvas.js")};c.importForMap=function(b){b.pushSkinJs("map-designer","integration-skin");b.pushJs("map-designer/map-integration.js");b.pushSkinCss("map-designer","map-integration");b.pushI18n("map-designer","map-integration")};c.hookLongerPublishTo=function(b,d,l,k,m,g){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(J,xa,na){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(J,xa,0,
na)});var q=com.kingdee.bos.qing.publish.model;d=q.PublishTargetType;q=com.kingdee.bos.qing.schemamanage.model;var t=q.SchemaAttrModel,y=function(J){var xa=com.kingdee.bos.qing.publish.common.PublishFactory,na=J.getUserObject(),P=J.getText().replace("...",""),ta=da(b,l,t.SCHEMASOURCE_LONGER,k,m,g);ma(l,na,ta,"longer",n.ANALYSIS_PUBLISH,function(){var f=xa.createPublishToDialog(P,K(),ta,na,L());f.setOuterMessageCurtain(fa());f.showDialog()})},r=com.kingdee.bos.qing.ui.component.MenuItemModel;q=new com.kingdee.bos.qing.ui.component.MenuModel;
var B=new r(function(J){va(y,J)});B.setUserObject(d.APPMENU);B.setText(S("toAppMenu","\u5e94\u7528\u83dc\u5355..."));q.addItemModel(B);B=new r(function(J){va(y,J)});B.setUserObject(d.CENTER);B.setText(S("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));q.addItemModel(B);B=new r(function(J){va(y,J)});B.setUserObject(d.MOBILE);B.setText(S("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));q.addItemModel(B);U();ua();var ia=function(){var J=com.kingdee.bos.qing.publish.common.PublishManagerDialog,
xa=da(b,l,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_LONGER);(new J(K(),xa,L())).showDialog()};B=new r(function(J){va(ia,J)});B.setUserObject();B.setText(S("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");q.addItemModel(B);d=S("publishTo","\u53d1\u5e03\u5230");return b.getConductor().appendToolbarMenu(q,"publish_to",d)};c.hookSquarePublishTo=function(b,d,l){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(y,r,B){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(y,
r,0,B)});var k=com.kingdee.bos.qing.publish.model;d=k.PublishTargetType;k=com.kingdee.bos.qing.schemamanage.model;var m=k.SchemaAttrModel,g=function(y){var r=com.kingdee.bos.qing.publish.common.PublishFactory,B=y.getUserObject(),ia=y.getText().replace("...",""),J=da(b,l,m.SCHEMASOURCE_SQUARE);ma(l,B,J,"square",n.CARD_PUBLISH,function(){var xa=r.createPublishToDialog(ia,K(),J,B,L());xa.setOuterMessageCurtain(fa());xa.showDialog()})},q=com.kingdee.bos.qing.ui.component.MenuItemModel;k=new com.kingdee.bos.qing.ui.component.MenuModel;
var t=new q(g);t.setUserObject(d.CARD_REPOSITORY);t.setText(S("toCardRepository","\u5361\u7247\u5e93..."));k.addItemModel(t);g=new q(g);g.setText(S("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));g.setUserObject(d.MOBILE);k.addItemModel(g);U();ua();t=new q(function(){var y=com.kingdee.bos.qing.publish.common.PublishManagerDialog,r=da(b,l,com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel.SCHEMASOURCE_SQUARE);(new y(K(),r,L())).showDialog()});t.setUserObject();t.setText(S("publishManager","\u53d1\u5e03\u7ba1\u7406")+
"...");k.addItemModel(t);d=S("publishTo","\u53d1\u5e03\u5230");return b.getConductor().appendToolbarMenu(k,"publish_to",d)};c.hookPublishManager=function(b,d,l){var k=S("publishManager","\u53d1\u5e03\u7ba1\u7406");return b.getConductor().appendToolbarButton(function(){var m=com.kingdee.bos.qing.publish.common.PublishManagerDialog,g=da(b,d,l);(new m(K(),g,L())).showDialog()},"publish_manager",k)};c.hookCloseTab=function(b){var d=S("closeTab","\u9000\u51fa");return b.getConductor().appendToolbarButton(function(){b.getConductor().isDirty()?
N.showConfirmExitDialog():H.closeCurrentTab()},"error_close",d)};c.hookShareTo=function(b,d,l,k,m){com.kingdee.bos.qing.publish.common.UserOperationReporter.hookCollector(function(P,ta,f){com.kingdee.bos.qing.behavior.BehaviorManager.interestInBehavior(P,ta,0,f)});var g=function(P){P=S("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...","");var ta=da(b,k,d);P=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(P,K(),ta);P.setOuterMessageCurtain(fa());P.showDialog()},
q=function(P){P=com.kingdee.bos.qing.CodeLoader.createSafety();P.pushJs("yzj-web/qingjs.js");P.pushJs("yzj-web/imcloud.js");P.pushJs("yzj-web/imsdkerp.js");P.pushJs("yzj-web/imShare.js");P.pushSkinCss("yzj-web","imcloud");P.pushSkinCss("yzj-web","imsdk");P.pushSkinCss("yzj-web","imsdkerp");P.load(function(){})};l=new ka;(new oa(function(P){window.beLoadedImCloud?g(P):q(P)})).setText(S("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var t=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel,
y=a.protectedHaveToCarryData(),r;com.kingdee.bos.qing&&com.kingdee.bos.qing.prepare&&com.kingdee.bos.qing.prepare.DataSourceInfoContext&&(r=com.kingdee.bos.qing.prepare.DataSourceInfoContext.getCurrentDataSourceInfo());r=r&&r.hasDirectModeTable();var B=com.kingdee.bos.qing.publish.model.PublishTargetType;if(!r&&!y&&d==t.SCHEMASOURCE_LONGER){var ia=function(P){var ta=P.getText().replace("...",""),f=da(b,k,d,m);ma(k,B.EMAIL,f,"longer",n.ANALYSIS_TIMEPUSH,function(){var p=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(ta,
K(),f,Y(),W(),Z(),b);p.setOuterMessageCurtain(fa());p.showDialog()})},J=new oa(function(P){va(ia,P)});J.setText(S("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));l.addItemModel(J)}if(!r&&!y){var xa=function(P){var ta=da(b,k,d,m),f="longer",p=n.ANALYSIS_TIMEPUSH;d==t.SCHEMASOURCE_SQUARE&&(f="square",p=n.CARD_TIMEPUSH);ma(k,B.EMAIL,ta,f,p,function(){var v=new com.kingdee.bos.qing.timedpush.LappSchedulePush,D=P.getText().replace("...","");v.createDialog(D,K(),ta,Z(),b)})};y=new oa(function(P){va(xa,
P)});y.setText(S("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");l.addItemModel(y)}var na=function(){var P=com.kingdee.bos.qing.publish.common.PushManager,ta=da(b,k,d);P=new P(Z());var f=com.kingdee.bos.qing.timedpush;P.registerEmailPushPanelConstructor(f.EmailConfigManagePanel);P.initEmailPushConfig(K(),Y(),W());P.registerLappPushPanelConstructor(f.LappPushManagePanel);P.initLappPushConfig(function(p,v,D){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
K(),p,v,D)},ta);P.showDialog()};y=new oa(function(P){va(na,P)});y.setUserObject();y.setText(S("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");l.addItemModel(y);l=b.getConductor().appendToolbarMenu(l,"btn_communicate",S("timedPush","\u5b9a\u65f6\u63a8\u9001"));l.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=g)});return l};c.initDesigntimeLinkage=function(){var b=c.getUrlParamUtil().getParamPathPrefix(),d=(b?b:"/ierp")+"/qing/linkage.do",l=com.kingdee.bos.qing.integration.LinkageJumper;
b=new com.kingdee.bos.qing.linkage.LinkageManage;b.initDesigntime(d,l.jump);d=c.getUrlParamUtil().getParamTag();b.setCurrentLinkageTag(d)};c.loadMeta=Ca;c.reloadMeta=w;c.hookRefresh=function(b,d){var l=c.getMLS("refresh","\u6570\u636e\u66f4\u65b0"),k=function(){d.restart();d.setExtractDataFinishedSuccessCallback(function(m){m||ya(u)?w(function(g){var q=b.getJsonModelBook();b.prepareMeta(g);b.setJsonModelBook(q)}):b.reExecute()})};return b.getConductor().appendToolbarButton(function(){va(k)},"btn_reset",
l)};c.getMessageCurtain=fa;c.hookSetCurrentTabStatus=function(b){b.getConductor().setDirtyListener(function(d){N.setTabStatus(d)})};c.loadPublishOperList=function(b,d,l,k,m){ha?l(ha):(new com.kingdee.bos.qing.publish.common.PublishFacade(K(),function(g){ha=g;l(ha)},m)).loadPublishOperList(b,d,k)};c.loadPublishOperModel=function(b,d,l,k){ha?l(ha):(new com.kingdee.bos.qing.publish.common.PublishFacade(K(),function(m){ha=m.noOperValueMap;l(ha)},k)).loadPublishOperModel(b,d)};c.registMapMapLibrary=function(b){com.kingdee.bos.qing.map.common.Integration.setRemoteUrl(b+
"/qing/mapManage.do");var d=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(l,k){d.setParamPathPrefix(b);d.showDialog(l,k)})}}"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 T=com.kingdee.bos.qing.scene.common.designer,O,A,ba,Aa,C,F,e,H,ka,oa,N,h;(function(){var a=com.kingdee.bos.qing;O=a.SkinUtil;A=a.AbstractDesignerScene;ba=a.CodeLoader;h=a.Seer;a=com.kingdee.bos.qing.common;F=a.Util;a=com.kingdee.bos.qing.framework.common;e=a.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
H=a.TabbedUiUtil;a=com.kingdee.bos.qing.ui.component;ka=a.MenuModel;oa=a.MenuItemModel;Aa=a.MessageDialog;C=a.Icons;a=com.kingdee.bos.qing.integration;N=a.TabStatusHelper})();T.AbstractDesignerSceneImpl=x;T.LongerDesignerOperationJudgerModel=function(a){com.kingdee.bos.qing.core.LongerDesignerOperationJudger.call(this);a&&0!=a&&(this.protectedParseDesignable=function(){return 0==(a&n.ANALYSIS_EDITABLE)},this.protectedParseDataDetailReadable=function(){return 0==(a&n.ANALYSIS_DETAIL)},this.protectedParseExportable=
function(){return 0==(a&n.ANALYSIS_EXPORT)},this.protectedParsePrintable=function(){return 0==(a&n.ANALYSIS_PRINT)},this.protectedParsePublishable=function(){return 0==(a&n.ANALYSIS_PUBLISH)},this.protectedParseTimingPushable=function(){return 0==(a&n.ANALYSIS_TIMEPUSH)})};T.SquareDesignerOperationJudgerModel=function(a){com.kingdee.bos.qing.core.SquareDesignerOperationJudger.call(this);a&&0!=a&&(this.protectedParsePublishable=function(){return 0==(a&n.CARD_PUBLISH)},this.protectedParseTimingPushable=
function(){return 0==(a&n.CARD_TIMEPUSH)})};var n={};T.OperCodeType=n;n.ANALYSIS_EDITABLE=2;n.ANALYSIS_EXPORT=4;n.ANALYSIS_PRINT=8;n.ANALYSIS_PUBLISH=16;n.ANALYSIS_TIMEPUSH=32;n.ANALYSIS_DETAIL=64;n.CARD_PUBLISH=256;n.CARD_TIMEPUSH=512;n.ENTRY_ANALYSIS=1;n.ENTRY_SQUARE=128;x.THEME_IS_DEL="Theme is Delete";x.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";x.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";x.PERMISSION_CANCEL="Not Permission";x.PUBLSIHPLAN_DELETE="Publish Not Exist"})();(function(){function x(){h.call(this);var w,K,Y,W,L;this.setIsSquare=function(Z){Y=Z};this.protectedIsSquare=function(){return Y};this.protectedInitDesigner=function(Z){Z.getConductor().insertToolbarButton(function(S){K(Z)},null,c.get("finish","\u5b8c\u6210"));Z.getConductor().insertToolbarSeperator();Z.setDesignerOperationJudger(L?null:W,L?W:null)};this.protectedLoading=function(Z,S){w(Z,S)};this.setSchemaLoader=function(Z){w=Z};this.setSchemaSaver=function(Z){K=Z};this.setDesignerOperationJudger=
function(Z){W=Z};this.setSquareOrLonger=function(Z){L=Z};this.protectedIsSquare=function(){return L}}function T(){com.kingdee.bos.qing.dashboard.AbstractImportUi.call(this);this.protectedInitUi=function(){var w=new ha;w.setText(c.get("fromCardLibrary","\u4ece\u5361\u7247\u5e93\u5f15\u5165"));return w};this.doNext=function(w,K,Y){K=w.getDsbRemoteImpl();var W=new O;W.setStepContentInfo(w);W.setDsbRemoteImpl(K);Y([W])}}function O(){com.kingdee.bos.qing.dashboard.AbstractImportStep.call(this);var w=this.protectedMethod,
K,Y,W,L,Z,S,fa;this.setDsbRemoteImpl=function(b){L=b};this.setStepContentInfo=function(b){Z=b};this.over=function(b){b&&(b=Z.getAllStepOverCallback())&&b(W,Y,!1,S,fa)};this.isLastStep=function(){return!0};this.getSubTitle=function(){return c.get("selectCard","\u9009\u62e9\u5361\u7247")};this.getSuggestedDialogSize=function(){return[810,580]};this.protectedCreateUi=function(){var b=a.decodeParamFromUrl(location.search,"path"),d=(b?b:"/ierp")+"/qing/publishTo.do",l=new com.kingdee.bos.qing.RemoteImpl;
l.setRemoteUrl(d);K=new com.kingdee.bos.qing.publish.CardSelector(l);K.setOuterMessageCurtain(w.getMessageCurtain());K.setParamPathPrefix(b);K.setSingleSelected(!0);return K.getJqUi()};this.intoThisStep=function(b,d){};this.outThisStep=function(b,d){if(b)d();else if(b=K.getSelectedPublishModels(),0<b.length){var l=b[0];b=l.getSchemeId();Y=l.getName();l=l.getId();(new com.kingdee.bos.qing.dashboard.DsbFacade(L,function(k){k.noModeling?w.getMessageCurtain().showPrompt(c.get("noModeling","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e3b\u9898\u6ca1\u6709\u8fdb\u884c\u6570\u636e\u51c6\u5907\uff0c\u5361\u7247\u65e0\u6cd5\u4f7f\u7528\u3002")):
k.noTheme?w.getMessageCurtain().showPrompt(c.get("noTheme","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e3b\u9898\u5df2\u88ab\u5220\u9664\uff0c\u5361\u7247\u65e0\u6cd5\u4f7f\u7528\u3002")):(W=k.ref,S=k.model,fa=k.operation,d())},function(k,m){return"900001"==k?(d(),w.getMessageCurtain().showError(c.get("failToloadCardContent","\u52a0\u8f7d\u5361\u7247\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})).getCardReferenceMap(l,b)}else b=c.get("chooseImportCard","\u8bf7\u9009\u62e9\u8981\u5f15\u5165\u7684\u5361\u7247\u3002"),
w.getMessageCurtain().showPrompt(b,2E3)}}function A(){com.kingdee.bos.qing.dashboard.AbstractImportUi.call(this);var w=A.LONGER_TYPE,K=com.kingdee.bos.qing.publish.env.PublishAppMenuFolderNode;this.protectedInitUi=function(){var W=new ha;W.setText(c.get("fromAppMenu","\u4ece\u5e94\u7528\u83dc\u5355\u5f15\u5165"));return W};this.doNext=function(W,L,Z){var S=W.getDsbRemoteImpl();S=new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(S,function(fa){var b=fa.appmenu;fa=fa.publish;var d=!1,l=!0,
k=new K;k.fromJsonObject(b);k=k.getChildren();b=[];for(var m=0;m<k.length;m++)Y(b,k[m]);for(m=0;m<fa.length;m++)fa[m].publishAppMenuBO.isPreset?d=!0:l=!1;if(0==b.length)L.showPrompt(c.get("noPublish","\u6682\u65e0\u53d1\u5e03\u3002"));else{switch(w){case A.LONGER_TYPE:k=new Aa;break;case A.EXTREPORT_TYPE:k=new H;break;default:throw Error("do not support this type!");}k.setAppmenu(b);k.setAppmenuPublish(fa);k.setStepContentInfo(W);k.showPresetFilter(d,l);Z([k]);k.refreshTable()}},function(fa,b){fa=
b.toString();return"9"==fa.substr(0,1)&&6==fa.length?(L.showError(c.get("failToGetAppMenu","\u83b7\u53d6\u5e94\u7528\u83dc\u5355\u5931\u8d25\u3002")),!0):!1});w==A.LONGER_TYPE&&S.loadAppMenuTree();w==A.EXTREPORT_TYPE&&S.loadAppMenuTreeForExtreport()};var Y=function(W,L){W.push(L);if(L instanceof K&&(L=L.getChildren()))for(var Z=0;Z<L.length;Z++)Y(W,L[Z])};this.protectedMethod={setImportType:function(W){w=W}}}function ba(){function w(I){KTDefaultCellRender.call(this,I);var M=this,V=this.paintCellUI;
this.paintCellUI=function(X,aa){var ea=M.getCurrentRow(),ja=M.getCurrentColIdx();if(M.getCurrentRowIdx()<ma.getHeadRowCount()||1==ja||2==ja)V(X,aa);else if(0==ja){aa=ea.getUserObject();ea=new ha;f.addElement(ea);fa&&fa.getPublishAppMenuBO().formParams.publishId==aa.getPublishAppMenuBO().formParams.publishId&&ea.setChecked(!0);ea.setUserObject(aa);ja=ea.getJqUi();ea=$("<div class='appmenu-publish-item-btn-name'>");if(P){var pa=aa.getPublishAppMenuBO().qingMenuName;if(P&&pa){var Ga=P.toUpperCase(),
Da=pa.toUpperCase(),Ea=Da.split(Ga),La=Ga.length;for(Ha in Ea){var Fa=Da.indexOf(Ea[Ha]),Ka=pa.substr(Ja,Ea[Ha].length);Fa+=Ea[Ha].length;var Ia=Da.length-Fa;Da=Da.substr(Fa,Ia);pa=pa.substr(Fa,Ia);Fa=$("<span>");Fa.text(Ka);Fa.appendTo(ea);if(Ha!=Ea.length-1&&1<Ea.length){var Ja=Da.indexOf(Ga);Ka=pa.substr(Ja,La);Fa=Ja+La;Ia=Da.length-Fa;Da=Da.substr(Fa,Ia);pa=pa.substr(Fa,Ia);Fa=$("<span>");Fa.text(Ka);Fa.css("color","red");Fa.clone().appendTo(ea)}}}else ea.text(pa)}else ea.text(aa.getPublishAppMenuBO().qingMenuName);
ja.addClass("appmenu-publish-item-btn");ja.appendTo(X);if(aa.getPublishAppMenuBO().isPreset){var Ha=$("<div>");Ha.text(c.get("preset","\u9884\u7f6e"));Ha.addClass("appmenu-publish-item-btn-preset-tag");Ha.appendTo(X)}ea.appendTo(X)}}}com.kingdee.bos.qing.dashboard.AbstractImportStep.call(this);var K=this,Y=this.protectedMethod,W,L,Z,S,fa,b,d,l,k,m,g,q=com.kingdee.bos.qing.publish.common.FilterModelType,t=com.kingdee.bos.qing.publish.common.CardFilterType,y,r,B=!1,ia=[new t(c.get("myLonger","\u6211\u7684\u5206\u6790"),
!1),new t(c.get("presetLonger","\u9884\u7f6e\u5206\u6790"),!0)],J=[void 0,void 0],xa=!1,na,P="",ta,f=new za;f.addChangedListener(function(I,M){fa=I.getUserObject()?I.getUserObject():fa});var p=new sa;p.setFormatString("yyyy-MM-dd HH:mm:ss");this.isLastStep=function(){return!1};this.setStepContentInfo=function(I){W=I};this.setAppmenu=function(I){L=I};this.setAppmenuPublish=function(I){Z=I};this.showPresetFilter=function(I,M){r=I;(B=M)&&ia.reverse()};this.refreshTable=function(){m&&ma.refresh(m)};this.getSubTitle=
function(){return c.get("selectAppmenu","\u9009\u62e9\u5e94\u7528\u83dc\u5355")};this.protectedCreateUi=function(){var I=$("<div>"),M=$("<div>"),V=D,X=new q;X.setSearchType(ia);X.setSelectedChangedListener(V);y=X.getJqUi();y.css({top:"-4px",left:"6px"});y.appendTo(M);!r&&y.hide();na?V=na.getJqUi():(na=new U,na.addSearchListener(Q),na.setSearchListenerDelay(100),na.setPlaceholder(c.get("searchBoxPlaceholder","\u641c\u7d22\u53d1\u5e03\u540d\u79f0")),na.setShowSearchIcon(!0),V=na.getJqUi(),V.addClass("import-longer-from-appmenu-search-box"),
V.css({position:"relative",width:"175px",height:"23px"}));V.appendTo(M);M.appendTo(I);M=$("<div>");M.addClass("import-longer-from-appmenu");for(V=0;V<L.length;V++){X=L[V];var aa=X;var ea=[];for(var ja=aa.getAppId(),pa=aa.getAppMenuId(),Ga=aa.getAppMenuId2(),Da=ja?pa?Ga?Ga:pa:ja:null,Ea=0;Ea<Z.length;Ea++)aa=new F,aa.fromJsonObject(Z[Ea]),ja=aa.getPublishAppMenuBO().appId,pa=aa.getPublishAppMenuBO().appMenuId,Ga=aa.getPublishAppMenuBO().appMenuId2,Da===(ja?pa?Ga?Ga:pa:ja:null)&&ea.push(aa);ea&&0<ea.length&&
X.setPublishModels(ea)}S=new C;ta=b=E();S.setCurrentNode(ta);S.setTreeItemSelectedListener(G);v();S.getJqUi(L).appendTo(M);k=$("<div>");k.addClass("appmenu-publish-table");m=ma.createTable();ma.bindTableListenerForCtrl(m);V=new w(m);V.setOutsideVisible(!1);m.setCellRender(V);m.addColumns(3);m.getColumn(0).setWidth(220);m.getColumn(1).setWidth(90);m.getColumn(2).setWidth(150);V=ma.createHeadRow(m);V.getCell(0).setValue(c.get("publishName","\u53d1\u5e03\u540d\u79f0"));V.getCell(1).setValue(c.get("publishPerson",
"\u53d1\u5e03\u4eba"));V.getCell(2).setValue(c.get("publishTime","\u53d1\u5e03\u65f6\u95f4"));V=b.getPublishModels();X=!1;for(ea=0;ea<V.length;ea++)pa=V[ea],B==pa.getPublishAppMenuBO().isPreset&&(X||(fa=pa,X=!0),ja=ma.createRow(m),ja.setUserObject(pa),ja.getCell(0).setValue(pa.getPublishAppMenuBO().name),ja.getCell(1).setValue(pa.getPublishPersonName()),pa=Number(pa.getPublishAppMenuBO().formParams.publishTime),ja.getCell(2).setValue(p.format(pa)));ma.refresh(m);d=$(m.getUI());d.appendTo(k);k.appendTo(M);
M.appendTo(I);return I};var v=function(){for(var I=0;I<L.length;I++)L[I].setIsShow(!1);for(I=0;I<L.length;I++){var M;if(M=L[I].getPublishModels())a:{M=L[I].getPublishModels();for(var V=0;V<M.length;V++)if(M[V].getPublishAppMenuBO().isPreset==B){M=!0;break a}M=!1}if(M)for(M=L[I],M.setIsShow(!0);M.getParentNode()&&M.getParentNode().getDisplayName();)M=M.getParentNode(),M.getIsShow()||M.setIsShow(!0)}},D=function(I,M,V){B=V.getTypeId();v();B?(J[1]=S.getCurrentNode(),J[0]||(I=E(),J[0]=I),G(J[0]),S.setCurrentNode(J[0])):
(J[0]=S.getCurrentNode(),J[1]||(I=E(),J[1]=I),G(J[1]),S.setCurrentNode(J[1]));Q()},E=function(){for(var I=0;I<L.length;I++){for(var M=L[I],V=M.getPublishModels(),X=[],aa=0;V&&aa<V.length;aa++)V[aa].getPublishAppMenuBO().isPreset==B&&X.push(V[aa]);if(V&&0<X.length)return M}},Q=function(){P=na.getText().trim();if(0<P.length){xa=!0;for(var I={},M=0;M<L.length;M++){var V=0,X=L[M],aa=X.getPublishModels();if(aa&&0<aa.length)for(var ea=0;ea<aa.length;ea++){var ja=aa[ea],pa=-1<ja.getPublishAppMenuBO().qingMenuName.toUpperCase().indexOf(P.toUpperCase());
B==ja.getPublishAppMenuBO().isPreset&&pa&&V++}ea=X;X=ea.getAppId();aa=ea.getAppMenuId();ea=ea.getAppMenuId2();I[X?aa?ea?X+aa+ea:X+aa:X:null]=V}wa(ta.getPublishModels(),!1);S.setSearchStatus(!0);S.updateTreeUi(L,I)}else xa=!1,wa(ta.getPublishModels(),!1),S.setSearchStatus(!1),S.updateTreeUi(L)},G=function(I){ta=I;(I=I.getPublishModels())&&0<I.length?wa(I,!0):la()},la=function(){d&&d.hide();if(l)l.show();else{l=$("<div>");l.css({position:"absolute",height:"82%",width:"100%",top:"33px"});g=$("<div>");
g.text(c.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));R.layoutCtrlCenterAlign(g,444);g.css({height:"20px","line-height":"20px","text-align":"center","font-size":"16px",color:"#BBBBBB",top:"50%","margin-top":"98.5px"});g.appendTo(l);var I=$("<div>");ka.Icons.background(I,"no-data");R.layoutCtrlCenterAlign(I,187);I.css({"background-size":"contain",top:"50%",height:"187px","margin-top":"-113.5px"});I.appendTo(l);k.append(l)}I=P?c.get("noSearchData","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"):
c.get("noData","\u6682\u65e0\u53d1\u5e03\u8bb0\u5f55");g.text(I)},wa=function(I,M){d&&d.show();l&&l.hide();ma.clearWithoutHead(m);for(var V=0,X,aa=0;I&&aa<I.length;aa++){var ea=I[aa];if(B==ea.getPublishAppMenuBO().isPreset){M&&!X&&(fa=ea,X=!0);var ja=-1<ea.getPublishAppMenuBO().qingMenuName.toUpperCase().indexOf(P.toUpperCase());if(!xa||ja)ja=ma.createRow(m),ja.setUserObject(ea),ja.getCell(0).setValue(ea.getPublishAppMenuBO().qingMenuName),ja.getCell(1).setValue(ea.getPublishPersonName()),ea=Number(ea.getPublishAppMenuBO().formParams.publishTime),
ja.getCell(2).setValue(p.format(ea)),V++}}0===V&&la();K.refreshTable()};this.intoThisStep=function(I,M){};this.outThisStep=function(I,M){I?M():null==fa?Y.getMessageCurtain().showPrompt(c.get("notSelectAppMenuPublish","\u672a\u9009\u4e2d\u53d1\u5e03\u4fe1\u606f\u3002")):(I=fa.getPublishAppMenuBO(),K.protectedDoNext(I,W,M))};this.protectedDoNext=function(I,M,V){throw Error("overwrite me!");};this.protectedMethod.getStepContentInfo=function(){return W}}function Aa(){ba.call(this);var w=this.protectedMethod;
this.protectedDoNext=function(K,Y,W){var L=K.formParams.publishId;K=Y.getDsbRemoteImpl();(new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(K,function(Z){if(Z.noModeling)w.getMessageCurtain().showPrompt(c.get("publishOfSubjectNoModeling","\u8be5\u53d1\u5e03\u5bf9\u5e94\u7684\u4e3b\u9898\u6ca1\u6709\u8fdb\u884c\u6570\u636e\u51c6\u5907\uff0c\u65e0\u6cd5\u4f7f\u7528\u3002"));else if(Z.noTheme)w.getMessageCurtain().showPrompt(c.get("publishOfSubjectBeDeleted","\u8be5\u53d1\u5e03\u5bf9\u5e94\u7684\u4e3b\u9898\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u4f7f\u7528\u3002"));
else{var S=new com.kingdee.bos.qing.dashboard.ImportLongerThirdStep;S.setPublishType("appmenu_qing");S.setPublishId(L);Y.setSchema(Z);Y.setImportSourceIsPublish(!0);S.setStepContentInfo(Y);W([S])}},function(Z,S){Z=Z.toString();return"9"==Z.substr(0,1)&&6==Z.length?(w.getMessageCurtain().showError(c.get("failToGetPublishSchemaList","\u83b7\u53d6\u53d1\u5e03\u65b9\u6848\u5217\u8868\u5931\u8d25\u3002")),!0):!1})).getPublishSchema(L)}}function C(){function w(k){KTDefaultCellRender.call(this,k);var m=
this;this.paintCellUI=function(t,y){var r=m.getCell(),B=r.getValue();r=g(B,r);y?(t=$(y),r.appendTo(t)):(t=$(t),r.appendTo(t))};var g=function(t,y){y=t.getDisplayName();var r=$("<div>");r.addClass("appmenu-item ");var B=$("<div>");B.css({overflow:"hidden","max-width":"96px","text-overflow":"ellipsis"});var ia=Ca.createWarning();R.layoutCtrl(ia,0,12);y==b.CLOUD_HAS_BEEN_DELETED?(y=c.get("cloudHasBeenDeleted","\u8be5\u670d\u52a1\u4e91\u5df2\u88ab\u5220\u9664"),B.css({"margin-left":"6px",overflow:"unset"}),
r.append(ia)):y==b.APP_HAS_BEEN_DELETED?(y=c.get("appHasBeenDeleted","\u8be5\u5e94\u7528\u5df2\u88ab\u5220\u9664"),B.css({"margin-left":"6px",overflow:"unset"}),r.append(ia)):y==b.APP_MENU_HAS_BEEN_DELETED&&(y=c.get("appMenuHasBeenDeleted","\u8be5\u5e94\u7528\u83dc\u5355\u5df2\u88ab\u5220\u9664"),B.css({"margin-left":"6px",overflow:"unset"}),r.append(ia));r.attr("title",y);ia.attr("title",y);B.text(y);0<t.getSubNodeLevel()&&(r.css("cursor","pointer"),l(fa)===l(t)&&r.addClass("appmenu-item-selected"),
r.on("mousedown",function(J){l(fa)!==l(t)&&(K.find(".appmenu-item-selected").removeClass("appmenu-item-selected"),r.addClass("appmenu-item-selected"),fa=t,L&&L(t))}));r.append(B);R.layoutCtrlWithLRTB(r,0,0,null,0,0,null);Z&&0<t.getSubNodeLevel()&&q(B,r,t,y);return r},q=function(t,y,r,B){r=S[l(r)];var ia="("+r+")",J=$("<div>");J.addClass(0<r?"appmenu-item-search-hits-number-with-color":"appmenu-item-search-hits-number");J.text(ia);t.append(J);y.attr("title",B+" "+ia)}}var K,Y,W,L,Z=!1,S,fa,b=com.kingdee.bos.qing.publish.env.AbstractPublishAppMenuNode;
this.setTreeItemSelectedListener=function(k){L=k};this.setCurrentNode=function(k){fa=k};this.getCurrentNode=function(){return fa};this.setSearchStatus=function(k){Z=k};this.getJqUi=function(k){K||(K=$("<div>"),K.append(d(k)));return K};var d=function(k){W=Y=null;Y=new KTable;W=$(Y.getUI());W.children().css("overflow-x","hidden");Y.setCellRender(new w(Y));Y.setSyncUIWhenModelChanged(!1);Y.addColumn().setWidth(170);var m=new KTStyle;m.setVerticalAlign("middle");Y.setStyle(m);m=Y;for(var g=0;g<k.length;g++){var q=
k[g];if(q.getIsShow()){var t=m.addRow();t.setHeight(36);t=t.getCell(0);t.setValue(q);q=q.getSubNodeLevel();q=new KTCellTreeModel(q);t.setTreeModel(q)}}Y.updateUI();W.addClass("appmenu-table");return W};this.updateTreeUi=function(k,m){K.empty();Z&&(S=m);d(k).appendTo(K)};var l=function(k){var m=k.getAppId(),g=k.getAppMenuId();k=k.getAppMenuId2();return m?g?k?m+g+k:m+g:m:null}}function F(){var w,K;this.getPublishAppMenuBO=function(){return w};this.setPublishAppMenuBO=function(Y){w=Y};this.setPublishPersonName=
function(Y){K=Y};this.getPublishPersonName=function(){return K};this.fromJsonObject=function(Y){w=Y.publishAppMenuBO;K=Y.publishPersonName}}function e(){A.call(this);this.protectedMethod.setImportType(A.EXTREPORT_TYPE)}function H(){ba.call(this);var w=this.protectedMethod,K,Y,W;this.isLastStep=function(){return!0};this.over=function(L){L&&((L=w.getStepContentInfo().getAllStepOverCallback())&&L(W,Y),L=com.kingdee.bos.qing.dashboard.UserOperationReporter,L.occur(L.DSB_IMPORT_EXREPORT_TYPE,L.IMPORT_EXTREPORTAPP))};
this.protectedDoNext=function(L,Z,S){L=L.formParams;K=L.publishId;Y=L.caption;L=w.getStepContentInfo().getDsbRemoteImpl();(new com.kingdee.bos.qing.dashboard.CommonDsbDesignerFacade(L,function(fa){W=fa.ref;S()},function(fa,b){})).getPublishReferenceMap(K,"appmenu_rpt")}}"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 ka=com.kingdee.bos.qing.scene.common.designer;ka.AbstractDashboardDesignerSceneImpl=function(){N.call(this);var w=this,K=this.protectedMethod,Y,W,L=!0,Z,S,fa;this.protectedSetSourceDetail=function(f,p){throw Error("override me");};this.protectedGetSourceDetail=
function(){throw Error("override me");};this.protectedGetRemoteUrl=function(){throw Error("override me");};this.protectedLoading=function(f,p,v){throw Error("override me");};this.addDsbResourceLock=function(){throw Error("override me");};this.setCloseResourceLock=function(f){fa=f};this.protectedSaveModel=function(f){throw Error("override me");};this.protectedOverrideDsbSource=function(f){throw Error("override me");};this.protectedCreateNewDsb=function(f,p,v){throw Error("override me");};this.protectedListUnpresetThemeGroup=
function(){throw Error("override me");};this.protectedInitBehaviorManager=function(){};this.protectedCreateFacade=function(f,p,v){return new com.kingdee.bos.qing.dashboard.DsbFacade(f,p,v)};this.protectedImportMoreCode=function(f){f.pushSkinJs("scene","skin");f.pushI18n("scene","scene");f.pushJs("biz-common/qing-biz-common.js");f.pushSkinCss("biz-common","biz-common");f.pushSkinJs("biz-common","skin");f.pushI18n("biz-common","biz-common");f.pushJs("common/qing-schedule.js");f.pushI18n("common","qing-schedule");
f.pushSkinCss("publish","qing-publish");f.pushSkinJs("publish","skin");f.pushI18n("publish","publish");f.pushJs("schema-manage/schema-manage-initialize.js");f.pushJs("schema-manage/schema-manage-ui.js");f.pushJs("publish/qing-publish.js");f.pushSkinCss("timedpush","qing-timedpush");f.pushSkinJs("timedpush","skin");f.pushI18n("timedpush","timedpush");f.pushJs("timedpush/qing-timedpush.js");f.pushJs("lightapp/common/qing-lapp-env.js");f.pushJs("timedpush/qing-timedpush-lapp.js");f.pushSkinJs("imagelib",
"skin");f.pushI18n("dashboard","dsb-integration");f.pushSkinCss("imagelib","qing-imagelib");f.pushJs("imagelib/imagelib.js");f.pushI18n("imagelib","imagelib");f.pushSkinJs("dashboard","skin-dsb-integration");f.pushJs("dashboard/dsb-integration.js");f.pushSkinCss("dashboard","dsb-integration");f.pushSkinJs("linkage","skin");f.pushJs("linkage/linkage.js");f.pushSkinCss("linkage","linkage");f.pushSkinJs("map-designer","integration-skin");f.pushJs("map-designer/map-integration.js");f.pushSkinCss("map-designer",
"map-integration");f.pushI18n("map-designer","map-integration");f.pushJs("qhf/qing-qhf.js");f.pushSkinJs("theme-manage","skin");f.pushJs("theme-manage/qing-theme-manage.js")};this.protectedCustomInitEnv=function(){Z=com.kingdee.bos.qing.theme.model.ThemeGroupModel;S=com.kingdee.bos.qing.theme.model.ThemeModel;var f=com.kingdee.bos.qing.map.common.Integration,p=a.decodeParamFromUrl(location.search,"path");p=p?p:"/ierp";f.setRemoteUrl(p+"/qing/mapManage.do");var v=new com.kingdee.bos.qing.map.integration.MapSelectorDialog;
com.kingdee.bos.qing.core.MapLibraryRegister.registerTemplateSelector(function(D,E){v.setParamPathPrefix(p);v.showDialog(D,E)});com.kingdee.bos.qing.integration.ImglibUrlParser.hookUrlParser();w.protectedInitBehaviorManager()};this.protectedRegisterImplements=function(f){var p=new com.kingdee.bos.qing.dashboard.WidgetSourceSelector;p.setDsbRemoteImpl(w.getRemoteImpl());p.setParamPathPrefix(P());p.setCustomLongerImportFuncTypes([A]);p.setCustomSquareImportFuncTypes([T]);p.setCustomQingReportImportFuncTypes([e]);
var v=new com.kingdee.bos.qing.scene.common.square.exhibition.DsbIntegrationScene;f.registerBuiltinVisualWidgetEditableConfirmerParser(function(D){var E=D.operation?D.operation:{};D=D.scene;var Q=com.kingdee.bos.qing.publish.model.OperType,G=E[Q.SQUARE];E=E[Q.LONGER];return"square"==D?new com.kingdee.bos.qing.publish.model.RtSquareEditableConfirmerModel(G|E):"longer"==D?new com.kingdee.bos.qing.publish.model.RtLongerEditableConfirmerModel(E):null});v.setFacade(function(D,E){return w.protectedCreateFacade(w.getRemoteImpl(),
D,E)});v.setParamPathPrefix(P());v.setMessageCurtain(na());v.setCoreRemoteUrl(w.getCoreRemoteUrl());v.setDesignerSceneCreator(function(){return new x});f.registerWidgetSourceSelector(p);f.registerPictrueLoader(function(D,E,Q){v.loadImage(D,E,Q)});f.registerSquareDesignerCreator(function(D,E,Q,G,la,wa){W&&W.setCurrentLinkageTag(G);v.createSquareDesigner(D,E,Q,G,la,wa)});f.registerSquareSceneCreator(function(D,E){v.createSquareDesignerScene(E)});f.registerLongerDesignerCreator(function(D,E,Q,G,la,wa){W&&
W.setCurrentLinkageTag(G);v.createLongerDesigner(D,E,Q,G,la,wa)});f.registerLongerSceneCreator(function(D,E){v.createLongerDesignerScene(E)});p=new com.kingdee.bos.qing.dashboard.qingreport.QingReportExecutor;p.setDsbRemoteImpl(w.getRemoteImpl());f.registerQingReportExecutor(p)};this.protectedInitDesigner=function(f){L&&ta();f.getConductor().setDirtyListener(function(p){ra.setTabStatus(p)});"true"!=K.getUrlParamUtil().getUrlParam("isPreset")?f.getConductor().insertToolbarButton(function(){w.protectedSaveModel(f)},
"btn_save",c.get("save","\u4fdd\u5b58"),c.get("save","\u4fdd\u5b58")):na().showPrompt(c.get("presetDsbTips","\u9884\u7f6e\u7684\u4eea\u8868\u677f\u4e0d\u5141\u8bb8\u4fdd\u5b58\u3001\u53d1\u5e03\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),-1)};var b=function(f){var p=c.get("publishSourceColons","\u53d1\u5e03\u6765\u6e90\uff1a");w.checkDsbIsOpened(function(){var v=c.get("SyncSchemaPublishConfirm","\u540c\u6b65\u540e\uff0c\u5f53\u524d\u4eea\u8868\u677f\u5185\u5bb9\u5c06\u4f1a\u8986\u76d6\u53d1\u5e03\u6765\u6e90\uff0c\u786e\u5b9a\u540c\u6b65\u5417\uff1f");
w.showSyncConfirm(v,p,f.getUserObject())},function(){var v=c.get("SyncSchemaPublishRefuse","\u6b63\u5728\u7f16\u8f91\u8be5\u53d1\u5e03\u8bb0\u5f55\u5bf9\u5e94\u7684\u53d1\u5e03\u6765\u6e90\uff0c\u8bf7\u5148\u5173\u95ed\u53d1\u5e03\u6765\u6e90\u9875\u9762\u518d\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002");w.showSyncRefused(v,!0,p)})},d=function(f){var p=c.get("TPSourceColons","\u63a8\u9001\u6765\u6e90\uff1a");w.checkDsbIsOpened(function(){var v=c.get("SyncSchemaTPConfirm","\u540c\u6b65\u540e\uff0c\u5f53\u524d\u4eea\u8868\u677f\u5185\u5bb9\u5c06\u4f1a\u8986\u76d6\u63a8\u9001\u6765\u6e90\uff0c\u786e\u5b9a\u540c\u6b65\u5417\uff1f");
w.showSyncConfirm(v,p,f.getUserObject())},function(){var v=c.get("SyncSchemaTPRefuse","\u6b63\u5728\u7f16\u8f91\u8be5\u63a8\u9001\u8bb0\u5f55\u5bf9\u5e94\u7684\u63a8\u9001\u6765\u6e90\uff0c\u8bf7\u5148\u5173\u95ed\u63a8\u9001\u6765\u6e90\u9875\u9762\u518d\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002");w.showSyncRefused(v,!0,p)})};this.checkDsbIsOpened=function(f,p){throw Error("override me");};this.protectedCheckPublishLogExist=function(f,p){throw Error("override me");};var l=function(f){w.protectedCheckPublishLogExist(function(){k&&
k(f)},function(){console&&console.log("\u5f39\u7a97\u63d0\u793alog\u88ab\u5220\u9664")})},k=function(f){var p=[];w.protectedListUnpresetThemeGroup(function(v){if(v)for(var D=0;D<v.length;D++){var E=new Z;E.fromJsonObject(v[D]);p.push(E)}v=f.getUserObject();D=new m;D.setThemeGroupModel(p);D.addSuccessCallback(v);D.createDialog().show();return!0})};this.showSyncConfirm=function(f,p,v){var D=com.kingdee.bos.qing.ui.component.MessageDialog,E=D.createFeedbackDialog();E.setOptionType(D.OPTION_OK_CANCEL);
E.setMessage(f);E.setClosingChecker(function(Q){Q==D.RETURN_OK&&v&&v();return!0});E.setBounds(380,330,0,0);E.setExtendPainter(function(Q,G){var la=w.protectedGetSourceDetail(),wa=$("<div>");wa.addClass("sa-ctrl-feedback-dialog-text");wa.text(G);wa.attr("title",G);wa.appendTo(Q);G=$("<div>");G.addClass("sa-ctrl-feedback-dialog-text");G.css({color:"#999999",height:"60px",top:"53px"});G.text(p+la);G.attr("title",p+la);G.appendTo(Q)});E.showDialog()};this.showSyncRefused=function(f,p,v){var D=function(G,
la){var wa=w.protectedGetSourceDetail(),I=$("<div>");I.addClass("sa-ctrl-feedback-dialog-text");I.text(la);I.attr("title",la);I.appendTo(G);la=$("<div>");la.addClass("sa-ctrl-feedback-dialog-text");la.css({top:"60px",height:"40px",color:"#999999"});la.text(v+wa);la.attr("title",v+wa);la.appendTo(G)},E=com.kingdee.bos.qing.ui.component.MessageDialog,Q=E.createFeedbackDialog();Q.setOptionType(E.OPTION_OK);Q.setMsgImageType(E.MSG_WARNING);Q.setButtonText(E.OPTION_OK,c.get("iknow","\u6211\u77e5\u9053\u4e86"));
Q.setMessage(f);p&&(Q.setBounds(380,310,0,0),Q.setExtendPainter(D));Q.showDialog()};var m=function(){var f=new S,p=[400,380],v=[],D,E,Q,G,la=[];this.addSuccessCallback=function(M){v.push(M)};this.setThemeGroupModel=function(M){la=M};this.createDialog=function(){var M=$(document.body),V=$("<div class='sa-ctrl-common-modallayer'>");V.appendTo(M);var X=new da(V);X.setSelectable(!0);X.setTitle(c.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"));var aa=p[0],ea=p[1],ja=M.prop("clientWidth"),
pa=M.prop("clientHeight");X.setBounds(ja-aa>>1,pa-ea>>1,aa,ea);X.setToolbarVisible(!1);X.setContent(I());X.showFooterPane();V.appendTo(M);var Ga=function(){X.destroy();V.remove()};X.addClosingListener(function(Da,Ea){Ea?wa(Ga,Da.getMessageCurtain()):Ga()});return X};var wa=function(M,V){var X=$.trim(E.getText()),aa=$.trim(Q.getText()),ea=function(pa){1010003==pa?(pa=c.get("duplicateDSBNameInCategory","\u8be5\u5206\u7c7b\u4e0b\u5b58\u5728\u540c\u540d\u4eea\u8868\u677f\u3002"),V.showPrompt(pa,2E3)):
null==pa&&M()},ja;""!=X&&50<X.length?ja=c.get("nameTooLong","\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):""==X&&(ja=c.get("nameCannotBeEmpty","\u8bf7\u8f93\u5165#1\u540d\u79f0\u3002").replace("#1","\u4eea\u8868\u677f"));""!=aa&&500<aa.length&&(ja=c.get("descriptionTooLong","\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7500\u4e2a\u5b57\u7b26\u3002"));if(ja)V.showPrompt(ja,2E3);else for(f.setThemeName(X),f.setThemeGroupID(D),f.setThemeDescription(aa),f.setThemeType("1"),f.setIsPreset(!1),
X=0;X<v.length;X++)(aa=v[X])&&aa(f,ea)},I=function(){var M=$("<div>"),V=new ya;V.setRequired(!0);V.setText(c.get("category","\u5206\u7c7b"));V=V.getJqUi();var X=la[0];D=X.getThemeGroupID();G=new va;G.setItemModels(la);G.setSelected(X);G.setCustomPainter(function(Ga,Da,Ea){Da.text(Ea.getThemeGroupName())});G.addSelectedChangedListener(function(Ga,Da,Ea){D=Ea.getThemeGroupID()});X=G.getJqUi();var aa=new ya;aa.setRequired(!0);aa.setText(c.get("themeName","\u540d\u79f0"));aa=aa.getJqUi();E=new qa;E.setText(f.getThemeName());
var ea=E.getJqUi(),ja=new ya;ja.setText(c.get("description","\u63cf\u8ff0"));ja=ja.getJqUi();Q=new Ba;Q.setText(f.getThemeDescription());var pa=Q.getJqUi();V.appendTo(M);X.appendTo(M);aa.appendTo(M);ea.appendTo(M);ja.appendTo(M);pa.appendTo(M);R.layoutCtrl(V,8,0,70,23);R.layoutCtrl(X,76,0,280,23);R.layoutCtrl(aa,8,48,70,23);R.layoutCtrl(ea,76,48,280,23);R.layoutCtrl(ja,8,96,70,23);R.layoutCtrl(pa,76,100,280,120);return M}},g=function(){var f=K.getUrlParamUtil().getParamPathPrefix();com.kingdee.bos.qing.timedpush.LappIntegration.setLappPrivateUrl(f+
"/qing/lappPrivateInfo.do")},q=function(){return function(f,p,v){var D=com.kingdee.bos.qing.publish.model.PublishTargetType;if(v&&D.MOBILE==v){v=f.getPublishId();var E=f.getId()}else v=f.getId();D=K.getUrlParamUtil().getParamPathPrefix();var Q=oa.getUrlParamValue(),G=K.getUrlParamUtil().getParamLanguage();D=a.appendParamToUrl((D?D:"/ierp")+"/qing/publishContentEditEntrance.do","skin",Q);D=a.appendParamToUrl(D,"language",G);D=a.appendParamToUrl(D,"publishId",v);E&&(D=a.appendParamToUrl(D,"lappId",
E));E=D;p&&(v="editPublishedContent-"+v,G=com.kingdee.bos.qing.publish.common.PublishSubscribeHelper,G.putSubscribe(v,p),D=a.appendParamToUrl(D,"subscribeKey",v),D=a.appendParamToUrl(D,"currentPageClientId",G.getCurrentPageClientId()));com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(c.get("editPublishedContent","\u7f16\u8f91\u53d1\u5e03\u65b9\u6848-")+f.getName(),D,E)}},t=function(){return function(f){var p=K.getUrlParamUtil().getParamPathPrefix();p=(p?p:"/ierp")+"/qing/timedPushContentEditEntrance.do";
var v=c.get("editTimedPushContent","\u7f16\u8f91\u63a8\u9001\u65b9\u6848");if(f instanceof com.kingdee.bos.qing.timedpush.model.EmailConfig){var D=f.getId(),E=f.getPublishSourceType();Q=f.getSchemaSourceType();p=a.appendParamToUrl(p,"configId",D);p=a.appendParamToUrl(p,"publishSourceType",E);p=a.appendParamToUrl(p,"schemaType",Q);p=a.appendParamToUrl(p,"pushTarget","email");v=v+"-"+f.getNameRule().getName();f.isSourceNameNotFound()&&(p=a.appendParamToUrl(p,"errorCode","2301001"))}else{D=f.getId();
E=f.getPushTargetType();var Q=f.getSchemaType();p=a.appendParamToUrl(p,"configId",D);p=a.appendParamToUrl(p,"pushTargetType",E);p=a.appendParamToUrl(p,"schemaType",Q);p=a.appendParamToUrl(p,"pushTarget","lapp");v=v+"-"+f.getName();f.getSourceName()||(p=a.appendParamToUrl(p,"errorCode","2301001"))}f=oa.getUrlParamValue();Q=K.getUrlParamUtil().getParamLanguage();f&&(p=a.appendParamToUrl(p,"skin",f));Q&&(p=a.appendParamToUrl(p,"language",Q));com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(v,
p)}},y=function(f){var p=com.kingdee.bos.qing.publish.model,v=p.PublishSourceType;p=com.kingdee.bos.qing.publish.common;p=new p.PublishContext;p.setBizTag(K.getUrlParamUtil().getUrlParam("dsbId"));p.setCurrentSourceType(v.DASHBOARD);p.setCurrentContentModel(f);p.setScene(v.DASHBOARD);f=P();p.setParamPathPrefix(f);p.setLappEntranceUrl(f+"/qing/lappEntrance.do");return p},r=function(){var f=P()+"/qing/publishTo.do",p=new com.kingdee.bos.qing.RemoteImpl;p.setRemoteUrl(f);return p},B=function(f){return 0==
f.page.widgets.length?!1:!0},ia=function(){var f=oa.getUrlParamValue(),p=K.getUrlParamUtil().getParamLanguage(),v=P()+"/index.html?userId=Guest&accountId=(accountId)&appNumber=qing&formId=qing_analysis_pub_email#/dform?appNumber=qing&formId=qing_analysis_pub_email&publishId=(publishId)";f&&(v=a.appendParamToUrl(v,"skin",f));p&&(v=a.appendParamToUrl(v,"language",p));return v},J=function(){var f=oa.getUrlParamValue(),p=K.getUrlParamUtil().getParamLanguage(),v=P()+"/qing/publishedEmailEntrance.do?publishId=(publishId)&kdcdc=(accountId)";
f&&(v=a.appendParamToUrl(v,"skin",f));p&&(v=a.appendParamToUrl(v,"language",p));return v};this.getCoreRemoteUrl=function(){return P()+"/qing/core.do"};var xa=function(f){f.getConductor().isDirty()?(ra.showConfirmExitDialog(),fa&&ra.setClosingListener(fa)):fa?fa(function(){n.closeCurrentTab()}):n.closeCurrentTab()},na=function(){Y||(Y=new u,Y.getJqUi().appendTo($(document.body)));return Y},P=function(){var f=K.getUrlParamUtil().getParamPathPrefix();return f?f:"/ierp"},ta=function(){var f=P()+"/qing/linkage.do",
p=com.kingdee.bos.qing.integration.LinkageJumper;W=new com.kingdee.bos.qing.linkage.LinkageManage;W.initDesigntime(f,p.jump)};this.protectedMethod.getMessageCurtain=na;this.protectedMethod.hookCloseTab=function(f){f.getConductor().appendToolbarButton(function(){xa(f)},"error_close",c.get("closeTab","\u9000\u51fa"))};this.protectedMethod.hookSyncPublishToDsb=function(f){var p=c.get("SchemeSynced","\u540c\u6b65\u4e0e\u53e6\u5b58"),v=c.get("SyncSchemaToDSB","\u540c\u6b65\u56de\u539f\u4eea\u8868\u677f"),
D=c.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"),E=new z,Q=new ca(b);Q.setText(v);Q.setUserObject(function(){w.protectedOverrideDsbSource(f)});E.addItemModel(Q);v=new ca(l);v.setText(D);v.setUserObject(function(G,la){w.protectedCreateNewDsb(f,G,la)});E.addItemModel(v);f.getConductor().appendToolbarMenu(E,"sync_scheme_to_publish",p)};this.protectedMethod.hookSyncTimePushToDsb=function(f){var p=c.get("SchemeSynced","\u540c\u6b65\u4e0e\u53e6\u5b58"),v=c.get("SyncSchemaToDSB",
"\u540c\u6b65\u56de\u539f\u4eea\u8868\u677f"),D=c.get("SyncSchemaToNewDSB","\u53e6\u5b58\u4e3a\u65b0\u4eea\u8868\u677f"),E=new z,Q=new ca(d);Q.setText(v);Q.setUserObject(function(){w.protectedOverrideDsbSource(f)});E.addItemModel(Q);v=new ca(l);v.setText(D);v.setUserObject(function(G,la){w.protectedCreateNewDsb(f,G,la)});E.addItemModel(v);f.getConductor().appendToolbarMenu(E,"sync_scheme_to_push",p)};this.protectedMethod.hookPublishTo=function(f){var p=com.kingdee.bos.qing.publish.model,v=p.PublishTargetType;
p=com.kingdee.bos.qing.publish.common;var D=p.PublishFactory,E=function(la){if(B(f.getJsonModel())){var wa=la.getUserObject();la=la.getText().replace("...","");var I=y(f.getJsonModel());I.setWidgetsExecutingTag(f.collectBuiltinWidgetsExecutingTag());wa=D.createPublishToDialog(la,r(),I,wa,q());wa.setOuterMessageCurtain(na());wa.showDialog()}else na().showPrompt(c.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)};p=new z;var Q=new ca(E);Q.setUserObject(v.APPMENU);Q.setText(c.get("toAppMenu",
"\u5e94\u7528\u83dc\u5355..."));p.addItemModel(Q);Q=new ca(E);Q.setUserObject(v.CENTER);Q.setText(c.get("toAnalysisCenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939..."));p.addItemModel(Q);Q=new ca(E);Q.setUserObject(v.CARD_REPOSITORY);Q.setText(c.get("toCardRepository","\u5361\u7247\u5e93..."));p.addItemModel(Q);E=new ca(E);E.setUserObject(v.MOBILE);E.setText(c.get("toMobile","\u79fb\u52a8\u8f7b\u5e94\u7528..."));p.addItemModel(E);com.kingdee.bos.qing.timedpush.LappIntegration.syncDatacenterInfo(r());
g();var G=y(f.getJsonModel());p.addSeperator();Q=new ca(function(){(new com.kingdee.bos.qing.publish.common.PublishManagerDialog(r(),G,q())).showDialog()});Q.setUserObject();Q.setText(c.get("publishManager","\u53d1\u5e03\u7ba1\u7406")+"...");p.addItemModel(Q);v=c.get("publishTo","\u53d1\u5e03\u5230");f.getConductor().appendToolbarMenu(p,"publish_to",v)};this.protectedMethod.hookCommunicateTo=function(f){var p=function(G){G=c.get("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a...").replace("...",
"");var la=y(f.getJsonModel());G=com.kingdee.bos.qing.timedpush.PublishToYunzhijiaDialogFactory.createDialog(G,r(),la);G.setOuterMessageCurtain(na());G.showDialog()},v=function(G){B(f.getJsonModel())?(G=com.kingdee.bos.qing.CodeLoader.createSafety(),G.pushJs("yzj-web/qingjs.js"),G.pushJs("yzj-web/imcloud.js"),G.pushJs("yzj-web/imsdkerp.js"),G.pushJs("yzj-web/imShare.js"),G.pushSkinCss("yzj-web","imcloud"),G.pushSkinCss("yzj-web","imsdk"),G.pushSkinCss("yzj-web","imsdkerp"),G.load(function(){})):na().showPrompt(c.get("noWidgets",
"\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)},D=new z;(new ca(function(G){window.beLoadedImCloud?p(G):v(G)})).setText(c.get("yzjCommunicate","\u4e91\u4e4b\u5bb6\u6c9f\u901a..."));var E=new ca(function(G){if(B(f.getJsonModel())){G=G.getText().replace("...","");var la=y(f.getJsonModel());G=new com.kingdee.bos.qing.timedpush.EmailPublishConfigDialog(G,r(),la,ia(),J(),t());G.setOuterMessageCurtain(na());G.showDialog()}else na().showPrompt(c.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),
2E3)});E.setText(c.get("emailSchedulePush","\u90ae\u4ef6\u5b9a\u65f6\u63a8\u9001..."));D.addItemModel(E);E=new ca(function(G){if(B(f.getJsonModel())){var la=y(f.getJsonModel()),wa=new com.kingdee.bos.qing.timedpush.LappSchedulePush;G=G.getText().replace("...","");wa.createDialog(G,r(),la,t(),f)}else na().showPrompt(c.get("noWidgets","\u4eea\u8868\u677f\u6ca1\u6709\u5185\u5bb9\u3002"),2E3)});E.setText(c.get("mobileSchedulePush","\u79fb\u52a8\u7aef\u5b9a\u65f6\u63a8\u9001")+"...");D.addItemModel(E);
var Q=y(f.getJsonModel());D.addSeperator();E=new ca(function(){var G=new com.kingdee.bos.qing.publish.common.PushManager(t()),la=com.kingdee.bos.qing.timedpush;G.registerEmailPushPanelConstructor(la.EmailConfigManagePanel);G.initEmailPushConfig(r(),ia(),J());G.registerLappPushPanelConstructor(la.LappPushManagePanel);G.initLappPushConfig(function(wa,I,M){return com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,r(),wa,
I,M)},Q);G.showDialog()});E.setUserObject();E.setText(c.get("pushManager","\u5b9a\u65f6\u63a8\u9001\u7ba1\u7406")+"...");D.addItemModel(E);D=f.getConductor().appendToolbarMenu(D,"btn_communicate",c.get("timedPush","\u5b9a\u65f6\u63a8\u9001"));D.addActionListener(function(){window.beLoadedImCloud||(window.funCallback=p)});return D};this.protectedMethod.setNeedShowLinkage=function(f){L=f}};var oa,N,h,n,a,c,u,z,ca,ha,ra,za,R,sa,ma,U,ua,da,ya,va,qa,Ba,Ca;(function(){var w=com.kingdee.bos.qing;oa=w.SkinUtil;
N=w.AbstractDashboardDesignerScene;h=w.AbstractModalDesignerScene;w=com.kingdee.bos.qing.common;a=w.Util;R=w.DomUtil;sa=w.DateFormater;w=com.kingdee.bos.qing.common.ui;ma=w.TableUtil;Ca=w.CommonIconUtil;w=com.kingdee.bos.qing.framework.common;n=w.TabbedUiUtil;ua=w.AbstractIcons;w=com.kingdee.bos.qing.ui.component;u=w.MessageCurtain;z=w.MenuModel;ca=w.MenuItemModel;ha=w.RadioButton;za=w.RadioButtonGroup;U=w.SearchBox;da=w.Dialog;ya=w.Label;va=w.ComboBox;qa=w.TextField;Ba=w.TextArea;w=com.kingdee.bos.qing.framework.common;
c=w.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);w=com.kingdee.bos.qing.integration;ra=w.TabStatusHelper})();ka.Icons=new function(){ua.call(this);var w=this.protectedMethod,K;this.setComboIconImpl=function(Y){K=Y};this.protectedInit=function(Y,W){if(!K)throw Error("Please setComboIconImpl() first.");K.define(W,"no-data");W.setStartPosition(0,0);W.setGap(0);W.setIconSize(220,220);w.registIcon(0,0,"no-data")}};A.SQUARE_TYPE=1;A.LONGER_TYPE=0;A.EXTREPORT_TYPE=2})();(function(){function x(a){var c,u,z,ca,ha,ra,za,R,sa,ma,U,ua=!0,da=!1,ya=!1,va,qa,Ba="icon_nodata",Ca="12px";this.setShowErrorDetailListener=function(d){va=d};this.setIsQingreportDsbComponent=function(d){ya=d};this.setIsDsbComponent=function(d){da=d};this.show=function(d,l,k){c?Y(d,l,k):w(d,l,k)};this.setShowDetail=function(d){ua=d};this.getShowOperate=function(){return U};this.setBackgroundIcon=function(d){Ba=d};this.setFontSize=function(d){Ca=d};var w=function(d,l,k){c=$("<div>");c.text("loading...");
c.appendTo(a);F.setCallback(function(){K();Y(d,l,k)});F.loadSkinCss("scene","common-square-exhibition")},K=function(){c.empty();c.addClass("carderror-errorprompt");!da&&c.css("top","22px");u=$("<div>");u.css({position:"absolute",margin:"0px auto",width:"100%",height:"100%"});u.appendTo(c);var d=$("<iframe>");d.addClass("carderror-errorprompt-size-listener");d.appendTo(c);d[0].contentWindow&&d[0].contentWindow.addEventListener("resize",function(){W()});z=$("<div>");z.addClass("carderror-errorprompt-img");
ba.Icons.background(z,Ba);z.appendTo(u);ra=$("<div>");ra.addClass("carderror-errorprompt-errorinfo");ra.appendTo(u);ca=$("<span>");ca.addClass("carderror-errorprompt-text");ca.css("font-size",Ca);ca.appendTo(ra);ha=$("<span>");ha.addClass("carderror-errorprompt-error-btn");ha.text(C.get("showErrorLog","\u663e\u793a\u9519\u8bef\u65e5\u5fd7"));ha.appendTo(ra)},Y=function(d,l,k){var m;if(2101001==d){U=m=!1;var g=C.get("themeIsDeleted","\u5bf9\u5e94\u4e3b\u9898\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")}else if(2101002==
d||2101003==d||2101004==d||2101005==d)U=m=!1,g=C.get("themeHasNoData","\u5bf9\u5e94\u4e3b\u9898\u6ca1\u6709\u5b9a\u4e49\u6570\u636e");else if(2103001==d||2103002==d)U=m=!1,g=C.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2101016==d)U=m=!1,g=C.get("subjectEntityMySQLMoreThan61Table","\u5f53\u524d\u5b9e\u4f53\u5173\u8054\u6570\u636e\u8868\u592a\u591a\uff0c\u8bf7\u51cf\u5c11\u5b9e\u4f53\u7684\u5206\u6790\u5b57\u6bb5\u6216\u5220\u9664\u4e0d\u9700\u8981\u7684\u5b9e\u4f53\u5206\u5f55\u3002");
else if(2101009==d)m=!0,U=!1,g=C.get("subjectDataSourceError","\u6570\u636e\u6e90\u53d1\u751f\u5f02\u5e38");else if(2101010==d)U=m=!1,g=C.get("qingStorageFileSizeLimit","\u8f7b\u5b58\u50a8\u7a7a\u95f4\u4e0d\u8db3");else if(2100001==d)U=m=!1,g=C.get("qingStorageNoSpace","\u78c1\u76d8\u7a7a\u95f4\u4e0d\u8db3\uff0c\u8bf7\u8054\u7cfb\u8fd0\u7ef4\u4eba\u5458\u6dfb\u52a0\u78c1\u76d8");else if(2101011==d)m=!0,U=!1,g=C.get("subjectDBDataSourceError","\u6570\u636e\u6e90\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38");
else if(2101012==d)g=C.get("noDBCenterPermission","\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");else if(2101023==d)g=C.get("noSuperQueryAuth","\u6ca1\u6709\u5f53\u524d\u8d85\u7ea7\u67e5\u8be2\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");else if(2101013==d||2101014==d)g=C.get("entityDestroyed","\u5bf9\u5e94\u4e3b\u9898\u7684\u6570\u636e\u8868\u88ab\u635f\u574f");else if(2101015==
d)g=C.get("noDBCenterOwnerPermission","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u4e2d\u5fc3\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",l);else if(2101021==d)g=C.get("notExistTable","\u65e0\u6cd5\u5728\u6a21\u5f0f\u201c#1\u201d\u4e2d\u627e\u5230\u8be5\u5b9e\u4f53\u6570\u636e\u8868").replaceAll("#1",l);else if(2101022==d)g=C.get("noSuperQueryPerm","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u8d85\u7ea7\u67e5\u8be2\u76f8\u5173\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",
l);else if(2101024==d)g=C.get("ownerNotExistTable","\u6570\u636e\u6e90\u5f02\u5e38\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6570\u636e\u6e90");else if(2101025==d)g=C.get("prepareDataReject","\u8be5\u5361\u7247\u5bf9\u5e94\u7684\u4e1a\u52a1\u4e3b\u9898\u56e0\u5b58\u5728\u6162\u67e5\u8be2\uff0c\u5df2\u88ab\u4e34\u65f6\u7981\u7528\u3002\u8bf7\u8054\u7cfb\u201c#1\u201d\u5904\u7406\u3002").replace("#1",l);else if(2215011==d)g=C.get("noDmoPermission","\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0\u6743\u9650\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u5206\u914d\u6743\u9650");
else if(2215012==d)g=C.get("noDmoOwnerPermission","\u53d1\u5e03\u4eba\u201c#1\u201d\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",l);else if(2215020==d)g=C.get("dmoPermission","\u6ca1\u6709\u6570\u636e\u5f00\u53d1\u5e73\u53f0#1\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba\u68c0\u67e5\u6743\u9650").replace("#1",l);else if(2301001==d)U=m=!1,g=da||ya?C.get("componentSourceHasNotFound","\u8be5\u7ec4\u4ef6\u6765\u6e90\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664"):
C.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u53d1\u5e03\u8005\u5220\u9664");else if(2301005==d)U=m=!1,g=da?C.get("componentSourceNoAuthority","\u6ca1\u6709\u8be5\u7ec4\u4ef6\u6765\u6e90\u7684\u67e5\u770b\u6743\u9650"):ya?C.get("extreportCardNoAuthority","\u6ca1\u6709\u8be5\u8f7b\u62a5\u8868\u7684\u67e5\u770b\u6743\u9650"):C.get("cardNoAuthority","\u6ca1\u6709\u8be5\u5361\u7247\u7684\u67e5\u770b\u6743\u9650");else if(2105E3==d)U=m=!1,g=C.get("cardHasNotFound","\u8be5\u5361\u7247\u5df2\u88ab\u5220\u9664");
else if(2201003==d)U=m=!1,g=C.get("cardNoDefaultSchema","\u8be5\u5361\u7247\u6ca1\u6709\u5b9a\u4e49\u9ed8\u8ba4\u65b9\u6848");else if(909001==d)U=m=!1,g=C.get("unsupportedDsbRefSource","\u5f53\u524d\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u7ec4\u4ef6\u6765\u6e90");else if(3010002==d)U=m=!1,g=C.get("illegalLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5206\u6790\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010003==
d)U=m=!1,g=C.get("noQingModulePermission","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u5206\u6790\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010004==d)U=m=!1,g=C.get("replicatedLogin","\u60a8\u7684\u8d26\u53f7\u5728\u5176\u4ed6\u5730\u65b9\u767b\u5f55\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u5f53\u524d\u7cfb\u7edf\u3002");else if(3010005==d)U=m=!1,g=C.get("illegalQingReportLicense",
"\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3010006==d)U=m=!1,g=C.get("noQingReportModulePermission","\u60a8\u6240\u4f7f\u7528\u7684\u8d26\u6237\u6ca1\u6709\u88ab\u5206\u914d\u3010\u8f7b\u62a5\u8868\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb\u3002");else if(3099002==d)U=m=!1,g=C.get("qingRuntimeException",
"\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(3001002==d)U=m=!0,g=C.get("qingRuntimeException","\u7a0b\u5e8f\u53d1\u751f\u9519\u8bef");else if(1030001==d)U=m=!1,g=l;else if("unsetCardSource"==d)U=m=!1,g=C.get("unsetCardSource","\u8bf7\u9009\u62e9\u5361\u7247\u6765\u6e90");else if(8099001==d)U=m=!1,g=C.get("extreportNotFound","\u8be5\u62a5\u8868\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664");else if(21000008==d)U=m=!1,g=C.get("noQingModelerLicense","\u5f53\u524d\u7cfb\u7edf\u6ca1\u6709\u3010\u8f7b\u5efa\u6a21\u3011\u6a21\u5757\u7684\u4f7f\u7528\u8bb8\u53ef\uff0c\u8bf7\u4e0e\u7cfb\u7edf\u7ba1\u7406\u5458\u8054\u7cfb");
else if(2101006==d)U=!1,(g=l.match(/(\(|\uff08)([^(\)|\uff09)]+)(\)|\uff09)/))&&(l=g[2]),qa=$("<p>"),qa.addClass("carderror-errorprompt-support-qing-text"),qa.html(l.replace(/,/g,C.get("semicolon","\uff1b")+"<br>")),da?(m=!0,g=C.get("haveNotGetDataEntityAuthority","\u5c1a\u672a\u83b7\u5f97\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650"),ha.text(C.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(m=!1,g=C.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a")),
ca.text(g),!m&&ca.append(qa);else if(2101018==d){U=!1;m=oa.getSupportQingAnalysisUrl();(g=/(?:\u3010\s)(.+)(?=\s\u3011)/.exec(l))&&(l=g[1]);var q=$("<a onclick='javascript:window.open(\""+m+"\");' href='#'>");q.css({cursor:"pointer",color:"#5582f3"});q.text(C.get("viewDocument","\u67e5\u770b\u5e2e\u52a9\u6587\u6863"));qa=$("<p>");qa.addClass("carderror-errorprompt-support-qing-text");qa.html(l.replace(/,/g,C.get("semicolon","\uff1b")+"<br>"));da?(m=!0,g=C.get("entityNotSupportQingAnalysis","\u4e1a\u52a1\u5b9e\u4f53\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e  "),
ha.text(C.get("viewDetails","\u67e5\u770b\u8be6\u60c5"))):(m=!1,g=C.get("notSupportQingAnalysisTip","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff0c\u8bf7\u5728\u5f00\u53d1\u5e73\u53f0\u7684\u5bf9\u5e94\u8868\u5355\u4e2d\u8fdb\u884c\u8bbe\u7f6e  "),c.css("overflow-y","auto"),ra.css("max-height","unset"));ca.text(g);ca.append(q);!m&&ca.append(qa)}else 4040002==d||4040003==d||4040004==d?(U=m=!0,g=C.get("serverBusy","\u5f53\u524d\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002")):
4100001==d?(U=m=!0,g=C.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25")):(U=m=!0,g=d+"",g=0==g.indexOf("21")&&7==g.length?C.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==g.indexOf("30")&&6==g.length?C.get("extractDataFail","\u51c6\u5907\u6570\u636e\u5931\u8d25"):0==g.indexOf("40")&&6==g.length?C.get("executeFail","\u56fe\u8868\u6267\u884c\u5931\u8d25"):C.get("unknownException","\u53d1\u751f\u4e86\u672a\u77e5\u9519\u8bef"));m&&ua?(ha.show(),ha.on("click",function(t){L(d,
l,k)})):ha.hide();2101018!=d&&2101006!=d&&ca.text(g);setTimeout(W,500)},W=function(){var d=c.height()-2;c.width();if(0!=d){var l=ra.height()+10,k=d-l;70>k?(z.hide(),k=0):(z.show(),200<k&&(k=200),z.css("height",k+"px"));ra.css("min-height","unset");u.css({"margin-top":-Math.floor((k+l)/2)+"px",top:"50%",height:k+l+"px"});0>d-l&&(c.css("overflow-y","auto"),c.css("overflow-x","auto"))}},L=function(d,l,k){if(2101006==d){var m=new fa($(document.body));m.setSize(440,330);m.setTitle(C.get("permissionTitle",
"\u6743\u9650\u63d0\u793a"));m.showDialog(S(C.get("noAuthorityForTheseEntities","\u5c1a\u672a\u83b7\u5f97\u4ee5\u4e0b\u5b9e\u4f53\u6570\u636e\u8868\u7684\u67e5\u770b\u6743\u9650\uff1a"),qa),!0)}else if(2101018==d)m=new fa($(document.body)),m.setSize(440,330),m.setTitle(C.get("DetailInfo","\u8be6\u7ec6\u4fe1\u606f")),m.showDialog(S(C.get("notSupportQingAnalysis","\u4ee5\u4e0b\u4e1a\u52a1\u5b9e\u4f53\u5c1a\u672a\u5f00\u542f\u201c\u652f\u6301\u8f7b\u5206\u6790\u201d\u8bbe\u7f6e\u9879\uff1a"),qa),!0);
else if(va)va(d,l,k);else{if(!za){za=$("<div>");za.addClass("carderror-errorprompt-logdetail-container");m=$("<div>");m.addClass("carderror-errorprompt-logdetail-container-title");var g=$("<div>");g.addClass("carderror-errorprompt-logdetail-titiletag");var q=$("<div>");q.addClass("carderror-errorprompt-logdetail-title-lable");q.text(C.get("errorLog","\u9519\u8bef\u65e5\u5fd7"));var t=$("<div>");t.addClass("carderror-errorprompt-logdetail-close");ba.Icons.background(t,"icon_errorclose");t.on("click",
b);m.append(g);m.append(q);m.append(t);sa=$("<div>");sa.css("padding","10px");sa.text(C.get("errorCode","\u9519\u8bef\u7801\uff1a")+d);ma=$("<pre>");ma.addClass("carderror-errorprompt-logdetail-content-container-text");ma.text("\u9519\u8bef\u4fe1\u606f\uff1a"+l+(null!=k?"\r\n\u9519\u8bef\u6808\uff1a"+k:""));var y=$("<div>");y.addClass("carderror-errorprompt-logdetail-content-container");var r=$("<span>");r.text(C.get("copy","\u590d\u5236"));r.addClass("carderror-errorprompt-logdetail-content-copybutton");
r.click(function(){var B=Z("\u9519\u8bef\u7801\uff1a"+d+"\r\n\u9519\u8bef\u4fe1\u606f\uff1a"+l+"\r\n\u9519\u8bef\u6808\uff1a"+k),ia=$("<span>");ia.addClass("carderror-errorprompt-logdetail-content-copybutton-end");y.append(ia);B?ia.text(C.get("copy success!","\u590d\u5236\u6210\u529f\uff01")):ia.text(C.get("copy error!","\u590d\u5236\u5931\u8d25\uff01"));setTimeout(function(){ia.remove()},1500)});y.mouseover(function(){r.css("visibility","visible")});y.mouseout(function(){r.css("visibility","hidden")});
y.append(sa);y.append(ma);y.append(r);za.append(m);za.append(y);R=$("<div class='sa-ctrl-common-modallayer'>");za.appendTo(R)}m=$(document.body);R.appendTo(m)}},Z=function(d){var l=document.createElement("textarea");document.body.appendChild(l);l.value=d;l.select();d=document.execCommand("copy");document.body.removeChild(l);return d},S=function(d,l){var k=$("<div>");k.addClass("carderror-errorprompt-logdetail-content");var m=$("<p>");m.addClass("carderror-errorprompt-logdetail-contenxt-texttitle");
m.text(d);d=$("<p>");d.addClass("carderror-errorprompt-logdetail-contenxt-text");d.html(l);k.append(m);k.append(d);return k},fa=function(d){var l=$("<div class='sa-ctrl-common-modallayer'>"),k=new N(l),m=0,g=0,q=320,t=240,y=d?d:$(document.body),r,B;this.setTitle=function(ia){B=ia};this.setClosingListener=function(ia){r=ia};this.setSize=function(ia,J){q=ia;t=J};this.showDialog=function(ia,J){l.appendTo(y);if(!m){var xa=y.prop("clientWidth"),na=y.prop("clientHeight");m=xa-q>>1;g=(na-t)/3}k.setBounds(m,
g,q,t);k.setToolbarVisible(!1);k.setContent(ia,J);k.setTitle(B);k.addClosingListener(function(P,ta){if(ta)r(ta);else return P.destroy(),l.remove(),!0});k.addClosedListener(function(P){P.destroy();l.remove()});k.showFooterPane(this.createFooter);k.show()};this.setContent=function(ia,J){k.setContent(ia,J)};this.destroy=function(){k.destroy();l.remove()};this.createFooter=function(ia){var J=new h(C.get("iknow","\u6211\u77e5\u9053\u4e86"));J.setHighlight(!0);var xa=J.getJqUi();n.layoutCtrlWithLRTB(xa,
"50%",0,100,null,13,28);xa.addClass("dialog-footer-close");xa.css("margin-left","-50px");xa.appendTo(ia);J.addActionListener(function(na){k.destroy();l.remove()})}},b=function(){R&&R.detach()}}function T(){var a,c,u;this.setIsSquare=function(z){a=z};this.getIsSquare=function(){return a};this.setLoadSchema=function(z){c=z};this.getLoadSchema=function(){return c};this.setSaveSchema=function(z){u=z};this.getSaveSchema=function(){return u}}function O(){e.call(this);this.protectedShowErrorImpl=function(a,
c,u,z){a=new x(a);a.setIsDsbComponent(!0);a.show(c,u,z);return!0}}function A(){H.call(this);this.protectedShowErrorImpl=function(a,c,u,z){a=new x(a);a.setIsDsbComponent(!0);a.show(c,u,z);return!0}}"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.square&&(com.kingdee.bos.qing.scene.common.square={});"undefined"==typeof com.kingdee.bos.qing.scene.common.square.exhibition&&(com.kingdee.bos.qing.scene.common.square.exhibition={});var ba=com.kingdee.bos.qing.scene.common.square.exhibition,Aa,C,F,e,H,ka,oa,N,h,n;(function(){var a=com.kingdee.bos.qing.framework.common;Aa=a.AbstractIcons;C=a.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.scene);
oa=oa=a.OfficialArticleUtil;a=com.kingdee.bos.qing;F=a.CodeLoader;e=a.DashboardSquareScene;H=a.DashboardLongerScene;a=com.kingdee.bos.qing.ui.component;ka=a.MessageDialog;N=a.Dialog;h=a.Button;a=com.kingdee.bos.qing.common;n=a.DomUtil})();ba.Icons=new function(){Aa.call(this);var a=this.protectedMethod,c;this.setComboIconImpl=function(u){c=u};this.protectedInit=function(u,z){if(!c)throw Error("Please setComboIconImpl() first.");c.define(z,"scene-error-image-sprite");z.setStartPosition(1,1);z.setGap(1);
z.setIconSize(20,20);a.registIcon(0,0,"icon_qhfInfo");a.registIcon(0,1,"icon_errorclose");c.define(z,"errorbackground");z.setStartPosition(0,0);z.setGap(0);z.setIconSize(200,200);a.registIcon(0,0,"icon_errorbackground");c.define(z,"nodata");a.registIcon(0,1,"icon_nodata")}};ba.CardErrorUi=x;ba.DsbIntegrationScene=function(){var a,c,u,z,ca;this.setResetSquare=function(R){z=R};this.setFacade=function(R){u=R};this.setParamPathPrefix=function(R){};this.setMessageCurtain=function(R){c=R};this.setCoreRemoteUrl=
function(R){a=R};this.setDesignerSceneCreator=function(R){ca=R};this.createSquareDesignerScene=function(R){var sa=new O;sa.setRemoteUrl(a);R(sa)};this.createLongerDesignerScene=function(R){var sa=new A;sa.setRemoteUrl(a);R(sa)};this.loadImage=function(R,sa,ma){var U=R.refToId;U&&0!=$.trim(U).length?(R=u(function(ua){var da=ua.imageHeight;ua=ua.imageWidth;if(da||ua){var ya=com.kingdee.bos.qing.framework.common.RemoteFramework.getLoadImgUrl(U,"image-library");sa(ya,ua,da)}else ma&&ma("")},function(ua,
da){return!1}),R.setShowBlocking(!1),R.getImageSize(U)):(R=R.widgetSourcePath,ma&&ma(R))};this.createSquareDesigner=function(R,sa,ma,U,ua,da){var ya=new T;ya.setIsSquare(!0);ya.setLoadSchema(function(va,qa){u(va,qa).squareLoadSchema(ma)});ya.setSaveSchema(function(va,qa,Ba){u(qa,Ba).squareSaveSchema(ma,va)});ha(ya,R,sa,ma,U,ua,da,!0)};this.createLongerDesigner=function(R,sa,ma,U,ua,da,ya){var va=new T;va.setIsSquare(!1);va.setLoadSchema(function(qa,Ba){u(qa,Ba).longerLoadSchema(ma,ya)});va.setSaveSchema(function(qa,
Ba,Ca){u(Ba,Ca).longerSaveSchema(ma,qa)});ha(va,R,sa,ma,U,ua,da,!1)};var ha=function(R,sa,ma,U,ua,da,ya,va){var qa=ca(),Ba=function(Ca){qa.hide();ya(Ca)};qa.setIsSquare(R.getIsSquare());qa.setRemoteUrl(a);qa.setRemoteTag(ua);qa.setDesignerOperationJudger(da);qa.setSquareOrLonger(va);qa.setClosable(ma);qa.setSchemaLoader(function(Ca,w){ra(R,U,Ca,w,Ba)});qa.setSchemaSaver(function(Ca){za(R,U,Ca,Ba)});null!=z&&qa.setSchemaReseter(function(Ca){z(U,Ca,Ba)});qa.show(sa,function(){Ba(null)})},ra=function(R,
sa,ma,U,ua){sa.uid?R.getLoadSchema()(function(da){da.model?(ma.setJsonModelBook(da.model),U(!0)):U(!1)},function(da,ya){ua();da=da.toString();return"9"==da.substr(0,1)&&6==da.length?(c&&c.showError(C.get("failToLoadSchema","\u52a0\u8f7d\u65b9\u6848\u5931\u8d25\u3002")),!0):!1}):U(!1)},za=function(R,sa,ma,U){var ua=ma.getJsonModelBook();R.getSaveSchema()(ua,function(da){U(ua)},function(da,ya){if(909002==da)return da=ka.createFeedbackDialog(),da.setMessage(C.get("noSelectMapTemplate","\u8bf7\u9009\u62e9\u5730\u56fe\u6a21\u677f")),
da.setMsgImageType(ka.MSG_WARNING),da.setOptionType(ka.OPTION_OK),da.setButtonText(ka.OPTION_OK,C.get("iknow","\u6211\u77e5\u9053\u4e86")),da.showDialog(),!0;U();da=da.toString();return"9"==da.substr(0,1)&&6==da.length?(c&&c.showError(C.get("failToTemporarySchema","\u6682\u5b58\u65b9\u6848\u5931\u8d25\u3002")),!0):!1})}}})();(function(){function x(){var e={};this.createScene=function(H,ka){var oa=x.MANAGETYPE_PUBLISH;if("longer"==H)var N=x.LONGER;else"square"==H?N=x.SQUARE:"dashboard"==H&&(N=x.DASHBOARD);"lappTimedPush"==ka?oa=x.MANAGETYPE_TIMED_PUSH_LAPP:"emailTimedPush"==ka&&(oa=x.MANAGETYPE_TIMED_PUSH_EMAIL);if(H=e[N|oa])return new H;throw Error("unknown type");};this.register=function(H,ka){e[H]=ka}}"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 T=com.kingdee.bos.qing.scene;T.PublishEditSceneFactory=new x;var O,A,ba,Aa,C,F;(function(){var e=com.kingdee.bos.qing;O=e.RemoteImpl;e=com.kingdee.bos.qing.framework.common;A=e.MultilanguageManager.createPackageAccessor(T);e=com.kingdee.bos.qing.scene.common.designer;ba=e.AbstractDesignerSceneImpl;Aa=e.AbstractDashboardDesignerSceneImpl;
C=e.LongerDesignerOperationJudgerModel;F=e.SquareDesignerOperationJudgerModel})();x.LONGER=1;x.SQUARE=2;x.DASHBOARD=3;x.MANAGETYPE_PUBLISH=16;x.MANAGETYPE_TIMED_PUSH_LAPP=32;x.MANAGETYPE_TIMED_PUSH_EMAIL=48;T.PublishEditSceneFactory.register(x.LONGER|x.MANAGETYPE_TIMED_PUSH_EMAIL,function(){ba.call(this);var e=this.protectedMethod,H,ka=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(h){e.setModuleWithLonger(!0,!0);e.setModuleWithSquare(!1,!1);ka(h);H=new C(null);h()};var oa=this.protectedImportMoreCode;
this.protectedImportMoreCode=function(h){oa(h);e.importLinkage(h);e.importForSchema(h);e.importForPublish(h)};this.protectedLoadingLonger=function(h,n,a){e.loadMeta(h,function(c){n.prepareMeta(c);var u=new O;c=e.getUrlParamUtil().getParamPathPrefix();u.setRemoteUrl((c?c:"/ierp")+"/qing/publishTo.do");u.setTag(e.getUrlParamUtil().getParamTag());c=com.kingdee.bos.qing.publish.model.PublishTargetType;u=new com.kingdee.bos.qing.timedpush.EmailPublishFacade(u,function(ha){n.setJsonModelBook(ha.model);
a(!0)});var z=e.getUrlParamUtil().getUrlParam("configId"),ca=e.getUrlParamUtil().getUrlParam("publishSourceType");u.loadPushSchema(c.EMAIL,z,ca)})};this.protectedInitDesignerForLonger=function(h){h.setDesignerOperationJudger(H,null);h.getConductor().insertToolbarButton(function(){N(h)},"btn_save",A.get("save","\u4fdd\u5b58"),A.get("save","\u4fdd\u5b58"));e.hookCloseTab(h);e.hookSetCurrentTabStatus(h);e.initDesigntimeLinkage()};var N=function(h){var n=new O,a=e.getUrlParamUtil().getParamPathPrefix();
n.setRemoteUrl((a?a:"/ierp")+"/qing/publishTo.do");n.setTag(e.getUrlParamUtil().getParamTag());a=com.kingdee.bos.qing.publish.model.PublishTargetType;n=new com.kingdee.bos.qing.timedpush.EmailPublishFacade(n,function(z){h.getConductor().clearDirty();e.getMessageCurtain().showSuccess(A.get("saveSuccess","\u4fdd\u5b58\u6210\u529f\u3002"))},function(z){return 2314107==z?(e.getMessageCurtain().showPrompt(A.get("emailConfigNotFoundCurtain","\u8be5\u63a8\u9001\u914d\u7f6e\u5df2\u88ab\u5220\u9664\u3002")),
!0):!1});var c=e.getUrlParamUtil().getUrlParam("configId"),u=e.getUrlParamUtil().getUrlParam("publishSourceType");n.updatePushSchema(a.EMAIL,c,u,h.getJsonModelBook())}});T.PublishEditSceneFactory.register(x.DASHBOARD|x.MANAGETYPE_TIMED_PUSH_EMAIL,function(){Aa.call(this);var e=this,H=this.protectedMethod,ka;this.protectedSetSourceDetail=function(h,n){ka=h+"/"+n};this.protectedGetSourceDetail=function(){return ka};this.protectedCreateFacade=function(h,n,a){return new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(h,
n,a)};this.protectedLoading=function(h,n,a){var c=N();(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(h,function(u){u&&n.setJsonModel(u,function(z){z.isError()&&H.getMessageCurtain().showError(A.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5931\u8d25\u3002"))});a(!0)},function(u,z){return 1030001==u?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(u,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(z))),!0):!1})).loadModel(c)};this.protectedGetRemoteUrl=
function(){var h=H.getUrlParamUtil().getParamPathPrefix();return(h?h:"/ierp")+"/qing/editEmailPushDsb.do"};this.protectedGetDashboardUniqueId=function(){return N()};this.protectedOverrideDsbSource=function(h){h=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),function(n){H.getMessageCurtain().showSuccess("\u540c\u6b65\u6210\u529f\u3002")},function(n,a){return 1010006==n||1010004==n?(n=A.get("SyncSchemaTPDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5bf9\u5e94\u7684\u63a8\u9001\u6765\u6e90\u5df2\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),
e.showSyncRefused(n,!1,""),!0):2314107==n?(n=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(n,!1,""),!0):!1})).syncModelToDsbSource(N(),h)};this.protectedCreateNewDsb=function(h,n,a){h=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),function(c){a&&a();H.getMessageCurtain().showSuccess("\u540c\u6b65\u6210\u529f\u3002")},
function(c,u){return 1010006==c?(a&&a(),c=A.get("SyncSchemaToNewDSBCategoryDeletedCurtain","\u65b0\u4eea\u8868\u677f\u7684\u5206\u7c7b\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"),e.showSyncRefused(c,!1,""),!0):2314107==c?(a&&a(),c=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(c,!1,""),!0):1010003==c?(a&&a(c),!0):!1})).syncModelToNewDsb(N(),n,h)};this.checkDsbIsOpened=function(h,
n){(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),function(a){e.protectedSetSourceDetail(a.themeGroupName,a.themeName);1==a.isLocked?h&&h():n&&n()},function(a,c){return 2314107==a?(a=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):1010004==a?(a=A.get("SyncSchemaTPDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5bf9\u5e94\u7684\u63a8\u9001\u6765\u6e90\u5df2\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),
e.showSyncRefused(a,!1,""),!0):!1})).checkDsbIsOpened(N())};this.protectedCheckPublishLogExist=function(h,n){(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),function(a){h&&h()},function(a,c){return 2314107==a?(a=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):!1})).checkEmailConfigsExist(N())};this.protectedListUnpresetThemeGroup=function(h){(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),
h,function(n,a){return!1})).protectedListUnpresetThemeGroup()};var oa=e.protectedInitDesigner;this.protectedInitDesigner=function(h){oa(h);H.hookSyncTimePushToDsb(h);H.hookCloseTab(h)};this.protectedSaveModel=function(h){if(h.getConductor().isDirty()){var n=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),function(a){H.getMessageCurtain().showSuccess(A.get("saveDsbSuccess","\u4fdd\u5b58\u4eea\u8868\u677f\u6210\u529f\u3002"));h.getConductor().clearDirty()},
function(a,c){return 2314107==a?(H.getMessageCurtain().showPrompt(A.get("dsbIsDeletedCurtain","\u5bf9\u5e94\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),!0):!1})).saveModel(N(),n)}else H.getMessageCurtain().showPrompt(A.get("noEditCurtain","\u4eea\u8868\u677f\u5185\u5bb9\u6ca1\u6709\u4fee\u6539\u3002"),2E3)};var N=function(){return H.getUrlParamUtil().getUrlParam("configId")}});T.PublishEditSceneFactory.register(x.SQUARE|x.MANAGETYPE_TIMED_PUSH_LAPP,function(){ba.call(this);
var e=this.protectedMethod,H=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(N){e.setModuleWithLonger(!1,!1);e.setModuleWithSquare(!0,!0);H(N);var h=e.getUrlParamUtil().getParamPathPrefix();e.registMapMapLibrary(h);N()};var ka=this.protectedImportMoreCode;this.protectedImportMoreCode=function(N){ka(N);e.importLinkage(N);e.importForSchema(N);e.importForPublish(N);e.importForMap(N)};this.protectedLoadingSquare=function(N,h,n){e.loadMeta(N,function(a){h.prepareMeta(a);a=new O;var c=
e.getUrlParamUtil().getParamPathPrefix();a.setRemoteUrl((c?c:"/ierp")+"/qing/publishTo.do");a.setTag(e.getUrlParamUtil().getParamTag());a=com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,a,function(z){h.setJsonModelBook(z.model);n(!0)});c=e.getUrlParamUtil().getUrlParam("configId");var u=e.getUrlParamUtil().getUrlParam("pushTargetType");a.loadPushSchema(c,u)})};this.protectedInitDesignerForSquare=function(N){N.getConductor().insertToolbarButton(function(){oa(N)},
"btn_save",A.get("save","\u4fdd\u5b58"),A.get("save","\u4fdd\u5b58"));e.hookCloseTab(N);e.hookSetCurrentTabStatus(N);e.initDesigntimeLinkage()};var oa=function(N){var h=new O,n=e.getUrlParamUtil().getParamPathPrefix();h.setRemoteUrl((n?n:"/ierp")+"/qing/publishTo.do");h.setTag(e.getUrlParamUtil().getParamTag());h=com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,h,function(c){N.getConductor().clearDirty();e.getMessageCurtain().showSuccess(A.get("saveSuccess",
"\u4fdd\u5b58\u6210\u529f\u3002"))},function(c){if(2301001==c){c=com.kingdee.bos.qing.ui.component.MessageDialog;var u=new c;u.setOptionType(c.OPTION_OK);u.setMessage(A.get("schemaNotExist","\u65b9\u6848\u5df2\u88ab\u522a\u9664"));u.showDialog();return!0}return 2301013==c?(e.getMessageCurtain().showPrompt(A.get("noSelectMapTemplateCurtain","\u8bf7\u9009\u62e9\u5730\u56fe\u6a21\u677f\u3002")),!0):!1});n=e.getUrlParamUtil().getUrlParam("configId");var a=e.getUrlParamUtil().getUrlParam("pushTargetType");
h.updatePushSchema(n,a,N.getJsonModelBook())}});T.PublishEditSceneFactory.register(x.LONGER|x.MANAGETYPE_TIMED_PUSH_LAPP,function(){ba.call(this);var e=this.protectedMethod,H,ka=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(h){e.setModuleWithLonger(!0,!0);e.setModuleWithSquare(!1,!1);ka(h);H=new C(null);h()};var oa=this.protectedImportMoreCode;this.protectedImportMoreCode=function(h){oa(h);e.importLinkage(h);e.importForSchema(h);e.importForPublish(h)};this.protectedLoadingLonger=
function(h,n,a){e.loadMeta(h,function(c){n.prepareMeta(c);c=new O;var u=e.getUrlParamUtil().getParamPathPrefix();c.setRemoteUrl((u?u:"/ierp")+"/qing/publishTo.do");c.setTag(e.getUrlParamUtil().getParamTag());c=com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,c,function(ca){n.setJsonModelBook(ca.model);a(!0)});u=e.getUrlParamUtil().getUrlParam("configId");var z=e.getUrlParamUtil().getUrlParam("pushTargetType");c.loadPushSchema(u,
z)})};this.protectedInitDesignerForLonger=function(h){h.setDesignerOperationJudger(H,null);h.getConductor().insertToolbarButton(function(){N(h)},"btn_save",A.get("save","\u4fdd\u5b58"),A.get("save","\u4fdd\u5b58"));e.hookCloseTab(h);e.hookSetCurrentTabStatus(h);e.initDesigntimeLinkage()};var N=function(h){var n=new O,a=e.getUrlParamUtil().getParamPathPrefix();n.setRemoteUrl((a?a:"/ierp")+"/qing/publishTo.do");n.setTag(e.getUrlParamUtil().getParamTag());n=com.kingdee.bos.qing.publish.common.PublishFactory.createPublishFacade(com.kingdee.bos.qing.publish.model.PublishTargetType.MOBILE,
n,function(u){h.getConductor().clearDirty();e.getMessageCurtain().showSuccess(A.get("saveSuccess","\u4fdd\u5b58\u6210\u529f\u3002"))},function(u){if(2301001==u){u=com.kingdee.bos.qing.ui.component.MessageDialog;var z=new u;z.setOptionType(u.OPTION_OK);z.setMessage(A.get("schemaNotExist","\u65b9\u6848\u5df2\u88ab\u522a\u9664"));z.showDialog();return!0}return!1});a=e.getUrlParamUtil().getUrlParam("configId");var c=e.getUrlParamUtil().getUrlParam("pushTargetType");n.updatePushSchema(a,c,h.getJsonModelBook())}});
T.PublishEditSceneFactory.register(x.SQUARE|x.MANAGETYPE_PUBLISH,function(){ba.call(this);var e=this.protectedMethod,H,ka,oa,N=this.protectedImportMoreCode;this.protectedImportMoreCode=function(a){N(a);e.importLinkage(a);e.importForSchema(a);e.importForPublish(a);e.importForMap(a)};var h=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(a){e.setModuleWithLonger(!1,!1);e.setModuleWithSquare(!0,!0);h(a);H=e.getUrlParamUtil().getUrlParam("bizTag");ka=new O;var c=e.getUrlParamUtil().getParamPathPrefix();
ka.setRemoteUrl((c?c:"/ierp")+"/qing/schemaManage.do");ka.setTag(e.getUrlParamUtil().getParamTag());e.registMapMapLibrary(c);e.loadPublishOperModel(e.getUrlParamUtil().getUrlParam("publishId"),!0,function(u){var z=com.kingdee.bos.qing.publish.model.OperType;oa=new F(u?u[z.SQUARE]:null);a()},function(){oa=new F(null);a()})};this.protectedLoadingSquare=function(a,c,u){e.loadMeta(a,function(z){var ca=com.kingdee.bos.qing.schemamanage.SchemaManage,ha=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;
c.prepareMeta(z);z=new ca(H,ha.SCHEMASOURCE_SQUARE,"");z.setReloadMetaFun(function(ra){e.reloadMeta(function(za){c.prepareMeta(za);ra&&ra()})});z.initializeForSystemSquareEdit(ka,c,function(ra){u(ra)},H);z.setSaveSuccessCallback(n)})};this.protectedInitDesignerForSquare=function(a){a.setDesignerOperationJudger(null,oa);"true"!=e.getUrlParamUtil().getUrlParam("haveToCarryData")&&e.hookRefresh(a,com.kingdee.bos.qing.prepare.DataExtractor);e.hookCloseTab(a);e.hookSetCurrentTabStatus(a);e.initDesigntimeLinkage()};
var n=function(){var a=new O,c=e.getUrlParamUtil().getParamPathPrefix();a.setRemoteUrl((c?c:"/ierp")+"/qing/publishTo.do");a.setTag(e.getUrlParamUtil().getParamTag());c=com.kingdee.bos.qing.publish.common.PublishFactory;var u=com.kingdee.bos.qing.publish.model.PublishTargetType,z=e.getUrlParamUtil().getUrlParam("publishTargetType"),ca=e.getUrlParamUtil().getUrlParam("publishId"),ha=e.getUrlParamUtil().getUrlParam("schemaId"),ra=e.getUrlParamUtil().getUrlParam("subscribeKey"),za=e.getUrlParamUtil().getUrlParam("fromPageClientId");
z==u.MOBILE?(z=e.getUrlParamUtil().getUrlParam("lappId"),ca=e.getUrlParamUtil().getUrlParam("lappUserType"),c.createPublishFacade(u.MOBILE,a).updateLappThumbnail(z,ha,za,ra,ca)):z==u.CARD_REPOSITORY&&c.createPublishFacade(u.CARD_REPOSITORY,a).updateCardThumbnail(ca,za,ra)}});T.PublishEditSceneFactory.register(x.LONGER|x.MANAGETYPE_PUBLISH,function(){ba.call(this);var e=this.protectedMethod,H,ka,oa,N,h,n=this.protectedImportMoreCode;this.protectedImportMoreCode=function(u){n(u);e.importLinkage(u);
e.importForSchema(u);e.importForPublish(u)};var a=this.protectedCustomInitEnv;this.protectedCustomInitEnv=function(u){e.setModuleWithLonger(!0,!0);e.setModuleWithSquare(!1,!1);a(u);H=e.getUrlParamUtil().getUrlParam("publishId");ka=e.getUrlParamUtil().getUrlParam("bizTag");oa=e.getUrlParamUtil().getUrlParam("publishTargetType");N=new O;var z=e.getUrlParamUtil().getParamPathPrefix();N.setRemoteUrl((z?z:"/ierp")+"/qing/schemaManage.do");N.setTag(e.getUrlParamUtil().getParamTag());e.loadPublishOperModel(e.getUrlParamUtil().getUrlParam("publishId"),
!0,function(ca){var ha=com.kingdee.bos.qing.publish.model.OperType;h=new C(ca?ca[ha.LONGER]:null);u()},function(){h=new C(null);u()})};this.protectedLoadingLonger=function(u,z,ca){e.loadMeta(u,function(ha){var ra=com.kingdee.bos.qing.schemamanage.SchemaManage,za=com.kingdee.bos.qing.schemamanage.model.SchemaAttrModel;z.prepareMeta(ha);ha=new ra(H,za.SCHEMASOURCE_LONGER);ha.setDesignerOperationJudger(h);ha.setReloadMetaFun(function(R){e.reloadMeta(function(sa){z.prepareMeta(sa);R&&R()})});ha.initializeForLongerEdit(N,
z,function(R){ca(R)},ka,oa);ha.setSaveSuccessCallback(c)})};this.protectedInitDesignerForLonger=function(u){u.setDesignerOperationJudger(h,null);"true"!=e.getUrlParamUtil().getUrlParam("haveToCarryData")&&e.hookRefresh(u,com.kingdee.bos.qing.prepare.DataExtractor);e.hookCloseTab(u);e.hookSetCurrentTabStatus(u);e.initDesigntimeLinkage()};var c=function(){var u=e.getUrlParamUtil().getUrlParam("publishTargetType"),z=e.getUrlParamUtil().getUrlParam("schemaId"),ca=com.kingdee.bos.qing.publish.model.PublishTargetType;
if(u==ca.MOBILE){u=new O;var ha=e.getUrlParamUtil().getParamPathPrefix();u.setRemoteUrl((ha?ha:"")+"/qing/publishTo.do");u.setTag(e.getUrlParamUtil().getParamTag());ha=com.kingdee.bos.qing.publish.common.PublishFactory;var ra=e.getUrlParamUtil().getUrlParam("lappId"),za=e.getUrlParamUtil().getUrlParam("lappUserType"),R=e.getUrlParamUtil().getUrlParam("subscribeKey"),sa=e.getUrlParamUtil().getUrlParam("fromPageClientId");ha.createPublishFacade(ca.MOBILE,u).updateLappThumbnail(ra,z,sa,R,za)}}});T.PublishEditSceneFactory.register(x.DASHBOARD|
x.MANAGETYPE_PUBLISH,function(){Aa.call(this);var e=this,H=this.protectedMethod,ka;this.protectedSetSourceDetail=function(h,n){ka=h+"/"+n};this.protectedGetSourceDetail=function(){return ka};this.protectedCreateFacade=function(h,n,a){return new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(h,n,a)};this.protectedLoading=function(h,n,a){var c=N();(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(h,function(u){u&&n.setJsonModel(u,function(z){z.isError()&&H.getMessageCurtain().showError(A.get("failToLoadDsbCurtain",
"\u52a0\u8f7d\u4eea\u8868\u677f\u5931\u8d25\u3002"))});a(!0)},function(u,z){return 1030001==u?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(u,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(z))),!0):!1})).loadModel(c)};this.protectedOverrideDsbSource=function(h){h=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(e.getRemoteImpl(),function(n){H.getMessageCurtain().showSuccess("\u540c\u6b65\u6210\u529f\u3002")},function(n,
a){return 1010006==n||1010004==n?(n=A.get("SyncSchemaPublishDeleted","\u8be5\u53d1\u5e03\u8bb0\u5f55\u5bf9\u5e94\u7684\u53d1\u5e03\u6765\u6e90\u5df2\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(n,!1,""),!0):2301001==n?(n=A.get("SyncSchemaPublishLogDeleted","\u8be5\u53d1\u5e03\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(n,!1,""),!0):!1})).syncModelToDsbSource(N(),h)};this.protectedCreateNewDsb=
function(h,n,a){h=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(e.getRemoteImpl(),function(c){a&&a();H.getMessageCurtain().showSuccess("\u540c\u6b65\u6210\u529f\u3002")},function(c,u){return 1010006==c?(a&&a(),c=A.get("SyncSchemaToNewDSBCategoryDeletedCurtain","\u65b0\u4eea\u8868\u677f\u7684\u5206\u7c7b\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002"),e.showSyncRefused(c,!1,""),!0):2301001==c?(a&&a(),c=A.get("SyncSchemaPublishLogDeleted","\u8be5\u53d1\u5e03\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),
e.showSyncRefused(c,!1,""),!0):1010003==c?(a&&a(c),!0):!1})).syncModelToNewDsb(h,n)};this.protectedCheckPublishLogExist=function(h,n){(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(e.getRemoteImpl(),function(a){h&&h()},function(a,c){return 2301001==a?(a=A.get("SyncSchemaPublishLogDeleted","\u8be5\u53d1\u5e03\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):!1})).checkPublishExist(N())};this.checkDsbIsOpened=
function(h,n){(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(e.getRemoteImpl(),function(a){e.protectedSetSourceDetail(a.themeGroupName,a.themeName);1==a.isLocked?h&&h():n&&n();return!0},function(a,c){return 2301001==a?(a=A.get("SyncSchemaPublishLogDeleted","\u8be5\u53d1\u5e03\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):1010004==a?(a=A.get("SyncSchemaPublishDeleted","\u8be5\u53d1\u5e03\u8bb0\u5f55\u5bf9\u5e94\u7684\u53d1\u5e03\u6765\u6e90\u5df2\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),
e.showSyncRefused(a,!1,""),!0):!1})).checkDsbIsOpened(N())};this.protectedListUnpresetThemeGroup=function(h){(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(e.getRemoteImpl(),h,function(n,a){return!1})).protectedListUnpresetThemeGroup()};this.protectedGetRemoteUrl=function(){var h=H.getUrlParamUtil().getParamPathPrefix();return(h?h:"/ierp")+"/qing/editPublishedDsb.do"};this.protectedGetDashboardUniqueId=function(){return N()};var oa=e.protectedInitDesigner;this.protectedInitDesigner=
function(h){oa(h);H.hookSyncPublishToDsb(h);H.hookCloseTab(h)};this.protectedSaveModel=function(h){if(h.getConductor().isDirty()){var n=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.PublishDsbDesignerFacade(e.getRemoteImpl(),function(a){H.getMessageCurtain().showSuccess(A.get("saveDsbSuccess","\u4fdd\u5b58\u4eea\u8868\u677f\u6210\u529f\u3002"));h.getConductor().clearDirty()},function(a,c){return 2301001==a?(H.getMessageCurtain().showPrompt(A.get("dsbIsDeletedCurtain","\u5bf9\u5e94\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),
!0):!1})).saveModel(N(),n)}else H.getMessageCurtain().showPrompt(A.get("noEditCurtain","\u4eea\u8868\u677f\u5185\u5bb9\u6ca1\u6709\u4fee\u6539\u3002"),2E3)};var N=function(){return H.getUrlParamUtil().getUrlParam("publishId")}});T.PublishEditSceneFactory.register(x.DASHBOARD|x.MANAGETYPE_TIMED_PUSH_LAPP,function(){Aa.call(this);var e=this,H=this.protectedMethod,ka;this.protectedSetSourceDetail=function(h,n){ka=h+"/"+n};this.protectedGetSourceDetail=function(){return ka};this.protectedCreateFacade=
function(h,n,a){return new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(h,n,a)};this.protectedLoading=function(h,n,a){var c=N();(new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(h,function(u){u&&n.setJsonModel(u,function(z){z.isError()&&H.getMessageCurtain().showError(A.get("failToLoadDsbCurtain","\u52a0\u8f7d\u4eea\u8868\u677f\u5931\u8d25\u3002"))});a(!0)},function(u,z){return 1030001==u?(com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(u,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(z))),
!0):!1})).loadModel(c)};this.protectedGetRemoteUrl=function(){var h=H.getUrlParamUtil().getParamPathPrefix();return(h?h:"/ierp")+"/qing/editLappPushDsb.do"};this.protectedGetDashboardUniqueId=function(){return N()};this.protectedOverrideDsbSource=function(h){h=JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(e.getRemoteImpl(),function(n){H.getMessageCurtain().showSuccess("\u540c\u6b65\u6210\u529f\u3002")},function(n,a){return 1010006==n||1010004==n?(n=
A.get("SyncSchemaPublishDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5bf9\u5e94\u7684\u63a8\u9001\u6765\u6e90\u5df2\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(n,!1,null),!0):4300109==n?(n=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(n,!1,""),!0):!1})).syncModelToDsbSource(N(),h)};this.protectedCreateNewDsb=function(h,n,a){h=JSON.stringify(h.getJsonModel());
(new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(e.getRemoteImpl(),function(c){a&&a();H.getMessageCurtain().showSuccess("\u540c\u6b65\u6210\u529f\u3002")},function(c,u){return 1010006==c?(a&&a(),c=A.get("SyncSchemaToNewDSBCategoryDeleted","\u65b0\u4eea\u8868\u677f\u7684\u5206\u7c7b\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"),e.showSyncRefused(c,!1,""),!0):4300109==c?(a&&a(),c=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),
e.showSyncRefused(c,!1,""),!0):1010003==c?(a&&a(c),!0):!1})).syncModelToNewDsb(N(),n,h)};this.protectedListUnpresetThemeGroup=function(h){(new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(e.getRemoteImpl(),h,function(n,a){return!1})).protectedListUnpresetThemeGroup()};this.checkDsbIsOpened=function(h,n){(new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(e.getRemoteImpl(),function(a){e.protectedSetSourceDetail(a.themeGroupName,a.themeName);1==a.isLocked?h&&h():n&&n()},function(a,
c){return 2301001==a?(a=A.get("SyncSchemaTPDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5bf9\u5e94\u7684\u63a8\u9001\u6765\u6e90\u5df2\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):4300109==a?(a=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):!1})).checkDsbIsOpened(N())};this.protectedCheckPublishLogExist=function(h,
n){(new com.kingdee.bos.qing.dashboard.LappPushDsbDesignerFacade(e.getRemoteImpl(),function(a){h&&h()},function(a,c){return 4300109==a?(a=A.get("SyncSchemaTPLogDeleted","\u8be5\u63a8\u9001\u8bb0\u5f55\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),e.showSyncRefused(a,!1,""),!0):!1})).checkLappConfigExist(N())};var oa=e.protectedInitDesigner;this.protectedInitDesigner=function(h){oa(h);H.hookSyncTimePushToDsb(h);H.hookCloseTab(h)};this.protectedSaveModel=function(h){if(h.getConductor().isDirty()){var n=
JSON.stringify(h.getJsonModel());(new com.kingdee.bos.qing.dashboard.EmailPushDsbDesignerFacade(e.getRemoteImpl(),function(a){H.getMessageCurtain().showSuccess(A.get("saveDsbSuccess","\u4fdd\u5b58\u4eea\u8868\u677f\u6210\u529f\u3002"));h.getConductor().clearDirty()},function(a,c){return 4300109==a?(H.getMessageCurtain().showPrompt(A.get("dsbIsDeletedCurtain","\u5bf9\u5e94\u4eea\u8868\u677f\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),!0):!1})).saveModel(N(),n)}else H.getMessageCurtain().showPrompt(A.get("noEditCurtain",
"\u4eea\u8868\u677f\u5185\u5bb9\u6ca1\u6709\u4fee\u6539\u3002"),2E3)};var N=function(){return H.getUrlParamUtil().getUrlParam("configId")}})})();
//qingVersionTag: 20250807