var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(y,P,O){y instanceof String&&(y=String(y));for(var R=y.length,V=0;V<R;V++){var Y=y[V];if(P.call(O,Y,V,y))return{i:V,v:Y}}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(y,P,O){if(y==Array.prototype||y==Object.prototype)return y;y[P]=O.value;return y};$jscomp.getGlobal=function(y){y=["object"==typeof globalThis&&globalThis,y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var P=0;P<y.length;++P){var O=y[P];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(y,P){var O=$jscomp.propertyToPolyfillSymbol[P];if(null==O)return y[P];O=y[O];return void 0!==O?O:y[P]};
$jscomp.polyfill=function(y,P,O,R){P&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(y,P,O,R):$jscomp.polyfillUnisolated(y,P,O,R))};$jscomp.polyfillUnisolated=function(y,P,O,R){O=$jscomp.global;y=y.split(".");for(R=0;R<y.length-1;R++){var V=y[R];if(!(V in O))return;O=O[V]}y=y[y.length-1];R=O[y];P=P(R);P!=R&&null!=P&&$jscomp.defineProperty(O,y,{configurable:!0,writable:!0,value:P})};
$jscomp.polyfillIsolated=function(y,P,O,R){var V=y.split(".");y=1===V.length;R=V[0];R=!y&&R in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var Y=0;Y<V.length-1;Y++){var L=V[Y];if(!(L in R))return;R=R[L]}V=V[V.length-1];O=$jscomp.IS_SYMBOL_NATIVE&&"es6"===O?R[V]:null;P=P(O);null!=P&&(y?$jscomp.defineProperty($jscomp.polyfills,V,{configurable:!0,writable:!0,value:P}):P!==O&&(void 0===$jscomp.propertyToPolyfillSymbol[V]&&(O=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[V]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(V):$jscomp.POLYFILL_PREFIX+O+"$"+V),$jscomp.defineProperty(R,$jscomp.propertyToPolyfillSymbol[V],{configurable:!0,writable:!0,value:P})))};$jscomp.polyfill("Array.prototype.find",function(y){return y?y:function(P,O){return $jscomp.findInternal(this,P,O).v}},"es6","es3");
(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.dashboard&&(com.kingdee.bos.qing.dashboard={});"undefined"==typeof com.kingdee.bos.qing.dashboard.cosmiccard&&(com.kingdee.bos.qing.dashboard.cosmiccard={});var y=com.kingdee.bos.qing.dashboard.cosmiccard;y.CloudHubSubscribeCardExecutor=function(){var L;
P.call(this);this.initUi=function(I,E){E=$("<div class='cloudhub-subscribe-card-title'>");E.css({position:"absolute",top:0,left:"20px",height:"40px","line-height":"40px"});R.brush(R.DSB_CARD_TITLE,E);E.appendTo(I);E=$("<div>");E.css({position:"absolute",left:0,right:0,top:"40px",bottom:0});var ea=$("<iframe class='cloudhub-subscribe-card'>");ea.css({width:"100%",height:"100%",border:0});ea.appendTo(E);E.appendTo(I);R.brush(R.DSB_CARD,I);R.brush(R.DSB_CARD_SURFACE,I)};this.resize=function(I,E){};this.run=
function(I,E,ea){E=E.getEncodedModel();var sa=JSON.parse(E);E=sa.pubName;ea=L+"/index.html#/dform?formId=qing_yzjsubscribe_card";ea=ea+"&pubId="+sa.pubId+"&pubName="+E;sa=$(I.find(".cloudhub-subscribe-card"));I=$(I.find(".cloudhub-subscribe-card-title"));sa.attr("src",ea);I.text(E);I.attr("title",E)};this.destroy=function(I,E){};this.setParamPathPrefix=function(I){L=I}};y.CloudHubSubscribeCardSelector=function(){this.selectCard=function(L){Y.setCallback(function(I){if(I.pubId){I.pageId=void 0;var E=
JSON.stringify(I)}L(E)});Y.openSelector()}};y.CosmicCustomCardExecutor=function(){O.call(this);var L;this.initUi=function(I,E){E=$("<iframe class='cosmic-custom-card'>");E.css({position:"absolute",border:0,left:0,top:0,width:"100%",height:"100%"});R.brush(R.DSB_CARD,E);R.brush(R.DSB_CARD_SURFACE,E);E.appendTo(I)};this.resize=function(I,E){};this.run=function(I,E,ea){E=E.getEncodedModel();E=JSON.parse(E);ea=E.formNum;$(I.find(".cosmic-custom-card")).attr("src",L+"/index.html#/dform?formId="+ea+"&outerPageId="+
E.pageId)};this.destroy=function(I,E){};this.setParamPathPrefix=function(I){L=I}};y.CosmicCustomCardSelector=function(){this.selectCustomCard=function(L){V.setCallback(function(I){if(I.formNum){I.pageId=void 0;var E=JSON.stringify(I)}L(E)});V.openSelector()}};var P,O,R,V,Y;(function(){var L=com.kingdee.bos.qing.dsb;P=L.AbstractCloudhubSubscribesExecutor;O=L.AbstractCosmicCustomCardExecutor;R=L.CosmeticBag;L=com.kingdee.bos.qing.integration;V=L.CustomCardHelper;Y=L.CloudHubSubscribeCardHelper})()})();(function(){function y(){oa.AbstractWizardStep.call(this);var h=this,f,l,g;this.getBaseOnExistingTheme=function(){return g};this.setBaseOnExistingTheme=function(c){g=c};this.getJqUi=function(c){f||(l=c,f=h.protectedCreateUi());return f};this.protectedCreateUi=function(){throw Error("Override me.");};this.protectedMethod={getMessageCurtain:function(){return l.getMessageCurtain()}}}function P(){var h,f=this;this.protectedInitUi=function(){throw Error("Override me.");};this.getRatioBtn=function(){h||
(h=f.protectedInitUi());return h};this.doNext=function(l,g,c){throw Error("Override me.");};this.isSelected=function(){return h.isChecked()};this.isSelectable=function(){return!0}}function O(h){P.call(this);this.protectedInitUi=function(){var f=new z;f.setText(e.get("baseOnExistingTheme","\u57fa\u4e8e\u4e1a\u52a1\u4e3b\u9898\u5f15\u5165\u6216\u521b\u5efa"));f.setChecked(!0);return f};this.doNext=function(f,l,g){var c=f.getDsbRemoteImpl();(new ba(c,function(a){var d=new Aa;d.fromJsonObject(a);0==d.getChildren().length?
l.showPrompt(e.get("noTheme","\u6682\u65e0\u4e1a\u52a1\u4e3b\u9898\u3002")):(a=new V,a.setSchemaType(h),f.setFolderRoot(d),a.setStepContentInfo(f),g([a]))},function(a,d){a=a.toString();return"9"==a.substr(0,1)&&6==a.length?(l.showError(e.get("failToGetTheme","\u83b7\u53d6\u4e3b\u9898\u5931\u8d25\u3002")),!0):!1})).getAllSubject()}}function R(h){Ca.call(this,h);this.protectedInitImportTypes=function(){return[new O(y.SQUARE_TYPE)]};this.protectedGetSourceTypeText=function(){return e.get("currentSquareSource",
"\u5f53\u524d\u6570\u636e\u6597\u65b9\u6765\u6e90\u4e8e\uff1a")};this.protectedParseSourceType=function(f,l,g){var c=f.refType;g=null;var a=$("<div>");a.addClass("dsb-ref-item-btn-path-tag");l.append(a);"subject"==c?g=e.get("subject","\u4e1a\u52a1\u4e3b\u9898\uff1a"):"card"==c&&(g=e.get("card","\u5361\u7247\uff1a"));"true"==f.isPreset&&(c=$("<div>"),c.text(e.get("preset","\u9884\u7f6e")),c.addClass("dsb-ref-item-btn-path-tag"),c.addClass("dsb-ref-item-btn-preset-tag"),l.append(c));c=$("<div>");c.addClass("dsb-ref-item-btn-path-tag");
l.append(c);(l=f.ownerName)?c.text(f.publishName+" ("+l+e.get("shareCard","\u5206\u4eab\u7684\u5361\u7247")+")"):f.widgetSourcePath?c.text(f.widgetSourcePath):c.text(e.get("noSource","\u6765\u6e90\u5df2\u88ab\u5220\u9664"));a.text(g);return g}}function V(){Y.call(this);var h=this,f=this.protectedMethod,l=1;this.setSchemaType=function(g){l=g};this.getSubTitle=function(){return e.get("selectTheme","\u9009\u62e9\u4e1a\u52a1\u4e3b\u9898")};this.getNoDataText=function(){return e.get("noThemeMessageNotice",
"\u6682\u65e0\u4e1a\u52a1\u4e3b\u9898")};this.outThisStep=function(g,c){if(g)c();else{var a=f.getSelectedModel().getSelectedNode().getId(),d=f.getStepContentInfo();g=d.getDsbRemoteImpl();g=new ba(g,function(b){if(!b)return f.getMessageCurtain().showPrompt(e.get("noModeling","\u8be5\u4e3b\u9898\u6ca1\u6709\u5bf9\u5e94\u7684\u6570\u636e\uff0c\u8bf7\u5148\u8fdb\u884c\u6570\u636e\u51c6\u5907\u3002")),!0;var p=new I;p.setIsSquare(1==l);d.setId(a);d.setSchema(b);d.setImportSourceIsPublish(!1);p.setStepContentInfo(d);
c([p])},function(b,p){b=b.toString();return"9"==b.substr(0,1)&&6==b.length?(f.getMessageCurtain().showError(e.get("failToGetSchemaContent","\u83b7\u53d6\u65b9\u6848\u51fa\u9519\u3002")),!0):!1});h.setBaseOnExistingTheme(!0);g.loadSubjectSchemaAttrs(a,l)}}}function Y(){y.call(this);var h=this,f,l,g,c,a,d,b,p=new Da,k=new Da,m,t,u,D;this.setStepContentInfo=function(r){l=r};this.getSubTitle=function(){throw Error("overwrite me!");};this.getNoDataText=function(){throw Error("overwrite me!");};this.getSearchPlaceHolder=
function(){return e.get("enterSearchTheme","\u641c\u7d22\u4e1a\u52a1\u4e3b\u9898")};this.protectedCreateUi=function(){var r=l.getFolderRoot();r=v(r);g=r[0];c=r[1];1<g.length&&(a=g,p.setSelectedNode(H(g)),m=p);1<c.length&&(a=c,k.setSelectedNode(H(c)),m=k);r=$("<div>");var F=$("<div>");F.appendTo(r);q(F);u=$("<div>");var w=$("<div>");w.addClass("import-square-second-nodata-img");ca.background(w,"nodata");w.appendTo(u);D=$("<div>");D.appendTo(u);D.addClass("import-square-second-nodata-text");N.layoutCtrlWithLRTB(F,
18,0,null,0,null,23);t=$("<div>");t.addClass("import-square-second-step");f=new sa;f.setSelectedModel(m);f.createJqUi(a).appendTo(t);t.appendTo(r);N.layoutCtrlWithLRTB(t,18,18,null,33,0,null);return r};this.intoThisStep=function(r,F){};this.outThisStep=function(r,F){throw Error("overwrite me!");};var H=function(r){for(var F,w=0;w<r.length;w++)if(0==r[w].getChildren().length){F=r[w];break}return F},q=function(r){var F=$("<div>");F.addClass("import-square-second-searchBar");d=new Ba;d.setShowSearchIcon(!0);
d.setPlaceholder(h.getSearchPlaceHolder);d.setSearchListenerDelay(800);d.addSearchListener(B);var w=d.getJqUi();N.layoutCtrlWithLRTB(w,0,null,200,0,null,25);w.appendTo(F);if(0<g.length){w=!1;for(var U=0;U<g.length;U++)if(g[U].getExtRptType()){w=!0;break}w=w?[new L(e.get("myExtReport","\u6211\u7684\u62a5\u8868"),!1),new L(e.get("presetExtReport","\u9884\u7f6e\u62a5\u8868"),!0)]:[new L(e.get("myTheme","\u6211\u7684\u4e3b\u9898"),!1),new L(e.get("presetTheme","\u9884\u7f6e\u4e3b\u9898"),!0)];b=new da;
b.setItemModels(w);b.setSelected(0<c.length?w[0]:w[1]);b.setCustomPainter(function(S,T,ia){T.text(ia.getThemeCategoryName())});b.addSelectedChangedListener(function(S,T,ia){B()});w=b.getJqUi();w.addClass("import-square-second-ComboBox");w.appendTo(r)}F.appendTo(r)},v=function(r){var F=[],w=[];if(r=r.getChildren())for(var U=0;U<r.length;U++){var S=r[U];if(0==S.getChildren().length)S.isPreset()?F.push(S):w.push(S);else{var T=v(S);0<T[0].length&&(T[0].unshift(S),F=F.concat(T[0]));0<T[1].length&&(T[1].unshift(S),
w=w.concat(T[1]))}}return[F,w]},B=function(){a=c;m=k;b&&b.getSelected().isPreset()&&(a=g,m=p);var r=d.getText();if(r){var F=a,w=new Aa,U=[],S;for(S in F)0==F[S].getSubNodeLevel()&&U.push(F[S]);w.setChildren(U);r=r.trim();a=G(w,r.toUpperCase())}t.empty();0<a.length?(f.setSelectedModel(m),r=f.createJqUi(a,r),t.append(r)):(F=h.getNoDataText(),r&&(F=e.get("noSearchMessageNotice","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")),D.text(F),t.append(u))},G=function(r,F){var w=[];if(r=
r.getChildren())for(var U=0;U<r.length;U++){var S=r[U];if(0==S.getChildren().length)-1<S.getName().toUpperCase().indexOf(F)&&w.push(S);else{var T=G(S,F);0<T.length&&-1==T.indexOf(S)&&(T.unshift(S),w=w.concat(T))}}return w};this.protectedMethod.getStepContentInfo=function(){return l};this.protectedMethod.getSelectedModel=function(){return m}}function L(h,f){this.getThemeCategoryName=function(){return h};this.isPreset=function(){return f}}function I(){y.call(this);var h=this,f=this.protectedMethod,
l,g,c,a,d=!0,b,p=new E;this.setIsSquare=function(k){d=k};this.over=function(k){if(k){k=c?!1:!0;var m=a.getAllStepOverCallback();m&&m(g,l,k,c)}};this.setCustomRefrenceHandler=function(k){b=k};this.setStepContentInfo=function(k){a=k;p.setBaseOnTheme(!0);p.setStepContentInfo(k)};this.isLastStep=function(){return!0};this.getSubTitle=function(){return e.get("chooseSchema","\u9009\u62e9\u65b9\u6848")};this.protectedCreateUi=function(){var k=d?e.get("establishNewSquare","\u65b0\u5efa\u6570\u636e\u6597\u65b9"):
e.get("establishNewLonger","\u65b0\u5efa\u6570\u636e\u5206\u6790");return p.createJqUi(k)};this.intoThisStep=function(k,m){};this.outThisStep=function(k,m){if(k)m();else{var t=a.getSchema();if(0!=t.length||!p.isLoadingChecked()){k=a.getId();var u=a.getDsbRemoteImpl();u=new ba(u,function(D){g=D.ref;b&&b(g);c=D.model;m();Z.occur(d?Z.DSB_IMPORT_SQUARE_TYPE:Z.DSB_IMPORT_LONGER_TYPE,g.refType)},function(D,H){D=D.toString();return"9"==D.substr(0,1)&&6==D.length?(f.getMessageCurtain().showError(e.get("failToGetSchema",
"\u83b7\u53d6\u65b9\u6848\u5931\u8d25\u3002")),!0):!1});h.setBaseOnExistingTheme(!0);p.isLoadingChecked()&&0<t.length?(t=p.getSelectedSchema(),l=t.getSchemaName(),t=t.getSchemaId(),u.getSubjectReferenceMap(k,t)):u.getSubjectReferenceMap(k)}}}}function E(){var h=new z,f=new z,l,g,c,a,d;this.setBaseOnTheme=function(q){d=q};this.setPublishId=function(q){a=q};this.setStepContentInfo=function(q){l=q};this.createJqUi=function(q){var v=$("<div>");h.setText(e.get("loadSchema","\u52a0\u8f7d\u65b9\u6848"));
var B=h.getJqUi();f.setText(q);q=f.getJqUi();var G=new La,r=new W;r.addElement(h);r.addElement(f);r.addChangedListener(function(){h.isChecked()?G.setEnabled(!0):G.setEnabled(!1)});r=l.getSchema();0<r.length?(G.setEnabled(!0),h.setChecked(!0),f.setChecked(!1),g=H(r),c=p(g),G.setSelectedModel(c)):(G.setEnabled(!1),h.setEnabled(!1),h.setChecked(!1),f.setChecked(!0));r=G.getJqUi();var F=new ea;F.setItemModel(g);F.setListItemPainter(k);F.setSearchListener(u);G.setDropdownCreator(function(w,U,S){return F.createJqPopup(w,
U,S)});G.setCustomPainter(function(w,U){if(w)if(d)U.text(w.getSchemaName());else{var S=l.getDsbRemoteImpl();(new ba(S,function(T){T.publishInfoPerCheck==E.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?U.text(w.getSchemaName()):T.publishInfoPerCheck==E.PUBLISHINFO_NOEXIST?b($(document.body),"msg-warning",e.get("publishInfoExist","\u8be5\u7ec4\u4ef6\u6765\u6e90\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):T.publishInfoPerCheck==E.PERMISSION_CANCEL?b($(document.body),"msg-jurisdiction",e.get("notAuthority",
"\u60a8\u6ca1\u6709\u8be5\u7ec4\u4ef6\u6765\u6e90\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+T.publishInfoUserName+'"'+e.get("authority","\u6388\u6743")):T.publishInfoPerCheck==E.PUBLSIHPLAN_DELETE&&b($(document.body),"msg-warning",e.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))})).checkPublishInfoAndPermission(a,w.toJsonObject())}});G.addSelectionListener(function(w,U){U&&(c=w.getSelectedModel())});N.layoutCtrl(B,
24,0,400,23);N.layoutCtrl(r,44,29,170,23);N.layoutCtrl(q,24,58,400,23);B.appendTo(v);r.appendTo(v);q.appendTo(v);return v};var b=function(q,v,B){q=new ha;q.setOptionType(ha.OPTION_OK);q.setButtonText(ha.RETURN_OK,e.get("ISee","\u6211\u77e5\u9053\u4e86"));var G={};G.text=B;G.iconName=v;q.setMessage(G);q.setCustomPainter(function(r,F){var w=$("<div>");w.addClass("sa-ctrl-msgdlg-icon");ca.background(w,F.iconName);var U=$("<div>");U.addClass("sa-ctrl-msgdlg-content");U.text(F.text);r.append(w);r.append(U)});
q.showDialog(380,280)},p=function(q){for(var v=0;v<q.length;v++)if(q[v].IsDefault())return q[v];return q[0]};this.isLoadingChecked=function(){return h.isChecked()};this.getSelectedSchema=function(){return c};var k=function(q,v,B){var G=!1,r=!1;v.empty();for(var F=0;F<q.length;F++){var w=q[F];if(w.getSchemaType()==xa.SCHEMATYPE_SYSTEM){if(0==G){G=!0;var U=$("<div>");U.addClass("import-schema-manage-list-item-container");var S=$("<div>");S.addClass("import-schema-manage-list-nodeline-head");ca.background(S,
"tree-expanded_hover");S.on("click",m);S.on("mouseover",function(Ga){ca.background(S,"tree-expanded")});S.on("mouseout",function(Ga){ca.background(S,"tree-expanded_hover")});var T=$("<div>");T.addClass("import-schema-manage-item-system-icon");ca.background(T,"icon_system");var ia=$("<div>");ia.addClass("import-schema-manage-item-text");ia.text(e.get("systemSchema","\u7cfb\u7edf\u65b9\u6848"));var aa=$("<div>");aa.addClass("import-schema-manage-list-title-item");S.appendTo(aa);T.appendTo(aa);ia.appendTo(aa);
aa.appendTo(U)}t(w,U,B)}else if(w.getSchemaType()==xa.SCHEMATYPE_USERDEFINED){if(0==r){r=!0;var ta=$("<div>");ta.addClass("import-schema-manage-list-item-container");var ka=$("<div>");ka.addClass("import-schema-manage-list-nodeline-head");ca.background(ka,"tree-expanded_hover");ka.on("click",m);ka.on("mouseover",function(Ga){ca.background(ka,"tree-expanded")});ka.on("mouseout",function(Ga){ca.background(ka,"tree-expanded_hover")});T=$("<div>");T.addClass("import-schema-manage-item-user-icon");ca.background(T,
"icon_user");ia=$("<div>");ia.addClass("import-schema-manage-item-text");ia.text(e.get("userSchema","\u7528\u6237\u65b9\u6848"));var ua=$("<div>");ua.addClass("import-schema-manage-list-title-item");ka.appendTo(ua);T.appendTo(ua);ia.appendTo(ua);ua.appendTo(ta)}t(w,ta,B)}}!G&&r&&l.getImportSourceIsPublish()?(ta.appendTo(v),$(".import-schema-list-item-enable").css("padding-left","21px")):G&&r?(U.appendTo(v),ta.appendTo(v),$(".import-schema-list-item-enable").css("padding-left","21px")):G&&!r?(U.appendTo(v),
$(".import-schema-list-item-enable").css("padding-left","21px")):G||!r||l.getImportSourceIsPublish()||(ua.remove(),ta.appendTo(v))},m=function(q){var v=$(q.target);v.off("mouseover");v.off("mouseout");q=v.parents(".import-schema-manage-list-title-item").siblings(".import-schema-list-item");"block"==q.css("display")?(q.css("display","none"),ca.background(v,"tree-collapsed"),v.on("mouseover",function(B){ca.background(v,"tree-collapsed")}),v.on("mouseout",function(B){ca.background(v,"tree-collapsed_hover")})):
(q.css("display","block"),ca.background(v,"tree-expanded"),v.on("mouseover",function(B){ca.background(v,"tree-expanded")}),v.on("mouseout",function(B){ca.background(v,"tree-expanded_hover")}))},t=function(q,v,B){var G=q.getSchemaName(),r=$("<div>");r.addClass("import-schema-list-item");r.addClass("import-schema-list-item-enable");r.data("model",q);r.attr("title",G);var F=$("<span>");F.text(G);F.attr("title",G);F.addClass("import-schema-list-item-text");r.append(F);v.append(r);B&&B.getSchemaName()==
q.getSchemaName()&&B.getSchemaType()==q.getSchemaType()&&D(v,r)},u=function(q,v,B,G,r){v=v.trim().toUpperCase();var F=[];if(v)for(var w=0;w<q.length;w++)-1<q[w].getSchemaName().toUpperCase().indexOf(v)&&F.push(q[w]);else F=q;B.children().remove();0<F.length?r(F,B,G):(q=new Ea,q.setText(e.get("nothingSearched","\u627e\u4e0d\u5230\u7b26\u5408\u7684\u7ed3\u679c")),q.setAlign(Ea.ALIGN_CENTER),q.setEnabled(!1),q=q.getJqUi(),q.addClass("import-schema-search-result"),q.appendTo(B))},D=function(q,v){var B=
null;0<q.height()?(clearTimeout(B),v.addClass("import-schema-list-item_selected_enabled"),q.prop("scrollTop",v.prop("offsetTop"))):B=setTimeout(function(){D(q,v)},0)},H=function(q){for(var v=[],B=0;B<q.length;B++){var G=new xa;G.fromJsonObject(q[B]);v.push(G)}return v}}function ea(){var h=[],f,l,g,c;this.setItemModel=function(a){h=a};this.setSearchListener=function(a){f=a};this.setListItemPainter=function(a){l=a};this.createJqPopup=function(a,d,b){g=$("<div>");g.appendTo(a);g.addClass("import-schema");
c=$("<div>");a=e.get("searchName","\u641c\u7d22\u65b9\u6848\u540d\u79f0");var p=new Ba;p.setSearchListenerDelay(500);p.setPlaceholder(a);p.addSearchListener(function(){f(h,p.getText(),c,d,l)});a=p.getJqUi();a.addClass("import-schema-search");a.appendTo(g);c.addClass("import-schema-list-owner");c.on("click",function(k){var m=$(k.currentTarget);k=$(k.target);if(k=N.upwardSearchHasClass(k,m,"import-schema-list-item"))k.addClass("import-schema-list-item_selected_enabled"),m=k.data("model"),b(m)});c.appendTo(g);
a=g.find(".sa-ctrl-textfield-input");a.css("top","0px");a.css("height","100%");l(h,c,d);return[170,227]}}function sa(){function h(d){KTDefaultCellRender.call(this,d);var b=this;this.paintCellUI=function(m,t){var u=b.getCell().getValue();u=p(u);t?(m=$(t),u.appendTo(m)):(m=$(m),u.appendTo(m))};var p=function(m){m=b.getCell().getValue();var t=$("<div>");if(m.getChildren()&&0<m.getChildren().length){var u=$("<div>");u.addClass("theme-group-node");u.text(m.getName());if(m.isPreset()){var D=$("<span>");
D.text(e.get("preset","\u9884\u7f6e"));D.addClass("dsb-integration-import-longer-from-suject-preset-tag");u.append(D)}}else{D=new z;u=D.getJqUi();D.addCheckedListener(function(q,v){v&&f.setSelectedNode(m)});if(g&&0<g.length){var H=u.find(".sa-ctrl-common-foreground_enabled");k(H,m.getName(),g)}else D.setText(m.getName());H=f.getSelectedNode();a(H,m)?D.setChecked(!0):D.setChecked(!1)}t.append(u);return t},k=function(m,t,u){if(m&&t&&u){u=u.toUpperCase();var D=t.toUpperCase(),H=D.split(u),q=u.length,
v;for(v in H){var B=D.indexOf(H[v]),G=t.substr(0,H[v].length);B+=H[v].length;var r=D.length-B;D=D.substr(B,r);t=t.substr(B,r);B=$("<span>");B.text(G);B.appendTo(m);v!=H.length-1&&1<H.length&&(B=D.indexOf(u),G=t.substr(B,q),B+=q,r=D.length-B,D=D.substr(B,r),t=t.substr(B,r),B=$("<span>"),B.text(G),B.css("color","red"),B.clone().appendTo(m))}}}}var f,l,g;this.setSelectedModel=function(d){f=d};this.getId=function(){return f.getId()};this.createJqUi=function(d,b){g=b;var p=c(d);f.setPathChangeListener(function(){p.updateUI()});
p.updateUI();return $(p.getUI())};var c=function(d){var b=new KTable;l=new h(b);b.setCellRender(l);b.setSyncUIWhenModelChanged(!1);b.addColumn().setWidth(400);for(var p=0;p<d.length;p++){var k=d[p],m=b.addRow();m.setHeight(23);m=m.getCell(0);m.setValue(k);k=k.getSubNodeLevel();k=new KTCellTreeModel(k);m.setTreeModel(k)}return b},a=function(d,b){return d&&b.getParentNode().getName()==d.getParentNode().getName()?b.getId()==d.getId()?!0:!1:!1}}function Da(){var h,f;this.setSelectedNode=function(l){h=
l;f&&f()};this.setPathChangeListener=function(l){f=l};this.getSelectedNode=function(){return h};this.getId=function(){return h.getId()}}function Aa(){var h=this,f,l,g,c=!1,a,d=[];this.setName=function(b){f=b};this.getName=function(){return f};this.setId=function(b){l=b};this.getId=function(){return l};this.setIsPreset=function(b){g=b};this.isPreset=function(){return g};this.setExtRptType=function(b){c=0==b?!0:!1};this.getExtRptType=function(){return c};this.setParentNode=function(b){a=b};this.getParentNode=
function(){return a};this.setChildren=function(b){d=b};this.getChildren=function(){return d};this.getSubNodeLevel=function(){for(var b=-1,p=a;p;)b++,p=p.getParentNode();return b};this.toJsonObject=function(){var b={};b.children=d;return b};this.fromJsonObject=function(b){h.setName(b.name);b.themeId&&h.setId(b.themeId);b.id&&h.setId(b.id);b.extRptType&&h.setExtRptType(b.extRptType);h.setIsPreset(b.isPreset);if(b=b.children)for(var p=0;p<b.length;p++){var k=b[p];if(k){var m=new Aa;m.fromJsonObject(k);
m.setParentNode(h);d.push(m)}}}}function xa(){var h,f,l,g,c;this.setSchemaId=function(a){};this.getSchemaId=function(){return h};this.setSchemaName=function(a){f=a};this.getSchemaName=function(){return f};this.setSchemaType=function(a){l=a};this.getSchemaType=function(){return l};this.setIsDefault=function(a){g=a};this.IsDefault=function(){return g};this.fromJsonObject=function(a){h=a.fId;f=a.schemaName;l=a.schemaType;g=a.isDefault;c=a.source};this.toJsonObject=function(){var a={};a.fId=h;a.schemaName=
f;a.schemaType=l;a.isDefault=g;a.source=c;return a}}function Ha(h){P.call(this);this.protectedInitUi=function(){var f=new z;f.setText(e.get("fromQingcenter","\u4ece\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939\u5f15\u5165"));return f};this.doNext=function(f,l,g){var c=f.getDsbRemoteImpl();c=new ba(c,function(a){var d=a.qingCenterGroup;a=a.publish;if(0==d.length)return l.showPrompt(e.get("noPublish","\u6682\u65e0\u53d1\u5e03\u3002")),!0;for(var b=!1,p=!0,k=0;k<a.length;k++)a[k].qingCenterMenuVO.isPreset?
b=!0:p=!1;switch(h){case y.LONGER_TYPE:k=new Ma;break;case y.EXTREPORT_TYPE:k=new com.kingdee.bos.qing.dashboard.qingreport.ImportExtreportFromQingcenterSecondStep;break;default:throw Error("do not support this type!");}for(var m=[],t=0;t<d.length;t++){var u=new com.kingdee.bos.qing.publish.model.FolderNode;u.fromJsonObject(d[t]);m.push(u)}k.showPresetFilter(b,p);k.setQingcenterPublish(a);k.setRootTreeList(m);k.setStepContentInfo(f);g([k]);k.refreshTable()},function(a,d){a=a.toString();return"9"==
a.substr(0,1)&&6==a.length?(l.showError(e.get("failToGetQingcenterCatagory","\u83b7\u53d6\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939\u5206\u7c7b\u5931\u8d25\u3002")),!0):!1});h==y.LONGER_TYPE&&c.loadQingcenterGroup();h==y.EXTREPORT_TYPE&&c.loadAnalysisCenterExtreportGroup()}}function Ca(h){y.call(this);var f=this,l=this.protectedMethod,g,c;this.setStepContentInfo=function(d){g=d;c=f.protectedInitImportTypes()};this.addExtImportType=function(d){c.push(d)};this.over=function(d){d||(d=g.getAllStepOverCallback())&&
d(null,null,!1,null)};this.getSubTitle=function(){return e.get("selectSourceType","\u9009\u62e9\u5f15\u7528\u7c7b\u578b")};this.protectedGetSourceTypeText=function(){throw Error("overWrite me!");};this.protectedParseSourceType=function(d,b,p){throw Error("overWrite me!");};this.protectedInitImportTypes=function(d){throw Error("Implement me!");};this.protectedCreateUi=function(){var d=$("<div>");d.css("color","#666");if(h){var b=$("<div>");b.text(f.protectedGetSourceTypeText());var p=$("<div>");N.layoutCtrl(p,
14,27,648,16);f.protectedParseSourceType(h,p,g);var k=$("<div>");N.layoutCtrl(k,null,54,648,16);k.text(e.get("editSourceType","\u4fee\u6539\u6765\u6e90\uff1a"));var m=a();N.layoutCtrl(m,14,81,634,290);d.append(b);d.append(p);d.append(k)}else m=a();d.append(m);return d};var a=function(){for(var d=new W,b=-30,p=$("<div>"),k=!1,m=0;m<c.length;m++){var t=c[m].getRatioBtn();!k&&t.isEnabled()&&(t.setChecked(!0),k=!0);var u=t.getJqUi();d.addElement(t);b+=30;N.layoutCtrl(u,0,b,400,20);p.append(u)}return p};
this.intoThisStep=function(d,b){};this.outThisStep=function(d,b){if(!d)for(d=0;d<c.length;d++){var p=c[d];if(p.isSelected()){p.doNext(g,l.getMessageCurtain(),b);break}}}}function Na(h){Ca.call(this,h);this.protectedInitImportTypes=function(){return[new O(y.LONGER_TYPE),new Ha(y.LONGER_TYPE)]};this.protectedGetSourceTypeText=function(){return e.get("currentLongerSource","\u5f53\u524d\u6570\u636e\u5206\u6790\u6765\u6e90\u4e8e\uff1a")};this.protectedParseSourceType=function(f,l,g){var c=f.refType,a=
null,d=$("<div>");d.addClass("dsb-ref-item-btn-path-tag");l.append(d);"subject"==c?a=e.get("subject","\u4e1a\u52a1\u4e3b\u9898\uff1a"):c&&0==c.indexOf("appmenu")?(a=e.get("appmenu","\u5e94\u7528\u83dc\u5355\uff1a"),g.setImportSourceIsPublish(!0)):c&&0==c.indexOf("qingcenter")?(a=e.get("qingcenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939\uff1a"),g.setImportSourceIsPublish(!0)):"guimenu"==c&&(a=e.get("guimenu","\u5ba2\u6237\u7aef\u5e94\u7528\u83dc\u5355\uff1a"));null!=a?("true"==f.isPreset&&
(g=$("<div>"),g.text(e.get("preset","\u9884\u7f6e")),g.addClass("dsb-ref-item-btn-path-tag"),g.addClass("dsb-ref-item-btn-preset-tag"),l.append(g)),g=$("<div>"),g.addClass("dsb-ref-item-btn-path-tag"),l.append(g),f.widgetSourcePath?g.text(f.widgetSourcePath):g.text(e.get("noSource","\u6765\u6e90\u5df2\u88ab\u5220\u9664"))):a=e.get("unsupportedDsbRefSource","\u5f53\u524d\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u7ec4\u4ef6\u6765\u6e90");d.text(a);return a}}function Ia(){function h(n){KTDefaultCellRender.call(this,
n);var A=this,C=this.paintCellUI;this.paintCellUI=function(J,M){A.getCurrentRowIdx();var la=A.getCurrentRow(),va=A.getCurrentColIdx();if(A.getCurrentRowIdx()<ja.getHeadRowCount()||1==va||2==va)C(J,M);else if(0==va){la=la.getUserObject();va=new z;ta.addElement(va);q.getQingCenterMenuVO().id==la.getQingCenterMenuVO().id&&(va.setChecked(!0),H=va);var pa=la.getQingCenterMenuVO().name;M=$("<div class='qingcenter-publish-item-btn-name'>");if(b)if(b&&pa){var Pa=b.toUpperCase(),wa=pa.toUpperCase(),Fa=wa.split(Pa),
Sa=Pa.length;for(ma in Fa){var fa=wa.indexOf(Fa[ma]),Ra=pa.substr(Qa,Fa[ma].length);fa+=Fa[ma].length;var Ja=wa.length-fa;wa=wa.substr(fa,Ja);pa=pa.substr(fa,Ja);fa=$("<span>");fa.text(Ra);fa.appendTo(M);if(ma!=Fa.length-1&&1<Fa.length){var Qa=wa.indexOf(Pa);Ra=pa.substr(Qa,Sa);fa=Qa+Sa;Ja=wa.length-fa;wa=wa.substr(fa,Ja);pa=pa.substr(fa,Ja);fa=$("<span>");fa.text(Ra);fa.css("color","red");fa.clone().appendTo(M)}}}else M.text(pa);else M.text(pa);va.setUserObject(la);var ma=va.getJqUi();ma.addClass("qingcenter-publish-item-btn");
ma.appendTo(J);la.getQingCenterMenuVO().isPreset&&(ma=$("<div>"),ma.text(e.get("preset","\u9884\u7f6e")),ma.addClass("qingcenter-publish-item-btn-preset-tag"),ma.appendTo(J));M.appendTo(J)}}}y.call(this);var f=com.kingdee.bos.qing.publish.common.FilterModelType,l=com.kingdee.bos.qing.publish.common.CardFilterType,g=this,c=this.protectedMethod,a,d,b="",p,k,m,t,u=[],D,H,q,v,B={},G,r,F,w=!1,U={},S={},T=[void 0,void 0],ia=[new l(e.get("myLonger","\u6211\u7684\u5206\u6790"),!1),new l(e.get("presetLonger",
"\u9884\u7f6e\u5206\u6790"),!0)],aa,ta=new W;ta.addChangedListener(function(n,A){H=n;q=H.getUserObject()?H.getUserObject():q});var ka=new K;ka.setFormatString("yyyy-MM-dd HH:mm:ss");this.isLastStep=function(){return!1};this.setRootTreeList=function(n){t=n;for(n=0;n<t.length;n++)Ta(u,t[n]);for(n=0;n<u.length;n++){var A=u[n];if(!A.getRelationId()){var C=A.setRelationId,J=u[n],M="";M=J.getCenterId1()?M+J.getCenterId1():M;M=J.getCenterId2()?M+J.getCenterId2():M;M=J.getCenterId3()?M+J.getCenterId3():M;
M=J.getCenterId4()?M+J.getCenterId4():M;C.call(A,M)}}for(n=0;n<u.length;n++)if(A=u[n],C=A.getRelationId(),C=B[C])for(J=0;J<C.length;J++){if(C[J].qingCenterMenuVO.isPreset)for(M=A,U[M.getRelationId()]=!0;M.getParentNode();)M=M.getParentNode(),U[M.getRelationId()]=!0;if(!C[J].qingCenterMenuVO.isPreset)for(M=A,S[M.getRelationId()]=!0;M.getParentNode();)M=M.getParentNode(),S[M.getRelationId()]=!0}ua()};var ua=function(){for(var n=0;n<u.length;n++)u[n].setIsShow(!1);if(w)for(n=0;n<u.length;n++)U[u[n].getRelationId()]&&
u[n].setIsShow(!0),u[n].setIsPreset(w);else for(n=0;n<u.length;n++)S[u[n].getRelationId()]&&u[n].setIsShow(!0),u[n].setIsPreset(w)};this.setStepContentInfo=function(n){a=n};this.setQingcenterPublish=function(n){D=n;if(!(B&&0<B.length)&&D&&0!=D.length)for(var A in D){n=D[A];var C=n.qingCenterMenuVO.parentId,J=B[C];J||(J=[],B[C]=J);J.push(n)}q=new ya;q.fromJsonObject(D[0])};this.refreshTable=function(){G&&ja.refresh(G)};this.getSubTitle=function(){return e.get("selectQingcenterPublish","\u9009\u62e9\u6570\u636e\u5de5\u4f5c\u53f0\u83dc\u5355")};
this.showPresetFilter=function(n,A){F=n;A&&ia.reverse();w=A};this.protectedCreateUi=function(){G=ja.createTable();ja.bindTableListenerForCtrl(G);var n=new h(G);n.setOutsideVisible(!1);G.setCellRender(n);G.addColumns(3);G.getColumn(0).setWidth(220);G.getColumn(1).setWidth(90);G.getColumn(2).setWidth(150);n=ja.createHeadRow(G);n.getCell(0).setValue(e.get("publishName","\u53d1\u5e03\u540d\u79f0"));n.getCell(1).setValue(e.get("publishPerson","\u53d1\u5e03\u4eba"));n.getCell(2).setValue(e.get("publishTime",
"\u53d1\u5e03\u65f6\u95f4"));var A=$(G.getUI());A.addClass("qingcenter-publish-table");n=$("<div>");var C=$("<div>");C.css({position:"absolute",height:"82%",width:"100%",top:"33px"});m=$("<div>");m.text(e.get("noSearchMessageNotice","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c"));N.layoutCtrlCenterAlign(m,500);m.css({height:"20px","line-height":"20px","text-align":"center","font-size":"16px",color:"#BBBBBB",top:"50%","margin-top":"98.5px"});m.appendTo(C);var J=$("<div>");ca.background(J,
"nodata");N.layoutCtrlCenterAlign(J,187);J.css({"background-size":"contain",top:"50%",height:"187px","margin-top":"-113.5px"});J.appendTo(C);v=C.hide();n.append(v);n.append(A);aa=new com.kingdee.bos.qing.publish.common.TreeListMenuPanel;aa.setTreeSelectorModel(u);aa.setSelectedDirNameListener(Ya);aa.setManagerDir(!1);A=aa.getJqUi();A.css("width","100%");C=new qa;C.setHorizontalSplit(!0);C.setResizeMode(qa.RESIZE_MODE_FIRST_FIXED);C.setSplitLineWide(10);C.setFirstSize(190,-1,-1);C.setSecondSize(436,
-1,-1);C.setFirstChild(qa.createChildWrapper(A));C.setSecondChild(qa.createChildWrapper(n));n=C.getJqUi();n.addClass("import-longer-from-qingcenter");A=$("<div>");C=Ga;J=new f;J.setSearchType(ia);J.setSelectedChangedListener(C);r=J.getJqUi();r.css({top:"-4px",left:"6px"});r.appendTo(A);!F&&r.hide();p=new Ba;p.addSearchListener(Ua);p.setSearchListenerDelay(100);p.setPlaceholder(e.get("enterSearchName","\u641c\u7d22\u53d1\u5e03\u540d\u79f0"));p.setShowSearchIcon(!0);C=p.getJqUi();C.addClass("import-longer-from-qingcenter-search-box");
C.appendTo(A);C=$("<div>");C.append(A);C.append(n);return C};var Ga=function(n,A,C){w=C.getTypeId();ua();w?(T[1]=aa.getDefaultItemValue(),T[0]||(T[0]=Va()),aa.setDefaultItemValue(T[0])):(T[0]=aa.getDefaultItemValue(),T[1]||(T[1]=Va()),aa.setDefaultItemValue(T[1]));aa.loadTreeListNodeModelExposer(u);Ua()},Va=function(){for(var n=0;n<u.length;n++){var A=u[n],C=B[A.getRelationId()],J;if(J=A.getIsShow()&&C)a:{for(J=0;J<C.length;J++)if(C[J].qingCenterMenuVO.isPreset==w){J=!0;break a}J=!1}if(J)return A.getRelationId()}},
Ta=function(n,A){if(A instanceof com.kingdee.bos.qing.publish.model.FolderNode&&-1==n.indexOf(A)&&(n.push(A),A=A.getChildren()))for(var C=0;C<A.length;C++)Ta(n,A[C])},Ua=function(){b=p.getText().trim();if(0<b.length){k={};for(var n=0;n<u.length;n++){var A=u[n],C=Wa(A);k[A.getRelationId()]=C.length}aa.setSearchStatus(!0);d&&aa.setDefaultItemValue(d.getRelationId());aa.updateTreeSearchUI(u,k)}else aa.setSearchStatus(!1),d&&aa.setDefaultItemValue(d.getRelationId()),aa.setTreeSelectorModel(u),aa.initDirOperatorUi()},
Wa=function(n){n=Xa(n);if(!b)return n;var A=[];if(0<n.length)for(var C=0;C<n.length;C++){var J=n[C];-1<J.qingCenterMenuVO.name.toUpperCase().indexOf(b.toUpperCase())&&A.push(J)}return A},Ya=function(n,A){ja.clearWithoutHead(G);if(A){d=A;n=b?Wa(A):Xa(A);A=$(G.getUI());v.show();A.hide();b?m.text(e.get("noSearchMessageNotice","\u6ca1\u6709\u7b26\u5408\u641c\u7d22\u6761\u4ef6\u7684\u7ed3\u679c")):m.text(e.get("noPublishRecords","\u6682\u65e0\u8bb0\u5f55"));for(var C=0,J=0;J<n.length;J++){C++;var M=new ya;
M.fromJsonObject(n[J]);0===J&&(q=M);var la=ja.createRow(G);la.setUserObject(M);la.getCell(0).setValue(M.getQingCenterMenuVO().name);la.getCell(1).setValue(M.getPublishPersonName());M=Number(M.getQingCenterMenuVO().publishTime);la.getCell(2).setValue(ka.format(M))}0<C&&(v.hide(),A.show())}ja.refresh(G)},Xa=function(n){n=n.getRelationId();if(n=B[n]){for(var A=[],C=0;C<n.length;C++)n[C].qingCenterMenuVO.isPreset==w&&A.push(n[C]);n=A}else n=[];return n};this.intoThisStep=function(n,A){};this.outThisStep=
function(n,A){if(n)A();else{if(null==H)return c.getMessageCurtain().showPrompt(e.get("choosePublish","\u8bf7\u9009\u62e9\u53d1\u5e03\u3002")),!0;n=H.getUserObject().getQingCenterMenuVO();g.protectedDoNext(n,a,A)}};this.protectedDoNext=function(n,A,C){throw Error("overwrite me!");};this.protectedMethod.getStepContentInfo=function(){return a}}function Ma(){Ia.call(this);var h=this.protectedMethod;this.protectedDoNext=function(f,l,g){var c=f.id;f=l.getDsbRemoteImpl();(new ba(f,function(a){if(a.noModeling)h.getMessageCurtain().showPrompt(e.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(a.noTheme)h.getMessageCurtain().showPrompt(e.get("publishOfSubjectBeDeleted","\u8be5\u53d1\u5e03\u5bf9\u5e94\u7684\u4e3b\u9898\u5df2\u88ab\u5220\u9664\uff0c\u65e0\u6cd5\u4f7f\u7528\u3002"));else{var d=new Ka;d.setPublishType("qingcenter_qing");d.setPublishId(c);l.setSchema(a);l.setImportSourceIsPublish(!0);d.setStepContentInfo(l);g([d])}},function(a,d){a=
a.toString();return"9"==a.substr(0,1)&&6==a.length?(h.getMessageCurtain().showError(e.get("failToGetPublishSchemaList","\u83b7\u53d6\u53d1\u5e03\u65b9\u6848\u5217\u8868\u5931\u8d25\u3002")),!0):!1})).getPublishSchema(c)}}function Ka(){y.call(this);var h=this,f=this.protectedMethod,l,g,c,a,d,b,p;this.over=function(k){if(k){k=a?!1:!0;var m=l.getAllStepOverCallback();m&&m(g,c,k,a,d);g&&Z.occur(Z.DSB_IMPORT_LONGER_TYPE,Z.getImportType(g.refType))}};this.setPublishType=function(k){p=k};this.setPublishId=
function(k){b=k};this.isLastStep=function(){return!0};this.setStepContentInfo=function(k){l=k};this.getSubTitle=function(){return e.get("chooseSchema","\u9009\u62e9\u65b9\u6848")};this.protectedCreateUi=function(){var k=e.get("establishNewLonger","\u65b0\u5efa\u6570\u636e\u5206\u6790");_oSchemaSelectPanel=new E;_oSchemaSelectPanel.setStepContentInfo(l);_oSchemaSelectPanel.setPublishId(b);return _oSchemaSelectPanel.createJqUi(k)};this.intoThisStep=function(k,m){};this.outThisStep=function(k,m){if(k)m();
else if(0!=l.getSchema().length||!_oSchemaSelectPanel.isLoadingChecked()){var t=function(H,q,v){H=new ha;H.setOptionType(ha.OPTION_OK);H.setButtonText(ha.RETURN_OK,e.get("ISee","\u6211\u77e5\u9053\u4e86"));var B={};B.text=v;B.iconName=q;H.setMessage(B);H.setCustomPainter(function(G,r){var F=$("<div>");F.addClass("sa-ctrl-msgdlg-icon");ca.background(F,r.iconName);var w=$("<div>");w.addClass("sa-ctrl-msgdlg-content");w.text(r.text);G.append(F);G.append(w)});H.showDialog(380,280)},u=l.getDsbRemoteImpl();
k=new ba(u,function(H){g=H.ref;a=H.model;d=H.operation;h.getBaseOnExistingTheme()||(_oSchemaSelectPanel.isLoadingChecked()?(H=_oSchemaSelectPanel.getSelectedSchema())&&(new ba(u,function(q){q.publishInfoPerCheck==E.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST?m():q.publishInfoPerCheck==E.THEME_IS_DEL?t($(document.body),"msg-warning",e.get("ThemeIsDel","\u8be5\u53d1\u5e03\u8bb0\u5f55\u7684\u6765\u6e90\u88ab\u5220\u9664")):q.publishInfoPerCheck==E.PUBLISHINFO_NOEXIST?t($(document.body),"msg-warning",e.get("publishInfoExist",
"\u8be5\u7ec4\u4ef6\u6765\u6e90\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664")):q.publishInfoPerCheck==E.PERMISSION_CANCEL?t($(document.body),"msg-jurisdiction",e.get("notAuthority","\u60a8\u6ca1\u6709\u8be5\u7ec4\u4ef6\u6765\u6e90\u7684\u67e5\u770b\u6743\u9650, \u8bf7\u8054\u7cfb\u53d1\u5e03\u4eba")+'"'+q.publishInfoUserName+'"'+e.get("authority","\u6388\u6743")):q.publishInfoPerCheck==E.PUBLSIHPLAN_DELETE&&t($(document.body),"msg-warning",e.get("publishPlanExist","\u8be5\u5206\u6790\u65b9\u6848\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664"))})).checkPublishInfoAndPermission(b,
H.toJsonObject()):m())},function(H,q){H=H.toString();return"9"==H.substr(0,1)&&6==H.length?(f.getMessageCurtain().showError(e.get("failToGetSchema","\u83b7\u53d6\u65b9\u6848\u5931\u8d25\u3002")),!0):!1});if(_oSchemaSelectPanel.isLoadingChecked()){var D=_oSchemaSelectPanel.getSelectedSchema();sSchemaId=D.getSchemaId();c=D.getSchemaName();k.getPublishReferenceMap(b,p,sSchemaId)}else k.getPublishReferenceMap(b,p)}}}function ya(){var h,f;this.getQingCenterMenuVO=function(){return h};this.setQingCenterMenuVO=
function(l){h=l};this.setPublishPersonName=function(l){f=l};this.getPublishPersonName=function(){return f};this.fromJsonObject=function(l){h=l.qingCenterMenuVO;f=l.publishPersonName}}function na(){var h,f,l,g,c,a,d;this.setImportSourceIsPublish=function(b){d=b};this.getImportSourceIsPublish=function(){return d};this.setParamPathPrefix=function(b){a=b};this.getParamPathPrefix=function(){return a};this.setAllStepOverCallback=function(b){h=b};this.getAllStepOverCallback=function(){return h};this.setFolderRoot=
function(b){f=b};this.getFolderRoot=function(){return f};this.setId=function(b){l=b};this.getId=function(){return l};this.setSchema=function(b){g=b};this.getSchema=function(){return g};this.setDsbRemoteImpl=function(b){c=b};this.getDsbRemoteImpl=function(){return c}}function ba(h,f,l,g){Q.call(this,h,f,l,g);var c=this.protectedMethod;this.loadSubjectSchemaAttrs=function(a,d){c.remote("loadSubjectSchemaAttrs",{themeId:a,source:d})};this.loadBizSchemaAttrs=function(a,d){c.remote("loadBizSchemaAttrs",
{bizTag:a,source:d})};this.getAllSubject=function(){c.remote("getAllSubject",{})};this.loadExtReportWithoutDataset=function(){c.remote("loadExtReportWithoutDataset",{requestedAppId:"qing_rpt"})};this.checkExtreportPermission=function(){c.remote("checkExtreportPermission",{})};this.getAllExtreport=function(){c.remote("getAllExtreport",{})};this.getSubjectReferenceMap=function(a,d){c.remote("getSubjectReferenceMap",{refToId:a,schemaId:d})};this.getExtreportReferenceMap=function(a){c.remote("getExtreportReferenceMap",
{refToId:a})};this.getCardReferenceMap=function(a,d){c.remote("getCardReferenceMap",{refToId:a,schemaId:d});Z.occur(Z.DSB_IMPORT_SQUARE_TYPE,Z.IMPORT_CARD)};this.getPictureReferenceMap=function(a){c.remote("getPictureReferenceMap",{refToId:a})};this.getImageSize=function(a){c.remote("getImageSize",{imageFileName:a})};this.loadQingcenterGroup=function(){c.remote("loadQingcenterGroup",{})};this.loadAnalysisCenterExtreportGroup=function(){c.remote("loadAnalysisCenterExtreportGroup",{})};this.getPublishReferenceMap=
function(a,d,b){c.remote("getPublishReferenceMap",{refToId:a,schemaId:b,publishType:d})};this.getCopyReferenceMap=function(a,d,b,p,k,m){c.remote("getCopyReferenceMap",{dsbId:a,refToId:d,refType:b,uid:p,outerRefKey:k,fileKey:m})};this.loadAnalysisCenterPublish=function(a){c.remote("loadAnalysisCenterPublish",{path:a})};this.loadAppMenuTree=function(){c.remote("loadAppMenuTree",{})};this.loadAppMenuTreeForExtreport=function(){c.remote("loadAppMenuTreeForExtreport",{})};this.loadAppmenuPublish=function(a,
d,b,p){c.remote("loadAppmenuPublish",{cloudId:a,appId:d,appMenuId:b,appMenuId2:p})};this.getPublishSchema=function(a){c.remote("getPublishSchema",{publishId:a})};this.checkPublishInfoAndPermission=function(a,d){a={publishId:a,selectModel:JSON.stringify(d)};c.remote("checkPublishInfoAndPermission",a)}}"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.dashboard&&(com.kingdee.bos.qing.dashboard={});var x=com.kingdee.bos.qing.dashboard;x.WidgetSourceSelector=function(){var h,f,l,g,c;this.setDsbRemoteImpl=function(b){h=b};this.setCustomSquareImportFuncTypes=function(b){l=b};this.setCustomLongerImportFuncTypes=function(b){g=b};this.setCustomQingReportImportFuncTypes=function(b){c=b};this.getDsbRemoteImpl=function(){return h};this.setParamPathPrefix=function(b){f=b};var a=function(b,p){if(p)for(var k=0;k<
p.length;k++)b.addExtImportType(new p[k])};this.selectSquare=function(b,p){var k=new R(b),m=new na;m.setParamPathPrefix(f);m.setAllStepOverCallback(function(t,u,D,H,q){p(t,u,D,H,q)});m.setDsbRemoteImpl(h);k.setStepContentInfo(m);a(k,l);b=b?e.get("checkSquareSource","\u6570\u636e\u6597\u65b9\u6765\u6e90"):e.get("addSquare","\u6dfb\u52a0\u6570\u636e\u6597\u65b9");m=new oa;m.setTitle(b);m.setSteps([k]);m.show(680,480)};this.copySquare=function(b,p){d(b,p,!0)};this.selectLonger=function(b,p){var k=new Na(b),
m=new na;m.setParamPathPrefix(f);m.setAllStepOverCallback(function(t,u,D,H,q){p(t,u,D,H,q)});m.setDsbRemoteImpl(h);k.setStepContentInfo(m);a(k,g);b=b?e.get("checkLongerSource","\u6570\u636e\u5206\u6790\u6765\u6e90"):e.get("addLonger","\u6dfb\u52a0\u6570\u636e\u5206\u6790");m=new oa;m.setTitle(b);m.setSteps([k]);m.show(680,480)};this.copyLonger=function(b,p){d(b,p,!1)};this.selectPicture=function(b,p){if(b){var k=b.refToId;var m=b.fullPath}var t=new com.kingdee.bos.qing.imagelib.choose.ui.ChooseImagePanel(k);
t.setFunClosedCallback(function(){p(!1)});t.setFunSelected(function(u,D){u=u.getFileName();(new ba(h,function(H){H=H.ref;H.widgetSourcePath=D;p(H)},function(H,q){return!1})).getPictureReferenceMap(u)});t.selectImage(function(){t.show()},m)};this.copyPicture=function(b,p){var k=b.refToId,m=new ba(h,function(t){t=t.ref;t.fullPath=b.fullPath;t.widgetSourcePath=b.widgetSourcePath;p(t)},function(t,u){return!1});m.setShowBlocking(!1);m.getPictureReferenceMap(k)};this.selectQingReport=function(b,p){com.kingdee.bos.qing.dashboard.qingreport&&
(b=new com.kingdee.bos.qing.dashboard.qingreport.SelectQingReport(b,p),b.setParamPathPrefix(f),b.setDsbRemoteImpl(h),b.setCustomQingReportImportFuncTypes(c),b.startSelect())};this.copyQingReport=function(b,p){var k=b.refToId,m=b.refType,t=function(D){D=D.ref;D.fullPath=b.fullPath;p(D)},u=function(D,H){return!1};m==Oa.QINGREPORT?(t=new ba(h,t,u),t.setShowBlocking(!1),t.getExtreportReferenceMap(k)):(t=new ba(h,t,u),t.setShowBlocking(!1),t.getPublishReferenceMap(k,m))};var d=function(b,p,k){k=(k=(k=
X.getUrlParamValue("dsbId"))?k:X.getUrlParamValue("publishId"))?k:X.getUrlParamValue("configId");var m=b.refToId,t=b.refType,u=b.uid,D=b.outerRefKey,H=b.fileKey,q=new ba(h,function(v){v=v.ref;v.fullPath=b.fullPath;p(v)},function(v,B){return!1});q.setShowBlocking(!1);q.getCopyReferenceMap(k,m,t,u,D,H)}};x.DsbFacade=function(h,f,l,g){ba.call(this,h,f,l,g);var c=this.protectedMethod;this.saveModel=function(a,d){c.remote("saveModel",{dsbId:a,model:d});za.interestInBehavior(za.DSB_SAVE,1)};this.loadModel=
function(a){c.remote("loadModel",{dsbId:a})};this.squareLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};c.remote("squareLoadSchema",a)};this.squareSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("squareSaveSchema",a)};this.longerLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};c.remote("longerLoadSchema",a)};this.longerSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("longerSaveSchema",a)};this.tryAddResourceLock=
function(a,d){c.remote("tryAddResourceLock",{groupId:a,resourceId:d})};this.closeResourceLock=function(a,d){c.remote("closeResourceLock",{groupId:a,resourceId:d})}};x.CommonDsbDesignerFacade=ba;x.PublishDsbDesignerFacade=function(h,f,l,g){ba.call(this,h,f,l,g);var c=this.protectedMethod;this.saveModel=function(a,d){c.remote("saveModel",{publishId:a,model:d})};this.loadModel=function(a){c.remote("loadModel",{publishId:a})};this.squareLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};
c.remote("squareLoadSchema",a)};this.squareSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("squareSaveSchema",a)};this.longerLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};c.remote("longerLoadSchema",a)};this.longerSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("longerSaveSchema",a)};this.syncModelToDsbSource=function(a,d){c.remote("syncModelToDsbSource",{publishId:a,model:d})};this.syncModelToNewDsb=function(a,
d){a={dsbModel:a,model:JSON.stringify(d.toJsonObject())};c.remote("syncModelToNewDsb",a)};this.protectedListUnpresetThemeGroup=function(){c.remote("listUnpresetThemeGroup",{})};this.checkDsbIsOpened=function(a){c.remote("checkResourceLockStatus",{publishId:a})};this.checkPublishExist=function(a){c.remote("checkPublishExist",{publishId:a})}};x.EmailPushDsbDesignerFacade=function(h,f,l,g){ba.call(this,h,f,l,g);var c=this.protectedMethod;this.saveModel=function(a,d){c.remote("saveModel",{configId:a,
model:d})};this.loadModel=function(a){c.remote("loadModel",{configId:a})};this.squareLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};c.remote("squareLoadSchema",a)};this.squareSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("squareSaveSchema",a)};this.longerLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};c.remote("longerLoadSchema",a)};this.longerSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("longerSaveSchema",
a)};this.syncModelToDsbSource=function(a,d){c.remote("syncModelToDsbSource",{configId:a,model:d})};this.syncModelToNewDsb=function(a,d,b){a={configId:a,dsbModel:b,model:JSON.stringify(d.toJsonObject())};c.remote("syncModelToNewDsb",a)};this.protectedListUnpresetThemeGroup=function(){c.remote("listUnpresetThemeGroup",{})};this.checkDsbIsOpened=function(a){c.remote("checkResourceLockStatus",{configId:a})};this.checkEmailConfigsExist=function(a){c.remote("checkEmailConfigsExist",{configId:a})}};x.LappPushDsbDesignerFacade=
function(h,f,l,g){ba.call(this,h,f,l,g);var c=this.protectedMethod;this.saveModel=function(a,d){c.remote("saveModel",{configId:a,model:d})};this.loadModel=function(a){c.remote("loadModel",{configId:a})};this.squareLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};c.remote("squareLoadSchema",a)};this.squareSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("squareSaveSchema",a)};this.longerLoadSchema=function(a){a={ref:JSON.stringify(a),editSchema:"1"};
c.remote("longerLoadSchema",a)};this.longerSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("longerSaveSchema",a)};this.syncModelToDsbSource=function(a,d){c.remote("syncModelToDsbSource",{configId:a,model:d})};this.syncModelToNewDsb=function(a,d,b){a={configId:a,dsbModel:b,model:JSON.stringify(d.toJsonObject())};c.remote("syncModelToNewDsb",a)};this.protectedListUnpresetThemeGroup=function(){c.remote("listUnpresetThemeGroup",{})};this.checkDsbIsOpened=function(a){c.remote("checkResourceLockStatus",
{configId:a})};this.checkLappConfigExist=function(a){c.remote("checkLappConfigExist",{configId:a})}};x.RuntimeDsbFacade=function(h,f,l,g){Q.call(this,h,f,l,g);var c=this.protectedMethod;this.loadPublishedDsb=function(a){c.remote("loadPublishedDsb",{publishId:a})};this.loadPublishedDsbWithOper=function(a){c.remote("loadPublishedDsbWithOper",{timedPush:a})};this.squareLoadSchema=function(a){a={ref:JSON.stringify(a)};c.remote("squareLoadSchema",a)};this.squareSaveSchema=function(a,d){a={ref:JSON.stringify(a),
model:JSON.stringify(d)};c.remote("squareSaveSchema",a)};this.longerLoadSchema=function(a,d){a={ref:JSON.stringify(a),timedPush:d};c.remote("longerLoadSchema",a)};this.longerSaveSchema=function(a,d){a={ref:JSON.stringify(a),model:JSON.stringify(d)};c.remote("longerSaveSchema",a)};this.squareResetAndGetPubSchema=function(a){a={ref:JSON.stringify(a)};c.remote("squareResetSchema",a)};this.longerResetAndGetPubSchema=function(a){a={ref:JSON.stringify(a)};c.remote("longerResetSchema",a)};this.getImageSize=
function(a){c.remote("getImageSize",{imageFileName:a})};this.getPublishUsername=function(a){c.remote("getPublishUsername",{publishId:a})}};x.AbstractImportStep=y;x.AbstractImportUi=P;x.ImportSchemaThirdStep=I;x.ImportLongerThirdStep=Ka;x.CommonDsbDesignerFacade=ba;x.AbstractImportFirstStep=Ca;x.AbstractImportFromHomepageSecondStep=Y;x.ImportFromQingCenterFirstStep=Ha;x.ImportFromQingcenterSecondStep=Ia;x.AbstractImportStep=y;x.StepContentInfo=na;x.FolderNode=Aa;var X,N,K,e,Q,W,z,da,oa,ja,Ea,qa,Ba,
La,ra,ha,za;(function(){var h=com.kingdee.bos.qing;X=h.Seer;h=com.kingdee.bos.qing.common;N=h.DomUtil;K=h.DateFormater;h=com.kingdee.bos.qing.framework.common;e=h.MultilanguageManager.createPackageAccessor(x);Q=h.AbstractFacade;ra=h.AbstractIcons;h=com.kingdee.bos.qing.ui.component;W=h.RadioButtonGroup;z=h.RadioButton;da=h.ComboBox;oa=h.WizardDialog;Ea=h.Label;qa=h.SplitPane;Ba=h.SearchBox;La=h.DropdownSelector;ha=h.MessageDialog;h=com.kingdee.bos.qing.common.ui;ja=h.TableUtil;h=com.kingdee.bos.qing.behavior;
za=h.BehaviorManager})();var ca=new function(){ra.call(this);var h=this.protectedMethod;this.protectedInit=function(l,g){l=com.kingdee.bos.qing.dashboard.ComboIcon;if(!l)throw Error("com.kingdee.bos.qing.dashboard.ComboIcon not found.");l.define(g,"dsb-integration-sprite");g.setStartPosition(1,1);g.setGap(1);g.setIconSize(17,17);f(0,0,"icon_search");l.define(g,"nodata");g.setIconSize(220,220);f(0,0,"nodata");l.define(g,"common");g.setGap(1);g.setStartPosition(1,1);g.setIconSize(16,16);f(0,6,"tree-collapsed_hover");
f(1,6,"tree-collapsed");f(0,7,"tree-expanded_hover");f(1,7,"tree-expanded");l.define(g,"schema-manage-sprite.png");g.setIconSize(12,11);g.setStartPosition(16,2);g.setGap(2);f(0,1,"icon_user");f(0,0,"icon_system");l.define(g,"msg");g.setStartPosition(1,1);g.setGap(1);g.setIconSize(100,80);f(1,2,"msg-warning");f(2,0,"msg-jurisdiction");l.define(g,"dsb_operate");g.setStartPosition(1,12);g.setIconSize(16,16);g.setGap(1);f(0,2,"refresh");f(0,3,"filter");f(0,4,"fullscreen");f(1,4,"quitFullscreen");f(1,
0,"others")};var f=function(l,g,c){h.registIcon(l,g,c)}};y.LONGER_TYPE=0;y.SQUARE_TYPE=1;y.EXTREPORT_TYPE=2;E.THEME_IS_DEL="Theme is Delete";E.PUBLISHINFO_PERMISSION_PUBLISHPLAN_EXIST="success";E.PUBLISHINFO_NOEXIST="PublishInfo Not Exist";E.PERMISSION_CANCEL="Not Permission";E.PUBLSIHPLAN_DELETE="Publish Not Exist";xa.SCHEMATYPE_USERDEFINED=1;xa.SCHEMATYPE_SYSTEM=2;var Z=new function(){var h;this.hookCollector=function(f){h=f};this.occur=function(f,l){try{l&&h&&h(f,l)}catch(g){window.console&&console.warn(g)}};
this.getImportType=function(f){if(f&&0==f.indexOf("appmenu"))return Z.IMPORT_APPMENU;if(f&&0==f.indexOf("qingcenter"))return Z.IMPORT_CENTER;if("guimenu"==f)return Z.IMPORT_GUIMENU}};Z.DSB_IMPORT_LONGER_TYPE="dsb-import-longer-type";Z.DSB_IMPORT_SQUARE_TYPE="dsb-import-square-type";Z.DSB_IMPORT_EXREPORT_TYPE="dsb-import-qingreport-type";Z.IMPORT_CARD="card";Z.IMPORT_CENTER="center";Z.IMPORT_APPMENU="appmenu";Z.IMPORT_GUIMENU="guimenu";Z.IMPORT_EXTREPORTAPP="qingreport";x.UserOperationReporter=Z;var Oa=
{CARD:"card",SUBJECT:"subject",PICTURE:"picture",QINGCENTER:"qingcenter",QINGCENTER_QING:"qingcenter_qing",QINGCENTER_RPT:"qingcenter_rpt",APPMENU:"appmenu",APPMENU_QING:"appmenu_qing",APPMENU_RPT:"appmenu_rpt",PROGRAMABLECARD:"programableCard",MAP:"map",GUIMENU:"guimenu",QINGREPORT:"qingreport"};x.RefTypeEnum=Oa})();(function(){function y(x){xa.call(this,x);var X=!1;this.protectedInitImportTypes=function(){var N=new P;N.setExtreportAppPerm(X);return[N,new Ia(Ma.EXTREPORT_TYPE)]};this.protectedGetSourceTypeText=function(){return I.get("currentQingreportSource","\u5f53\u524d\u8f7b\u62a5\u8868\u6765\u6e90\u4e8e\uff1a")};this.protectedParseSourceType=function(N,K,e){var Q=N.refType;e=null;var W=$("<div>");W.addClass("dsb-ref-item-btn-path-tag");K.append(W);"qingreport"==Q?e=I.get("qingreportApp","\u8f7b\u62a5\u8868\u5e94\u7528\u9996\u9875\uff1a"):
Q&&0==Q.indexOf("appmenu")?e=I.get("appmenu","\u5e94\u7528\u83dc\u5355\uff1a"):0==Q.indexOf("qingcenter")?e=I.get("qingcenter","\u6570\u636e\u5de5\u4f5c\u53f0\u9605\u89c8\u5939\uff1a"):"guimenu"==Q&&(e=I.get("guimenu","\u5ba2\u6237\u7aef\u5e94\u7528\u83dc\u5355\uff1a"));null!=e?("true"==N.isPreset&&(Q=$("<div>"),Q.text(I.get("preset","\u9884\u7f6e")),Q.addClass("dsb-ref-item-btn-path-tag"),Q.addClass("dsb-ref-item-btn-preset-tag"),K.append(Q)),Q=$("<div>"),Q.addClass("dsb-ref-item-btn-path-tag"),
K.append(Q),N.widgetSourcePath?Q.text(N.widgetSourcePath):Q.text(I.get("noSource","\u6765\u6e90\u5df2\u88ab\u5220\u9664"))):e=I.get("unsupportedDsbRefSource","\u5f53\u524d\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u7ec4\u4ef6\u6765\u6e90");W.text(e)};this.setExtreportPermission=function(N){X=N}}function P(){Ha.call(this);var x=!1;this.protectedInitUi=function(){var X=new E;X.setEnabled(x);var N=I.get("baseOnQingreportHomePage","\u4ece\u8f7b\u62a5\u8868\u5e94\u7528\u9996\u9875\u5f15\u5165");x||(N+=I.get("hasNoExtreportPerm",
"(\u672a\u5206\u914d\u3010\u8f7b\u62a5\u8868\u3011\u5e94\u7528\u7684\u529f\u80fd\u6743\u9650)"));X.setText(N);X.setChecked(x);return X};this.setExtreportAppPerm=function(X){x=X};this.doNext=function(X,N,K){X.getDsbRemoteImpl();var e=new R,Q=Y.getUrlParamValue("path");e.setRemoteUrl(Q+"/qing_rpt/manage.do");(new ya(e,function(W){var z=new ba;z.fromJsonObject(W);0==z.getChildren().length?N.showPrompt(I.get("noExtreport","\u6682\u65e0\u62a5\u8868\u3002")):(W=new O,X.setFolderRoot(z),W.setStepContentInfo(X),
K([W]))},function(W,z){return!1})).loadExtReportWithoutDataset()}}function O(){Ca.call(this);var x=this.protectedMethod,X,N,K;this.isLastStep=function(){return!0};this.over=function(e){e&&((e=x.getStepContentInfo().getAllStepOverCallback())&&e(K,N),na.occur(na.DSB_IMPORT_EXREPORT_TYPE,na.IMPORT_EXTREPORTAPP))};this.outThisStep=function(e,Q){e?Q():(e=x.getSelectedModel().getSelectedNode(),X=e.getId(),N=e.getName(),e=x.getStepContentInfo().getDsbRemoteImpl(),(new ya(e,function(W){K=W.ref;Q()},function(W,
z){return!1})).getExtreportReferenceMap(X))};this.getSubTitle=function(){return I.get("selectQingreport","\u9009\u62e9\u62a5\u8868")};this.getNoDataText=function(){return I.get("noQingreport","\u6682\u65e0\u62a5\u8868")};this.getSearchPlaceHolder=function(){return I.get("enterSearchQiongreport","\u641c\u7d22\u62a5\u8868\u540d\u79f0")}}function R(){sa.call(this);var x;this.getRemoteUrl=function(){return x};this.setRemoteUrl=function(X){x=X}}"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.dashboard&&(com.kingdee.bos.qing.dashboard={});"undefined"==typeof com.kingdee.bos.qing.dashboard.qingreport&&(com.kingdee.bos.qing.dashboard.qingreport={});var V=com.kingdee.bos.qing.dashboard.qingreport;V.SelectQingReport=function(x,X){var N,K,e;this.startSelect=function(){var Q=new y(x),W=new Na;W.setParamPathPrefix(N);
W.setAllStepOverCallback(function(z,da){X(z,da)});W.setDsbRemoteImpl(K);(new ya(K,function(z){Q.setExtreportPermission(1==z);Q.setStepContentInfo(W);if(z=e)for(var da=0;da<z.length;da++)Q.addExtImportType(new z[da]);z=I.get("addQingReport","\u6dfb\u52a0\u8f7b\u62a5\u8868");x&&(z=I.get("qingReportSource","\u8f7b\u62a5\u8868\u6765\u6e90"));da=new ea;da.setTitle(z);da.setSteps([Q]);da.show(680,480)},function(z,da){return!1})).checkExtreportPermission()};this.setParamPathPrefix=function(Q){N=Q};this.setDsbRemoteImpl=
function(Q){K=Q};this.setCustomQingReportImportFuncTypes=function(Q){e=Q}};V.QingReportExecutor=function(){com.kingdee.bos.qing.dsb.AbstractQingReportExecutor.call(this);var x,X=!1;this.initUi=function(K,e){e=$("<iframe allowfullscreen allowTransparency='true'id= "+e.getName()+">");e.css({width:"100%",border:"0px"});e.appendTo(K)};this.run=function(K,e,Q){var W=e.getCardTitle(),z=Y.getUrlParamValue("path"),da=Y.getUrlParamValue("pageId"),oa=Y.getUrlParamValue("dsbId"),ja=Y.getUrlParamValue("publishId"),
Ea=Y.getUrlParamValue("configId"),qa=Y.getUrlParamValue("sharingTargetId"),Ba=Y.getUrlParamValue("publishTargetType"),La=!X||e.getTopPage().isMobileSkinActive(),ra=e.getReferenceCustomMap(),ha=ra.refType,za=ra.uid;if(oa)var ca=oa+"/"+za;else ja?ca=qa?ja+"/"+qa+"/"+za:ja+"/"+za:Ea&&(ca=Ea+"/"+za);oa=X?"report-widget-mobile":"report-widget";z=L.appendParamToUrl((z?z:"/ierp")+"/qing/extreportEntrance.do","exhibitionScene",oa);da&&(z=L.appendParamToUrl(z,"pageId",da));z=L.appendParamToUrl(z,"extReportName",
W);z=L.appendParamToUrl(z,"skin",Y.getUrlParamValue("skin"));z=L.appendParamToUrl(z,"language",Y.getUrlParamValue("language"));z=L.appendParamToUrl(z,"access_token",Y.getUrlParamValue("access_token"));z=L.appendParamToUrl(z,"schemaBiztagId",ca);z=L.appendParamToUrl(z,"extreportWidgetId",e.getName());qa&&(z=L.appendParamToUrl(z,"sharingTargetId",qa));Ba&&(z=L.appendParamToUrl(z,"dsbPublishTargetType",Ba));X&&(da=Y.getUrlParamValue("appType"))&&(z=L.appendParamToUrl(z,"appType",da));ha&&0==ha.indexOf("appmenu")?
(z=L.appendParamToUrl(z,"publishId",ra.refToId),z=L.appendParamToUrl(z,"publishTargetType",0)):ha&&0==ha.indexOf("qingcenter")?(z=L.appendParamToUrl(z,"publishId",ra.refToId),z=L.appendParamToUrl(z,"publishTargetType",1)):z=L.appendParamToUrl(z,"extReportId",ra.refToId);z=com.kingdee.bos.qing.integration.PageHelper.getIframeUrl(z);var Z=K.find("#"+e.getName());Z.attr("src",z);ra=Da.dip(Da.DSB_CARD);ha=e.getTopPage().isWidgetOpacityRequired();da=e.getParent()instanceof Aa?!0:!1;if(e.isTheAffectedTargetOfAnother())var Oa=
JSON.stringify(e.getExecutableAffectedParams());W={cardName:W,isDesignTime:Q,exhibitionScene:oa,iFrameId:e.getName(),isRequireDecorateCard:La,isRequireOpacity:ha,isInWidgetPanel:da,affectedParams:Oa,styleMap:ra};Z.data("extreportWidgetInfo",W);Z.on("load",function(){N(K,Z)});W=0;Q||(W=e.getRefreshTiming(),0<W&&(clearInterval(K.data("timedRefreshTag")),e=setInterval(function(){Z[0].contentWindow.location.reload(!0)},1E3*W),K.data("timedRefreshTag",e)))};this.setMobileMode=function(K){X=K};this.resize=
function(K,e){e=K.find("#"+e.getName());N(K,e)};this.setDsbRemoteImpl=function(K){x=K};this.getDsbRemoteImpl=function(){return x};this.updateTitle=function(K,e){K=K.find("#"+e.getName());e=e.getCardTitle();K[0].contentWindow&&K[0].contentWindow.postMessage({extreportCardMsg:"updateTitle",param:e},"*")};this.destroy=function(K,e){console.log("Destroy ExtReport: "+e.getDisplayName());clearInterval(K.data("timedRefreshTag"))};var N=function(K,e){K=K.prop("clientHeight");e.css("height",K+"px")}};V.ImportExtreportFromQingcenterSecondStep=
function(){Ka.call(this);var x=this.protectedMethod,X,N,K;this.over=function(e){e&&((e=x.getStepContentInfo().getAllStepOverCallback())&&e(K,N),na.occur(na.DSB_IMPORT_EXREPORT_TYPE,na.IMPORT_CENTER))};this.isLastStep=function(){return!0};this.protectedDoNext=function(e,Q,W){X=e.id;N=e.name;e=x.getStepContentInfo().getDsbRemoteImpl();(new ya(e,function(z){K=z.ref;W()},function(z,da){return!1})).getPublishReferenceMap(X,"qingcenter_rpt")}};var Y,L,I,E,ea,sa,Da,Aa,xa,Ha,Ca,Na,Ia,Ma,Ka,ya,na,ba;(function(){var x=
com.kingdee.bos.qing;Y=x.Seer;x=com.kingdee.bos.qing.common;L=x.Util;x=com.kingdee.bos.qing.framework.common;I=x.MultilanguageManager.createPackageAccessor(com.kingdee.bos.qing.dashboard);sa=x.AbstractRemoteCall;x=com.kingdee.bos.qing.ui.component;E=x.RadioButton;ea=x.WizardDialog;x=com.kingdee.bos.qing.dsb;Da=x.CosmeticBag;x=com.kingdee.bos.qing.dsb.model;Aa=x.WidgetPanel;x=com.kingdee.bos.qing.dashboard;xa=x.AbstractImportFirstStep;Ha=x.AbstractImportUi;Ca=x.AbstractImportFromHomepageSecondStep;
Na=x.StepContentInfo;Ia=x.ImportFromQingCenterFirstStep;Ma=x.AbstractImportStep;Ka=x.ImportFromQingcenterSecondStep;ya=x.CommonDsbDesignerFacade;na=x.UserOperationReporter;ba=x.FolderNode})()})();
//qingVersionTag: 20250415