var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(e){var q=0;return function(){return q<e.length?{done:!1,value:e[q++]}:{done:!0}}};$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};$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(e,q,u){if(e==Array.prototype||e==Object.prototype)return e;e[q]=u.value;return e};$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var q=0;q<e.length;++q){var u=e[q];if(u&&u.Math==Math)return u}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(e,q){var u=$jscomp.propertyToPolyfillSymbol[q];if(null==u)return e[q];u=e[u];return void 0!==u?u:e[q]};
$jscomp.polyfill=function(e,q,u,C){q&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,q,u,C):$jscomp.polyfillUnisolated(e,q,u,C))};$jscomp.polyfillUnisolated=function(e,q,u,C){u=$jscomp.global;e=e.split(".");for(C=0;C<e.length-1;C++){var D=e[C];if(!(D in u))return;u=u[D]}e=e[e.length-1];C=u[e];q=q(C);q!=C&&null!=q&&$jscomp.defineProperty(u,e,{configurable:!0,writable:!0,value:q})};
$jscomp.polyfillIsolated=function(e,q,u,C){var D=e.split(".");e=1===D.length;C=D[0];C=!e&&C in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var L=0;L<D.length-1;L++){var W=D[L];if(!(W in C))return;C=C[W]}D=D[D.length-1];u=$jscomp.IS_SYMBOL_NATIVE&&"es6"===u?C[D]:null;q=q(u);null!=q&&(e?$jscomp.defineProperty($jscomp.polyfills,D,{configurable:!0,writable:!0,value:q}):q!==u&&(void 0===$jscomp.propertyToPolyfillSymbol[D]&&(u=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[D]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(D):$jscomp.POLYFILL_PREFIX+u+"$"+D),$jscomp.defineProperty(C,$jscomp.propertyToPolyfillSymbol[D],{configurable:!0,writable:!0,value:q})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var q=function(L,W){this.$jscomp$symbol$id_=L;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:W})};q.prototype.toString=function(){return this.$jscomp$symbol$id_};var u="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",C=0,D=function(L){if(this instanceof D)throw new TypeError("Symbol is not a constructor");return new q(u+(L||"")+"_"+C++,L)};return D},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),u=0;u<q.length;u++){var C=$jscomp.global[q[u]];"function"===typeof C&&"function"!=typeof C.prototype[e]&&$jscomp.defineProperty(C.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6",
"es3");$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};return e};$jscomp.iteratorFromArray=function(e,q){e instanceof String&&(e+="");var u=0,C=!1,D={next:function(){if(!C&&u<e.length){var L=u++;return{value:q(L,e[L]),done:!1}}C=!0;return{done:!0,value:void 0}}};D[Symbol.iterator]=function(){return D};return D};$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(q){return q})}},"es6","es3");
$jscomp.findInternal=function(e,q,u){e instanceof String&&(e=String(e));for(var C=e.length,D=0;D<C;D++){var L=e[D];if(q.call(u,L,D,e))return{i:D,v:L}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(e){return e?e:function(q,u){return $jscomp.findInternal(this,q,u).v}},"es6","es3");
(function(){function e(d,l,r,x){U.call(this,d,l,r,x);var b=this.protectedMethod;this.saveModelerModel=function(c,g,h,m){c={modelId:c,modelName:g,modelDesc:h,modelerModel:JSON.stringify(m)};b.remote("saveModelerModel",c)};this.loadModelerInfo=function(c){b.remote("loadModelerInfo",{modelId:c})};this.lockModel=function(c){b.remote("lockModel",{modelId:c})};this.unLockModel=function(c){b.remote("unLockModel",{modelId:c})};this.getModelerModelVersion=function(c){b.remote("getModelerModelVersion",{modelId:c})};
this.lockAndReloadModelerInfo=function(c){b.remote("lockAndReloadModelerInfo",{modelId:c})};this.loadDeployModelerForUserOperation=function(c){c={modelIds:JSON.stringify(c)};b.remote("loadDeployModelerForUserOperation",c)}}function q(d,l,r,x){U.call(this,d,l,r,x);var b=this.protectedMethod;this.deploySingleModelForDesigner=function(c,g,h){b.remote("deploySingleModelForDesigner",{modelId:g,modelSetId:c,desc:h})};this.getLatestDeploy=function(c){b.remote("loadCurrentDeployModeler",{modelId:c})};this.needDeployRefModel=
function(c){b.remote("needDeployRefModel",{modelId:c})};this.loadNeedDeployRefModel=function(c){b.remote("loadNeedDeployRefModel",{modelId:c})};this.deployModelForModelSetSource=function(c,g,h,m){c={modelId:g,modelSetId:c,desc:h,needDeployModelIds:JSON.stringify(m)};b.remote("deployModelForModelSetSource",c)}}function u(d,l,r,x){U.call(this,d,l,r,x);var b=this.protectedMethod;this.designerLoadSources=function(){var c={modelSetId:com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,
"modelSetId")};b.remote("designerLoadSources",c)};this.loadNoAuthRefSourceIds=function(c){c={sourceIds:JSON.stringify(c)};b.remote("loadNoAuthRefSourceIds",c)};this.loadMetricsUseSource=function(c){c={sourceIds:JSON.stringify(c)};b.remote("loadMetricsUseSource",c)}}function C(){aa.call(this);var d=this.protectedMethod,l=this,r,x,b;(function(){d.setTitle(f.get("deploy","\u90e8\u7f72"));l.setSize(400,300);d.setContentPaneCreator(function(){if(!r){r=$("<div>");r.css("display","flex");var c=new la;c.setRequired(!0);
c.setText(f.get("description","\u63cf\u8ff0"));c=c.getJqUi();c.css({position:"relative",top:"9px",width:"auto",height:"20px","margin-right":"10px"});x=new ma;var g=x.getJqUi();g.css({position:"relative",top:"14px",width:"300px",height:"150px"});g.find(".sa-ctrl-textarea-real").css("font-family","MicrosoftYaHei");c.appendTo(r);g.appendTo(r)}return r});d.setClosingChecker2(function(c){c=$.trim(x.getText());var g;""!==c&&500<c.length?g=f.get("deployDescTooLong","\u90e8\u7f72\u63cf\u8ff0\u4e0d\u80fd\u8d85\u8fc7500\u4e2a\u5b57\u7b26\u3002"):
""===c&&(g=f.get("enterDeployDesc","\u8bf7\u8f93\u5165\u90e8\u7f72\u63cf\u8ff0\u3002"));if(g)return d.getMessageCurtain().showPrompt(g),!1;b&&b(c);return!0});d.setClosingAction(function(c){})})();this.setDescConfirmCallback=function(c){b=c};this.textFieldFocus=function(){x&&x.requestFocus()}}function D(){var d,l,r,x;this.getJqUi=function(){if(!l){l=$("<div>");l.css("position","relative");l.css("top","40px");l.css("left","0px");l.css("height","23px");r=new na;r.setText(f.get("chooseApp","\u8bf7\u9009\u62e9\u4e00\u4e2a\u5e94\u7528"));
r.setReadonly("readonly");var c=r.getJqUi();c.on("click",b);var g=$("<div>");ea.background(g,"f7");g.css("z-index","1");g.css("cursor","pointer");g.on("click",b);c.find(":input").css({overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",padding:"0px 16px 0px 4px","font-size":"12px"});M.layoutCtrlWithLRTB(g,null,10,16,0,null,16);M.layoutCtrlWithLRTB(c,40,8,null,null,null,23);var h=$("<span>");h.text(f.get("app","\u5e94\u7528"));h.css("color","#666");h.css("font-size","12px");M.layoutCtrlWithLRTB(h,
5,null,null,4.5,null,null);c.appendTo(l);g.appendTo(l);h.appendTo(l)}return l};this.getTextField=function(){return r};this.setFunSelectedChangeListener=function(c){x=c};this.getFunSelectedChangeListener=function(){return x};this.getSelectPair=function(){return d};var b=function(){var c=com.kingdee.bos.qing.integration.AppChooseForm;c.setCallBack(function(g){if(g&&g.content){var h=g.content;g=h.appNumber;var m={};m.text=h.appName;m.value=g;d=m;if(r){h=r;m=h.setText;var t=f.get("chooseApp","\u8bf7\u9009\u62e9\u4e00\u4e2a\u5e94\u7528");
d&&(t=d.text);m.call(h,t)}x(g)}});c.openAppChooseForm()}}function L(){var d,l,r,x;this.getJqUi=function(){if(!l){l=$("<div>");l.css("position","relative");l.css("top","0px");l.css("left","0px");l.css("height","23px");r=new na;r.setText(f.get("chooseApp","\u8bf7\u9009\u62e9\u4e00\u4e2a\u5e94\u7528"));r.setReadonly("readonly");var c=r.getJqUi();c.on("click",b);var g=$("<div>");ea.background(g,"f7");g.css("z-index","1");g.css("cursor","pointer");g.on("click",b);c.find(":input").css({overflow:"hidden",
"white-space":"nowrap","text-overflow":"ellipsis",padding:"0px 16px 0px 4px","font-size":"12px"});M.layoutCtrlWithLRTB(g,null,10,16,0,null,16);M.layoutCtrlWithLRTB(c,40,8,null,null,null,23);var h=$("<span>");h.text(f.get("app","\u5e94\u7528"));h.css("color","#666");h.css("font-size","12px");M.layoutCtrlWithLRTB(h,5,null,null,4.5,null,null);c.appendTo(l);g.appendTo(l);h.appendTo(l)}return l};this.setFunSelectedChangeListener=function(c){x=c};var b=function(){var c=com.kingdee.bos.qing.integration.AppChooseForm;
c.setCallBack(function(g){if(g&&g.content){var h=g.content;g=h.appNumber;var m={};m.text=h.appName;m.value=g;d=m;if(r){h=r;m=h.setText;var t=f.get("chooseApp","\u8bf7\u9009\u62e9\u4e00\u4e2a\u5e94\u7528");d&&(t=d.text);m.call(h,t)}x(g)}});c.openAppChooseForm()}}function W(){aa.call(this);var d=this,l=this.protectedMethod,r,x,b,c;this.setRootNode=function(m){r=m};this.setDescConfirmCallback=function(m){x=m};this.asyncShowDeployDialog=function(){oa.setCallback(function(){g();d.textFieldFocus()});oa.loadJs("common/qing-table.js")};
this.textFieldFocus=function(){c&&c.requestFocus()};var g=function(){d.setSize(640,480);d.setPosition(window.innerWidth-640>>1,window.innerHeight-480>>1);l.setTitle(f.get("deploy","\u90e8\u7f72"));l.setContentPaneCreator(h);l.setClosingAction(function(){});l.setClosingChecker2(function(m){m=$.trim(c.getText());var t;""!==m&&500<m.length?t=f.get("deployDescTooLong","\u90e8\u7f72\u63cf\u8ff0\u4e0d\u80fd\u8d85\u8fc7500\u4e2a\u5b57\u7b26\u3002"):""===m&&(t=f.get("enterDeployDesc","\u8bf7\u8f93\u5165\u90e8\u7f72\u63cf\u8ff0\u3002"));
if(t)return l.getMessageCurtain().showPrompt(t),!1;m=b.getCheckedModelNodes();t=[];for(var n=0;n<m.length;n++){var w=m[n],G=w.getId();w instanceof fa&&t.push(G)}m=$.trim(c.getText());x&&x(m,t);return!0});d.showDialog()},h=function(){var m=$("<div>");b=new O(r);var t=b.getJqUi();m.append(t);t=$("<div>");t.addClass("deploy-dialog-batch-split-bottom");m.append(t);t=m.append;var n=new la;n.setRequired(!0);n.setText(f.get("desc","\u63cf\u8ff0"));n=n.getJqUi();c=new ma;var w=c.getJqUi();w.find(".sa-ctrl-textarea-real").css("font-family",
"MicrosoftYaHei");var G=$("<div>");G.addClass("deploy-dialog-desc-div");n.appendTo(G);w.appendTo(G);M.layoutCtrl(n,0,-8,45,20);M.layoutCtrl(w,35,-5,568,70);M.layoutCtrlCenterAlign(G,600);t.call(m,G);return m}}function O(d){function l(){KTDefaultCellRender.call(this,m);var B=this;this.paintCellUI=function(p,F){var v=B.getCurrentRow().getUserObject(),P=v.getName();p=$("<div>");p.addClass("deploy-dialog-tree-area-list-item");var I=new ta,ha=I.getJqUi(),T=$("<div>");ha.addClass("deploy-dialog-area-list-item-checkbox");
T.addClass("deploy-dialog-area-list-item-text");p.append(ha);p.append(T);I.setChecked(v.isChecked());I.setUserObject(v);I.addCheckedListener(Y);-1!=g.indexOf(v.getId())&&(I.setEnabled(!1),I.setChecked(!0));h[v.getId()]=I;0==v.getSubNodeLevel()?(T.text(P),"ND_0"==v.getId()?(v=f.get("notDeployedHelpIconTips","\u5728\u540c\u4e00\u4e2a\u6a21\u578b\u96c6\u4e0b\uff0c\u6a21\u578b\u8bbe\u8ba1\u65f6\u53ef\u4f7f\u7528\u5176\u4ed6\u6a21\u578b\u8bbe\u8ba1\u671f\u7684\u72b6\u6001\uff0c\u4f46\u5728\u6267\u884c\u671f(\u6700\u65b0\u90e8\u7f72\u72b6\u6001\u6267\u884c\u65f6)\u53ea\u80fd\u4f7f\u7528\u5176\u4ed6\u6a21\u578b\u7684\u6700\u65b0\u90e8\u7f72\u72b6\u6001\u3002\u56e0\u6b64\u9700\u8981\u5c06\u5f15\u7528\u7684\u201c\u672a\u90e8\u7f72\u201d\u72b6\u6001\u7684\u6a21\u578b\u4e00\u540c\u90e8\u7f72\u3002"),
T.append(z(v,160,70))):"DU_0"==v.getId()&&(v=f.get("deployedUpdateHelpIconTips","\u5728\u540c\u4e00\u4e2a\u6a21\u578b\u96c6\u4e0b\uff0c\u6a21\u578b\u8bbe\u8ba1\u65f6\u53ef\u4f7f\u7528\u5176\u4ed6\u6a21\u578b\u8bbe\u8ba1\u671f\u7684\u72b6\u6001\uff0c\u4f46\u5728\u6267\u884c\u671f (\u6700\u65b0\u90e8\u7f72\u72b6\u6001\u6267\u884c\u65f6)\u53ea\u80fd\u4f7f\u7528\u5176\u4ed6\u6a21\u578b\u7684\u6700\u65b0\u90e8\u7f72\u72b6\u6001\u3002\u5982\u679c\u9700\u8981\u6267\u884c\u671f\u4e0e\u8bbe\u8ba1\u671f\u7684\u72b6\u6001\u4fdd\u6301\u4e00\u81f4\uff0c\u8bf7\u5c06\u5f15\u7528\u7684\u201c\u90e8\u7f72\u540e\u66f4\u6539\u201c\u72b6\u6001\u7684\u6a21\u578b\u518d\u6b21\u90e8\u7f72\u3002"),
T.append(z(v,185,88)))):(T.text(P),v instanceof fa&&(T.addClass("deploy-dialog-model-name-label"),T=p.append,v=v.getType(),P=$("<span>"),P.addClass("deploy-dialog-model-icon"),I="icon-tablemodel","metrics_model"==v&&(I="icon-metricmodel"),ea.background(P,I),T.call(p,P)));F?(F=$(F),F.css("overflow","visible"),p.appendTo(F)):p.appendTo(jqDiv);M.layoutCtrlWithLRTB(p,0,0,null,0,0,null)};var z=function(p,F,v){var P=$("<div>"),I=$("<span>");I.text(p);I.appendTo(P);p=new pa;p.setIconType(pa.ICON_TYPE_QUESTION);
p.setTipsSize(400,v);p.setTipsHtml(P[0]);v=p.getJqUi();v.addClass("dm-notice-icon");M.layoutCtrl(v,F,3,16,16);return v}}var r,x=[],b=[],c=[],g=[],h,m,t;this.getJqUi=function(){if(!r){w();r=$("<div>");r.addClass("deploy-dialog-area");r.addClass("deploy-dialog-tree-selection-area");m=new KTable;var B=$(m.getUI());B.children().css("overflow-x","hidden");var z=new l;m.setCellRender(z);m.setSyncUIWhenModelChanged(!1);m.addTreeExpandListener(G);m.addColumn().setWidth(400);M.layoutCtrlWithLRTB(B,0,0,null,
23,0,null);t=B;r.append(t);h={};for(B=0;B<x.length;B++){var p=x[B];z=ua.createRow(m,!1);var F=z.getCell(0),v=p.getSubNodeLevel();v=new KTCellTreeModel(v);z.setHeight(23);z.setUserObject(p);p instanceof ia?(p=p.isExpanded(),v.setExpanded(p)):(p=p.getParentNode().isExpanded(),z.setHide(!p));F.setTreeModel(v)}m.updateUI();n()}return r};var n=function(){var B=function(v,P){var I=h[v.getId()];I&&(I.setChecked(!0),P||(I.setEnabled(!1),g.push(v.getId())));if(v instanceof ia&&(v=v.getChildren())&&0<v.length)for(I=
0;I<v.length;I++)B(v[I],P)},z=d.getChildren();if(z&&0<z.length)for(var p=0;p<z.length;p++){var F=!0;"ND_0"==z[p].getId()&&(F=!1);B(z[p],F)}};this.getCheckedModelNodes=function(){for(var B=[],z=0;z<c.length;z++){var p=c[z];(h[p.getId()].isChecked()||-1!=g.indexOf(p.getId()))&&B.push(p)}return B};var w=function(){var B=function(F){x.push(F);if(F instanceof fa)c.push(F);else if(b.push(F),(F=F.getChildren())&&0<F.length)for(var v=0;v<F.length;v++)B(F[v])},z=d.getChildren();if(z&&0<z.length)for(var p=
0;p<z.length;p++)B(z[p])},G=function(B,z){(B=m.getRow(z.getRowIdx()).getUserObject())&&B.setExpanded(z.isExpanded())},Y=function(B,z){var p=B.getUserObject();if(-1==g.indexOf(p.getId())&&z)for(p.check(B.isChecked(),ja),B=0;B<x.length;B++)z=x[B],-1==g.indexOf(z.getId())&&(p=h[z.getId()])&&p.setChecked(z.isChecked())},ja=function(B){for(var z=!0,p=B.getChildren(),F=0;F<p.length;F++){var v=p[F];z=z&&v.isChecked()}B.setChecked(z);(B=B.getParentNode())&&ja(B)}}function R(d,l,r){function x(){this.getHandler=
function(n,w){switch(n.getCode()){case S.FAILED_MODEL_LOCK_CHECK:var G=new c;break;case S.FAILED_MODEL_CHECK:G=new g;break;case S.FAILED_LOCK_CHECK:G=new h}G&&(G.setResponse(n),G.setDeployType(w));return G}}function b(){var n,w;this.setResponse=function(G){n=G};this.setDeployType=function(G){w=G};this.getDetail=function(){throw Error("override me");};this.getTitle=function(){throw Error("override me");};this.protectedMethod={getResponse:function(){return n},getDeployType:function(){return w}}}function c(){b.call(this);
this.getDetail=function(){var n=m();return n+=t()};this.getTitle=function(){return f.get("batchDeployModelLockCheckFailedTips","\u9009\u4e2d\u7684\u6a21\u578b\u4e2d\u5b58\u5728\u88ab\u5176\u4ed6\u7528\u6237\u9501\u5b9a\u7684\u6a21\u578b\u3001\u4ee5\u53ca\u8bbe\u7f6e\u4e0d\u5b8c\u6574\u7684\u6a21\u578b\uff0c\u90e8\u7f72\u5931\u8d25\u3002")}}function g(){b.call(this);this.getDetail=function(){return t()};this.getTitle=function(){return f.get("deployModelCheckFailedTips","\u6a21\u578b\u8bbe\u7f6e\u4e0d\u5b8c\u6574\uff0c\u90e8\u7f72\u5931\u8d25\u3002")}}
function h(){b.call(this);this.getDetail=function(){var n="";if(r===R.ONE){var w="",G=d.getArrLockCheckPrompts()[0];w+=f.get("deployLockByOtherFailedTips","\u88ab\u5176\u4ed6\u7528\u6237\u9501\u5b9a\u7684\u6a21\u578b\u4e0d\u5141\u8bb8\u90e8\u7f72\uff0c\u2019#1\u2019\u6a21\u578b\u5df2\u88ab#2\u9501\u5b9a");w=w.replace("#1",G.getModelName()).replace("#2",G.getLockUserName());n+=w+"\uff1b\r\n"}else r===R.BATCH&&(n=m());return n};this.getTitle=function(){return f.get("batchDeployLockCheckFailedTips",
"\u9009\u4e2d\u7684\u6a21\u578b\u4e2d\u5b58\u5728\u88ab\u5176\u4ed6\u7528\u6237\u9501\u5b9a\u7684\u6a21\u578b\uff0c\u90e8\u7f72\u5931\u8d25\u3002")}}this.show=function(){if(d.isSuccess())l&&l();else{var n=(new x).getHandler(d,r),w=N.createFeedbackDialog();w.setMsgImageType(N.MSG_WARNING);w.setMessage(n.getTitle());w.setDetail(n.getDetail());w.setTitle(f.get("operatingTips","\u64cd\u4f5c\u63d0\u793a"));w.setOptionType(N.OPTION_OK);w.setButtonText(N.RETURN_OK,f.get("iSee","\u6211\u77e5\u9053\u4e86"));
w.showDialog()}};var m=function(){for(var n="",w=d.getArrLockCheckPrompts(),G=0;G<w.length;G++){var Y=w[G];n+=f.get("deployLockByOtherFailedTips","\u88ab\u5176\u4ed6\u7528\u6237\u9501\u5b9a\u7684\u6a21\u578b\u4e0d\u5141\u8bb8\u90e8\u7f72\uff0c\u2019#1\u2019\u6a21\u578b\u5df2\u88ab#2\u9501\u5b9a");n=n.replace("#1",Y.getModelName()).replace("#2",Y.getLockUserName());n+="\uff1b\r\n"}return n},t=function(){var n="",w=d.getArrModelCheckPrompts()[0];n+=f.get("configIncompleteReason","\u8bbe\u7f6e\u4e0d\u5b8c\u6574\u539f\u56e0");
return n=n+"\uff1a\r\n"+w.getPromptStr(!0,!0)}}function S(){var d=this,l,r,x=[],b=[],c=[];this.setSuccess=function(g){l=g};this.isSuccess=function(){return l};this.setCode=function(g){r=g};this.getCode=function(){return r};this.getArrModelCheckPrompts=function(){return x};this.getArrLockCheckPrompts=function(){return b};this.getArrSimplePrompts=function(){return c};this.fromJsonObject=function(g){d.setSuccess(g.success);d.setCode(g.code);if(g.prompts){var h=g.prompts[Q.MODEL_CHECK],m=g.prompts[Q.LOCK_CHECK];
if(h&&0<h.length)for(var t=0;t<h.length;t++){var n=new Q;n.fromJsonObject(h[t]);x.push(n)}if(m&&0<m.length)for(t=0;t<m.length;t++)n=new Q,n.fromJsonObject(m[t]),b.push(n)}if(g.simplePrompts&&(g=g.simplePrompts)&&0<g.length)for(t=0;t<g.length;t++)n=new Q,n.fromJsonObject(g[t]),c.push(n)}}function Q(){var d=this,l,r,x,b,c,g;this.setModelId=function(h){l=h};this.getModelId=function(){return l};this.setModelName=function(h){r=h};this.getModelName=function(){return r};this.setPromptCode=function(h){c=
h};this.getPromptCode=function(){return c};this.setPath=function(h){x=h};this.getPath=function(){return x};this.setLockUserName=function(h){b=h};this.getLockUserName=function(){return b};this.setArrPrompts=function(h){g=h};this.getArrPrompts=function(){return g};this.getPromptStr=function(h,m){var t="";if(g)for(var n=0;n<g.length;n++)m&&(t+=n+1),m&&(t+="\u3001"),t+=g[n],t+="\uff1b",h&&(t+="\r\n");return t};this.fromJsonObject=function(h){d.setModelId(h.modelId);d.setModelName(h.modelName);d.setPath(h.path);
d.setLockUserName(h.lockUserName);d.setPromptCode(h.PromptCode);d.setArrPrompts(h.invalidPrompt)}}"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.modeler&&(com.kingdee.bos.qing.modeler={});"undefined"==typeof com.kingdee.bos.qing.modeler.scene&&(com.kingdee.bos.qing.modeler.scene={});var ba=com.kingdee.bos.qing.modeler.scene;
ba.AbstractDesignerScene=function(){var d=this,l,r,x,b,c,g,h,m=(new Date).getTime(),t,n,w,G,Y;this.protectedGetDesigner=function(){throw Error("override me");};this.protectedGetModelTypeName=function(){throw Error("override me");};this.protectedGetBehaviorEntranceType=function(){throw Error("override me");};this.show=function(a){b||ja();P(function(){c.appendTo(a);b.resize()},function(k,y){if(20003102==k)return k=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",
f.get("loadModelFailed","\u52a0\u8f7d\u5931\u8d25")),b.getMsgCurtain().showPrompt(k),!0;if(20001010==k)return com.kingdee.bos.qing.framework.common.RemoteFramework.openErrorPage(k,com.kingdee.bos.qing.common.Base64Util.encode(encodeURIComponent(y))),!0})};var ja=function(){var a=com.kingdee.bos.qing.common.Util;r=a.decodeParamFromUrl(window.location.search,"modelSetId");l=a.decodeParamFromUrl(window.location.search,"modelId");x="true"==a.decodeParamFromUrl(window.location.search,"isPreset");ca.setModelId(l);
b=d.protectedGetDesigner();b.setEditable(!x);b.setMessageResize(Da);z();ca.setRemoteImpl(v("/qing_modeler/modelSetSourceManageEntrance.do"));B();ca.setModelSetSourceFacade(u);b.setRemoteImpl(v("/qing_modeler/designer.do"));c=b.createJqUi();x?b.getMsgCurtain().showPrompt(f.get("presetModelCannotEdit","\u9884\u7f6e\u7684\u6a21\u578b\u4e0d\u5141\u8bb8\u4fdd\u5b58\u3001\u90e8\u7f72\u7b49\u64cd\u4f5c\uff0c\u5982\u6709\u9700\u8981\uff0c\u53ef\u590d\u5236\u6a21\u578b\u96c6\u540e\u518d\u8fdb\u884c\u64cd\u4f5c\u3002"),
-1):(t=b.insertToolbarBtn(Ea,"btn_save",f.get("save","\u4fdd\u5b58")),n=b.insertToolbarBtn(Fa,"btn_deploy",f.get("deploy","\u90e8\u7f72")),w=b.insertMenuButton(Ga,"btn_rollback",f.get("rollback","\u56de\u9000")),t.setEnabled(!1),n.setEnabled(!1),w.setEnabled(!1));G=b.appendToolbarBtn(ha,"btn_refresh",f.get("refresh","\u5237\u65b0"));b.appendToolbarBtn(Ha,"btn_close",f.get("closeTab","\u9000\u51fa"));b.setLockStateChangeListener(Ia);b.registerLockRequestSender(Ja);b.setDirtyListener(function(y){da.setTabStatus(y)});
Y=new va;Y.createMessageUI({position:"absolute","float":"right",bottom:"0",right:"10px"},null,30);var k=com.kingdee.bos.qing.behavior.BehaviorManager;com.kingdee.bos.qing.modeler.designer.UserOperationReporter.hookCollector(function(y,H){k.interestInBehavior(y,H)});k.interestInBehaviorEntrance(d.protectedGetBehaviorEntranceType())},B=function(){var a=ca;a.registerDataCenterSelectorConstructor(D);a.registerMetricDataCenterSelector(L)},z=function(){var a=com.kingdee.bos.qing.common.Util,k=ca,y=a.decodeParamFromUrl(window.location.search,
"path"),H=a.decodeParamFromUrl(location.search,"modelSetId"),A=a.decodeParamFromUrl(location.search,"modelSetName");k.setDataSourceManageEntrance(function(){var E=qa.getUrlParamValue(),V=f.get("sourceManage","\u6570\u636e\u6e90\u7ba1\u7406")+"-"+A,K=y+"/qing_modeler/modelSetSourceManageEntrance.do";K=a.appendParamToUrl(K,"modelSetId",H);K=a.appendParamToUrl(K,"modelSetName",A);K=a.appendParamToUrl(K,"isPreset",x);E&&(K=a.appendParamToUrl(K,"skin",E));ra.openNewTab(V,K,K)})},p=function(){return v("/qing_modeler/modelSetMainPage.do")},
F=function(){return v("/qing_modeler/deployManage.do")},v=function(a){var k=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");a=(k?k:"/ierp")+a;k=new com.kingdee.bos.qing.modeler.designer.RemoteImpl;k.setRemoteUrl(a);return k},P=function(a,k){(new e(p(),function(y){I(y)},k,a)).loadModelerInfo(l)},I=function(a){var k=a.desc,y=a.name,H=a.modelIsValid;ka(a.deployed);var A=a.sourcePermission,E=a.sourceType,V=a.tableException,K=new wa;K.setModelName(y);K.setModelDesc(k);
K.setMapSourcePermission(A);K.setModelIsValid(H);K.setMapSourceType(E);K.setMapTableException(V);b.setIntegration(K);b.setJsonModel(a.modeler);a.modelerCreateTime&&(m=a.modelerCreateTime);a.tryLock?xa(l):(k=a.lockUserName,(a=a.lockByMe)?b.setLockInfo(a,k,!0):b.setLockInfo(a,k))},ha=function(){if(b.isDirty()){var a=new ya;a.setText(f.get("confirmRefresh","\u5237\u65b0\u6a21\u578b\u4f1a\u4e22\u5931\u672a\u4fdd\u5b58\u7684\u4fee\u6539\uff0c\u786e\u5b9a\u8981\u5237\u65b0\u5417\uff1f"));a.setConfirmedListener(function(k){k&&
(T(),J.occur(J.BUTTON_TYPE,J.REFRESH))});a.show(G.getJqUi())}else T(),J.occur(J.BUTTON_TYPE,J.REFRESH)},T=function(){P(function(){},function(a){if(20003102==a)return a=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",f.get("refreshFailed","\u5237\u65b0\u5931\u8d25")),b.getMsgCurtain().showPrompt(a),!0})},Ea=function(){if(b.isDirty()){var a=b.getJsonModel(),k=p();k=new e(k,function(A){0==A.isValid?b.getMsgCurtain().showPrompt(f.get("saveSuccessButInvalid","\u4fdd\u5b58\u6210\u529f\u3002\u6a21\u578b\u8bbe\u7f6e\u4e0d\u5b8c\u6574\uff0c\u4e0d\u5141\u8bb8\u90e8\u7f72\u3002")):
b.getMsgCurtain().showSuccess(f.get("saveSuccess","\u4fdd\u5b58\u6210\u529f\u3002"));b.clearDirty();ka(A.deployed);m=A.modelerCreateTime;J.occur(J.BUTTON_TYPE,J.SAVE)},function(A,E){if(20003101===A)return b.getMsgCurtain().showPrompt(f.get("modelDuplicateNameInGroup","#1\uff0c\u8be5\u76ee\u5f55\u4e0b\u5b58\u5728\u540c\u540d\u6570\u636e\u6a21\u578b\u3002").replace("#1",f.get("saveFail","\u4fdd\u5b58\u5931\u8d25"))),!0;if(20003102==A)return A=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",
f.get("saveFail","\u4fdd\u5b58\u5931\u8d25")),b.getMsgCurtain().showPrompt(A),!0;if(20001009==A)return","==E[E.length-1]&&(E=E.substring(0,E.length-1)),E=E.split(","),A="",1==E.length&&(A=f.get("duplicateMetricNumber","#1\u3002\u6307\u6807\u7f16\u7801\u201c#2\u201d\u5df2\u88ab\u4f7f\u7528\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u6307\u6807\u7f16\u7801\u3002").replace("#1",f.get("saveFail","\u4fdd\u5b58\u5931\u8d25")).replace("#2",E[0])),1<E.length&&(A=f.get("duplicateMetricNumber2","#1\u3002\u201c#2\u201d\u7b49#3\u4e2a\u6307\u6807\u7f16\u7801\u5df2\u88ab\u4f7f\u7528\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\u6307\u6807\u7f16\u7801\u3002").replace("#1",
f.get("saveFail","\u4fdd\u5b58\u5931\u8d25")).replace("#2",E[0]).replace("#3",E.length)),b.getMsgCurtain().showPrompt(A),!0});var y=b.getIntegration(),H=y.getModelDesc();y=y.getModelName();k.saveModelerModel(l,y,H,a)}else b.getMsgCurtain().showPrompt(f.get("modelIsClean","\u6a21\u578b\u5185\u5bb9\u672a\u4fee\u6539"))},Fa=function(){b.isDirty()?b.getMsgCurtain().showPrompt(f.get("needSaveBeforeDeploy","\u90e8\u7f72\u524d\u8bf7\u5148\u8fdb\u884c\u4fdd\u5b58\u3002")):(new q(F(),function(a){1==a?Ka():
za()})).needDeployRefModel(l)},Ka=function(){(new q(F(),function(a){var k=new ia;k.fromJsonObject(a);0<k.getChildren().length?(a=new W,a.setRootNode(k),a.setDescConfirmCallback(function(y,H){(new q(F(),function(A){var E=new S;E.fromJsonObject(A);A=R.ONE;0<H.length&&(A=R.BATCH);(new R(E,function(){ka(!0);Aa();Ba([l]);b.getMsgCurtain().showSuccess(f.get("deploySuccess","\u90e8\u7f72\u6210\u529f"))},A)).show()},function(A){if(20008001==A)return b.getMsgCurtain().showPrompt(f.get("alreadyDeployed","\u6a21\u578b\u5df2\u90e8\u7f72\uff0c\u8bf7\u52ff\u91cd\u590d\u90e8\u7f72")),
!0;if(20003102==A)return A=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",f.get("deployFailed","\u90e8\u7f72\u5931\u8d25")),b.getMsgCurtain().showPrompt(A),!0})).deployModelForModelSetSource(r,l,y,H)}),a.asyncShowDeployDialog()):za()},function(a,k){b.getMsgCurtain().showPrompt(k)})).loadNeedDeployRefModel(l)},za=function(){var a=new C;a.setDescConfirmCallback(function(k){(new q(F(),function(y){var H=y.validity;if(H){var A=d.protectedGetModelTypeName();b.setJsonValidity(H,
f.get("modelerDeployFailed","#1\u8bbe\u7f6e\u4e0d\u5b8c\u6574\uff0c\u90e8\u7f72\u5931\u8d25").replace("#1",A))}y.deployed&&(ka(!0),Aa(),Ba([l]))},function(y){switch(y){case 20008001:return b.getMsgCurtain().showPrompt(f.get("alreadyDeployed","\u6a21\u578b\u5df2\u90e8\u7f72\uff0c\u8bf7\u52ff\u91cd\u590d\u90e8\u7f72")),!0;case 20003102:return y=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",f.get("deployFailed","\u90e8\u7f72\u5931\u8d25")),b.getMsgCurtain().showPrompt(y),
!0;case 20004001:return b.getMsgCurtain().showPrompt(f.get("incompleteMaterializedConfig","\u7269\u5316\u5b58\u50a8\u8bbe\u7f6e\u4e0d\u5b8c\u6574\uff0c\u90e8\u7f72\u5931\u8d25\u3002")),!0}})).deploySingleModelForDesigner(r,l,k)});a.showDialog();a.textFieldFocus()},Ba=function(a){var k=new e(p(),function(y){if(y){J.occur(J.BUTTON_TYPE,J.DEPLOY);for(var H=0;H<y.length;H++){var A=y[H],E=Object.keys(A);if(!E||0==E.length)break;E=E[0];"tableModeler"==E?J.occur(J.DATATABLE_MODEL_TRANSFORM_NODE_TYPE,A[E]):
"metricModeler"==E&&J.occur(J.METRIC_MODEL_DIMENSION_TYPE,A[E])}}},function(y,H){return!0});k.setShowBlocking(!1);k.loadDeployModelerForUserOperation(a)},Aa=function(){var a=new N;a.setTitle(f.get("operatorTips","\u64cd\u4f5c\u63d0\u793a"));a.setOptionType(N.OPTION_OK);a.setButtonText(N.RETURN_OK,f.get("iSee","\u6211\u77e5\u9053\u4e86"));a.setCustomPainter(function(k){var y=$("<div>");y.addClass("deploy-feedback-dialog-image");com.kingdee.bos.qing.modeler.designer.Icons.background(y,"msg-success");
var H=$("<div>");H.addClass("deploy-feedback-dialog-text");H.text(f.get("deploySucceeded","\u5df2\u6210\u529f\u90e8\u7f72"));var A=$("<div>");A.addClass("deploy-dialog-rolesetting-box");var E=$("<div>");E.addClass("deploy-dialog-rolesetting-text");E.text(f.get("nowGoSetting","\u73b0\u5728\u53bb\u8bbe\u7f6e"));var V=$("<div>");V.addClass("deploy-dialog-rolesetting-text-link");var K=f.get("dataRole","\u6570\u636e\u6743\u9650");V.text(K);V.attr("title",K);V.css("cursor","pointer");V.css("color","#0E5FD8");
V.on("click",function(X){X=com.kingdee.bos.qing.common.Util;var Z=X.decodeParamFromUrl(window.location.search,"path"),sa=X.decodeParamFromUrl(location.search,"modelSetId"),Ca=X.decodeParamFromUrl(location.search,"modelSetName");Z=X.appendParamToUrl(Z+"/qing_modeler/dataAuthEntrance.do","modelSetName",Ca);Z=X.appendParamToUrl(Z,"modelSetId",sa);(sa=qa.getUrlParamValue())&&(Z=X.appendParamToUrl(Z,"skin",sa));X=f.get("dataRole","\u6570\u636e\u6743\u9650")+Ca;com.kingdee.bos.qing.framework.common.TabbedUiUtil.openNewTab(X,
Z,Z);J.occur(J.ENTER_DATA_AUTH_MANAGE,J.ENTER_DATA_AUTH_MANAGE_AFTER_DEPLOY)});A.append(E);A.append(V);k.append(A);k.append(y);k.append(H)});a.showDialog(380,280)},Ga=function(){var a=com.kingdee.bos.qing.ui.component.MenuItemModel,k=new com.kingdee.bos.qing.ui.component.MenuModel;a=new a(La);a.setText(f.get("rollBackToLatest","\u56de\u9000\u5230\u6700\u65b0\u90e8\u7f72\u72b6\u6001"));k.addItemModel(a);return k},La=function(){var a=N.createFeedbackDialog();a.setOptionType(N.OPTION_OK_CANCEL);a.setMsgImageType(N.MSG_CONFIRM);
var k=d.protectedGetModelTypeName();k=f.get("rollbackConfirmTips","\u56de\u9000\u5230\u6700\u65b0\u90e8\u7f72\u72b6\u6001\u540e\uff0c\u5f53\u524d#1\u4f1a\u88ab\u6700\u8fd1\u4e00\u6b21\u90e8\u7f72\u72b6\u6001\u8986\u76d6\uff0c\u786e\u5b9a\u56de\u9000\u5417\uff1f").replace("#1",k);a.setMessage(k);a.setClosingChecker(function(y){y==N.RETURN_OK&&Ma();return!0});a.showDialog()},Ma=function(){(new q(F(),function(a){a?(b.setUndoAbleJsonModel(a,f.get("rollBackToLatest","\u56de\u9000\u5230\u6700\u65b0\u90e8\u7f72\u72b6\u6001")),
b.getMsgCurtain().showSuccess(f.get("rollbackSuccess","\u6a21\u578b\u56de\u9000\u6210\u529f")),J.occur(J.BUTTON_TYPE,J.ROLLBACK_CURRENT_DEPLOY)):b.getMsgCurtain().showPrompt(f.get("noDeployedToRollBack","\u6a21\u578b\u6682\u672a\u90e8\u7f72\uff0c\u65e0\u6cd5\u8fdb\u884c\u56de\u9000"))})).getLatestDeploy(l)},Ha=function(){var a={en:{confirmExit:"Changes detected, exit without saving? These changes will be lost if you do not save. If you go back to editing, try to acquire the lock before saving.",sureExit:"Exit",
sureReturn:"Return"},zh_CN:{confirmExit:"\u68c0\u6d4b\u5230\u60a8\u6709\u66f4\u6539\u5185\u5bb9\uff0c\u662f\u5426\u4e0d\u4fdd\u5b58\u76f4\u63a5\u9000\u51fa\uff1f\u82e5\u4e0d\u4fdd\u5b58\uff0c\u5c06\u4e22\u5931\u8fd9\u4e9b\u66f4\u6539\u3002\u82e5\u8fd4\u56de\u7f16\u8f91\uff0c\u8bf7\u5148\u5c1d\u8bd5\u83b7\u5f97\u9501\u518d\u8fdb\u884c\u4fdd\u5b58\u3002",sureExit:"\u76f4\u63a5\u9000\u51fa",sureReturn:"\u8fd4\u56de\u7f16\u8f91"},zh_TW:{confirmExit:"\u6aa2\u6e2c\u5230\u60a8\u6709\u66f4\u6539\u5167\u5bb9\uff0c\u662f\u5426\u4e0d\u4fdd\u5b58\u76f4\u63a5\u9000\u51fa\uff1f\u82e5\u4e0d\u4fdd\u5b58\uff0c\u5c07\u4e1f\u5931\u9019\u4e9b\u66f4\u6539\u3002\u82e5\u8fd4\u56de\u7de8\u8f2f\uff0c\u8acb\u5148\u5617\u8a66\u7372\u5f97\u9396\u518d\u9032\u884c\u4fdd\u5b58\u3002",
sureExit:"\u76f4\u63a5\u9000\u51fa",sureReturn:"\u8fd4\u56de\u7de8\u8f2f"}};b.isDirty()?(h?da.setI18n():da.setI18n(a),da.showConfirmExitDialog()):ra.closeCurrentTab()},Ja=function(a){a?Na():Oa(l)},xa=function(a){(new e(p(),function(k){b.setLockInfo(k.lockByMe,k.lockUserName)},function(k){if(20003102==k)return k=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",f.get("lockFailed","\u9501\u5b9a\u5931\u8d25")),b.getMsgCurtain().showPrompt(k),!0})).lockModel(a)},
Oa=function(a){(new e(p(),function(k){k?b.setLockInfo(!1,null):b.getMsgCurtain().showPrompt(f.get("unlockFailed","\u89e3\u9501\u5931\u8d25"))},function(k){if(20003102==k)return k=f.get("modelNotFound","#1\uff0c\u6a21\u578b\u5df2\u88ab\u522a\u9664\u3002").replace("#1",f.get("unlockFailed","\u89e3\u9501\u5931\u8d25")),b.getMsgCurtain().showPrompt(k),!0})).unLockModel(a)},Ia=function(a){h=a;t&&t.setEnabled(h);n&&n.setEnabled(h);h&&g?w&&w.setEnabled(!0):w&&w.setEnabled(!1)},ka=function(a){g=a;h&&g?w&&
w.setEnabled(!0):w&&w.setEnabled(!1)},Na=function(){(new e(p(),function(a){m<a?Pa():xa(l)})).getModelerModelVersion(l)},Pa=function(){var a=N.createFeedbackDialog();a.setMessage(f.get("modelVersionIsNotNew","\u6a21\u578b\u5728\u6253\u5f00\u8bbe\u8ba1\u5668\u540e\u5df2\u88ab\u4ed6\u4eba\u4fee\u6539\uff0c\u5c06\u91cd\u65b0\u52a0\u8f7d\u6700\u65b0\u6a21\u578b\u3002"));a.setMsgImageType(N.MSG_WARNING);a.setOptionType(N.OPTION_OK_CANCEL);a.setClosingChecker(function(k){k==N.RETURN_OK&&(new e(p(),function(y){I(y);
var H=y.lockByMe;H&&b.setLockInfo(H,y.lockUserName)})).lockAndReloadModelerInfo(l);return!0});a.showDialog()},Da=function(){Y.resize(null,null,10,30)}};var f,M,U,aa,ma,la,N,na,ea,J,ya,ta,pa,wa,qa,ra,da,ca,ia,fa,oa,ua,va;(function(){var d=com.kingdee.bos.qing.modeler.designer;wa=d.Integration;ca=d.ModelSetSourceIntegration;ea=d.Icons;J=d.UserOperationReporter;d=com.kingdee.bos.qing.ui.component;aa=d.AbstractModalDialog;ma=d.TextArea;la=d.Label;N=d.MessageDialog;na=d.TextField;ya=d.SimpleConfirmer;
ta=d.CheckBox;pa=d.HelpIcon;d=com.kingdee.bos.qing.framework.common;f=d.MultilanguageManager.createPackageAccessor(ba);U=d.AbstractFacade;ra=d.TabbedUiUtil;d=com.kingdee.bos.qing;qa=d.SkinUtil;oa=d.CodeLoader;d=com.kingdee.bos.qing.common;M=d.DomUtil;d=com.kingdee.bos.qing.integration;da=d.TabStatusHelper;d=com.kingdee.bos.qing.modeler.designer;ia=d.FolderNode;fa=d.LeafNode;d=com.kingdee.bos.qing.common.ui;ua=d.TableUtil;d=com.kingdee.bos.qing.modeler.message.common;va=d.MessageManageUtil})();R.BATCH=
"0";R.ONE="1";S.FAILED_MODEL_CHECK=1;S.FAILED_LOCK_CHECK=2;S.FAILED_MODEL_LOCK_CHECK=S.FAILED_MODEL_CHECK|S.FAILED_LOCK_CHECK;Q.MODEL_CHECK=1;Q.LOCK_CHECK=2})();(function(){function e(O){L.call(this);this.isNumberExist=function(R,S,Q,ba,f){var M=q,U=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"path");U=(U?U:"/ierp")+"/qing_modeler/metricExtInfo.do";var aa=new com.kingdee.bos.qing.modeler.designer.RemoteImpl;aa.setRemoteUrl(U);Q=new M(aa,Q,ba,f);Q.setShowBlocking(!0);Q.isNumberExist(O,S,R)}}function q(O,R,S,Q){com.kingdee.bos.qing.framework.common.AbstractFacade.call(this,O,R,S,Q);var ba=this.protectedMethod;this.isNumberExist=
function(f,M,U){ba.remote("isNumberExist",{modelId:f,number:M,metricId:U})}}"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.modeler&&(com.kingdee.bos.qing.modeler={});"undefined"==typeof com.kingdee.bos.qing.modeler.scene&&(com.kingdee.bos.qing.modeler.scene={});var u=com.kingdee.bos.qing.modeler.scene;
u.MetricDesignerScene=function(){W.call(this);var O;this.protectedGetDesigner=function(){if(!O){var R=com.kingdee.bos.qing.common.Util.decodeParamFromUrl(window.location.search,"modelId");O=new D;O.setNumberChecker(new e(R))}return O};this.protectedGetModelTypeName=function(){return C.get("metricModel","\u6307\u6807\u6a21\u578b")};this.protectedGetBehaviorEntranceType=function(){return com.kingdee.bos.qing.behavior.BehaviorManager.ENTRANCE_MODELER_METRIC_MODEL_DESIGNER}};var C,D,L,W;(function(){var O=
com.kingdee.bos.qing.modeler.designer.metricdesigner;D=O.Designer;L=O.AbstractNumberCheck;O=com.kingdee.bos.qing.framework.common;C=O.MultilanguageManager.createPackageAccessor(u);W=u.AbstractDesignerScene})()})();
//qingVersionTag: 20250415