var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(p,w,v){p instanceof String&&(p=String(p));for(var n=p.length,z=0;z<n;z++){var y=p[z];if(w.call(v,y,z,p))return{i:z,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(p,w,v){if(p==Array.prototype||p==Object.prototype)return p;p[w]=v.value;return p};$jscomp.getGlobal=function(p){p=["object"==typeof globalThis&&globalThis,p,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var w=0;w<p.length;++w){var v=p[w];if(v&&v.Math==Math)return v}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(p,w){var v=$jscomp.propertyToPolyfillSymbol[w];if(null==v)return p[w];v=p[v];return void 0!==v?v:p[w]};
$jscomp.polyfill=function(p,w,v,n){w&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(p,w,v,n):$jscomp.polyfillUnisolated(p,w,v,n))};$jscomp.polyfillUnisolated=function(p,w,v,n){v=$jscomp.global;p=p.split(".");for(n=0;n<p.length-1;n++){var z=p[n];if(!(z in v))return;v=v[z]}p=p[p.length-1];n=v[p];w=w(n);w!=n&&null!=w&&$jscomp.defineProperty(v,p,{configurable:!0,writable:!0,value:w})};
$jscomp.polyfillIsolated=function(p,w,v,n){var z=p.split(".");p=1===z.length;n=z[0];n=!p&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var y=0;y<z.length-1;y++){var B=z[y];if(!(B in n))return;n=n[B]}z=z[z.length-1];v=$jscomp.IS_SYMBOL_NATIVE&&"es6"===v?n[z]:null;w=w(v);null!=w&&(p?$jscomp.defineProperty($jscomp.polyfills,z,{configurable:!0,writable:!0,value:w}):w!==v&&(void 0===$jscomp.propertyToPolyfillSymbol[z]&&(v=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[z]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(z):$jscomp.POLYFILL_PREFIX+v+"$"+z),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[z],{configurable:!0,writable:!0,value:w})))};$jscomp.polyfill("Array.prototype.find",function(p){return p?p:function(w,v){return $jscomp.findInternal(this,w,v).v}},"es6","es3");$jscomp.arrayIteratorImpl=function(p){var w=0;return function(){return w<p.length?{done:!1,value:p[w++]}:{done:!0}}};$jscomp.arrayIterator=function(p){return{next:$jscomp.arrayIteratorImpl(p)}};
$jscomp.initSymbol=function(){};$jscomp.polyfill("Symbol",function(p){if(p)return p;var w=function(y,B){this.$jscomp$symbol$id_=y;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:B})};w.prototype.toString=function(){return this.$jscomp$symbol$id_};var v="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",n=0,z=function(y){if(this instanceof z)throw new TypeError("Symbol is not a constructor");return new w(v+(y||"")+"_"+n++,y)};return z},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(p){if(p)return p;p=Symbol("Symbol.iterator");for(var w="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),v=0;v<w.length;v++){var n=$jscomp.global[w[v]];"function"===typeof n&&"function"!=typeof n.prototype[p]&&$jscomp.defineProperty(n.prototype,p,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return p},"es6",
"es3");$jscomp.iteratorPrototype=function(p){p={next:p};p[Symbol.iterator]=function(){return this};return p};$jscomp.iteratorFromArray=function(p,w){p instanceof String&&(p+="");var v=0,n=!1,z={next:function(){if(!n&&v<p.length){var y=v++;return{value:w(y,p[y]),done:!1}}n=!0;return{done:!0,value:void 0}}};z[Symbol.iterator]=function(){return z};return z};$jscomp.polyfill("Array.prototype.keys",function(p){return p?p:function(){return $jscomp.iteratorFromArray(this,function(w){return w})}},"es6","es3");
(function(){function p(){z.call(this);var B;this.getRemoteUrl=function(){return B};this.setRemoteUrl=function(q){B=q}}"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.deploy&&(com.kingdee.bos.qing.modeler.deploy=
{});"undefined"==typeof com.kingdee.bos.qing.modeler.deploy.common&&(com.kingdee.bos.qing.modeler.deploy.common={});var w=com.kingdee.bos.qing.modeler.deploy.common;w.Facade=function(B,q,J,E){v.call(this,B,q,J,E);var I=this.protectedMethod;this.listAllGroupAndDeployModel=function(C){I.remote("listAllGroupAndDeployModel",{modelSetId:C})};this.listSetDeploy=function(C){I.remote("listSetDeploy",{modelSetId:C})};this.listModelDeployDetail=function(C){I.remote("listModelDeployDetail",{modelId:C})};this.listDeployModelDetail=
function(C,t){I.remote("listDeployModelDetail",{modelSetDeployId:C,modelSetId:t})};this.unDeployModel=function(C,t,N,x){I.remote("unDeployModel",{modelId:C,modelSetId:t,modelDeployId:N,desc:x})};this.unDeployModelSet=function(C,t,N){I.remote("unDeployModelSet",{modelSetDeployId:C,modelSetId:t,desc:N})};this.deleteModelDeploy=function(C){I.remote("deleteModelDeploy",{modelId:C})};this.deleteModelSetDeploy=function(C,t){I.remote("deleteModelSetDeploy",{modelSetDeployId:C,modelSetId:t})};this.revertModelDeploy=
function(C,t,N,x,sa){I.remote("revertModelDeploy",{revertModelDeployId:C,modelSetId:t,modelId:N,desc:x,renameDuplicateNumber:sa?!0:!1})};this.revertModelSetDeploy=function(C,t,N,x){I.remote("revertModelSetDeploy",{revertModelSetDeployId:C,modelSetId:t,desc:N,renameDuplicateNumber:x?!0:!1})};this.syncModelDeployToDesigner=function(C,t,N,x){I.remote("syncModelDeployToDesigner",{syncModelDeployId:C,modelSetId:t,modelId:N,renameDuplicateNumber:x?!0:!1})}};w.RemoteImpl=p;var v,n,z;(function(){var B=com.kingdee.bos.qing.framework.common;
v=B.AbstractFacade;n=B.AbstractIcons;z=B.AbstractRemoteCall;B.MultilanguageManager.createPackageAccessor(w)})();w.MyIcons=new function(){n.call(this);var B=this.protectedMethod;this.protectedInit=function(J,E){J=com.kingdee.bos.qing.modeler.deploy.ComboIcon;if(!J)throw Error("com.kingdee.bos.qing.modeler.deploy.ComboIcon not found.");J.define(E,"model-common");E.setGap(1);E.setStartPosition(0,117);E.setIconSize(16,16);q(1,1,"btn-delete");q(0,1,"btn-delete_hover");E.setStartPosition(9,-3);E.setIconSize(16,
16);q(5,5,"data-table-model-icon-small");E.setStartPosition(12,-3);q(5,6,"relation-model-icon-small");E.setStartPosition(11,-3);q(5,7,"entity-model-icon-small");q(5,8,"metric-model-icon-small");q(5,9,"metric-icon-small");E.setStartPosition(0,151);E.setIconSize(170,98);q(0,0,"icon-empty");J.define(E,"deploy");E.setGap(1);E.setStartPosition(1,1);E.setIconSize(32,32);q(0,0,"delete");q(1,0,"delete_hover");q(0,1,"revert");q(1,1,"revert_hover");q(0,2,"sync");q(1,2,"sync_hover");q(0,3,"undeploy");q(1,3,
"undeploy_hover");E.setStartPosition(0,100);E.setIconSize(14,14);q(0,0,"refresh_hover");q(1,0,"refresh");E.setStartPosition(1,1);E.setIconSize(16,16);q(0,0,"icon_search");q(0,1,"icon_search_hover")};var q=function(J,E,I){B.registIcon(J,E,I)}};w.Integration=new function(){var B=new p,q,J,E;this.setParamPathPrefix=function(I){q=I};this.getParamPathPrefix=function(){return q};this.getRemoteImpl=function(){return B};this.setRemoteUrl=function(I){B.setRemoteUrl(I)};this.setDeployModelDesignerEntrance=
function(I){J=I};this.getDeployModelDesignerEntrance=function(){return J};this.setDataAuthorityEntrance=function(I){E=I};this.getDataAuthorityEntrance=function(){return E}};var y=new function(){var B;this.hookCollector=function(q){B=q};this.occur=function(q,J){try{B&&B(q,J)}catch(E){window.console&&console.warn(E)}};this.getContainChildrenStatus=function(q){return q?y.CONTAIN:y.NOT_CONTAIN};this.getPageShowMethod=function(q){var J=oPackage=com.kingdee.bos.qing.modeler.deploy.ui.DeployViewType;switch(q){case J.DEPLOYED_MODEL:return y.BY_CLASS_AND_MODEL;
case J.DEPLOY_RECORD:return y.BY_DEPLOY_RECORD}}};y.PAGE_SHOW_METHOD="page-show-method";y.CONTAIN_CHILDREN_MODEL_GROUP="contain-children-model-group";y.BUTTON_TYPE="button-type";y.BY_CLASS_AND_MODEL="\u6309\u76ee\u5f55\u548c\u6a21\u578b\u5c55\u793a";y.BY_DEPLOY_RECORD="\u6309\u90e8\u7f72\u8bb0\u5f55\u5c55\u793a";y.CONTAIN="\u52fe\u9009";y.NOT_CONTAIN="\u4e0d\u52fe\u9009";y.BY_CLASS_AND_MODEL_CANCEL_DEPLOY="\u6309\u76ee\u5f55\u548c\u6a21\u578b\u5c55\u793a-\u53d6\u6d88\u90e8\u7f72";y.BY_CLASS_AND_MODEL_DELETE_RECORD=
"\u6309\u76ee\u5f55\u548c\u6a21\u578b\u5c55\u793a-\u5220\u9664\u90e8\u7f72\u8bb0\u5f55";y.BY_CLASS_AND_MODEL_BACK="\u6309\u76ee\u5f55\u548c\u6a21\u578b\u5c55\u793a-\u56de\u9000\u5230\u8be5\u90e8\u7f72\u72b6\u6001";y.BY_CLASS_AND_MODEL_SYNCHRONIZED="\u6309\u76ee\u5f55\u548c\u6a21\u578b\u5c55\u793a-\u540c\u6b65\u56de\u5de5\u4f5c\u6a21\u578b";y.BY_DEPLOY_RECORD_CANCEL_DEPLOY="\u6309\u90e8\u7f72\u8bb0\u5f55\u5c55\u793a-\u53d6\u6d88\u90e8\u7f72";y.BY_DEPLOY_RECORD_BACK="\u6309\u90e8\u7f72\u8bb0\u5f55\u5c55\u793a-\u56de\u9000\u5230\u8be5\u90e8\u7f72\u72b6\u6001";
w.UserOperationReporter=y})();(function(){function p(){var n=this,z,y,B,q,J,E,I,C;this.setModelSetDeployId=function(t){z=t};this.getModelSetDeployId=function(){return z};this.setModelSetId=function(t){y=t};this.getModelSetId=function(){return y};this.setDesc=function(t){B=t};this.getDesc=function(){return B};this.setDeployer=function(t){q=t};this.getDeployer=function(){return q};this.setDeployTime=function(t){J=t};this.getDeployTime=function(){return J};this.setPreviousId=function(t){E=t};this.getPreviousId=function(){return E};
this.setSequence=function(t){I=t};this.getSequence=function(){return I};this.setDeployed=function(t){C=t};this.getDeployed=function(){return C};this.fromJsonObject=function(t){n.setModelSetDeployId(t.modelSetDeployId);n.setModelSetId(t.modelSetId);n.setDesc(t.desc);n.setDeployer(t.deployer);n.setDeployTime(t.deployTime);n.setPreviousId(t.previousId);n.setSequence(t.sequence);n.setDeployed(t.deployed)}}function w(){var n=this,z,y,B,q,J,E,I,C;this.setModelDeployId=function(t){z=t};this.getModelDeployId=
function(){return z};this.setModelSetDeployId=function(t){y=t};this.getModelSetDeployId=function(){return y};this.setModelId=function(t){B=t};this.getModelId=function(){return B};this.setNumber=function(t){q=t};this.getNumber=function(){return q};this.setModelName=function(t){J=t};this.getModelName=function(){return J};this.setModelType=function(t){E=t};this.getModelType=function(){return E};this.setStatus=function(t){C=t};this.getStatus=function(){return C};this.setPath=function(t){I=t};this.getPath=
function(){return I};this.fromJsonObject=function(t){n.setModelDeployId(t.modelDeployId);n.setModelSetDeployId(t.setDeployId);n.setModelId(t.modelId);n.setNumber(t.number);n.setModelName(t.modelName);n.setModelType(t.modelType);n.setPath(t.path);n.setStatus(t.operate)}}"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.deploy&&(com.kingdee.bos.qing.modeler.deploy={});"undefined"==typeof com.kingdee.bos.qing.modeler.deploy.model&&(com.kingdee.bos.qing.modeler.deploy.model={});var v=com.kingdee.bos.qing.modeler.deploy.model;v.ModelSetDeploy=p;v.DeployModel=function(){var n=this,z,y,B,q,J,E,I,C,t,N;this.setModelDeployId=function(x){z=x};this.getModelDeployId=function(){return z};this.setModelId=function(x){y=x};this.getModelId=function(){return y};
this.setNumber=function(x){B=x};this.getNumber=function(){return B};this.setModelSetId=function(x){q=x};this.getModelSetId=function(){return q};this.setGroupId=function(x){J=x};this.getGroupId=function(){return J};this.setModelName=function(x){E=x};this.getModelName=function(){return E};this.setModelType=function(x){I=x};this.getModelType=function(){return I};this.setModelDesc=function(x){C=x};this.getModelDesc=function(){return C};this.setDeployer=function(x){t=x};this.getDeployer=function(){return t};
this.setDeployTime=function(x){N=x};this.getDeployTime=function(){return N};this.fromJsonObject=function(x){n.setModelDeployId(x.modelDeployId);n.setModelId(x.modelId);n.setNumber(x.number);n.setModelSetId(x.modelSetId);n.setGroupId(x.groupId);n.setModelName(x.modelName);n.setModelType(x.modelType);n.setModelDesc(x.modelDesc);n.setDeployer(x.deployer);n.setDeployTime(x.deployTime)};this.toJsonObject=function(){var x={};x.modelDeployId=z;x.modelId=y;x.number=B;x.modelSetId=q;x.groupId=J;x.modelName=
E;x.modelType=I;x.modelDesc=C;x.deployer=t;x.deployTime=N;return x}};v.ModelDeployDetail=function(){var n=this,z,y,B,q,J,E,I,C,t,N,x,sa;this.setModelDeployId=function(F){z=F};this.getModelDeployId=function(){return z};this.setModelSetDeployId=function(F){y=F};this.getModelSetDeployId=function(){return y};this.setModelId=function(F){B=F};this.getModelId=function(){return B};this.setNumber=function(F){q=F};this.getNumber=function(){return q};this.setModelName=function(F){J=F};this.getModelName=function(){return J};
this.setDeployDesc=function(F){C=F};this.getDeployDesc=function(){return C};this.setDeployer=function(F){E=F};this.getDeployer=function(){return E};this.setDeployTime=function(F){I=F};this.getDeployTime=function(){return I};this.setPreviousId=function(F){t=F};this.getPreviousId=function(){return t};this.setSequence=function(F){N=F};this.getSequence=function(){return N};this.setOperate=function(F){x=F};this.getOperate=function(){return x};this.setDeployed=function(F){sa=F};this.getDeployed=function(){return sa};
this.fromJsonObject=function(F){n.setModelDeployId(F.modelDeployId);n.setModelSetDeployId(F.setDeployId);n.setModelId(F.modelId);n.setNumber(F.number);n.setModelName(F.modelName);n.setDeployer(F.deployer);n.setDeployTime(F.deployTime);n.setDeployDesc(F.deployDesc);n.setPreviousId(F.previousId);n.setSequence(F.sequence);n.setOperate(F.operate);n.setDeployed(F.deployed)}};v.DeployModelDetail=w;v.DeployResult=function(){var n,z,y,B={};this.getDeployId=function(){return z};this.getModelId=function(){return n};
this.getRenamedMetricNumMap=function(){return B};this.getModelSetDeployId=function(){return y};this.fromJsonObject=function(q){z=q.deployId;n=q.modelId;y=q.modelSetDeployId;q.renamedMetricNumber&&(B=q.renamedMetricNumber)}};p.DEPLOYED="0";p.UNDEPLOYED="1";p.REVERT="2";w.DEPLOY_OPERATE_ADD="0";w.DEPLOY_OPERATE_UPDATE="1";w.DEPLOY_OPERATE_DELETE="2";w.DEPLOY_OPERATE_UNDEPLOY="3"})();(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.modeler&&(com.kingdee.bos.qing.modeler={});"undefined"==typeof com.kingdee.bos.qing.modeler.deploy&&(com.kingdee.bos.qing.modeler.deploy={});"undefined"==typeof com.kingdee.bos.qing.modeler.deploy.ui&&(com.kingdee.bos.qing.modeler.deploy.ui=
{});var p=com.kingdee.bos.qing.modeler.deploy.ui;p.Main=function(){function K(){var b;this.getJqUi=function(){b||a();return b};var a=function(){b=$("<div>");b.addClass("deploy-manage-main-area");ba=$("<div>");ba.addClass("model-group-container");U=new sa;U.setFunCustomModelCreator(nb);U.setFunCustomModelSort(function(c){c.sort(function(h,k){var r=(new Date(k.getDeployTime())).getTime(),d=(new Date(h.getDeployTime())).getTime();r===d&&(r=(new Date(k.getDeployTime())).getTime(),d=(new Date(h.getDeployTime())).getTime());
return r-d})});U.setFunShowModels(Na);U.setFunIsModelSearch(function(){return fa});U.setFunDoModelSearch(Ha);U.setFunClearSearchStatus(ob);U.setModelSetId(Z);U.setDoContainChildCallback(function(c){M.occur(M.CONTAIN_CHILDREN_MODEL_GROUP,M.getContainChildrenStatus(c))});ba.append(U.getJqUi());ba.appendTo(b);var e=new Za(V.DEPLOYED_MODEL,"<div class='deploy-model-view-container'>","<div class='deploy-model-list-view'>");ma=e.getJqUi();ma.appendTo(b);e.getJqDeployListView();ca=(new $a(V.DEPLOYED_MODEL,
"<div class='deploy-model-detail-container'>")).getJqUi();ca.appendTo(b);ca.hide();e=new Za(V.DEPLOY_RECORD,"<div class='deploy-record-view-container'>","<div class='deploy-record-list-view'>");ja=e.getJqUi();ja.appendTo(b);e.getJqDeployListView();ja.hide();da=(new $a(V.DEPLOY_RECORD,"<div class='deploy-record-detail-container'>")).getJqUi();da.appendTo(b);da.hide()}}function pb(){var b;this.getJqUi=function(){if(!b){b=$("<div>");b.addClass("view-type-tab-area");var a=$("<div>");a.addClass("view-type-tab-title");
a.text(l.get("viewType","\u5c55\u793a\u65b9\u5f0f\uff1a"));a.appendTo(b);X=$("<div>");X.addClass("view-type-box-checked");a=new V(V.DEPLOYED_MODEL,l.get("viewAsGroupAndModel","\u6309\u76ee\u5f55\u548c\u6a21\u578b\u5c55\u793a"));X.text(a.getText());X.attr("viewType",a.getType());X.attr("title",a.getText());X.attr("checked","checked");X.on("click",ab);X.appendTo(b);Y=$("<div>");Y.addClass("view-type-box-unchecked");a=new V(V.DEPLOY_RECORD,l.get("viewAsDeployRecord","\u6309\u90e8\u7f72\u8bb0\u5f55\u5c55\u793a"));
Y.text(a.getText());Y.attr("viewType",a.getType());Y.attr("title",a.getText());Y.on("click",ab);Y.appendTo(b)}return b}}function V(b,a){this.getType=function(){return b};this.getText=function(){return a}}function Za(b,a,e){var c,h,k;this.getJqDeployListView=function(){return k};this.getJqUi=function(){c||r();return c};var r=function(){c=$(a);k=$(e);if(b===V.DEPLOYED_MODEL){Ia(c,ba.width());var d=new Oa;d.setCallbackImmediately(function(){c.is(":visible")&&(Ja&&Q.updateUi(!0),Q.refresh(!0))});d.setDelay(250);
d.observe();d=l.get("noDeployedModelTips","\u6682\u65e0\u5df2\u90e8\u7f72\u7684\u6a21\u578b");var f="<div class='deploy-model-title-bar'>";Q||(Q=new qb,Q.setNoData(new N(d)),Q.setSearchNoData(new x));Q.getJqUi().appendTo(k)}else{c.css("width","100%");d=new Oa;d.setCallbackImmediately(function(){c.is(":visible")&&(Ja&&R.updateUi(!0),R.refresh(!0))});d.setDelay(250);d.observe();d=l.get("noDeployRecordTips","\u6682\u65e0\u90e8\u7f72\u8bb0\u5f55");f="<div class='deploy-record-title-bar'>";var g=l.get("deployRecord",
"\u90e8\u7f72\u8bb0\u5f55");R||(R=new rb,R.setNoData(new N(d)),R.setSearchNoData(new x));R.getJqUi().appendTo(k)}k.appendTo(c);h=sb(b,f,g);h.appendTo(c)}}function $a(b,a){var e,c;this.getJqUi=function(){e||h();return e};var h=function(){e=$(a);c=$("<div>");c.addClass("deploy-manage-title-bar");var d=$("<span>");d.addClass("deploy-manage-list-title-text");d.text(l.get("deployDetail","\u90e8\u7f72\u8be6\u60c5"));d.appendTo(c);c.appendTo(e);if(b===V.DEPLOYED_MODEL){d=$("<div>");d.addClass("deploy-detail-close");
d.text("\u00d7");d.appendTo(c);d.on("click",function(u){ca.hide(0,bb);Q.refresh()});d=$("<div>");d.addClass("deploy-model-detail-operate-bar");var f=$("<div>");f.addClass("operate-item-undeploy");var g=l.get("undeploy","\u53d6\u6d88\u90e8\u7f72");ha=$("<div>");ha.addClass("operate-btn");ha.on("click",r);v.backgroundWithHover(ha,"undeploy");ha.attr("title",g);ha.appendTo(f);ia=$("<div>");ia.addClass("operate-text");ia.text(g);ia.attr("title",g);ia.on("click",r);ia.appendTo(f);g=$("<div>");g.addClass("operate-item-delete");
var m=l.get("deleteDeployRecord","\u5220\u9664\u90e8\u7f72\u8bb0\u5f55");na=$("<div>");na.addClass("operate-btn");na.on("click",k);v.backgroundWithHover(na,"delete");na.attr("title",m);na.appendTo(g);oa=$("<div>");oa.addClass("operate-text");oa.text(m);oa.attr("title",m);oa.on("click",k);oa.appendTo(g);f.appendTo(d);g.appendTo(d);d.appendTo(e);Pa=$("<div class='deploy-model-detail-list-view'>");pa||(pa=new tb,pa.setNoData(new N(l.get("noDeployDetailTips","\u6682\u65e0\u90e8\u7f72\u8be6\u60c5\u8bb0\u5f55"))));
pa.getJqUi().appendTo(Pa);Pa.appendTo(e);cb(!0)}else d=$("<div>"),d.addClass("deploy-detail-close"),d.text("\u00d7"),d.appendTo(c),d.on("click",function(u){da.hide(0,db);R.refresh()}),Ba=new ub,Ba.setTitle(l.get("thisTimeChangedModel","\u672c\u6b21\u53d8\u66f4\u7684\u6a21\u578b")),Ba.setNoData(new N(l.get("noChangedModelTips","\u6682\u65e0\u53d8\u66f4\u7684\u6a21\u578b"))),Ca=new vb,Ca.setTitle(l.get("allValidModel","\u5168\u90e8\u751f\u6548\u7684\u6a21\u578b")),Ca.setNoData(new N(l.get("noValidModelTips",
"\u6682\u65e0\u751f\u6548\u7684\u6a21\u578b"))),ta=new B,ta.setTabLevel(B.SECOND_LEVEL),ta.addTabChangedListener(wb),ta.addTab(Ba,!0),ta.addTab(Ca),Qa=ta.getJqUi(),Qa.addClass("deploy-record-detail-list-view"),Qa.appendTo(e)},k=function(d){(d=pa.getFirstRowModel())&&d.getOperate()!==C.DEPLOY_OPERATE_UNDEPLOY?(d=l.get("undeployThenDelete","\u8bf7\u5148\u53d6\u6d88\u90e8\u7f72\uff0c\u518d\u5220\u9664\u90e8\u7f72\u8bb0\u5f55\u3002"),L.getMessageCurtain().showPrompt(d,2E3)):wa(q.MSG_DELETE,l.get("confirmDelete",
"\u5220\u9664\u90e8\u7f72\u8bb0\u5f55\u540e\u5c06\u65e0\u6cd5\u6062\u590d\uff0c\u786e\u5b9a\u5220\u9664\u5417\uff1f"),xb,Q.getSelectionUserModel())},r=function(d){wa(q.MSG_CONFIRM,l.get("confirmUndeploy","\u53d6\u6d88\u90e8\u7f72\u540e\uff0c\u8be5\u6a21\u578b\u5c06\u65e0\u6cd5\u88ab\u5f15\u7528\uff0c\u786e\u5b9a\u53d6\u6d88\u90e8\u7f72\u5417\uff1f"),yb,Q.getSelectionUserModel())}}function Da(b,a,e,c,h){function k(){this.getTailBlankForDragging=function(){return-1};this.isRowDraggable=function(A,D){return!1};
this.isColumnDraggable=function(A,D){return A.getColumnsCount()==D+1?!1:!0};this.getMinRowHeightLimited=function(A,D){return 3};this.getMinColumnWidthLimited=function(A,D){return 4};this.rowDraggedAction=function(A,D,W){var ea=A.isSyncUIWhenModelChanged();A.setSyncUIWhenModelChanged(!0);D=A.getRow(D);D.setHeight(D.getHeight()+W);A.setSyncUIWhenModelChanged(ea)};this.setMinColumnWidth=function(A){};this.columnDraggedAction=function(A,D,W){var ea=A.isSyncUIWhenModelChanged();A.setSyncUIWhenModelChanged(!0);
D=A.getColumn(D);D.setWidth(D.getWidth()+W);A.setSyncUIWhenModelChanged(ea);ka()}}var r=this,d,f,g,m,u,G,H,S,O,la=!0;this.getSelectionUserModel=function(){var A=f.getSelectionModel().getSelected();if(A){var D=A.getRowIdx();D=f.getRow(D).getUserObject()}return D};this.setRowSelectedByModel=function(A,D){d&&0!==d.length&&A&&D&&(A=D(d),-1!=A&&(D=f.getSelectionModel()))&&(D.removeAllSelecteds(),A=D.createRowTarget(A+P.getHeadRowCount()),u.addSelected(A),r.refresh(!0))};this.setNoData=function(A){G=A};
this.setSearchNoData=function(A){H=A};this.isSearchMode=function(){return!1};this.setModels=function(A){d=A;r.updateUi()};this.refresh=function(A){P.refresh(f);A?ka():u&&u.hasSelected()&&u.removeAllSelecteds()};this.getJqUi=function(){m||qa();return m};this.updateUi=function(A){g&&g.show();if(d){var D;f||qa();P.clear(f);!A&&u&&u.removeAllSelecteds();var W=b.length;f.addColumns(W);var ea=P.createHeadRow(f);ea.setHeight(24);for(D=0;D<W;D++)f.getColumn(D).setWidth(b[D].width),ea.getCell(D).setValue(b[D].text);
e(f);D=0;for(W=d.length;D<W;D++){ea=d[D];var eb=P.createRow(f,!1),Ka=new KTBorderStyle;Ka.setBottomBorderWidth(1);Ka.setBottomBorderPen("solid");Ka.setBottomBorderColor("#E5E5E5");eb.setBorder(Ka);eb.setUserObject(ea)}(D=0<d.length)&&A&&ka();A=!D;D=S;W=O;ea=r.isSearchMode();A?(!ea&&D.show()&&W&&W.hide(),ea&&D.hide()&&W&&W.show()):(D&&D.hide(),W&&W.hide())}};this.relayoutViews=function(){f&&(P.refresh(f),f.relayoutViews())};var qa=function(){m=$(a);f=P.createTable();f.setColumnFitVisibleWidth(!0);
f.setDraggableAdjusting(!0,3,0,new k);f.setSyncUIWhenModelChanged(!0);c&&(P.setupSingleRowSelection(f),u=f.getSelectionModel(),f.addUIListener("new-select",function(A,D){u=f.getSelectionModel();(A=u.getSelected())&&la&&(A=A.getRowIdx(),A=f.getRow(A).getUserObject(),c(A))}));g=$(f.getUI());!h&&Ra.layoutCtrlWithLRTB(g,10,10,null,10,10,null);m.append(g);G&&(S=G.getJqUi(),S.appendTo(m),S.hide());H&&(O=H.getJqUi(),O.appendTo(m),O.hide())},ka=function(){la=!1;if(u&&u.hasSelected()){var A=u.getSelected();
u.removeAllSelecteds();A&&u.addSelected(A)}la=!0}}function qb(){function b(e){KTDefaultCellRender.call(this,e);var c=this,h=this.paintCellUI;this.paintCellUI=function(k,r){var d=c.getCurrentRowIdx(),f=c.getCurrentRow(),g=c.getCurrentColIdx();f=f.getUserObject();var m=new Ea;m.setFormatString("yyyy-MM-dd HH:mm:ss");d<P.getHeadRowCount()?h(k,r):0===g?(f=$("<div class='list-cell-item'>"),f.attr("title",d-P.getHeadRowCount()+1),f.text(d-P.getHeadRowCount()+1),f.appendTo(k)):1===g?(d=$("<div class='list-cell-item'>"),
f=f.getNumber(),d.attr("title",f),fa&&""!=$.trim(T.getText())?xa(d,f,$.trim(T.getText())):d.text(f),d.appendTo(k)):2===g?(d=$("<div class='model-name-info'>"),m=$("<span class='list-cell-item-name'>"),g=f.getModelName(),f=f.getModelType(),fa&&""!=$.trim(T.getText())?xa(m,g,$.trim(T.getText())):m.text(g),m.attr("title",g),Sa(f).appendTo(d),m.appendTo(d),d.appendTo(k)):3===g?(d=$("<div class='list-cell-item'>"),f=f.getModelDesc(),d.attr("title",f),fa&&""!=$.trim(T.getText())?xa(d,f,$.trim(T.getText())):
d.text(f),d.appendTo(k)):5===g?(d=$("<div class='list-cell-item'>"),f=f.getDeployer(),fa&&""!=$.trim(T.getText())?xa(d,f,$.trim(T.getText())):d.text(f),d.attr("title",f),d.appendTo(k)):4===g&&(d=$("<div class='list-cell-item'>"),f=f.getDeployTime(),f=m.format(f),d.text(f),d.attr("title",f),d.appendTo(k));h(k,r)}}var a=[{width:50,text:l.get("serialNumber","\u5e8f\u53f7")},{width:100,text:l.get("number","\u7f16\u7801")},{width:120,text:l.get("name","\u540d\u79f0")},{width:150,text:l.get("modelDesc",
"\u63cf\u8ff0")},{width:120,text:l.get("newestDeployTime","\u6700\u65b0\u90e8\u7f72\u65f6\u95f4")},{width:100,text:l.get("newestDeployer","\u6700\u65b0\u90e8\u7f72\u4eba")}];Da.call(this,a,"<div class='deploy-model-list-table'>",function(e){var c=new b(e);c.setOutsideVisible(!1);e.setCellRender(c)},Fa);this.isSearchMode=function(){return fa}}function rb(){function b(c){KTDefaultCellRender.call(this,c);var h=this,k=this.paintCellUI;this.paintCellUI=function(r,d){var f=h.getCurrentRowIdx(),g=h.getCurrentRow(),
m=h.getCurrentColIdx(),u=g.getUserObject();g=new Ea;g.setFormatString("yyyy-MM-dd HH:mm:ss");if(f<P.getHeadRowCount())k(r,d);else if(0===m)g=$("<div class='list-cell-item'>"),g.attr("title",f-P.getHeadRowCount()+1),g.text(f-P.getHeadRowCount()+1),g.appendTo(r);else if(1===m)f=$("<div class='list-cell-item'>"),g=u.getDeployer(),ya&&""!=$.trim(aa.getText())?xa(f,g,$.trim(aa.getText())):f.text(g),f.attr("title",g),f.appendTo(r);else if(2===m)f=$("<div class='list-cell-item'>"),m=u.getDeployTime(),g=
g.format(m),f.text(g),f.attr("title",g),f.appendTo(r);else if(3===m)f=$("<div class='list-cell-item'>"),g=u.getDesc(),f.attr("title",g),ya&&""!=$.trim(aa.getText())?xa(f,g,$.trim(aa.getText())):f.text(g),f.appendTo(r);else if(4===m){g=$("<div class='list-cell-item-operate'>");var G=u.getDeployed();f===P.getHeadRowCount()&&a===u.getSequence()?G!==J.UNDEPLOYED&&(f=$("<div>"),f.addClass("list-cell-item-operate-one"),f.on("mousedown",function(H){H.stopPropagation();G===J.UNDEPLOYED?(H=l.get("alreadyUnDeployed",
"\u5df2\u7ecf\u53d6\u6d88\u90e8\u7f72\u4e86"),L.getMessageCurtain().showPrompt(H,2E3)):wa(q.MSG_CONFIRM,l.get("confirmUndeployModelSet","\u53d6\u6d88\u90e8\u7f72\u540e\uff0c\u90e8\u7f72\u8be6\u60c5\u4e2d\u672c\u6b21\u53d8\u66f4\u7684\u6a21\u578b\u90fd\u5c06\u4f1a\u53d8\u4e3a\u201c\u53d6\u6d88\u90e8\u7f72\u201d\u72b6\u6001\u4e14\u65e0\u6cd5\u88ab\u5f15\u7528\uff0c\u786e\u5b9a\u53d6\u6d88\u90e8\u7f72\u5417\uff1f"),zb,u)}),v.backgroundWithHover(f,"undeploy"),f.attr("title",l.get("undeploy","\u53d6\u6d88\u90e8\u7f72")),
f.appendTo(g)):G!==J.UNDEPLOYED&&(f=$("<div>"),f.addClass("list-cell-item-operate-one"),f.on("mousedown",function(H){H.stopPropagation();wa(q.MSG_CONFIRM,l.get("confirmRevert","\u56de\u9000\u540e\uff0c\u5c06\u4f7f\u7528\u8be5\u90e8\u7f72\u72b6\u6001\u91cd\u65b0\u90e8\u7f72\u6a21\u578b\uff0c\u786e\u5b9a\u56de\u9000\u5417\uff1f"),fb,u)}),v.backgroundWithHover(f,"revert"),f.attr("title",l.get("revertToThisDeployStatus","\u56de\u9000\u5230\u8be5\u90e8\u7f72\u72b6\u6001")),f.appendTo(g));g.appendTo(r)}k(r,
d)}}var a,e=[{width:50,text:l.get("serialNumber","\u5e8f\u53f7")},{width:120,text:l.get("deployer","\u90e8\u7f72\u4eba")},{width:120,text:l.get("deployTime","\u90e8\u7f72\u65f6\u95f4")},{width:150,text:l.get("deployDesc","\u90e8\u7f72\u63cf\u8ff0")},{width:100,text:l.get("operate","\u64cd\u4f5c")}];Da.call(this,e,"<div class='deploy-record-list-table'>",function(c){var h=new b(c);h.setOutsideVisible(!1);c.setCellRender(h)},Ab);this.setTopSeq=function(c){a=c};this.isSearchMode=function(){return ya}}
function tb(){function b(h){KTDefaultCellRender.call(this,h);var k=this,r=this.paintCellUI;this.paintCellUI=function(d,f){var g=k.getCurrentRowIdx(),m=k.getCurrentRow(),u=k.getCurrentColIdx(),G=m.getUserObject(),H=new Ea;H.setFormatString("yyyy-MM-dd HH:mm:ss");var S=P.getHeadRowCount();m=!1;g>=S&&(m=G.getOperate()===C.DEPLOY_OPERATE_UNDEPLOY);g===P.getHeadRowCount()&&(e=G);g<S?r(d,f):0===u?(m=$("<div class='list-cell-item'>"),g=G.getNumber(),m.attr("title",g),m.text(g),m.appendTo(d)):1===u?(m=$("<div class='model-name-info'>"),
g=$("<span class='list-cell-item-name'>"),H=G.getModelName(),g.text(H),g.attr("title",H),g.css("cursor","pointer"),g.css("color","#0E5FD8"),m.on("click",function(O){O&&O.stopPropagation?O.stopPropagation():window.event.cancelBubble=!0;O=Z;var la=G.getModelId(),qa=c?c.getModelType():null,ka=G.getModelName(),A=G.getModelDeployId();n.getDeployModelDesignerEntrance()(O,la,qa,ka,A)}),m.appendTo(d),g.appendTo(m)):2===u?(g=$("<div class='list-cell-item'>"),S=G.getDeployTime(),m?(m="! "+l.get("someoneUnDeployed",
'"#1"\u5df2\u53d6\u6d88\u90e8\u7f72').replace("#1",G.getDeployer()),g.css("color","red")):m=H.format(S),g.text(m),g.attr("title",m),g.appendTo(d)):3===u?(g=$("<div class='list-cell-item'>"),H=G.getDeployer(),g.attr("title",H),g.text(H),!m&&g.appendTo(d)):4===u?(g=$("<div class='list-cell-item'>"),H=G.getDeployDesc(),g.attr("title",H),g.text(H),!m&&g.appendTo(d)):5===u&&(H=$("<div>"),H.addClass("list-cell-item-operate-box"),m||(u=$("<div>"),u.addClass("list-cell-item-operate-second"),u.on("click",
function(O){wa(q.MSG_CONFIRM,l.get("confirmSync","\u540c\u6b65\u540e\uff0c\u8be5\u90e8\u7f72\u72b6\u6001\u5c06\u4f1a\u8986\u76d6\u5de5\u4f5c\u6a21\u578b\uff0c\u786e\u5b9a\u540c\u6b65\u5417\uff1f"),gb,G,hb)}),v.backgroundWithHover(u,"sync"),u.attr("title",l.get("syncToWorkingModel","\u540c\u6b65\u56de\u5de5\u4f5c\u6a21\u578b")),u.appendTo(H)),g!==S?m||(m=$("<div>"),m.addClass("list-cell-item-operate-first"),m.on("click",function(O){wa(q.MSG_CONFIRM,l.get("confirmRevert","\u56de\u9000\u540e\uff0c\u5c06\u4f7f\u7528\u8be5\u90e8\u7f72\u72b6\u6001\u91cd\u65b0\u90e8\u7f72\u6a21\u578b\uff0c\u786e\u5b9a\u56de\u9000\u5417\uff1f"),
ib,G)}),v.backgroundWithHover(m,"revert"),m.attr("title",l.get("revertToThisDeployStatus","\u56de\u9000\u5230\u8be5\u90e8\u7f72\u72b6\u6001")),m.appendTo(H)):m?(ha.addClass("operate-disable"),ia.addClass("operate-disable")):(ha.removeClass("operate-disable"),ia.removeClass("operate-disable")),H.appendTo(d));r(d,f)}}var a=[{width:100,text:l.get("number","\u7f16\u7801")},{width:90,text:l.get("name","\u540d\u79f0")},{width:150,text:l.get("deployTime","\u90e8\u7f72\u65f6\u95f4")},{width:100,text:l.get("deployer",
"\u90e8\u7f72\u4eba")},{width:100,text:l.get("deployDesc","\u90e8\u7f72\u63cf\u8ff0")},{width:80,text:l.get("operate","\u64cd\u4f5c")}];Da.call(this,a,"<div class='deploy-detail-list-table'>",function(h){var k=new b(h);k.setOutsideVisible(!1);h.setCellRender(k)});var e,c;this.getFirstRowModel=function(){return e};this.bindModel=function(h){c=h}}function ub(){function b(k){KTDefaultCellRender.call(this,k);var r=this,d=this.paintCellUI;this.paintCellUI=function(f,g){var m=r.getCurrentRowIdx(),u=r.getCurrentRow(),
G=r.getCurrentColIdx(),H=u.getUserObject();if(m<P.getHeadRowCount())d(f,g);else if(0===G)m=$("<div class='list-cell-item'>"),u=H.getNumber(),m.attr("title",u),m.text(u),m.appendTo(f);else if(1===G){m=$("<div class='model-name-info'>");u=$("<span class='list-cell-item-name'>");G=H.getModelName();var S=H.getModelType();u.text(G);u.attr("title",G);u.css("cursor","pointer");u.css("color","#0E5FD8");u.on("click",function(O){O&&O.stopPropagation?O.stopPropagation():window.event.cancelBubble=!0;O=Z;var la=
H.getModelId(),qa=H.getModelType(),ka=H.getModelName(),A=H.getModelDeployId();n.getDeployModelDesignerEntrance()(O,la,qa,ka,A)});Sa(S).appendTo(m);u.appendTo(m);m.appendTo(f)}else 2===G?(m=$("<div class='list-cell-item'>"),u=H.getPath(),m.attr("title",u),m.text(u),m.appendTo(f)):3===G&&(m=$("<div class='list-cell-item'>"),u=H.getStatus(),m.attr("title",h[u]),m.text(h[u]),m.appendTo(f));d(f,g)}}B.AbstractTabPane.call(this);var a=[{width:150,text:l.get("number","\u7f16\u7801")},{width:150,text:l.get("name",
"\u540d\u79f0")},{width:150,text:l.get("path","\u8def\u5f84")},{width:100,text:l.get("status","\u72b6\u6001")}];Da.call(this,a,"<div class='deploy-record-changed-table'>",function(k){var r=new b(k);r.setOutsideVisible(!1);k.setCellRender(r)},null,!0);var e=this,c,h={};h[C.DEPLOY_OPERATE_ADD]=l.get("add","\u65b0\u589e");h[C.DEPLOY_OPERATE_UPDATE]=l.get("update","\u4fee\u6539");h[C.DEPLOY_OPERATE_DELETE]=l.get("delete","\u5220\u9664");h[C.DEPLOY_OPERATE_UNDEPLOY]=l.get("undeploy","\u53d6\u6d88\u90e8\u7f72");
this.setTitle=function(k){c=k};this.getTitle=function(){return c};this.into=function(){e.refresh()}}function vb(){function b(h){KTDefaultCellRender.call(this,h);var k=this,r=this.paintCellUI;this.paintCellUI=function(d,f){var g=k.getCurrentRowIdx(),m=k.getCurrentRow(),u=k.getCurrentColIdx(),G=m.getUserObject();if(g<P.getHeadRowCount())r(d,f);else if(0===u)g=$("<div class='list-cell-item'>"),m=G.getNumber(),g.attr("title",m),g.text(m),g.appendTo(d);else if(1===u){g=$("<div class='model-name-info'>");
m=$("<span class='list-cell-item-name'>");u=G.getModelName();var H=G.getModelType();m.text(u);m.attr("title",u);m.css("cursor","pointer");m.css("color","#0E5FD8");m.on("click",function(S){S&&S.stopPropagation?S.stopPropagation():window.event.cancelBubble=!0;S=Z;var O=G.getModelId(),la=G.getModelType(),qa=G.getModelName(),ka=G.getModelDeployId();n.getDeployModelDesignerEntrance()(S,O,la,qa,ka)});Sa(H).appendTo(g);m.appendTo(g);g.appendTo(d)}else 2===u&&(g=$("<div class='list-cell-item'>"),m=G.getPath(),
g.attr("title",m),g.text(m),g.appendTo(d));r(d,f)}}B.AbstractTabPane.call(this);var a=[{width:150,text:l.get("number","\u7f16\u7801")},{width:150,text:l.get("name","\u540d\u79f0")},{width:150,text:l.get("path","\u8def\u5f84")}];Da.call(this,a,"<div class='deploy-record-valid-table'>",function(h){var k=new b(h);k.setOutsideVisible(!1);h.setCellRender(k)},null,!0);var e=this,c;this.setTitle=function(h){c=h};this.getTitle=function(){return c};this.into=function(){e.refresh()}}var Ga,jb,X,Y,Ta=!0,U,ba,
ma,ja,ca,da,R,Q,ta,Pa,Qa,pa,Ba,Ca,ha,ia,na,oa,ua,T,fa=!1,za,aa,ya=!1,Ua=[],va=!0,ra=!0,Ja=!0,L=new function(){var b;this.getMessageCurtain=function(){b||(b=new z,b.getJqUi().appendTo($("body")));return b};this.createFacade=function(a,e,c){var h=n.getRemoteImpl();return new w(h,a,function(k,r,d){return e?e(k,r,d):!1},c)}};this.createDeployManageJqUi=function(){Ga=$("<div>");Ga.addClass("deploy-manage");jb=(new pb).getJqUi();jb.appendTo(Ga);(new K).getJqUi().appendTo(Ga);La();return Ga};var nb=function(){return new E},
Na=function(b){ca.hide(0,bb);Q.setModels(b);Q.refresh()},ab=function(b){b=$(b.target);"checked"!==b.attr("checked")&&(b.attr("viewType")===V.DEPLOYED_MODEL?(Ta=!0,X.attr("checked","checked"),X.removeClass("view-type-box-unchecked"),X.addClass("view-type-box-checked"),Y.removeAttr("checked"),Y.removeClass("view-type-box-checked"),Y.addClass("view-type-box-unchecked"),Ja=!1,ba.show(),ma.show(),Q.getSelectionUserModel()?ca.show(0,Va):Q.refresh(!0),ja.hide(),da.hide(),va&&La()):(Ta=!1,Y.attr("checked",
"checked"),Y.removeClass("view-type-box-unchecked"),Y.addClass("view-type-box-checked"),X.removeAttr("checked"),X.removeClass("view-type-box-checked"),X.addClass("view-type-box-unchecked"),ja.show(),R.getSelectionUserModel()?da.show(0,Wa):R.refresh(!0),ba.hide(),ma.hide(),ca.hide(),ra&&Aa()),M.occur(M.PAGE_SHOW_METHOD,M.getPageShowMethod(b.attr("viewType"))))};p.DeployViewType=V;V.DEPLOYED_MODEL="0";V.DEPLOY_RECORD="1";var cb=function(b){b?(ha.addClass("operate-disable"),ia.addClass("operate-disable"),
na.addClass("operate-disable"),oa.addClass("operate-disable")):(ha.removeClass("operate-disable"),ia.removeClass("operate-disable"),na.removeClass("operate-disable"),oa.removeClass("operate-disable"))},wa=function(b,a,e,c,h){var k=q.createFeedbackDialog();k.setMsgImageType(b);k.setMessage(a);h&&k.setExtendPainter(function(r,d){h(r,d,c)});k.showDialog();k.setClosingChecker(function(r){r===q.RETURN_OK&&e&&e(c);return!0})},Bb=function(b,a,e,c){var h=q.createFeedbackDialog();h.setMsgImageType(b);h.setOptionType(q.OPTION_OK);
h.setTitle(l.get("operatorTips","\u64cd\u4f5c\u63d0\u793a"));h.setButtonText(q.RETURN_OK,l.get("iSee","\u6211\u77e5\u9053\u4e86"));h.setMessage(a);c&&h.setExtendPainter(function(k,r){c(k,r,e)});h.showDialog()},yb=function(b){L.createFacade(function(a){a=l.get("operateSuccess","\u64cd\u4f5c\u6210\u529f\u3002");L.getMessageCurtain().showSuccess(a,2E3);Fa(b);ra=!0;M.occur(M.BUTTON_TYPE,M.BY_CLASS_AND_MODEL_CANCEL_DEPLOY);return!0},function(a,e){if(20008003===a)return a=l.get("unDeployException","\u53d6\u6d88\u90e8\u7f72\u5f02\u5e38"),
L.getMessageCurtain().showPrompt(a,2E3),!0;if(20004001===a)return L.getMessageCurtain().showPrompt(l.get("disableMaterializedConfigFailed","\u7269\u5316\u5b58\u50a8\u8bbe\u7f6e\u5f02\u5e38\uff0c\u53d6\u6d88\u90e8\u7f72\u5931\u8d25\u3002"),2E3),!0}).unDeployModel(b.getModelId(),Z,b.getModelDeployId(),l.get("unDeployModel","\u53d6\u6d88\u6a21\u578b\u90e8\u7f72"))},zb=function(b){L.createFacade(function(a){a=l.get("operateSuccess","\u64cd\u4f5c\u6210\u529f\u3002");L.getMessageCurtain().showSuccess(a,
2E3);Aa();va=!0;M.occur(M.BUTTON_TYPE,M.BY_DEPLOY_RECORD_CANCEL_DEPLOY);return!0},function(a,e){if(20008003===a)return a=l.get("unDeployException","\u53d6\u6d88\u90e8\u7f72\u5f02\u5e38"),L.getMessageCurtain().showPrompt(a,2E3),!0;if(20004001===a)return L.getMessageCurtain().showPrompt(l.get("disableMaterializedConfigFailed","\u7269\u5316\u5b58\u50a8\u8bbe\u7f6e\u5f02\u5e38\uff0c\u53d6\u6d88\u90e8\u7f72\u5931\u8d25\u3002"),2E3),!0}).unDeployModelSet(b.getModelSetDeployId(),Z,l.get("unDeployModelSet",
"\u53d6\u6d88\u6a21\u578b\u96c6\u90e8\u7f72"))},xb=function(b){L.createFacade(function(a){a=l.get("operateSuccess","\u64cd\u4f5c\u6210\u529f\u3002");L.getMessageCurtain().showSuccess(a,2E3);La();ra=!0;M.occur(M.BUTTON_TYPE,M.BY_CLASS_AND_MODEL_DELETE_RECORD);return!0},function(a,e){if(20008004===a)return a=l.get("deleteDeployException","\u5220\u9664\u90e8\u7f72\u8bb0\u5f55\u5f02\u5e38\u3002"),L.getMessageCurtain().showPrompt(a,2E3),!0}).deleteModelDeploy(b.getModelId())},ib=function(b,a){var e=l.get("revertDeployDesc",
"\u56de\u9000\u5230#1\u72b6\u6001").replace("#1",kb(b.getDeployTime()));L.createFacade(function(c){var h=new t;h.fromJsonObject(c);Xa(h);Fa(b,!0);ra=!0;M.occur(M.BUTTON_TYPE,M.BY_CLASS_AND_MODEL_BACK);return!0},function(c,h){if(20008005===c)return c=l.get("revertDeployException","\u6b64\u90e8\u7f72\u72b6\u6001\u4e0d\u80fd\u56de\u9000\uff0c\u56de\u9000\u5931\u8d25\u3002"),L.getMessageCurtain().showPrompt(c,2E3),Fa(b,!0),ra=!0;if(20004001===c)return L.getMessageCurtain().showPrompt(l.get("revertMaterializedConfigFailed",
"\u7269\u5316\u5b58\u50a8\u8bbe\u7f6e\u5f02\u5e38\uff0c\u56de\u9000\u5931\u8d25\u3002"),2E3),Fa(b,!0),ra=!0;if(20001009===c)return c=q.createFeedbackDialog(),c.setOptionType(q.OPTION_OK_CANCEL),c.setMessage(l.get("duplicateMetricNumberWhenRevert","\u68c0\u6d4b\u5230\u8be5\u7248\u672c\u4e2d\u7684\u6307\u6807\u7f16\u7801\u5df2\u88ab\u4f7f\u7528\uff0c\u56de\u9000\u540e\u6307\u6807\u7f16\u7801\u5c06\u88ab\u91cd\u547d\u540d\uff0c\u786e\u5b9a\u56de\u9000\u5417\uff1f")),c.setClosingChecker(function(k){k==
q.RETURN_OK&&ib(b,!0);return!0}),c.showDialog(),!0}).revertModelDeploy(b.getModelDeployId(),Z,b.getModelId(),e,a)},fb=function(b,a){var e=l.get("revertDeployDesc","\u56de\u9000\u5230#1\u72b6\u6001").replace("#1",kb(b.getDeployTime()));L.createFacade(function(c){var h=new t;h.fromJsonObject(c);Xa(h);Aa();va=!0;M.occur(M.BUTTON_TYPE,M.BY_DEPLOY_RECORD_BACK);return!0},function(c,h){if(20008005===c)return c=l.get("revertDeployException","\u6b64\u90e8\u7f72\u72b6\u6001\u4e0d\u80fd\u56de\u9000\uff0c\u56de\u9000\u5931\u8d25\u3002"),
L.getMessageCurtain().showPrompt(c,2E3),Aa(),va=!0;if(20004001===c)return L.getMessageCurtain().showPrompt(l.get("revertMaterializedConfigFailed","\u7269\u5316\u5b58\u50a8\u8bbe\u7f6e\u5f02\u5e38\uff0c\u56de\u9000\u5931\u8d25\u3002"),2E3),Aa(),va=!0;if(20001009===c)return c=q.createFeedbackDialog(),c.setOptionType(q.OPTION_OK_CANCEL),c.setMessage(l.get("duplicateMetricNumberWhenRevert","\u68c0\u6d4b\u5230\u8be5\u7248\u672c\u4e2d\u7684\u6307\u6807\u7f16\u7801\u5df2\u88ab\u4f7f\u7528\uff0c\u56de\u9000\u540e\u6307\u6807\u7f16\u7801\u5c06\u88ab\u91cd\u547d\u540d\uff0c\u786e\u5b9a\u56de\u9000\u5417\uff1f")),
c.setClosingChecker(function(k){k==q.RETURN_OK&&fb(b,!0);return!0}),c.showDialog(),!0}).revertModelSetDeploy(b.getModelSetDeployId(),Z,e,a)},gb=function(b,a){L.createFacade(function(e){var c=new t;c.fromJsonObject(e);Xa(c);M.occur(M.BUTTON_TYPE,M.BY_CLASS_AND_MODEL_SYNCHRONIZED);return!0},function(e,c){if(20008001<=e&&20009E3>e){switch(e){case 20008008:var h=l.get("modelLockedWhenSync","\u5de5\u4f5c\u6a21\u578b\u5df2\u88ab\u5176\u4ed6\u7528\u6237\u9501\u5b9a\uff0c\u540c\u6b65\u5931\u8d25\u3002");
break;case 20008009:h=l.get("modelNotExistWhenSync","\u6a21\u578b\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\uff0c\u540c\u6b65\u5931\u8d25\u3002");break;case 20008010:return h=l.get("modelOccupancyByMe","\u60a8\u6b63\u5728\u7f16\u8f91\u8be5\u90e8\u7f72\u8bb0\u5f55\u5bf9\u5e94\u7684\u5de5\u4f5c\u6a21\u578b\uff0c\u8bf7\u5173\u95ed\u5de5\u4f5c\u6a21\u578b\u9875\u9762\u540e\u518d\u8fdb\u884c\u540c\u6b65\u64cd\u4f5c\u3002"),Bb(q.MSG_WARNING,h,b,hb),!0}return h?(L.getMessageCurtain().showPrompt(h,
2E3),!0):!1}if(20001009===e)return e=q.createFeedbackDialog(),e.setOptionType(q.OPTION_OK_CANCEL),e.setMessage(l.get("duplicateMetricNumberWhenSync","\u68c0\u6d4b\u5230\u8be5\u7248\u672c\u4e2d\u7684\u6307\u6807\u7f16\u7801\u5df2\u88ab\u4f7f\u7528\uff0c\u540c\u6b65\u56de\u5de5\u4f5c\u6a21\u578b\u540e\u6307\u6807\u7f16\u7801\u5c06\u88ab\u91cd\u547d\u540d\uff0c\u786e\u5b9a\u540c\u6b65\u5417\uff1f")),e.setClosingChecker(function(k){k==q.RETURN_OK&&gb(b,!0);return!0}),e.showDialog(),!0}).syncModelDeployToDesigner(b.getModelDeployId(),
Z,b.getModelId(),a)},hb=function(b,a,e){var c=$("<div>");c.addClass("sa-ctrl-feedback-dialog-text");c.css({top:"-5px"});c.text(a);c.attr("title",a);c.appendTo(b);a=$("<div>");e=l.get("workingModel","\u5de5\u4f5c\u6a21\u578b")+": "+e.getModelName();a.text(e);a.attr("title",e);a.css({position:"absolute",top:"40px",color:"#939393",left:"50%",width:"200px",transform:"translate(-50%, 0)","text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden","text-align":"center"});a.appendTo(b)},xa=function(b,
a,e){if(b&&a&&e){e=e.toUpperCase();for(var c=a.toUpperCase(),h=c.split(e),k=e.length,r=0;r<h.length;r++){var d=c.indexOf(h[r]),f=a.substr(0,h[r].length);d+=h[r].length;var g=c.length-d;c=c.substr(d,g);a=a.substr(d,g);d=$("<span>");d.text(f);d.appendTo(b);r!=h.length-1&&1<h.length&&(d=c.indexOf(e),f=a.substr(d,k),d+=k,g=c.length-d,c=c.substr(d,g),a=a.substr(d,g),d=$("<span>"),d.text(f),d.css("color","red"),d.clone().appendTo(b))}}},La=function(b){var a=function(e){U.setJsonDataAndUpdateUI(e);va=!1;
return!0};L.createFacade(b?b:a,function(e,c){return!1}).listAllGroupAndDeployModel(Z)},Aa=function(b){var a=function(e){if(e){var c=[];if(e&&0<e.length)for(var h=0;h<e.length;h++){var k=e[h],r=new J;r.fromJsonObject(k);c.push(r)}Ua=c;(e=c[0])&&R.setTopSeq(e.getSequence());Ma(c);ra=!1;return!0}};L.createFacade(b?b:a,function(e,c){return!1}).listSetDeploy(Z)},wb=function(b,a){a&&a.refresh()},Ma=function(b){da.hide(0,db);R.setModels(b);R.refresh()},Fa=function(b,a){ca.show(0,Va);L.createFacade(function(e){if(e){var c=
[];if(e&&0<e.length)for(var h=0;h<e.length;h++){var k=e[h],r=new I;r.fromJsonObject(k);c.push(r)}0<c.length&&cb(!1);!a&&pa.bindModel(b);pa.setModels(c);pa.refresh();return!0}},function(e,c){return!1}).listModelDeployDetail(b.getModelId())},Ab=function(b){da.show(0,Wa);L.createFacade(function(a){if(a){var e=[],c=[];if(a&&a.changed)for(var h=0;h<a.changed.length;h++){var k=a.changed[h],r=new C;r.fromJsonObject(k);e.push(r)}if(a&&a.valid)for(h=0;h<a.valid.length;h++)k=a.valid[h],r=new C,r.fromJsonObject(k),
c.push(r);Ba.setModels(e);Ca.setModels(c);ta.getCurrentTabPane().refresh();return!0}},function(a,e){return!1}).listDeployModelDetail(b.getModelSetDeployId(),b.getModelSetId())},Va=function(){Ia(ma,ca.width()+ba.width());Q.refresh(!0)},bb=function(){Ia(ma,ba.width());Q.refresh()},Wa=function(){Ia(ja,da.width());R.refresh(!0)},db=function(){ja.css("width","100%");R.refresh()},Ia=function(b,a){b.css({width:"calc(100% - "+a+"px)"})},sb=function(b,a,e){a=$(a);var c=$("<span>");c.addClass("deploy-manage-list-title-text");
c.text(e);c.appendTo(a);b===V.DEPLOYED_MODEL?Cb(a):Db(a);Eb(a,b);return a},Eb=function(b,a){var e=$("<div>");Ra.layoutCtrlWithLRTB(e,null,a===V.DEPLOYED_MODEL?272:212,16,17,null,16);v.backgroundWithHover(e,"refresh");e.attr("title",l.get("refresh","\u5237\u65b0"));e.css({cursor:"pointer"});e.on("click",function(){Fb(a)});e.appendTo(b)},Fb=function(b){if(b===V.DEPLOYED_MODEL){Ja=!1;ba.show();ma.show();var a=Q.getSelectionUserModel();a?ca.show(0,Va):Q.refresh(!0);ja.hide();da.hide();La(function(c){var h=
U.getCurrentSelectedGroup();U.setAutoSelectedGroupId(h.getModelGroupId());U.setJsonDataAndUpdateUI(c);va=!1;Ha();Q.setRowSelectedByModel(a,function(k){for(var r=0;r<k.length;r++)if(k[r].getModelId()===a.getModelId())return r;return-1});return!0})}else{ja.show();var e=R.getSelectionUserModel();e?da.show(0,Wa):R.refresh(!0);ba.hide();ma.hide();ca.hide();Aa(function(c){if(c){var h=[];if(c&&0<c.length)for(var k=0;k<c.length;k++){var r=c[k],d=new J;d.fromJsonObject(r);h.push(d)}Ua=h;(c=h[0])&&R.setTopSeq(c.getSequence());
Ma(h);ra=!1;Ya();R.setRowSelectedByModel(e,function(f){for(var g=0;g<f.length;g++)if(f[g].getSequence()==e.getSequence())return g;return-1});return!0}})}},Cb=function(b){ua?ua.css("display","block"):(T=new y,T.setSearchListenerDelay(1E3),T.addSearchListener(function(){Ha()}),T.setShowSearchIcon(!0),T.setPlaceholder(l.get("enterNameOrModelDescOrDeployer","\u8bf7\u8f93\u5165\u7f16\u7801/\u540d\u79f0/\u63cf\u8ff0/\u6700\u65b0\u90e8\u7f72\u4eba")),ua=T.getJqUi(),ua.addClass("deploy-search-box"),ua.css("width",
240),ua.find(":input").on("keydown",function(a){13===(a.keyCode||a.which||a.charCode)&&Ha()}),ua.appendTo(b));T.setFoucs()},Db=function(b){za?za.css("display","block"):(aa=new y,aa.setSearchListenerDelay(1E3),aa.addSearchListener(function(){Ya()}),aa.setShowSearchIcon(!0),aa.setPlaceholder(l.get("enterDeployerOrDeployDesc","\u8bf7\u8f93\u5165\u90e8\u7f72\u4eba/\u90e8\u7f72\u63cf\u8ff0")),za=aa.getJqUi(),za.addClass("deploy-search-box"),za.find(":input").on("keydown",function(a){13===(a.keyCode||a.which||
a.charCode)&&Ya()}),za.appendTo(b));aa.setFoucs()},Ha=function(){var b,a=U.getCurrentSelectedGroup(),e=U.isContainChild();a&&(b=U.getCurrentGroupModels(e,a));a=T.getText();""===a?fa&&(fa=!1,Na(b)):(fa=!0,b=lb(b,a),Na(b))},Ya=function(){var b=Ua,a=aa.getText();""===a?ya&&(ya=!1,Ma(b)):(ya=!0,b=lb(b,a),Ma(b))},lb=function(b,a){a=$.trim(a.toLowerCase());for(var e=[],c,h=0;h<b.length;h++){var k=b[h];if(Ta){var r="",d="",f=c="";k.getNumber()&&(f=k.getNumber().toLowerCase());k.getModelName()&&(r=k.getModelName().toLowerCase());
k.getModelDesc()&&(d=k.getModelDesc().toLowerCase());k.getDeployer()&&(c=k.getDeployer().toLowerCase());c=-1!=r.indexOf(a)||-1!=f.indexOf(a)||-1!=d.indexOf(a)||-1!=c.indexOf(a)}else c=r="",k.getDesc()&&(r=k.getDesc().toLowerCase()),k.getDeployer()&&(c=k.getDeployer().toLowerCase()),c=-1!=r.indexOf(a)||-1!=c.indexOf(a);c&&e.push(k)}return e},ob=function(){fa=!1;T.clear();T.getJqUi().find("input").blur()},Sa=function(b){var a=$("<span>");a.addClass("model-icon-info");b=F.getModelIconByType(b)+"-small";
v.background(a,b);return a},kb=function(b,a){if(!b)return"";var e=new Ea;e.setFormatString(a?a:"yyyy-MM-dd HH:mm:ss");return e.format(b)},Xa=function(b){var a=b.getRenamedMetricNumMap(),e=Object.keys(a);b=l.get("operateSuccess","\u64cd\u4f5c\u6210\u529f\u3002");0<e.length?(a=1==e.length?l.get("singleMetricNumberRenamed","\u4f46\u7531\u4e8e\u6307\u6807\u7f16\u7801\u201c#1\u201d\u5df2\u88ab\u4f7f\u7528\uff0c\u8be5\u6307\u6807\u7f16\u7801\u5df2\u88ab\u91cd\u547d\u540d\u4e3a\u201c#2\u201d\u3002").replace("#1",
e[0]).replace("#2",a[e[0]]):l.get("multiMetricNumberRenamed","\u4f46\u7531\u4e8e\u201c#1\u201d\u7b49#2\u4e2a\u6307\u6807\u7f16\u7801\u5df2\u88ab\u4f7f\u7528\uff0c\u8fd9\u4e9b\u6307\u6807\u7f16\u7801\u5df2\u88ab\u5168\u90e8\u91cd\u547d\u540d\u3002").replace("#1",e[0]).replace("#2",e.length),b+=a,L.getMessageCurtain().showPrompt(b)):L.getMessageCurtain().showSuccess(b,2E3)}};var w,v,n,z,y,B,q,J,E,I,C,t,N,x,sa,F,l,Oa,Ra,mb,P,Ea,Z,M;(function(){var K=com.kingdee.bos.qing.modeler.deploy.common;w=K.Facade;
M=K.UserOperationReporter;v=K.MyIcons;n=K.Integration;K=com.kingdee.bos.qing.modeler.common.ui;N=K.NoDataContainer;x=K.SearchNoDataContainer;sa=K.ModelGroupPanel;K=com.kingdee.bos.qing.modeler.common.model;F=K.ModelType;K=com.kingdee.bos.qing.ui.component;z=K.MessageCurtain;B=K.TabContainer;y=K.SearchBox;q=K.MessageDialog;K=com.kingdee.bos.qing.modeler.deploy.model;J=K.ModelSetDeploy;E=K.DeployModel;I=K.ModelDeployDetail;C=K.DeployModelDetail;t=K.DeployResult;K=com.kingdee.bos.qing.framework.common;
l=K.MultilanguageManager.createPackageAccessor(p);Oa=K.WindowResizeObserver;K=com.kingdee.bos.qing.common.ui;P=K.TableUtil;K=com.kingdee.bos.qing.common;Ra=K.DomUtil;mb=K.Util;Ea=K.DateFormater;Z=mb.decodeParamFromUrl(location.search,"modelSetId")})()})();
//qingVersionTag: 20250415