var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(I){var E=0;return function(){return E<I.length?{done:!1,value:I[E++]}:{done:!0}}};$jscomp.arrayIterator=function(I){return{next:$jscomp.arrayIteratorImpl(I)}};$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(I,E,R){if(I==Array.prototype||I==Object.prototype)return I;I[E]=R.value;return I};$jscomp.getGlobal=function(I){I=["object"==typeof globalThis&&globalThis,I,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var E=0;E<I.length;++E){var R=I[E];if(R&&R.Math==Math)return R}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(I,E){var R=$jscomp.propertyToPolyfillSymbol[E];if(null==R)return I[E];R=I[R];return void 0!==R?R:I[E]};
$jscomp.polyfill=function(I,E,R,Z){E&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(I,E,R,Z):$jscomp.polyfillUnisolated(I,E,R,Z))};$jscomp.polyfillUnisolated=function(I,E,R,Z){R=$jscomp.global;I=I.split(".");for(Z=0;Z<I.length-1;Z++){var ca=I[Z];if(!(ca in R))return;R=R[ca]}I=I[I.length-1];Z=R[I];E=E(Z);E!=Z&&null!=E&&$jscomp.defineProperty(R,I,{configurable:!0,writable:!0,value:E})};
$jscomp.polyfillIsolated=function(I,E,R,Z){var ca=I.split(".");I=1===ca.length;Z=ca[0];Z=!I&&Z in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var qa=0;qa<ca.length-1;qa++){var ya=ca[qa];if(!(ya in Z))return;Z=Z[ya]}ca=ca[ca.length-1];R=$jscomp.IS_SYMBOL_NATIVE&&"es6"===R?Z[ca]:null;E=E(R);null!=E&&(I?$jscomp.defineProperty($jscomp.polyfills,ca,{configurable:!0,writable:!0,value:E}):E!==R&&(void 0===$jscomp.propertyToPolyfillSymbol[ca]&&(R=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[ca]=
$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(ca):$jscomp.POLYFILL_PREFIX+R+"$"+ca),$jscomp.defineProperty(Z,$jscomp.propertyToPolyfillSymbol[ca],{configurable:!0,writable:!0,value:E})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(I){if(I)return I;var E=function(qa,ya){this.$jscomp$symbol$id_=qa;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:ya})};E.prototype.toString=function(){return this.$jscomp$symbol$id_};var R="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",Z=0,ca=function(qa){if(this instanceof ca)throw new TypeError("Symbol is not a constructor");return new E(R+(qa||"")+"_"+Z++,qa)};return ca},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(I){if(I)return I;I=Symbol("Symbol.iterator");for(var E="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),R=0;R<E.length;R++){var Z=$jscomp.global[E[R]];"function"===typeof Z&&"function"!=typeof Z.prototype[I]&&$jscomp.defineProperty(Z.prototype,I,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return I},"es6",
"es3");$jscomp.iteratorPrototype=function(I){I={next:I};I[Symbol.iterator]=function(){return this};return I};$jscomp.iteratorFromArray=function(I,E){I instanceof String&&(I+="");var R=0,Z=!1,ca={next:function(){if(!Z&&R<I.length){var qa=R++;return{value:E(qa,I[qa]),done:!1}}Z=!0;return{done:!0,value:void 0}}};ca[Symbol.iterator]=function(){return ca};return ca};
$jscomp.polyfill("Array.prototype.keys",function(I){return I?I:function(){return $jscomp.iteratorFromArray(this,function(E){return E})}},"es6","es3");$jscomp.findInternal=function(I,E,R){I instanceof String&&(I=String(I));for(var Z=I.length,ca=0;ca<Z;ca++){var qa=I[ca];if(E.call(R,qa,ca,I))return{i:ca,v:qa}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(I){return I?I:function(E,R){return $jscomp.findInternal(this,E,R).v}},"es6","es3");
(function(){function I(){var F=this,S,W,G;this.getValue=function(){return S};this.setValue=function(r){S=r};this.getText=function(){return W};this.setText=function(r){W=r};this.getUserObject=function(){return G};this.setUserObject=function(r){G=r};this.toJsonObject=function(){var r={};r.value=S;r.text=W;return r};this.fromJsonObject=function(r){r&&(r.value&&F.setValue(r.value),r.text&&F.setText(r.text))}}function E(){var F=this,S,W,G=0,r,J=E.SOURCE_TYPE_DB,C,Q,ka,ja,oa=[],ua=[],y,ba=!0,Da=!1;this.getId=
function(){return S};this.setId=function(A){S=A};this.setShared=function(A){y=A};this.isShared=function(){return y};this.getName=function(){if(r){if(r.getConnectionType()==qa.DBCONNECTION_TYPE_DBCENTER)return ya.get("dataCenter","\u5f53\u524d\u6570\u636e\u4e2d\u5fc3");if(r.getConnectionType()==qa.DBCONNECTION_TYPE_SUPERQUERY&&!r.getDbAddress())return ya.get("SuperQuery","\u8d85\u7ea7\u67e5\u8be2")}return W};this.setName=function(A){W=A};this.setDBSource=function(A){r=A};this.getDBSource=function(){return r};
this.getAbstractSource=function(){return r};this.getUsers=function(){return oa};this.setUsers=function(A){oa=A};this.getRoles=function(){return ua};this.setRoles=function(A){ua=A};this.setDBSourceType=function(A){J=A};this.getDBSourceType=function(){return J};this.getSourceTypeName=function(){if(J==E.SOURCE_TYPE_DB)return ya.get("db","\u6570\u636e\u5e93");if(J==E.SOURCE_TYPE_BIZMETA){if(r.getConnectionType()==qa.DBCONNECTION_TYPE_DBCENTER)return ya.get("dataCenter","\u5f53\u524d\u6570\u636e\u4e2d\u5fc3");
if(r.getConnectionType()==qa.DBCONNECTION_TYPE_SUPERQUERY)return ya.get("SuperQuery","\u8d85\u7ea7\u67e5\u8be2")}else if(J==E.SOURCE_TYPE_OPENAPI)return"OpenAPI"};this.setRefTime=function(A){G=A};this.getRefTime=function(){return G};this.getCreatorName=function(){return C};this.setCreatorName=function(A){C=A};this.getCreateTime=function(){return Q};this.setCreateTime=function(A){Q=A};this.setModifierName=function(A){ka=A};this.getModifierName=function(){return ka};this.setModifyTime=function(A){ja=
A};this.getModifyTime=function(){return ja};this.setUiDisplay=function(A){ba=A};this.getUiDisplay=function(){return ba};this.setAuthError=function(A){Da=A};this.isAuthError=function(){return Da};this.copy=function(){var A=new E;A.fromJsonObject(F.toJsonObject());A.setUiDisplay(ba);return A};this.getSearchContent=function(){var A=[];W&&A.push(W);r&&J==E.SOURCE_TYPE_DB?(r.getDbName()&&A.push(r.getDbName().toUpperCase()),r.getDbAddress()&&A.push(r.getDbAddress().toUpperCase()),r.getSchema()&&A.push(r.getSchema().toUpperCase())):
r&&J==E.SOURCE_TYPE_BIZMETA?r.getConnectionType()==qa.DBCONNECTION_TYPE_DBCENTER?(A.push(F.getSourceTypeName().toUpperCase()),r.getAppName()&&A.push(r.getAppName().toUpperCase())):r.getConnectionType()==qa.DBCONNECTION_TYPE_SUPERQUERY&&(r.getDbName()&&A.push(r.getDbName().toUpperCase()),r.getDbAddress()&&A.push(r.getDbAddress().toUpperCase()),r.getSchemaName()&&A.push(r.getSchemaName().toUpperCase())):r&&J==E.SOURCE_TYPE_OPENAPI&&(r.getTypeName()&&A.push(r.getTypeName()),r.getUrl()&&A.push(Ha.decode(r.getUrl())),
r.getAuthModel()&&r.getAuthModel().authType&&A.push(r.getAuthModel().authType));return A};this.toJsonObject=function(){var A={};A.id=S;A.name=W;r&&(A.dbSource=r.toJsonObject());A.dbSourceType=J;A.creatorName=C;A.modifierName=ka;Q&&(A.createTime=Q.getTime());ja&&(A.modifyTime=ja.getTime());for(var sa=[],xa=0;xa<oa.length;xa++)sa.push(oa[xa].toJsonObject());A.users=sa;sa=[];for(xa=0;xa<ua.length;xa++)sa.push(ua[xa].toJsonObject());A.roles=sa;A.shared=y;return A};this.fromJsonObject=function(A){F.setName(A.name);
F.setId(A.id);A.refTime&&F.setRefTime(A.refTime);F.setDBSourceType(A.dbSourceType);C=A.creatorName;ka=A.modifierName;Q=new Date(A.createTime);ja=new Date(A.modifyTime);var sa=A.dbSource;if(sa)if(J==E.SOURCE_TYPE_DB){var xa=new ca;xa.fromJsonObject(sa);F.setDBSource(xa)}else J==E.SOURCE_TYPE_BIZMETA?(sa=Z.BizMetaSourceCreatorRegister.getCreator().createBizMetaSource(sa),F.setDBSource(sa)):J==E.SOURCE_TYPE_OPENAPI&&(xa=new Ia,xa.fromJsonObject(sa),F.setDBSource(xa));sa=[];if(xa=A.users){for(var Fa=
0;Fa<xa.length;Fa++){var ra=new I;ra.fromJsonObject(xa[Fa]);sa.push(ra)}F.setUsers(sa)}sa=[];if(xa=A.roles){for(Fa=0;Fa<xa.length;Fa++)ra=new I,ra.fromJsonObject(xa[Fa]),sa.push(ra);F.setRoles(sa)}y=A.shared}}function R(){var F,S,W,G,r;this.getName=function(){return F};this.getFullPath=function(){return S};this.getCreateTime=function(){return W};this.getCreatorName=function(){return G};this.getRefFromType=function(){return r};this.fromJsonObject=function(J){F=J.name;S=J.fullPath;G=J.creatorName;r=
J.refFromType;W=new Date(J.createTime)}}"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.dbmanage&&(com.kingdee.bos.qing.dbmanage={});var Z=com.kingdee.bos.qing.dbmanage;Z.DBConnection=E;Z.DBRefInfo=R;Z.ValueTextPair=I;var ca,qa,ya,Ia,Ha;(function(){var F=com.kingdee.bos.qing.data;ca=F.DBSource;qa=
F.AbstractSource;Ia=F.OpenAPISource;F=com.kingdee.bos.qing.common;Ha=F.Base64Util;F=com.kingdee.bos.qing.framework.common;ya=F.MultilanguageManager.createPackageAccessor(Z)})();E.SOURCE_TYPE_DB="DB";E.SOURCE_TYPE_BIZMETA="BizMeta";E.SOURCE_TYPE_OPENAPI="OPENAPI";E.SOURCE_TYPE_OPENAPI_PROGRAM_DATA_SET="PROGRAM_DATA_SET";E.SOURCE_TYPE_File="File";Z.BizMetaSourceCreatorRegister=new function(){var F,S=!0;this.getCreator=function(){if(!F)throw Error("register creator first");return F};this.setCreator=
function(W){F=W};this.isSupportEdit=function(){return S};this.setSupportEdit=function(W){S=W}};R.MACRO_TYPE="Macro";R.EXTREPORT_TYPE="Extreport"})();(function(){function I(){this.getDetailText=function(F,S){throw Error("override me");}}"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.dbmanage&&(com.kingdee.bos.qing.dbmanage={});var E=com.kingdee.bos.qing.dbmanage;E.DBManageFacade=function(F,S,W,G){R.call(this,F,S,W,G);var r=this.protectedMethod;
this.checkDBManagePermission=function(C){C={};J(C);r.remote("checkDBManagePermission",C)};this.getDatabaseNameList=function(C,Q){C={source:JSON.stringify(C.toJsonObject()),passwordUpdated:C.isPasswordUpdated?C.isPasswordUpdated():!0,dbConnectId:Q};J(C);r.remote("getDatabaseNameList",C)};this.getUsableSchemas=function(C,Q){C={source:JSON.stringify(C.toJsonObject())};J(C);r.remote("getUsableSchemas",C)};this.checkConnection=function(C,Q){C={source:JSON.stringify(C.toJsonObject()),passwordUpdated:C.isPasswordUpdated?
C.isPasswordUpdated():!0,dbConnectId:Q};J(C);r.remote("checkConnection",C)};this.saveDBConnection=function(C){var Q=C.getDBSource();C={model:JSON.stringify(C.toJsonObject()),passwordUpdated:Q.isPasswordUpdated?Q.isPasswordUpdated():!0};J(C);r.remote("saveDBConnection",C)};this.saveOrUpdateDBPermissionInfo=function(C,Q){C={model:JSON.stringify(C.toJsonObject()),authToAll:Q};J(C);r.remote("saveOrUpdateDBPermissionInfo",C)};this.loadDBPermissionInfo=function(C){C={model:JSON.stringify(C.toJsonObject())};
J(C);r.remote("loadDBPermissionInfo",C)};this.loadDBConnections=function(){r.remote("loadDBConnections",{})};this.openAPIInitialCheck=function(C){C={source:JSON.stringify(C)};J(C);r.remote("checkOpenAPIConnection",C)};this.deleteDBConnection=function(C){C={id:C};J(C);r.remote("deleteDBConnection",C)};this.deleteDBConnections=function(C){C={dbIds:JSON.stringify(C)};J(C);r.remote("deleteDBConnections",C)};this.updateDBConnection=function(C){var Q=C.getDBSource();C={model:JSON.stringify(C.toJsonObject()),
passwordUpdated:Q.isPasswordUpdated?Q.isPasswordUpdated():!0};J(C);r.remote("updateDBConnection",C)};this.loadDBRefInfo=function(C){r.remote("loadDBRefInfo",{id:C})};this.loadDBRefInfoTimes=function(C){r.remote("loadDBRefInfoTimes",{id:C})};this.checkIsCosmicK3CloudFormalProduct=function(){r.remote("checkIsCosmicK3CloudFormalProduct",{})};var J=function(C){var Q=E.DBManageAppendSceneParams.getFunAppendMoreParams();Q&&Q(C)}};E.RemoteImpl=function(){Z.call(this);var F;this.getRemoteUrl=function(){return F};
this.setRemoteUrl=function(S){F=S}};E.UploadFacade=function(F,S,W,G){R.call(this,F,S,W,G);this.uploadFile=function(r){var J=com.kingdee.bos.qing.framework.common.RemoteFrameworkRegister.getUploadUrl();r.open("post",J,!0)}};E.Toolbar=function(){var F,S=$("<div>"),W=$("<div>"),G=$("<div>");this.getJqUi=function(){F||(F=$("<div>"),F.addClass("dbmanage-toolbar"),S.addClass("dbmanage-toolbar-sub"),S.appendTo(F),W.addClass("dbmanage-toolbar-sub"),W.appendTo(F),G.addClass("dbmanage-toolbar-sub"),G.appendTo(F));
return F};this.addSeperator=function(){r(W)};this.addSeperatorForHeadCustom=function(){r(S)};this.addButton=function(Q,ka,ja,oa){return J(W,!1,Q,ka,ja,oa)};this.addButtonForHeadCustom=function(Q,ka,ja,oa){return J(S,!1,Q,ka,ja,oa)};this.addButtonForTailCustom=function(Q,ka,ja,oa){return J(G,!1,Q,ka,ja,oa)};this.addMenuButton=function(Q,ka,ja,oa){return J(W,!0,Q,ka,ja,oa)};this.addMenuButtonForHeadCustom=function(Q,ka,ja,oa){return J(S,!0,Q,ka,ja,oa)};this.addMenuButtonForTailCustom=function(Q,ka,
ja,oa){return J(G,!0,Q,ka,ja,oa)};var r=function(Q){var ka=$("<div>");ka.addClass("dbmanage-toolbar-seperator");ka.appendTo(Q)},J=function(Q,ka,ja,oa,ua,y){var ba=new ca;ba.setIconSetter(function(Da,A){E.Icons.background(Da,A)});ba.setIconName(oa);ba.setText(ua);ba.setTooltips(y);ka&&ba.setShowDropdownArrow(!0);ba.addActionListener(function(Da,A){ka?C(Da.getJqUi(),A,ja,Q):ja(Da)});ba.getJqUi().appendTo(Q);return ba},C=function(Q,ka,ja,oa){var ua=Q.data("menu");if(ua&&ua.isShowing())Q.data("menu",
null),ua.hide();else{ua=new qa;ua.setModel(ja());ua.setHideListener(function(){Q.data("menu",null)});Q.data("menu",ua);ja=null==oa?W:oa;oa=Q.prop("offsetLeft");var y=Q.prop("offsetHeight")+Q.prop("offsetTop");ua.show(ja,oa,y,ka,!0)}}};var R,Z,ca,qa,ya,Ia,Ha;(function(){var F=com.kingdee.bos.qing.ui.component;ca=F.ToolbarButton;qa=F.Menu;F=com.kingdee.bos.qing.framework.common;R=F.AbstractFacade;Z=F.AbstractRemoteCall;ya=F.AbstractIcons;Ia=F.MultilanguageManager.createPackageAccessor(E);F=com.kingdee.bos.qing.dbmanage;
Ha=F.DBConnection})();E.DBCenterConnCreatorHelper=new function(){var F;this.supportCreateDBCenterConn=function(){return null!=F};this.registerConstructor=function(S){F=S};this.createSelector=function(S){if(!F)throw Error("please register datacenter creator");var W=new F;W.setSuccessCallback(S);return W}};E.DataCenterSelectorHelper=new function(){var F;this.registerConstructor=function(S){F=S};this.createSelector=function(){if(!F)throw Error("please register datacenter selector");return new F}};E.SuperQuerySelectorHelper=
new function(){var F;this.registerConstructor=function(S){F=S};this.createSelector=function(){if(!F)throw Error("please register a superQuery selector.");return new F}};E.DataSourceDetailTextGenerator=new function(){var F={};this.getDetailText=function(S,W){var G=F[S.getDBSourceType()];return G?G.getDetailText(S,W):""};this.registerGenerator=function(S,W){F[S]=W}};E.DataSourceDetailTextGenerator.registerGenerator(Ha.SOURCE_TYPE_DB,new function(){I.call(this);this.getDetailText=function(F,S){var W=
F.getDBSource();F=W.getTypeName();S=W.getDBAddress();var G=W.getDbPort()?W.getDbPort():"";W=W.getUserName();var r=Ia.get("dbDetailText","\u7c7b\u578b\uff1a#1\uff1b\u670d\u52a1\u5668\uff1a#2\uff1b\u7aef\u53e3\uff1a#3\uff1b\u7528\u6237\u540d\uff1a#4");r=r.replace("#1",F);r=r.replace("#2",S);r=r.replace("#3",G);return r=r.replace("#4",W)}});E.DBPermissionCallBackGenerator=new function(){var F;this.createCallBack=function(){return F};this.registerCallBack=function(S){F=S}};E.DBManageAddAuthClearIcon=
new function(){var F=!0;this.setAuthClearIcon=function(S){F=S};this.getAuthClearIcon=function(){return F}};E.Icons=new function(){ya.call(this);var F=this.protectedMethod;this.protectedInit=function(r,J){r=com.kingdee.bos.qing.dbmanage.ComboIcon;if(!r)throw Error("com.kingdee.bos.qing.dbmanage.ComboIcon not found.");r.define(J,"nodata");G(0,0,"nodata");r.define(J,"icon");S(0,0,"eas_btn_create");S(0,1,"eas_btn_edit");S(0,2,"eas_btn_check");S(0,3,"eas_btn_delete");S(0,4,"eas_btn_refresh");r.define(J,
"icon_f7");G(0,0,"icon_f7");r.define(J,"db-manage");J.setIconSize(100,100);G(0,0,"ACCESS");G(0,1,"REDSHIFT");G(0,2,"APACHEDRILL");G(0,3,"HIVE");G(0,4,"IMPALA");G(0,5,"KYLIN");G(0,6,"DB2");G(0,7,"DM");G(1,0,"GAUSSDB");G(1,1,"GREENPLUM");G(1,2,"HANA");G(1,3,"MYSQL");G(1,4,"ODPS");G(1,5,"ORACLE");G(1,6,"POSTGRESQL");G(1,7,"SPARKSQL");G(2,0,"SQLSERVER");G(2,1,"SQLITE");G(2,2,"SYBASEIQ");G(2,3,"SYBASE");G(2,4,"TIDB");G(2,5,"KINGBASE");G(2,6,"TDSQL");G(2,7,"GBASE");G(4,7,"VASTBASE");G(4,6,"YASHANDB");G(4,
5,"DORIS");G(3,0,"KINGDEE");G(3,1,"OPENAPI");G(3,2,"EXCEL");J.setStartPosition(0,500);J.setIconSize(17,17);W(0,0,"btn-delete");W(0,1,"btn-edit");W(0,2,"permission");J.setStartPosition(0,600);J.setIconSize(52,52);G(1,0,"CreatorIcon");G(0,0,"CreatorIcon_hover")};var S=function(r,J,C){G(r,J,C+"_hover");G(r+1,J,C);G(r+2,J,C+"_disabled")},W=function(r,J,C){G(r,J,C+"_hover");G(r+1,J,C)},G=function(r,J,C){F.registIcon(r,J,C)}};E.DBManageAppendSceneParams=new function(){var F;this.addFunAppendMoreParams=
function(S){F=S};this.getFunAppendMoreParams=function(){return F}}})();(function(){function I(){var a=this,b,c,d,h,g,n,f,N,O,da,t;this.setRemoteImpl=function(m){d=m};this.setOuterMessageCurtain=function(m){g=m};this.setModel=function(m,D){b=m;c=D;a.protectedModelToUi(b)};this.getModel=function(){return a.protectedUiToModel()};this.setMoveDBList2Right=function(m){n=m};this.protectedIsMoveDBList2Right=function(){return n};this.getDriverVersionName=function(){return M.getDriverVersions(b.getDbType())};this.getAdvanceSettingModel=function(){var m=new k;m.setTimezone(O);
m.setCharset(N);m.setOtherSetting($.trim(da));return m};var p=function(){f=a.protectedGetDefaultAdvanceSetting();var m=b.getAdvanceSetting(),D=$("<div class='dbmanage-db-connection-advanceSetting-content'>"),K=(new U(l.get("characterSet","\u5b57\u7b26\u96c6"))).getJqUi();(N=m.getCharset())||(N=f[k.CHARSET]);var V=["GBK","BIG5","ISO-8859-1","UTF-8","UTF-16"];-1==V.indexOf(N)&&(N="UTF-8");var v=new Ca;v.setItemModels(V);v.setSelected(N);v.addSelectedChangedListener(function(ma,va,ea){N=ea;z()});V=v.getJqUi();
var P={"GMT+8":"GMT%2B8","GMT-8":"GMT%2D8","GMT+0":"GMT"};(O=m.getTimezone())||(O=f[k.TIME_ZONE]);var X=["GMT%2B8","GMT%2D8","GMT"].indexOf(O);-1==X&&(X=0,O="GMT%2B8");v=(new U(l.get("timeZone","\u65f6\u533a"))).getJqUi();var la=new Ca,ha=Object.keys(P);la.setItemModels(ha);la.setSelected(ha[X]);la.addSelectedChangedListener(function(ma,va,ea){O=P[ea];z()});X=la.getJqUi();(da=m.getOtherSetting())||(da=f[k.OTHER_SETTING]);m=(new U(l.get("otherParameters","\u5176\u4ed6\u53c2\u6570"))).getJqUi();m.attr("title",
l.get("otherParameters","\u5176\u4ed6\u53c2\u6570"));var fa=new pa;fa.setText($.trim(da));fa.addEditedListener(function(){da=fa.getText()&&0<fa.getText().trim().length?fa.getText().trim():"";z()});la=fa.getJqUi();ha=(new U(l.get("fullURL","\u5b8c\u6574URL"))).getJqUi();t=new Ra;var na=t.getJqUi(),aa=na.find(":input");aa.attr("readonly","true");aa.css({cursor:"default",color:"#666666"});aa=0;f[k.TIME_ZONE]&&(aa+=43,H.layoutCtrl(v,20,aa,80,16),H.layoutCtrl(X,92,aa,297,16),D.append(v),D.append(X));f[k.CHARSET]&&
(aa+=43,H.layoutCtrl(K,20,aa,80,16),H.layoutCtrl(V,92,aa,297,16),D.append(K),D.append(V));f[k.OTHER_SETTING]&&(aa+=43,H.layoutCtrl(m,20,aa,80,16),H.layoutCtrl(la,92,aa,297,16),D.append(m),D.append(la));aa+=43;H.layoutCtrl(ha,20,aa,80,16);H.layoutCtrl(na,92,aa,297,100);D.append(ha);D.append(na);z();return D},z=function(){var m=a.createJdbcURL(N,O,da);t&&t.setText(m)};this.createJdbcURL=function(m,D,K){var V="";m&&0<m.length&&(V+="useUnicode=true&characterEncoding="+m);D&&0<D.length&&(V+="&serverTimezone="+
D);K&&0<$.trim(K).length&&(V+="&"+K);if(a.getModel()&&a.getModel().getDbName())return b=a.getModel(),m=f[k.PREFIX],b.getDBAddress()&&(m=m.replace("{server}",b.getDBAddress())),b.getDbPort()&&(m=m.replace("{port}",b.getDbPort())),b.getDbName()&&(m=m.replace("{database}",b.getDbName())),m+V};this.protectedGetDefaultAdvanceSetting=function(){};this.getJqUi=function(){throw Error("override me");};this.isModelValid=function(m,D,K){var V=a.protectedCheckDBSource(m);if(V)return K(V),!1;(new q(d,function(){D()},
function(v,P){v+="";return"20"==v.substr(0,2)&&7==v.length?(g.showPrompt(P),!0):"1300004"==v?(g.showPrompt(l.get("noMenuPermission","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).checkConnection(m,c);return!0};this.protectedModelToUi=function(m){};this.protectedUiToModel=function(){throw Error("override me");};this.protectedCheckDBSource=function(m){return null};this.protectedMethod={getRemoteImpl:function(){return d},getMsgCurtain:function(){return g},protectedCreateAdvancedSettingUI:function(){var m=
$("<div>"),D=p();D.css("display","none");var K=$("<div>"),V=!1,v=$("<span class='dbmanage-db-connection-card-item-edit-setting-close'>");v.on("click",function(X){V?(v.addClass("dbmanage-db-connection-card-item-edit-setting-close"),v.removeClass("dbmanage-db-connection-card-item-edit-setting-open"),V=!1,D.css("display","none")):(v.removeClass("dbmanage-db-connection-card-item-edit-setting-close"),v.addClass("dbmanage-db-connection-card-item-edit-setting-open"),V=!0,D.css("display","block"))});v.text("\u25b2");
v.css("color","#666");var P=$("<span>");P.text(l.get("advanceSetting"," \u9ad8\u7ea7\u8bbe\u7f6e"));P.css("color","#666");P.css({"margin-left":"18px"});K.append(v);K.append(P);m.append(K);m.append(D);D.css({position:"absolute",left:"0px",top:"0px"});return m},protectedUpdateTextAreaListener:z,checkConnection:function(m,D){var K=a.protectedCheckDBSource(m);K?g.showPrompt(K):(new q(d,function(V){D&&D(V);g.showSuccess(l.get("connectSuccess","\u8fde\u63a5\u6210\u529f\u3002"))},function(V,v){var P=V+"";
return"20"==P.substr(0,2)&&7==P.length?(g.showPrompt(v),!0):"1300004"==V?(g.showPrompt(l.get("noMenuPermission","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).checkConnection(m,c)},getDatabaseNameList:function(m,D){(new q(d,function(K){g.showSuccess(l.get("connectSuccess","\u8fde\u63a5\u6210\u529f\u3002"));h=K;D&&D(h)},function(K,V){var v=K+"";return"20"==v.substr(0,2)&&7==v.length?(g.showPrompt(V),!0):"1300004"==K?(g.showPrompt(l.get("noMenuPermission","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),
!0):!1})).getDatabaseNameList(m,c)},isPasswordUpdated:function(m){return m.getPassword()!==b.getPassword()}}}function E(){I.call(this);var a=this,b=this.protectedMethod,c,d,h,g,n,f,N,O;this.protectedUiToModel=function(){var t=new e;t.setName("s"+(new Date).getTime());t.setDbType(a.protectedGetSourceType());t.setUserName($.trim(h.getText()));t.setDbPort($.trim(d.getText()));t.setDbAddress($.trim(c.getText()));var p=$.trim(g.getPassword());t.setPassword(p);t.setIsPasswordUpdated(b.isPasswordUpdated(t));
t.setDbName("");a.protectedCollectMoreProperties(t);return t};this.protectedModelToUi=function(t){c||da();h.setText(t.getUserName());t.getDbPort()&&d.setText(t.getDbPort());c.setText(t.getDbAddress());g.setPassword(t.getPassword());a.protectedModel2Ui(t)};this.protectedCheckDBSource=function(t){var p,z=$.trim(t.getDBAddress());t=$.trim(t.getDbPort());""===z?p=l.get("emptyDBAddress","\u670d\u52a1\u5668\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a"):""===t&&(p=l.get("emptyDBPort","\u7aef\u53e3\u4e0d\u80fd\u4e3a\u7a7a"));
return p};this.protectedInit=function(){};this.protectedGetDefaultPort=function(){};this.protectedCheckConnection=function(t,p){t.setAdvanceSetting(a.getAdvanceSettingModel());b.getDatabaseNameList(t,p)};this.protectedModel2Ui=function(t){};this.createJdbcURL=function(t,p,z){var m="";t&&0<t.length&&(m+="useUnicode=true&characterEncoding="+t);p&&0<p.length&&(m+="&serverTimezone="+p);z&&0<$.trim(z).length&&(m+="&"+z);if((t=a.getModel())&&t.getSchema())return p=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],
t.getDBAddress()&&(p=p.replace("{server}",t.getDBAddress())),t.getDbPort()&&(p=p.replace("{port}",t.getDbPort())),t.getDbName()&&(p=p.replace("{database}",t.getDbName())),p+m};this.protectedCollectMoreProperties=function(t){};this.protectedIsSlimMode=function(){return!1};this.protectedGetSourceType=function(){throw Error("override me");};this.getDbNameList=function(){};this.getJqUi=function(){var t=a.protectedIsMoveDBList2Right(),p=$("<div>");c||da();var z=new U,m=z.getJqUi();z.setText(l.get("server",
"\u670d\u52a1\u5668"));z=c.getJqUi();var D=new U,K=D.getJqUi();D.setText(l.get("port","\u7aef\u53e3"));D=d.getJqUi();var V=new U,v=V.getJqUi();V.setText(l.get("logininfo","\u670d\u52a1\u5668\u767b\u5f55\u4fe1\u606f\uff1a"));var P=new U;V=P.getJqUi();P.setText(l.get("user","\u7528\u6237"));P=h.getJqUi();var X=new U,la=X.getJqUi();X.setText(l.get("password","\u5bc6\u7801"));X=g.getJqUi();var ha=$("<div>");ha.text(l.get("connect","\u8fde\u63a5"));ha.addClass("dbmanage-db-connection-btn");ha.on("click",
function(){var ia=a.protectedUiToModel();a.protectedCheckConnection(ia)});var fa=a.protectedIsSlimMode(),na=0,aa=fa?-6:0,ma=fa?14:20;H.layoutCtrl(m,na,aa,80,23);H.layoutCtrl(K,na,aa+=23+ma,80,23);if(n&&0<n.length)for(var va=0;va<n.length;va++){var ea=n[va];H.layoutCtrl(ea,na,aa+=23+ma,80,23);p.append(ea)}H.layoutCtrl(v,na,aa+=23+ma,160,23);H.layoutCtrl(V,na,aa+=23+ma,80,23);H.layoutCtrl(la,na,aa+=23+ma,80,23);H.layoutCtrl(ha,na,aa+=23+ma,50,23);ha.css("line-height","23px");if(N&&0<N.length){var Y=
-42;for(va=0;va<N.length;va++)ea=N[va],t?(H.layoutCtrl(ea,484,Y,80,23),Y+=23+ma):H.layoutCtrl(ea,na,aa+=23+ma,80,23),p.append(ea)}na+=90;aa=fa?-6:0;H.layoutCtrl(z,na,aa,300,23);H.layoutCtrl(D,na,aa+=23+ma,300,23);if(f&&0<f.length)for(va=0;va<f.length;va++)fa=f[va],H.layoutCtrl(fa,na,aa+=23+ma,300,23),p.append(fa);H.layoutCtrl(P,na,aa+=2*(23+ma),300,23);H.layoutCtrl(X,na,aa+=23+ma,300,23);aa+=ma+23;if(O&&0<O.length)for(ea=-44,va=0;va<O.length;va++)fa=O[va],t?(H.layoutCtrl(fa,574,ea,300,23),ea+=23+
ma):H.layoutCtrl(fa,na,aa+=23+ma,300,23),p.append(fa);p.append(m);p.append(K);p.append(v);p.append(V);p.append(la);p.append(z);p.append(D);p.append(P);p.append(X);p.append(ha);return p};var da=function(){c=new pa;d=new pa;d.setText(a.protectedGetDefaultPort());h=new pa;g=new Ma;a.protectedInit()};b.insertLabelUi=function(t){n||(n=[]);n.push(t)};b.insertComponentUi=function(t){f||(f=[]);f.push(t)};b.appendComponentUi=function(t){O||(O=[]);O.push(t)};b.appendLabelUi=function(t){N||(N=[]);N.push(t)}}
function R(){E.call(this);var a=this.protectedMethod,b,c=this,d;this.protectedInit=function(){d=new Ca;b=a.protectedUpdateTextAreaListener;d.addSelectedChangedListener(b);var g=new U,n=g.getJqUi();g.setText(l.get("db","\u6570\u636e\u5e93"));a.appendLabelUi(n);a.appendComponentUi(d.getJqUi());g=a.protectedCreateAdvancedSettingUI();a.appendLabelUi(g)};this.protectedCheckDBSource=function(g){var n,f=$.trim(g.getDBAddress()),N=$.trim(g.getDbPort()),O=$.trim(g.getDbName());""===f?n=l.get("emptyDBAddress",
"\u670d\u52a1\u5668\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a"):""===N?n=l.get("emptyDBPort","\u7aef\u53e3\u4e0d\u80fd\u4e3a\u7a7a"):""==O&&g.setDbName(null);return n};this.protectedProcessDBSource=function(g){return g};this.protectedCollectMoreProperties=function(g){d.getSelected()&&g.setDbName(d.getSelected())};this.protectedModel2Ui=function(g){g.getDbName()&&d.setSelected(g.getDbName());b&&b()};var h=this.protectedCheckConnection;this.protectedCheckConnection=function(g){var n=g.getDbName();g=c.protectedProcessDBSource(g);
g.setAdvanceSetting(c.getAdvanceSettingModel());h(g,function(f){d.setItemModels(f);-1<f.indexOf(n)?d.setSelected(n):d.setSelected(f[0]);b&&b()})};this.createJdbcURL=function(g,n,f){var N="";g&&0<g.length&&(N+="useUnicode=true&characterEncoding="+g);n&&0<n.length&&(N+="&serverTimezone="+n);f&&0<$.trim(f).length&&(N+="&"+f);if((g=c.getModel())&&g.getDbName())return g=c.getModel(),n=c.protectedGetDefaultAdvanceSetting()[k.PREFIX],g.getDBAddress()&&(n=n.replace("{server}",g.getDBAddress())),g.getDbPort()&&
(n=n.replace("{port}",g.getDbPort())),g.getDbName()&&(n=n.replace("{database}",g.getDbName())),n+N}}function Z(){R.call(this);this.protectedGetDefaultPort=function(){return"3306"};this.protectedGetDefaultAdvanceSetting=function(){var a={};a[k.PREFIX]="jdbc:mysql://{server}:{port}/{database}?";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]="zeroDateTimeBehavior=convertToNull&useCursorFetch=true&defaultFetchSize=1000";return a};this.protectedGetSourceType=function(){return e.TYPE_MYSQL}}
function ca(){R.call(this);var a=this;this.protectedGetDefaultPort=function(){return"1433"};this.protectedGetDefaultAdvanceSetting=function(){var b={};b[k.CHARSET]="UTF-8";b[k.TIME_ZONE]="GMT%2B8";b[k.OTHER_SETTING]=" ";b[k.PREFIX]="jdbc:sqlserver://{server}:{port};DatabaseName={database}";return b};this.createJdbcURL=function(b,c,d){var h="";b&&0<b.length&&(h+=";useUnicode=true;characterEncoding="+b);c&&0<c.length&&(h+=";serverTimezone="+c);d&&0<$.trim(d).length&&(h+=";"+d);if(a.getModel()&&a.getModel().getDbName())return b=
a.getModel(),c=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],b.getDBAddress()&&(c=c.replace("{server}",b.getDBAddress())),b.getDbPort()&&(c=c.replace("{port}",b.getDbPort())),b.getDbName()&&(c=c.replace("{database}",b.getDbName())),c+h};this.protectedGetSourceType=function(){return e.TYPE_SQLSERVER}}function qa(){E.call(this);var a=this.protectedMethod,b=this,c,d,h,g;this.protectedCollectMoreProperties=function(f){d.getText()&&f.setDbName($.trim(d.getText()));g.getSelected()&&f.setConnectType(g.getSelected())};
this.protectedIsSlimMode=function(){return!0};this.protectedGetDefaultAdvanceSetting=function(){var f={};f[k.PREFIX]=["jdbc:oracle:thin:@{server}:{port}:{database}?","jdbc:oracle:thin:@//{server}:{port}:/{database}?"];f[k.CHARSET]="UTF-8";f[k.TIME_ZONE]="GMT%2B8";f[k.OTHER_SETTING]=" ";return f};this.protectedInit=function(){d=new pa;d.setText("ORCL");var f=new U(l.get("connectType","\u8fde\u63a5\u7c7b\u578b"));g=new Ca;g.setItemModels(["SID","Server Name"]);g.setSelected("SID");g.addSelectedChangedListener(n);
c=a.protectedUpdateTextAreaListener;g.addSelectedChangedListener(c);f=f.getJqUi();a.insertLabelUi(f);a.insertComponentUi(g.getJqUi());h=new U;h.setText("SID");f=h.getJqUi();a.insertLabelUi(f);a.insertComponentUi(d.getJqUi());f=a.protectedCreateAdvancedSettingUI();a.appendLabelUi(f)};var n=function(f){"SID"==f.getSelected()?(g.setSelected("SID"),h.setText("SID")):(g.setSelected("Server Name"),h.setText(l.get("serverName","\u5b9e\u4f8b\u540d")))};this.protectedModel2Ui=function(f){f.getDbName()&&d.setText(f.getDbName());
f=f.getConnectType();g.setSelected(f?f:"SID");h.setText(f?"SID"==f?"SID":l.get("serverName","\u5b9e\u4f8b\u540d"):"SID");c&&c()};this.protectedCheckConnection=function(f){f.setAdvanceSetting(b.getAdvanceSettingModel());f.setDbName($.trim(d.getText()));f.setConnectType(g.getSelected());a.checkConnection(f,function(){c&&c()})};this.protectedGetDefaultPort=function(){return"1521"};this.protectedGetSourceType=function(){return e.TYPE_ORACLE};this.createJdbcURL=function(f,N,O){var da="";f&&0<f.length&&
(da+="useUnicode=true&characterEncoding="+f);N&&0<N.length&&(da+="&useTimezone=true&serverTimezone="+N);O&&0<$.trim(O).length&&(da+="&"+O);if((f=b.getModel())&&0<f.getDbAddress().length)return N=b.protectedGetDefaultAdvanceSetting(),O=N[k.PREFIX][0],"SID"!=h.getText()&&(O=N[k.PREFIX][1]),f.getDBAddress()&&(O=O.replace("{server}",f.getDBAddress())),f.getDbPort()&&(O=O.replace("{port}",f.getDbPort())),f.getDbName()&&(O=O.replace("{database}",f.getDbName())),O+da}}function ya(){r.call(this);this.protectedGetDefaultAdvanceSetting=
function(){var a={};a[k.PREFIX]="jdbc:postgresql://{server}:{port}/{database}?";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]="OpenSourceSubProtocolOverride=true";return a};this.protectedGetSourceType=function(){return e.TYPE_POSTGRESQL}}function Ia(){r.call(this);this.protectedGetDefaultAdvanceSetting=function(){var a={};a[k.PREFIX]="jdbc:gbase://{server}:{port}/{database}?";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]=" ";return a};this.protectedGetSourceType=
function(){return e.TYPE_GBASE}}function Ha(){r.call(this);this.protectedGetDefaultAdvanceSetting=function(){var a={};a[k.PREFIX]="jdbc:vastbase://{server}:{port}/{database}?";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]="";return a};this.protectedGetSourceType=function(){return e.TYPE_VASTBASE}}function F(){E.call(this);var a=this,b=this.protectedMethod,c;this.protectedGetDefaultAdvanceSetting=function(){var d={};d[k.PREFIX]="jdbc:yasdb://{server}:{port}/{database}?";d[k.CHARSET]=
"UTF-8";d[k.TIME_ZONE]="GMT%2B8";d[k.OTHER_SETTING]=" ";return d};this.protectedInit=function(){c=new pa;var d=new U;d.setText(l.get("db","\u6570\u636e\u5e93"));d=d.getJqUi();b.insertLabelUi(d);b.insertComponentUi(c.getJqUi());d=b.protectedCreateAdvancedSettingUI();b.appendLabelUi(d)};this.protectedCollectMoreProperties=function(d){c.getText()&&d.setDbName($.trim(c.getText()))};this.protectedGetSourceType=function(){return e.TYPE_YASHANDB};this.protectedGetDefaultPort=function(){return"1688"};this.createJdbcURL=
function(d,h,g){var n="";d&&0<d.length&&(n+="useUnicode=true&characterEncoding="+d);h&&0<h.length&&(n+="&useTimezone=true&serverTimezone="+h);g&&0<$.trim(g).length&&(n+="&"+g);if((d=a.getModel())&&0<d.getDbAddress().length)return h=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],d.getDBAddress()&&(h=h.replace("{server}",d.getDBAddress())),d.getDbPort()&&(h=h.replace("{port}",d.getDbPort())),d.getDbName()&&(h=h.replace("{database}",d.getDbName())),h+n};this.protectedCheckConnection=function(d){d.setAdvanceSetting(a.getAdvanceSettingModel());
d.setDbName($.trim(c.getText()));b.checkConnection(d,function(){b.protectedUpdateTextAreaListener()})};this.protectedModel2Ui=function(d){d.getDbName()&&c.setText(d.getDbName())}}function S(){var a=this;r.call(this);this.protectedGetDefaultAdvanceSetting=function(){var b={};b[k.PREFIX]="jdbc:pivotal:greenplum://{server}:{port};DatabaseName={database}";b[k.CHARSET]="UTF-8";b[k.TIME_ZONE]="GMT%2B8";b[k.OTHER_SETTING]=" ";return b};this.createJdbcURL=function(b,c,d){var h="";b&&0<b.length&&(h+=";useUnicode=true;characterEncoding="+
b);c&&0<c.length&&(h+=";serverTimezone="+c);d&&0<$.trim(d).length&&(h+=";"+d);if(a.getModel()&&a.getModel().getDbName())return b=a.getModel(),c=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],b.getDBAddress()&&(c=c.replace("{server}",b.getDBAddress())),b.getDbPort()&&(c=c.replace("{port}",b.getDbPort())),b.getDbName()&&(c=c.replace("{database}",b.getDbName())),c+h};this.protectedGetSourceType=function(){return e.TYPE_GREENPLUM}}function W(){r.call(this);this.protectedGetDefaultAdvanceSetting=function(){var a=
{};a[k.PREFIX]="jdbc:kingbase8://{server}:{port}/{database}";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]=" ";return a};this.protectedGetSourceType=function(){return e.TYPE_KINGBASE};this.protectedGetDefaultPort=function(){return"54321"}}function G(){Z.call(this);this.protectedGetDefaultAdvanceSetting=function(){var a={};a[k.PREFIX]="jdbc:tdsql-mysql://{server}:{port};DatabaseName={database}";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]=" ";return a};this.protectedGetSourceType=
function(){return e.TYPE_TDSQL};this.protectedGetDefaultPort=function(){return"15023"}}function r(){E.call(this);var a=this,b=this.protectedMethod,c,d,h;this.protectedCollectMoreProperties=function(n){c.getText()&&n.setDbName($.trim(c.getText()));d.getSelected()&&n.setSchema(d.getSelected())};this.protectedInit=function(){c=new pa;var n=new U;n.setText(l.get("db","\u6570\u636e\u5e93"));n=n.getJqUi();b.insertLabelUi(n);c.setText(a.protectedGetDefaultDB());b.insertComponentUi(c.getJqUi());d=new Ca;
h=b.protectedUpdateTextAreaListener;d.addSelectedChangedListener(h);n=new U;var f=n.getJqUi();n.setText(l.get("mode","\u6a21\u5f0f"));b.appendLabelUi(f);b.appendComponentUi(d.getJqUi());n=b.protectedCreateAdvancedSettingUI();b.appendLabelUi(n)};this.protectedModel2Ui=function(n){n.getDbName()&&c.setText(n.getDbName());d.setSelected(n.getSchema());h&&h()};var g=a.protectedCheckConnection;this.protectedCheckConnection=function(n){n.setAdvanceSetting(a.getAdvanceSettingModel());n.setDbName($.trim(c.getText()));
g(n,function(f){d.setItemModels(f);f&&!n.getSchema()&&d.setSelected(f[0]);h&&h()})};this.protectedGetDefaultPort=function(){return"5432"};this.protectedGetDefaultDB=function(){return"template1"}}function J(){E.call(this);var a=this.protectedMethod,b=this,c,d,h;this.protectedCollectMoreProperties=function(n){c.getText()&&n.setDbName($.trim(c.getText()));d.getSelected()&&n.setSchema(d.getSelected())};this.protectedInit=function(){c=new pa;var n=new U;n.setText(l.get("db","\u6570\u636e\u5e93"));n=n.getJqUi();
a.insertLabelUi(n);c.setText("sample");a.insertComponentUi(c.getJqUi());d=new Ca;h=a.protectedUpdateTextAreaListener;d.addSelectedChangedListener(h);n=new U;var f=n.getJqUi();n.setText(l.get("mode","\u6a21\u5f0f"));a.appendLabelUi(f);a.appendComponentUi(d.getJqUi());n=a.protectedCreateAdvancedSettingUI();a.appendLabelUi(n)};this.protectedGetDefaultAdvanceSetting=function(){var n={};n[k.PREFIX]="jdbc:db2://{server}:{port}/{database}:currentSchema={schema};";n[k.CHARSET]="UTF-8";n[k.TIME_ZONE]="GMT%2B8";
n[k.OTHER_SETTING]="retrieveMessagesFromServerOnGetMessage=true;";return n};this.protectedModel2Ui=function(n){n.getDbName()&&c.setText(n.getDbName());n.getSchema()&&d.setSelected(n.getSchema());(h=a.protectedUpdateTextAreaListener)&&h()};this.protectedCheckConnection=function(n){n.setAdvanceSetting(b.getAdvanceSettingModel());n.setDbName($.trim(c.getText()));a.getDatabaseNameList(n,g)};this.createJdbcURL=function(n,f,N){var O="";n&&0<n.length&&(O+="useUnicode=true;characterEncoding="+n);f&&0<f.length&&
(O+=";serverTimezone="+f+";");N&&0<$.trim(N).length&&(O+=N);if((n=b.getModel())&&n.getSchema())return f=b.protectedGetDefaultAdvanceSetting()[k.PREFIX],n.getDBAddress()&&(f=f.replace("{server}",n.getDBAddress())),n.getDbPort()&&(f=f.replace("{port}",n.getDbPort())),n.getDbName()&&(f=f.replace("{database}",n.getDbName())),n.getSchema()&&(f=f.replace("{schema}",n.getSchema())),f+O};var g=function(n){if(n&&0<n.length){d.setItemModels(n);var f=d.getSelected();f&&0<n.indexOf(f)?d.setSelected(f):d.setSelected(n[0]);
h&&h()}};this.protectedGetDefaultPort=function(){return"50000"};this.protectedGetSourceType=function(){return e.TYPE_DB2}}function C(){ka.call(this);this.protectedGetDefaultPort=function(){return"10000"};this.protectedGetSourceType=function(){return e.TYPE_HIVE}}function Q(){ka.call(this);this.getDefaultPort=function(){return"10016"};this.protectedGetDefaultPort=function(){return"10016"};this.protectedGetSourceType=function(){return e.TYPE_SPARKSQL}}function ka(){E.call(this);var a=this,b=this.protectedMethod,
c,d;this.protectedCollectMoreProperties=function(h){c.getText()&&h.setDbName($.trim(c.getText()))};this.protectedInit=function(){c=new pa;var h=new U;h.setText(l.get("db","\u6570\u636e\u5e93"));h=h.getJqUi();b.insertLabelUi(h);c.setText("default");b.insertComponentUi(c.getJqUi());h=b.protectedCreateAdvancedSettingUI();b.appendLabelUi(h)};this.protectedGetDefaultAdvanceSetting=function(){var h={};h[k.PREFIX]="jdbc:hive2://{server}:{port}/{database}";h[k.CHARSET]="";h[k.TIME_ZONE]="";h[k.OTHER_SETTING]=
" ";return h};this.createJdbcURL=function(h,g,n){h="";n&&0<$.trim(n).length&&(h+=";"+n);if((n=a.getModel())&&0<$.trim(n.getDBAddress()).length)return g=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],n.getDBAddress()&&(g=g.replace("{server}",n.getDBAddress())),n.getDbPort()&&(g=g.replace("{port}",n.getDbPort())),n.getDbName()&&(g=g.replace("{database}",n.getDbName())),g+h};this.protectedModel2Ui=function(h){h.getDbName()&&c.setText(h.getDbName());(d=b.protectedUpdateTextAreaListener)&&d()};this.protectedCheckConnection=
function(h){h.setAdvanceSetting(a.getAdvanceSettingModel());h.setDbName($.trim(c.getText()));b.getDatabaseNameList(h,d)}}function ja(){E.call(this);var a=this.protectedMethod,b=this,c,d,h,g,n,f,N=l.get("singleContainer","\u5355\u5bb9\u5668"),O=l.get("multiContainer","\u591a\u5bb9\u5668");this.protectedCollectMoreProperties=function(p){c.getSelected()==N?p.setDbName(void 0):p.setDbName($.trim(d.getText()));h.getSelected()&&p.setSchema(h.getSelected())};this.protectedInit=function(){c=new Ca;c.setItemModels([N,
O]);c.setSelected(N);c.addSelectedChangedListener(function(m,D,K){K==N?t():(n&&n.show(),f&&f.show())});var p=new U;p.setText(l.get("mode","\u6a21\u5f0f"));p=p.getJqUi();a.insertLabelUi(p);a.insertComponentUi(c.getJqUi());p=new U;p.setText(l.get("db","\u6570\u636e\u5e93"));n=p.getJqUi();a.insertLabelUi(n);d=new pa;f=d.getJqUi();a.insertComponentUi(f);h=new Ca;g=a.protectedUpdateTextAreaListener;h.addSelectedChangedListener(g);p=new U;var z=p.getJqUi();p.setText(l.get("mode","\u6a21\u5f0f"));a.appendLabelUi(z);
a.appendComponentUi(h.getJqUi());t();p=a.protectedCreateAdvancedSettingUI();a.appendLabelUi(p)};this.protectedGetDefaultPort=function(){return"39015"};this.protectedGetDefaultAdvanceSetting=function(){var p={};p[k.PREFIX]="jdbc:sap://{server}:{port}/?databaseName={database}";p[k.CHARSET]="";p[k.TIME_ZONE]="";p[k.OTHER_SETTING]=" ";return p};this.createJdbcURL=function(p,z,m){var D="";p&&0<p.length&&(D+="useUnicode=true&characterEncoding="+p);z&&0<z.length&&(D+="&serverTimezone="+z);m&&0<$.trim(m).length&&
(D+="&"+m);if((p=b.getModel())&&p.getSchema())return z=b.protectedGetDefaultAdvanceSetting()[k.PREFIX],p.getDBAddress()&&(z=z.replace("{server}",p.getDBAddress())),p.getDbPort()&&(z=z.replace("{port}",p.getDbPort())),z=z.replace("{database}",$.trim(p.getDbName())),z=z.replace("{schema}",p.getSchema()),z+D};this.protectedGetDefaultAdvanceSetting=function(){var p={};p[k.PREFIX]="jdbc:sap://{server}:{port}/?databaseName={database}&currentSchema={schema}&";p[k.CHARSET]="UTF-8";p[k.TIME_ZONE]="GMT%2B8";
p[k.OTHER_SETTING]=" ";return p};this.protectedModel2Ui=function(p){var z=p.getDbName();z?(c.setSelected(l.get("multiContainer")),d.setText(z),n&&n.show(),f&&f.show()):(c.setSelected(l.get("singleContainer")),t());h.setSelected(p.getSchema());g&&g()};var da=b.protectedCheckConnection;this.protectedCheckConnection=function(p){p.setAdvanceSetting(b.getAdvanceSettingModel());p.setDbName($.trim(d.getText()));da(p,function(z){h.setItemModels(z);var m=h.getSelected();m&&0<z.indexOf(m)?h.setSelected(m):
h.setSelected(z[0]);a.protectedUpdateTextAreaListener()})};this.getDefaultPort=function(){return"39015"};this.protectedIsSlimMode=function(){return!0};this.protectedGetSourceType=function(){return e.TYPE_HANA};var t=function(){n&&n.hide();f&&f.hide()}}function oa(){I.call(this);var a=this.protectedMethod,b,c,d,h;this.getJqUi=function(){var f=$("<div>");b||g();var N=new U(l.get("IPAddress","\u670d\u52a1\u5668")),O=new U(l.get("ProjectName","\u9879\u76ee\u540d\u79f0")),da=c.getJqUi(),t=b.getJqUi();
N=N.getJqUi();O=O.getJqUi();var p=new U,z=p.getJqUi();p.setText(l.get("logininfo","\u670d\u52a1\u5668\u767b\u5f55\u4fe1\u606f\uff1a"));var m=new U;p=m.getJqUi();m.setText(l.get("user","\u7528\u6237"));m=d.getJqUi();var D=new U,K=D.getJqUi();D.setText(l.get("password","\u5bc6\u7801"));D=h.getJqUi();var V=$("<div>");V.text(l.get("connect","\u8fde\u63a5"));V.addClass("dbmanage-db-connection-btn");V.on("click",function(){var X=n();a.checkConnection(X)});var v=0,P=0;H.layoutCtrl(N,v,P,80,23);H.layoutCtrl(O,
v,P+=43,80,23);H.layoutCtrl(z,v,P+=43,160,23);H.layoutCtrl(p,v,P+=43,80,23);H.layoutCtrl(K,v,P+=43,80,23);H.layoutCtrl(V,v,P+=43,50,23);V.css("line-height","23px");v+=90;P=0;H.layoutCtrl(t,v,P,300,23);H.layoutCtrl(da,v,P+=43,300,23);H.layoutCtrl(m,v,P+=86,300,23);H.layoutCtrl(D,v,P+=43,300,23);f.append(N);f.append(O);f.append(z);f.append(p);f.append(K);f.append(m);f.append(D);f.append(V);f.append(t);f.append(da);return f};this.protectedModelToUi=function(f){c||g();var N=f.getDbName();c.setText(N?
N:"");N=f.getDbAddress();b.setText(N?N:"https://service.odps.aliyun.com/api");d.setText(f.getUserName());h.setPassword(f.getPassword())};this.protectedUiToModel=function(){return n()};var g=function(){b=new pa;b.setText("https://service.odps.aliyun.com/api");c=new pa;d=new pa;h=new Ma},n=function(){var f=new e;f.setName("s"+(new Date).getTime());f.setDbType(e.TYPE_ODPS);f.setUserName($.trim(d.getText()));f.setDbAddress($.trim(b.getText()));f.setPassword($.trim(h.getPassword()));f.setIsPasswordUpdated(a.isPasswordUpdated(f));
f.setDbName($.trim(c.getText()));return f}}function ua(){E.call(this);var a=this,b=this.protectedMethod,c,d,h;this.protectedCollectMoreProperties=function(g){c.getText()&&g.setDbName($.trim(c.getText()));d.getSelected()&&g.setSchema(d.getSelected())};this.protectedInit=function(){c=new pa;var g=new U;g.setText(l.get("db","\u6570\u636e\u5e93"));g=g.getJqUi();b.insertLabelUi(g);b.insertComponentUi(c.getJqUi());d=new Ca;g=new U;var n=g.getJqUi();g.setText(l.get("mode","\u6a21\u5f0f"));b.appendLabelUi(n);
b.appendComponentUi(d.getJqUi());g=b.protectedCreateAdvancedSettingUI();b.appendLabelUi(g)};this.protectedGetDefaultAdvanceSetting=function(){var g={};g[k.PREFIX]="jdbc:redshift://{server}:{port}/{database}";g[k.OTHER_SETTING]=" ";return g};this.protectedModel2Ui=function(g){g.getDbName()&&c.setText(g.getDbName());g.getSchema()&&d.setSelected(g.getSchema());(h=b.protectedUpdateTextAreaListener)&&h()};this.protectedCheckConnection=function(g){g.setAdvanceSetting(a.getAdvanceSettingModel());g.setDbName($.trim(c.getText()));
b.checkConnection(g)};this.protectedGetDefaultPort=function(){return"5439"};this.protectedGetSourceType=function(){return e.TYPE_REDSHIFT}}function y(){R.call(this);var a=this;this.protectedGetDefaultPort=function(){return"5000"};this.createJdbcURL=function(b,c,d){b="";d&&0<$.trim(d).length&&(b+="&"+d);if((d=a.getModel())&&d.getDbName())return d=a.getModel(),c=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],d.getDBAddress()&&(c=c.replace("{server}",d.getDBAddress())),d.getDbPort()&&(c=c.replace("{port}",
d.getDbPort())),d.getDbName()&&(c=c.replace("{database}",d.getDbName())),c+b};this.protectedProcessDBSource=function(b){b.setDbName();return b};this.protectedGetDefaultAdvanceSetting=function(){var b={};b[k.PREFIX]="jdbc:sybase:Tds:{server}:{port}";b[k.OTHER_SETTING]=" ";return b};this.protectedGetSourceType=function(){return e.TYPE_SYBASE}}function ba(){R.call(this);var a=this;this.protectedGetDefaultPort=function(){return"2638"};this.protectedProcessDBSource=function(b){b.setDbName();return b};
this.createJdbcURL=function(b,c,d){b="";d&&0<$.trim(d).length&&(b+="&"+d);if((d=a.getModel())&&d.getDbName())return c=a.protectedGetDefaultAdvanceSetting()[k.PREFIX],d.getDBAddress()&&(c=c.replace("{server}",d.getDBAddress())),d.getDbPort()&&(c=c.replace("{port}",d.getDbPort())),d.getDbName()&&(c=c.replace("{database}",d.getDbName())),c+b};this.protectedGetDefaultAdvanceSetting=function(){var b={};b[k.PREFIX]="jdbc:sybase:Tds:{server}:{port}";b[k.OTHER_SETTING]=" ";return b};this.protectedGetSourceType=
function(){return e.TYPE_SYBASEIQ}}function Da(){R.call(this);this.protectedGetDefaultPort=function(){return"4000"};this.protectedGetDefaultAdvanceSetting=function(){var a={};a[k.PREFIX]="jdbc:mysql://{server}:{port}/{database}?";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]="zeroDateTimeBehavior=convertToNull&useCursorFetch=true&defaultFetchSize=1000";return a};this.protectedGetSourceType=function(){return e.TYPE_TIDB}}function A(){R.call(this);this.protectedGetDefaultPort=function(){return"5236"};
this.protectedGetDefaultAdvanceSetting=function(){var a={};a[k.PREFIX]="jdbc:dm://{server}:{port}/{database}?";a[k.CHARSET]="UTF-8";a[k.TIME_ZONE]="GMT%2B8";a[k.OTHER_SETTING]="zeroDateTimeBehavior=convertToNull";return a};this.protectedGetSourceType=function(){return e.TYPE_DM}}function sa(){I.call(this);var a=this.protectedMethod,b,c,d,h,g,n,f,N=["GaussDB100","GaussDB200","GaussDB300"];this.getJqUi=function(){var t=$("<div>");c||O();var p=new U(l.get("dbVersion","\u6570\u636e\u5e93\u7248\u672c")),
z=new U(l.get("IPAddress","\u670d\u52a1\u5668")),m=new U(l.get("port","\u7aef\u53e3")),D=new U(l.get("db","\u6570\u636e\u5e93")),K=b.getJqUi(),V=c.getJqUi(),v=d.getJqUi(),P=h.getJqUi();p=p.getJqUi();z=z.getJqUi();m=m.getJqUi();D=D.getJqUi();var X=new U,la=X.getJqUi();X.setText(l.get("logininfo","\u670d\u52a1\u5668\u767b\u5f55\u4fe1\u606f\uff1a"));var ha=new U;X=ha.getJqUi();ha.setText(l.get("user","\u7528\u6237"));ha=n.getJqUi();var fa=new U,na=fa.getJqUi();fa.setText(l.get("password","\u5bc6\u7801"));
fa=f.getJqUi();var aa=$("<div>");aa.text(l.get("connect","\u8fde\u63a5"));aa.addClass("dbmanage-db-connection-btn");aa.on("click",function(){var ia=da();a.checkConnection(ia)});var ma=(new U(l.get("db","\u6570\u636e\u5e93"))).getJqUi(),va=g.getJqUi(),ea=0,Y=0;H.layoutCtrl(p,ea,Y,80,23);H.layoutCtrl(z,ea,Y+=43,80,23);H.layoutCtrl(m,ea,Y+=43,80,23);H.layoutCtrl(D,ea,Y+=43,80,23);H.layoutCtrl(la,ea,Y+=43,160,23);H.layoutCtrl(X,ea,Y+=43,80,23);H.layoutCtrl(na,ea,Y+=43,80,23);H.layoutCtrl(aa,ea,Y+=43,
50,23);aa.css("line-height","23px");H.layoutCtrl(ma,484,-42,50,23);ea+=90;Y=0;H.layoutCtrl(K,ea,Y,300,23);H.layoutCtrl(V,ea,Y+=43,300,23);H.layoutCtrl(v,ea,Y+=43,300,23);H.layoutCtrl(P,ea,Y+=43,300,23);H.layoutCtrl(ha,ea,Y+=86,300,23);H.layoutCtrl(fa,ea,Y+=43,300,23);H.layoutCtrl(va,574,-44,300,23);t.append(p);t.append(z);t.append(m);t.append(D);t.append(la);t.append(X);t.append(na);t.append(ma);t.append(K);t.append(V);t.append(v);t.append(P);t.append(ha);t.append(fa);t.append(aa);t.append(va);K=
a.protectedCreateAdvancedSettingUI();H.layoutCtrl(K,484,0,300,23);t.append(K);return t};this.protectedModelToUi=function(t){c||O();var p=t.getDbAddress();c.setText(p);n.setText(t.getUserName());f.setPassword(t.getPassword());t=t.getDbVersion();b.setSelected(t?t:N[0])};this.protectedGetDefaultAdvanceSetting=function(){var t={};t[k.PREFIX]="jdbc:zenith:@{server}:{port}/{database}?";t[k.CHARSET]="UTF-8";t[k.TIME_ZONE]="GMT%2B8";t[k.OTHER_SETTING]="loginTimeout=10";return t};this.protectedUiToModel=function(){return da()};
var O=function(){b=new Ca;b.setItemModels(N);b.setSelected(N[0]);b.addSelectedChangedListener(function(t,p,z){z==N[0]?(h.setText(""),d.setText("1888")):(h.setText("template1"),d.setText("25308"))});c=new pa;d=new pa;d.setText("1888");h=new pa;n=new pa;f=new Ma;g=new Ca},da=function(){var t=new e;t.setName("s"+(new Date).getTime());t.setDbType(e.TYPE_GAUSSDB);t.setDbName($.trim(h.getText()));t.setDbVersion(b.getSelected());t.setDbPort($.trim(d.getText()));t.setUserName($.trim(n.getText()));t.setDbAddress($.trim(c.getText()));
t.setPassword($.trim(f.getPassword()));t.setIsPasswordUpdated(a.isPasswordUpdated(t));return t}}function xa(){E.call(this);var a=this.protectedMethod,b=this,c,d,h,g,n,f,N,O,da,t=[{type:"Direct",displayName:l.get("direct","\u76f4\u8fde")},{type:"ZooKeeper",displayName:"ZooKeeper"}];this.getJqUi=function(){var m=$("<div>");g||p();var D=new U(l.get("connectType","\u8fde\u63a5\u7c7b\u578b"));c=new U(l.get("IPAddress","\u670d\u52a1\u5668"));d=new U(l.get("port","\u7aef\u53e3"));var K=h.getJqUi(),V=g.getJqUi(),
v=n.getJqUi();D=D.getJqUi();var P=c.getJqUi(),X=d.getJqUi(),la=new U,ha=la.getJqUi();la.setText(l.get("logininfo","\u670d\u52a1\u5668\u767b\u5f55\u4fe1\u606f\uff1a"));var fa=new U;la=fa.getJqUi();fa.setText(l.get("user","\u7528\u6237"));fa=N.getJqUi();var na=new U,aa=na.getJqUi();na.setText(l.get("password","\u5bc6\u7801"));na=O.getJqUi();var ma=$("<div>");ma.text(l.get("connect","\u8fde\u63a5"));ma.addClass("dbmanage-db-connection-btn");ma.on("click",function(){var Qa=z();b.protectedCheckConnection(Qa)});
var va=(new U(l.get("db","\u6570\u636e\u5e93"))).getJqUi(),ea=f.getJqUi(),Y=0,ia=0;H.layoutCtrl(D,Y,ia,80,23);H.layoutCtrl(P,Y,ia+=43,80,23);H.layoutCtrl(X,Y,ia+=43,80,23);H.layoutCtrl(ha,Y,ia+=43,160,23);H.layoutCtrl(la,Y,ia+=43,80,23);H.layoutCtrl(aa,Y,ia+=43,80,23);H.layoutCtrl(ma,Y,ia+=43,50,23);ma.css("line-height","23px");H.layoutCtrl(va,484,-42,50,23);Y+=90;ia=0;H.layoutCtrl(K,Y,ia,300,23);H.layoutCtrl(V,Y,ia+=43,300,23);H.layoutCtrl(v,Y,ia+=43,300,23);H.layoutCtrl(fa,Y,ia+=86,300,23);H.layoutCtrl(na,
Y,ia+=43,300,23);H.layoutCtrl(ea,574,-44,300,23);m.append(D);m.append(P);m.append(X);m.append(ha);m.append(la);m.append(aa);m.append(va);m.append(K);m.append(V);m.append(v);m.append(fa);m.append(na);m.append(ma);m.append(ea);K=a.protectedCreateAdvancedSettingUI();H.layoutCtrl(K,484,0,300,23);m.append(K);return m};this.protectedModelToUi=function(m){g||p();var D=m.getDbAddress();g.setText(D);m.getDbName()&&f.setSelected(m.getDbName());N.setText(m.getUserName());m.getDbPort()&&n.setText(m.getDbPort());
O.setPassword(m.getPassword());(da=a.protectedUpdateTextAreaListener)&&da()};this.protectedUiToModel=function(){return z()};this.protectedGetDefaultAdvanceSetting=function(){var m={};m[k.PREFIX]="jdbc:drill:drillbit={server}:{port}";m[k.OTHER_SETTING]=" ";return m};this.protectedCheckConnection=function(m,D){m.setAdvanceSetting(b.getAdvanceSettingModel());a.getDatabaseNameList(m,function(K){f.setItemModels(K);var V=f.getSelected();V&&0<K.indexOf(V)?f.setSelected(V):f.setSelected(K[0]);da&&da()})};
var p=function(){h=new Ca;h.setItemModels(t);h.setSelected(t[0]);h.setCustomPainter(function(m,D,K){D.text(K?K.displayName:"")});h.addSelectedChangedListener(function(m,D,K){K.type==t[0].type?(c.setText(l.get("IPAddress","\u670d\u52a1\u5668")),d.setText(l.get("port","\u7aef\u53e3")),g.setText(""),n.setText("31010")):(c.setText(l.get("quorum","\u6cd5\u5b9a\u6570\u91cf")),d.setText(l.get("clusterId","\u7fa4\u96c6ID")),g.setText(""),n.setText(""))});g=new pa;n=new pa;n.setText("31010");N=new pa;O=new Ma;
f=new Ca};this.createJdbcURL=function(m,D,K){m="";K&&0<$.trim(K).length&&(m+="&"+K);if((K=b.getModel())&&K.getDbName())return D=b.protectedGetDefaultAdvanceSetting()[k.PREFIX],K.getDBAddress()&&(D=D.replace("{server}",K.getDBAddress())),K.getDbPort()&&(D=D.replace("{port}",K.getDbPort())),K.getDbName()&&(D=D.replace("{database}",K.getDbName())),D+m};var z=function(){var m=new e;m.setName("s"+(new Date).getTime());m.setDbType(e.TYPE_APACHEDRILL);m.setConnectType(h.getSelected().type);m.setDbPort($.trim(n.getText()));
m.setUserName($.trim(N.getText()));m.setDbAddress($.trim(g.getText()));m.setPassword($.trim(O.getPassword()));m.setIsPasswordUpdated(a.isPasswordUpdated(m));m.setDbName(f.getSelected());return m}}function Fa(){I.call(this);var a=this.protectedMethod,b,c;this.getJqUi=function(){var h=$("<div>");c||d();var g=b.getJqUi(),n=(new U(l.get("logininfo","\u670d\u52a1\u5668\u767b\u5f55\u4fe1\u606f\uff1a"))).getJqUi(),f=new U,N=f.getJqUi();f.setText(l.get("password","\u5bc6\u7801"));f=c.getJqUi();var O=120;
H.layoutCtrl(g,-20,-29,160,23);H.layoutCtrl(n,0,O+=43,160,23);H.layoutCtrl(N,0,O+=43,80,23);H.layoutCtrl(f,90,O,300,23);h.append(n);h.append(N);h.append(f);h.append(g);return h};this.protectedModelToUi=function(h){b||d();b.setSource(h.clone());c.setPassword(h.getPassword())};this.protectedUiToModel=function(){var h=new e;h.setName("s"+(new Date).getTime());h.setDbType(e.TYPE_ACCESS);h.setDbAddress(b.getSource().getDbAddress());h.setDbName(b.getSource().getDbName());h.setPassword($.trim(c.getPassword()));
h.setIsPasswordUpdated(a.isPasswordUpdated(h));h.setUserName("");return h};var d=function(){b=new B;b.setExt([".accdb",".mdb"]);b.setSize(100);b.setCtxApi(new Ga(a.getRemoteImpl()));b.setFunErrorCallbackEvent(function(g){a.getMsgCurtain().showError(g)});b.addSuccessCallbackEvent(function(g){a.getMsgCurtain().showSuccess(g)});var h=new e;h.setName("s"+(new Date).getTime());h.setDbType(e.TYPE_ACCESS);b.setSource(h);c=new Ma};this.protectedCheckDBSource=function(h){if(!b.getSource().getDbAddress())return l.get("pleaseUploadFile",
"\u8bf7\u5148\u4e0a\u4f20\u6587\u4ef6\u3002")}}function ra(){I.call(this);var a=this.protectedMethod,b;this.getJqUi=function(){var d=$("<div>");b||c();var h=b.getJqUi();H.layoutCtrl(h,-20,-29,160,23);d.append(h);return d};this.protectedModelToUi=function(d){b||c();b.setSource(d.clone())};this.protectedUiToModel=function(){var d=new e;d.setName("s"+(new Date).getTime());d.setDbType(e.TYPE_SQLITE);d.setDbAddress(b.getSource().getDbAddress());d.setDbName(b.getSource().getDbName());d.setUserName("");
d.setPassword("");return d};this.protectedCheckDBSource=function(d){if(!b.getSource().getDbAddress())return l.get("pleaseUploadFile","\u8bf7\u5148\u4e0a\u4f20\u6587\u4ef6\u3002")};var c=function(){b=new B;b.setExt(".db");b.setSize(100);b.setCtxApi(new Ga(a.getRemoteImpl()));b.setFunErrorCallbackEvent(function(h){a.getMsgCurtain().showError(h)});b.addSuccessCallbackEvent(function(h){a.getMsgCurtain().showSuccess(h)});var d=new e;d.setName("s"+(new Date).getTime());d.setDbType(e.TYPE_SQLITE);b.setSource(d)}}
function Ba(){E.call(this);var a=this.protectedMethod,b=this,c,d;this.protectedCollectMoreProperties=function(h){d.getText()&&h.setDbName($.trim(d.getText()))};this.protectedInit=function(){d=new pa;var h=new U;h.setText(l.get("db","\u6570\u636e\u5e93"));h=h.getJqUi();a.insertLabelUi(h);d.setText("default");a.insertComponentUi(d.getJqUi());h=a.protectedCreateAdvancedSettingUI();a.appendLabelUi(h)};this.protectedModel2Ui=function(h){h.getDbName()&&d.setText(h.getDbName());(c=a.protectedUpdateTextAreaListener)&&
c()};this.protectedGetDefaultAdvanceSetting=function(){var h={};h[k.PREFIX]="jdbc:impala://{server}:{port}/{database}";h[k.OTHER_SETTING]=" ";return h};this.protectedCheckConnection=function(h){h.setAdvanceSetting(b.getAdvanceSettingModel());h.setDbName($.trim(d.getText()));a.getDatabaseNameList(h)};this.protectedGetDefaultPort=function(){return"21050"};this.protectedGetSourceType=function(){return e.TYPE_IMPALA}}function wa(){E.call(this);var a=this,b=this.protectedMethod,c,d;this.protectedCollectMoreProperties=
function(g){c.getText()&&g.setDbName($.trim(c.getText()));d.getSelected()&&g.setSchema(d.getSelected())};this.protectedInit=function(){c=new pa;var g=new U;g.setText(l.get("ProjectName","\u9879\u76ee\u540d\u79f0"));g=g.getJqUi();b.insertLabelUi(g);c.setText("learn_kylin");b.insertComponentUi(c.getJqUi());d=new Ca;g=new U;var n=g.getJqUi();g.setText(l.get("mode","\u6a21\u5f0f"));b.appendLabelUi(n);b.appendComponentUi(d.getJqUi());g=b.protectedCreateAdvancedSettingUI();b.appendLabelUi(g)};this.protectedModel2Ui=
function(g){g.getDbName()&&c.setText(g.getDbName());g.getSchema()&&d.setSelected(g.getSchema())};this.protectedGetDefaultAdvanceSetting=function(){var g={};g[k.PREFIX]="jdbc:kylin://{server}:{port}/{database}";g[k.OTHER_SETTING]=" ";return g};var h=a.protectedCheckConnection;this.protectedCheckConnection=function(g){g.setAdvanceSetting(a.getAdvanceSettingModel());g.setDbName($.trim(c.getText()));h(g,function(n){d.setItemModels(n);n&&!g.getSchema()&&d.setSelected(n[0]);b.protectedUpdateTextAreaListener()})};
this.protectedGetDefaultPort=function(){return"7070"};this.protectedGetSourceType=function(){return e.TYPE_KYLIN}}function za(){Z.call(this);this.protectedGetDefaultPort=function(){return"9030"};this.protectedGetSourceType=function(){return e.TYPE_DORIS}}function Ga(a){this.createFacade=function(){return new x(a)}}function Ea(){var a=this,b,c,d,h,g,n,f,N,O,da=[],t=[],p,z=[],m;this.setRemoteImpl=function(v){d=v};this.setOuterMessageCurtain=function(v){h=v};this.setModel=function(v,P){b=v;c=P;a.protectedModelToUi(b)};
this.getModel=function(){return a.protectedUiToModel()};this.isModelValid=function(){var v=a.checkSourceValid();v||p||(v=l.get("selectOneSchema","\u8bf7\u9009\u62e9\u4e00\u4e2a\u6a21\u5f0f\u3002"));return v?(h.showPrompt(v),!1):!0};this.preSaveOrUpdateModel=function(v,P){(new q(d,P,function(X,la){3201001==X&&(la=l.get("noSchemaPerm","\u201c#1\u201d\u7528\u6237\u6ca1\u6709\u201c#2\u201d\u6a21\u5f0f\u7684\u6743\u9650\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\u6a21\u5f0f\u6216\u8054\u7cfb\u7ba1\u7406\u5458\u6388\u6743\u3002").replace("#1",
v.getUserName()).replace("#2",v.getSchemaName()));3201007==X&&(la=l.get("SQNotDeploy","\u5f53\u524d\u73af\u5883\u672a\u90e8\u7f72\u8d85\u7ea7\u67e5\u8be2\u670d\u52a1\u6216\u670d\u52a1\u672a\u542f\u52a8\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u68c0\u67e5\u8d85\u7ea7\u67e5\u8be2\u90e8\u7f72\u60c5\u51b5\u3002"));h.showPrompt(la);return!0})).getUsableSchemas(v,c)};this.protectedUiToModel=function(){var v=b.clone();v.clear();var P=null,X=$.trim(g.getText()),la=$.trim(n.getText());X&&la&&(X.lastIndexOf("/")==
X.length-1&&(X=X.substring(0,X.length-1)),P=X+"/"+la);v.setDbAddress(P);v.setDbName($.trim(f.getText()));v.setUserName($.trim(N.getText()));v.setPassword($.trim(O.getPassword()));p&&(P=p.getName(),v.setSchemaName(P));return v};this.protectedModelToUi=function(v){g||D();N.setText(v.getUserName());O.setPassword(v.getPassword());if(v.getDbAddress()){var P=v.getDbAddress(),X=P.lastIndexOf("/");g.setText(P.substring(0,X));n.setText(P.substring(X+1))}a.protectedModel2Ui(v)};var D=function(){g=new pa;n=
new pa;f=new pa;f.setText(a.getDefaultDBName());N=new pa;O=new Ma;a.protectedInit()};this.getDefaultDBName=function(){return"cosmic_db"};this.protectedInit=function(){var v=new U;v.setText(l.get("schemas","\u6a21\u5f0f"));v=v.getJqUi();da.push(v);m=Na.SuperQuerySelectorHelper.createSelector();m.setFunSelectCallBack(function(P){p=P});v=m.getJqUi();t.push(v)};this.protectedModel2Ui=function(v){v.getSchemaName()&&(p=new L,p.setName(v.getSchemaName()),p.setAlias(v.getSchemaName()));m.setSchemas(z);m.setSelectedSchema(p)};
var K=function(v){(new q(d,function(P){for(var X=[],la=Object.keys(P),ha=0;ha<la.length;ha++){var fa=new L;fa.setName(la[ha]);fa.setAlias(P[la[ha]]);X.push(fa)}m.setSchemas(X);m.setSelectedSchema(X[0]);0==X.length?(P=l.get("noAuthentication","\u6ca1\u6709\u53ef\u7528\u7684\u6a21\u5f0f\uff0c\u8bf7\u5148\u8054\u7cfb\u7ba1\u7406\u5458\u6388\u6743\u6a21\u5f0f\u3002"),h.showPrompt(P)):h.showSuccess(l.get("connectSuccess","\u8fde\u63a5\u6210\u529f\u3002"));return!0},function(P,X){3201007==P&&(X=l.get("SQNotDeploy",
"\u5f53\u524d\u73af\u5883\u672a\u90e8\u7f72\u8d85\u7ea7\u67e5\u8be2\u670d\u52a1\u6216\u670d\u52a1\u672a\u542f\u52a8\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u68c0\u67e5\u8d85\u7ea7\u67e5\u8be2\u90e8\u7f72\u60c5\u51b5\u3002"));h.showPrompt(X);return!0})).getUsableSchemas(v,c)};this.checkSourceValid=function(){return $.trim(g.getText())?$.trim(n.getText())?$.trim(f.getText())?null:l.get("dbNameNotNull","\u6570\u636e\u5e93\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a\u3002"):l.get("dbCenterNotNull","\u6570\u636e\u4e2d\u5fc3\u4e0d\u80fd\u4e3a\u7a7a\u3002"):
l.get("serviceAddressNotNull","\u670d\u52a1\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a\u3002")};this.protectedCheckConnection=function(v){var P=a.checkSourceValid();P?h.showPrompt(P):K(v)};var V=function(v){var P=$("<div>"),X=$("<span>");X.text(v);X.appendTo(P);v=new Sa;v.setIconType(Sa.ICON_TYPE_QUESTION);v.setTipsSize(240,60);v.setTipsHtml(P[0]);return v};this.getJqUi=function(){var v=$("<div>");g||D();var P=new U,X=P.getJqUi();P.setText(l.get("ServiceAddress","\u670d\u52a1\u5730\u5740"));P=g.getJqUi();
var la=new U,ha=la.getJqUi();la.setText(l.get("dbCenter","\u6570\u636e\u4e2d\u5fc3"));la=n.getJqUi();var fa=new U;fa.getJqUi();fa.setText(l.get("db","\u6570\u636e\u5e93"));f.getJqUi();var na=new U;fa=na.getJqUi();na.setText(l.get("logininfo","\u670d\u52a1\u5668\u767b\u5f55\u4fe1\u606f\uff1a"));var aa=new U;na=aa.getJqUi();aa.setText(l.get("user","\u7528\u6237"));aa=N.getJqUi();var ma=new U,va=ma.getJqUi();ma.setText(l.get("password","\u5bc6\u7801"));ma=O.getJqUi();var ea=$("<div>");ea.text(l.get("connect",
"\u8fde\u63a5"));ea.addClass("dbmanage-db-connection-btn");ea.on("click",function(){var T=a.protectedUiToModel();T.setSchemaName(null);a.protectedCheckConnection(T)});var Y=0,ia=0;H.layoutCtrl(X,Y,ia,50,23);var Qa=l.get("enterCosmicAddress","\u8bf7\u8f93\u5165\u82cd\u7a79\u670d\u52a1\u5730\u5740\uff0c\u4f8b\u5982\uff1a")+"https://example.com:8080/example";Qa=V(Qa).getJqUi();H.layoutCtrl(Qa,Y+50+2,ia+5,16,16);H.layoutCtrl(ha,Y,ia+=43,80,23);H.layoutCtrl(fa,Y,ia+=43,160,23);H.layoutCtrl(na,Y,ia+=43,
80,23);var Ta=l.get("enterCosmicUser","\u8bf7\u8f93\u5165\u9700\u8981\u8fde\u63a5\u7684\u82cd\u7a79\u7cfb\u7edf\u7684\u767b\u5f55\u4fe1\u606f\uff0c\u4ec5\u652f\u6301\u8f93\u5165\u624b\u673a\u53f7\u4f5c\u4e3a\u7528\u6237\u540d");Ta=V(Ta).getJqUi();H.layoutCtrl(Ta,Y+28,ia+5,16,16);H.layoutCtrl(va,Y,ia+=43,80,23);H.layoutCtrl(ea,Y,ia+=43,50,23);ea.css("line-height","23px");if(da&&0<da.length){ia=-42;for(var Oa=0;Oa<da.length;Oa++){var w=da[Oa];H.layoutCtrl(w,484,ia,80,23);ia+=43;v.append(w)}}Y+=90;ia=
0;H.layoutCtrl(P,Y,ia,300,23);H.layoutCtrl(la,Y,ia+=43,300,23);H.layoutCtrl(aa,Y,ia+=86,300,23);H.layoutCtrl(ma,Y,ia+=43,300,23);if(t&&0<t.length)for(Y=-44,ia=0;ia<t.length;ia++)Oa=t[ia],H.layoutCtrl(Oa,574,Y,300,23),Y+=43,v.append(Oa);v.append(X);v.append(Qa);v.append(ha);v.append(fa);v.append(na);v.append(Ta);v.append(va);v.append(P);v.append(la);v.append(aa);v.append(ma);v.append(ea);return v}}"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.dbmanage&&(com.kingdee.bos.qing.dbmanage={});var Na=com.kingdee.bos.qing.dbmanage,H,U,pa,Ra,Ma,Ca,Sa,l,q,x,e,u,L,k,B;(function(){var a=com.kingdee.bos.qing.common;H=a.DomUtil;a=com.kingdee.bos.qing.ui.component;pa=a.TextField;Ra=a.TextArea;Ma=a.PasswordField;U=a.Label;Ca=a.ComboBox;Sa=a.HelpIcon;a=com.kingdee.bos.qing.framework.common;l=a.MultilanguageManager.createPackageAccessor(Na);
a=com.kingdee.bos.qing.data;e=a.DBSource;u=a.AbstractSource;L=a.SchemaInfo;k=a.DBAdvanceSetting;B=a.UploadDbFilePane;a=com.kingdee.bos.qing.dbmanage;q=a.DBManageFacade;x=a.UploadFacade})();Na.DBConnectionPanelFactory=new function(){this.getDBConnectionPanel=function(a,b){switch(a){case e.TYPE_MYSQL:a=new Z;break;case e.TYPE_SQLSERVER:a=new ca;break;case e.TYPE_ORACLE:a=new qa;break;case e.TYPE_POSTGRESQL:a=new ya;break;case e.TYPE_DB2:a=new J;break;case e.TYPE_GREENPLUM:a=new S;break;case e.TYPE_HIVE:a=
new C;break;case e.TYPE_SPARKSQL:a=new Q;break;case e.TYPE_HANA:a=new ja;break;case e.TYPE_ODPS:a=new oa;break;case e.TYPE_REDSHIFT:a=new ua;break;case e.TYPE_SYBASE:a=new y;break;case e.TYPE_TIDB:a=new Da;break;case e.TYPE_DM:a=new A;break;case e.TYPE_SYBASEIQ:a=new ba;break;case e.TYPE_GAUSSDB:a=new sa;break;case e.TYPE_APACHEDRILL:a=new xa;break;case e.TYPE_ACCESS:a=new Fa;break;case e.TYPE_SQLITE:a=new ra;break;case e.TYPE_IMPALA:a=new Ba;break;case e.TYPE_KYLIN:a=new wa;break;case e.TYPE_KINGBASE:a=
new W;break;case e.TYPE_TDSQL:a=new G;break;case e.TYPE_GBASE:a=new Ia;break;case e.TYPE_VASTBASE:a=new Ha;break;case e.TYPE_YASHANDB:a=new F;break;case e.TYPE_DORIS:a=new za;break;default:throw Error("unknown db type");}a.setRemoteImpl(b);return a}};Na.DBSourceDisplayNameFactory=new function(){this.getDisplayName=function(a){switch(a){case e.TYPE_MYSQL:a="MySQL";break;case e.TYPE_SQLSERVER:a="SQL Server";break;case e.TYPE_ORACLE:a="ORACLE";break;case e.TYPE_POSTGRESQL:a="Postgre SQL";break;case e.TYPE_DB2:a=
"DB2";break;case e.TYPE_GREENPLUM:a="Greenplum";break;case e.TYPE_HIVE:a="Apache Hive";break;case e.TYPE_SPARKSQL:a="Spark SQL";break;case e.TYPE_HANA:a="HANA";break;case e.TYPE_ODPS:a="ODPS";break;case e.TYPE_REDSHIFT:a="Amazon Redshift";break;case e.TYPE_SYBASE:a="SYBASE";break;case e.TYPE_TIDB:a="TiDB";break;case e.TYPE_DM:a="DM";break;case e.TYPE_SYBASEIQ:a="Sybase IQ";break;case e.TYPE_GAUSSDB:a="GaussDB";break;case e.TYPE_APACHEDRILL:a="Apache Drill";break;case e.TYPE_ACCESS:a="Access";break;
case e.TYPE_SQLITE:a="SQLite";break;case e.TYPE_IMPALA:a="Apache Impala";break;case e.TYPE_KYLIN:a="Apache Kylin";break;case e.TYPE_KINGBASE:a="KingBase";break;case e.TYPE_TDSQL:a="TDSQL";break;case e.TYPE_GBASE:a="GBase";break;case e.TYPE_VASTBASE:a="Vastbase";break;case e.TYPE_YASHANDB:a="YashanDB";break;case e.TYPE_DORIS:a="Apache Doris";break;default:throw Error("unknown db type");}return a}};Na.BIZConnectionPanelFactory=new function(){this.getBIZConnectionPanel=function(a,b){switch(a){case u.DBCONNECTION_TYPE_SUPERQUERY:a=
new Ea;break;default:throw Error("unknown biz type");}a.setRemoteImpl(b);return a}};Na.BIZSourceDisplayNameFactory=new function(){this.getDisplayName=function(a){switch(a){case u.DBCONNECTION_TYPE_SUPERQUERY:a=l.get("SuperQuery","\u8d85\u7ea7\u67e5\u8be2");break;default:throw Error("unknown biz type");}return a}};var M=new function(){this.getDriverVersions=function(a){switch(a){case e.TYPE_MYSQL:return["com.mysql.jdbc.Driver"];case e.TYPE_SQLSERVER:return["com.microsoft.sqlserver.jdbc.SQLServerDriver"];
case e.TYPE_ORACLE:return["oracle.jdbc.driver.OracleDriver"];case e.TYPE_POSTGRESQL:return["org.postgresql.Driver"];case e.TYPE_DB2:return["com.ibm.db2.jcc.DB2Driver"];case e.TYPE_GREENPLUM:return["com.pivotal.jdbc.GreenplumDriver"];case e.TYPE_HIVE:return["org.apache.hive.jdbc.HiveDriver"];case e.TYPE_SPARKSQL:return["org.apache.hive.jdbc.HiveDriver"];case e.TYPE_HANA:return["com.sap.db.jdbc.Driver"];case e.TYPE_ODPS:return["com.aliyun.odps.jdbc.OdpsDriver"];case e.TYPE_REDSHIFT:return["com.amazon.redshift.jdbc42.Driver"];
case e.TYPE_SYBASE:return["com.sybase.jdbc3.jdbc.SybDriver"];case e.TYPE_TIDB:return["com.mysql.jdbc.Driver","com.mysql.cj.jdbc.Driver"];case e.TYPE_DM:return["dm.jdbc.driver.DmDriver"];case e.TYPE_SYBASEIQ:return["com.sybase.jdbc3.jdbc.SybDriver"];case e.TYPE_GAUSSDB:return["com.huawei.gauss.jdbc.ZenithDriver","com.huawei.gauss200.jdbc.Driver"];case e.TYPE_APACHEDRILL:return["org.apache.drill.jdbc.Driver"];case e.TYPE_ACCESS:return["net.ucanaccess.jdbc.UcanaccessDriver"];case e.TYPE_SQLITE:return["org.sqlite.JDBC"];
case e.TYPE_IMPALA:return["com.cloudera.impala.jdbc.Driver"];case e.TYPE_KYLIN:return["org.apache.kylin.jdbc.Driver"];case e.TYPE_KINGBASE:return["com.kingbase8.Driver"];case e.TYPE_TDSQL:return["com.tencentcloud.tdsql.mysql.cj.jdbc.Driver"];case e.TYPE_DORIS:return["com.mysql.jdbc.Driver"];default:throw Error("unknown db type");}}}})();(function(){function I(l,q){ja.call(this);var x=this,e=this.protectedMethod,u,L;(function(){var b;q.getDBSourceType()==ba.SOURCE_TYPE_DB?b=y.get("editDBConnection","\u7f16\u8f91\u6570\u636e\u6e90\u8fde\u63a5"):q.getDBSourceType()==ba.SOURCE_TYPE_OPENAPI?b=y.get("editOpenAPIConnection","\u7f16\u8f91OpenAPI\u8fde\u63a5"):q.getDBSourceType()==ba.SOURCE_TYPE_BIZMETA&&q.getDBSource().getConnectionType()==sa.DBCONNECTION_TYPE_SUPERQUERY&&(b=y.get("editSuperQueryConnection","\u7f16\u8f91\u8d85\u7ea7\u67e5\u8be2\u8fde\u63a5"));
e.setTitle(b);e.setSelectable(!0);e.setContentPaneCreator(function(){u||(q.getDBSourceType()==ba.SOURCE_TYPE_DB?u=new W(l):q.getDBSourceType()==ba.SOURCE_TYPE_OPENAPI?u=new R(l):q.getDBSourceType()==ba.SOURCE_TYPE_BIZMETA&&q.getDBSource().getConnectionType()==sa.DBCONNECTION_TYPE_SUPERQUERY&&(u=new G(l)),u.setOuterMessageCurtain(e.getMessageCurtain()),u.setModel(q));var c=u.getSuggestSize();x.setSize(c[0],c[1]);return u.getJqUi()});e.setClosingChecker2(function(c){q.getDBSourceType()==ba.SOURCE_TYPE_DB?
B():q.getDBSourceType()==ba.SOURCE_TYPE_OPENAPI?B():q.getDBSourceType()==ba.SOURCE_TYPE_BIZMETA&&q.getDBSource().getConnectionType()==sa.DBCONNECTION_TYPE_SUPERQUERY&&M()},function(c){e.destroy();return!0});e.setClosingAction(function(c){})})();this.setEditSuccessCallback=function(b){L=b};var k=function(b){(new wa(l,function(c){b.fromJsonObject(c);L&&L(b);e.destroy();return!0},function(c,d){return"1300001"==c?(e.getMessageCurtain().showPrompt(y.get("duplicateName","\u540d\u79f0\u91cd\u590d\u3002")),
!0):"1300002"==c?(c=y.get("duplicateHashcode","\u5df2\u5b58\u5728\u8fde\u63a5\u4fe1\u606f\u76f8\u540c\u7684\u6570\u636e\u5e93\u8fde\u63a5\u3002"),e.getMessageCurtain().showPrompt(c),!0):"1300003"==c?(e.getMessageCurtain().showPrompt(y.get("dbInfoNotFound","\u6570\u636e\u5e93\u8fde\u63a5\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664\u3002")),!0):"1300004"==c?(e.getMessageCurtain().showPrompt(y.get("noDbManagePerm","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).updateDBConnection(b)},
B=function(){var b=u.getModel();if(a(b))u.isModelValid(b.getDBSource(),function(){k(b)},function(c){e.getMessageCurtain().showPrompt(c);return!0});else return!1},M=function(){if(u.isModelValid()){var b=u.getModel();u.preSaveOrUpdateModel(b.getDBSource(),function(){k(b)})}else return!1},a=function(b){var c,d=!0;(b=b.getName())?50<b.length&&(c=y.get("nameTooLong","\u540d\u79f0\u4e0d\u53ef\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002")):c=y.get("emptyName","\u8bf7\u8f93\u5165\u540d\u79f0\u3002");c&&(e.getMessageCurtain().showPrompt(c),
d=!1);return d}}function E(){function l(a){KTDefaultCellRender.call(this,a);var b=this,c=this.paintCellUI;this.paintCellUI=function(d,h){var g=b.getCurrentRow(),n=b.getCurrentColIdx();g=g.getUserObject();var f=new C;f.setFormatString("yyyy-MM-dd HH:mm:ss");b.getCurrentRowIdx()<ua.getHeadRowCount()?c(d,h):0==n?(f=g.getRefFromType(),g="",f==Da.EXTREPORT_TYPE?g=y.get("refTypeExtreport","\u8f7b\u62a5\u8868"):f==Da.MACRO_TYPE&&(g=y.get("refTypeMacro","\u5b8f")),f=$("<div>"),f.text(g),f.attr("title",g),
f.css("line-height","28px"),f.css("padding-left","2px"),f.css("padding-right","2px"),f.appendTo(d)):1==n?(f=$("<div>"),f.text(g.getName()),f.attr("title",g.getName()),f.css("line-height","28px"),f.css("padding-left","2px"),f.css("padding-right","2px"),f.appendTo(d)):2==n?(f=$("<div>"),f.text(g.getFullPath()),f.attr("title",g.getFullPath()),f.css("line-height","28px"),f.css("padding-left","2px"),f.css("padding-right","2px"),f.appendTo(d)):3==n?(f=$("<div>"),f.text(g.getCreatorName()),f.attr("title",
g.getCreatorName()),f.css("line-height","28px"),f.css("padding-left","2px"),f.css("padding-right","2px"),f.appendTo(d)):4==n&&(h=$("<div>"),g=g.getCreateTime(),g=f.format(g),h.text(g),h.attr("title",g),h.css("line-height","28px"),h.css("padding-left","2px"),h.css("padding-right","2px"),h.appendTo(d))}}var q=this,x=[],e,u,L,k;this.setModels=function(a){x=a;q.updateUi()};this.createJqUi=function(){e||(B(),e=$("<div>"),e.append(u));return e};this.updateUi=function(){x&&0<x.length?(u&&u.show(),M(),k&&
k.hide()):(k||(k=$("<div>"),k.css({"text-align":"center",color:"#ccc","font-size":"16px"}),k.text(y.get("neverRefered","\u6682\u672a\u88ab\u5f15\u7528")),k.appendTo(e)),k.show(),M(),u&&u.hide())};var B=function(){L=ua.createTable();L.setColumnFitVisibleWidth(!0);var a=new l(L);a.setOutsideVisible(!1);L.setCellRender(a);L.setSyncUIWhenModelChanged(!0);u=$(L.getUI());J.layoutCtrlWithLRTB(u,0,0,null,0,0,null)},M=function(){L||B();ua.clear(L);L.addColumns(5);L.getColumn(0).setWidth(100);L.getColumn(1).setWidth(100);
L.getColumn(2).setWidth(150);L.getColumn(3).setWidth(100);L.getColumn(4).setWidth(150);var a=ua.createHeadRow(L);a.getCell(0).setValue(y.get("refFromType","\u5f15\u7528\u8005\u7c7b\u578b"));a.getCell(1).setValue(y.get("refFromName","\u5f15\u7528\u8005\u540d\u79f0"));a.getCell(2).setValue(y.get("fullPath","\u5f15\u7528\u8005\u5168\u8def\u5f84"));a.getCell(3).setValue(y.get("creator","\u521b\u5efa\u4eba"));a.getCell(4).setValue(y.get("createtime","\u521b\u5efa\u65f6\u95f4"));a=0;for(var b=x.length;a<
b;a++){var c=x[a];ua.createRow(L).setUserObject(c)}ua.refresh(L)}}function R(l){var q,x,e,u,L,k,B;this.setModel=function(a){x=a;B=x.getAbstractSource();M()};this.getModel=function(){var a=x?x.copy():new ba;var b=u.getText();b=b&&b.replace(/\s+/g,"");a.setName(b);a.setDBSource(B);return a};this.isModelValid=function(a,b){b()};this.setOuterMessageCurtain=function(a){};var M=function(){var a=q=$("<div>"),b=new Q;b.setText(y.get("name","\u540d\u79f0"));b=b.getJqUi();u=new ka;u.setText(x.getName());var c=
u.getJqUi();J.layoutCtrl(b,20,12,80,23);J.layoutCtrl(c,80,12,510,23);a.append(b);a.append(c);e=new Q(y.get("RESTfulDataSet","RESTful\u6570\u636e\u96c6"));a=B.clone();L=new ka;L.setPlaceholder(y.get("RESTfulDataSetUrlPlaceholder","\u8bf7\u8f93\u5165URL\u5168\u8def\u5f84"));"PROGRAM_DATA_SET"==a.getOpenAPIType()&&(L.setPlaceholder(y.get("programDataSetPlaceholder","\u8bf7\u8f93\u5165Java\u7c7b\u5168\u8def\u5f84")),e=new Q(y.get("programDataSet","\u7a0b\u5e8f\u6570\u636e\u96c6\uff1a")));L.setText(Ra.decode(a.getUrl()));
b=L.getJqUi();c=(new Q("URL")).getJqUi();c.appendTo(q);J.layoutCtrl(c,20,88,80,23);J.layoutCtrl(b,80,88,510,23);b.appendTo(q);b=e.getJqUi();J.layoutCtrl(b,20,53,200,23);b.appendTo(q);"RESTFUL_DATA_SET"==a.getOpenAPIType()&&(k=new Ma,B.getAuthModel()&&k.setModel(B.getAuthModel()),a=k.initUi(),J.layoutCtrl(a,10,133,580,200),q.append(a))};this.getJqUi=function(){q||M();return q};this.getSuggestSize=function(){return[960,548]}}function Z(l){Na.call(this);var q=this.protectedMethod,x,e,u,L,k;this.setCreateSuccessCallback=
function(M){L=M};this.intoThisStep=function(){};this.outThisStep=function(M,a){M?(q.getTopJqUi()&&q.getTopJqUi().remove(),a(null)):function(){var b=u.getModel(),c=u.getOuterMessageCurtain();if(B(b))u.isModelValid(b.getDBSource(),function(){(new wa(l,function(d){b.fromJsonObject(d);L&&L(b);a(null);return!0},function(d,h){return"1300001"==d?(c.showPrompt(y.get("duplicateName","\u540d\u79f0\u91cd\u590d")),!0):"1300002"==d?(d=y.get("duplicateHashcode","\u5df2\u5b58\u5728\u8fde\u63a5\u4fe1\u606f\u76f8\u540c\u7684\u6570\u636e\u5e93\u8fde\u63a5"),
c.showPrompt(d),!0):"1300004"==d?(c.showPrompt(y.get("noDbManagePerm","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).saveDBConnection(b)},function(d){c.showPrompt(d);return!1});else return!1}()};this.getSubTitle=function(){return y.get("connectDbServer","\u8fde\u63a5\u6570\u636e\u5e93\u670d\u52a1\u5668")};this.isLastStep=function(){return!0};this.isReturnable=function(){return!0};this.protectedCreateUi=function(){u||(u=new W(l),u.setOuterMessageCurtain(q.getMessageCurtain()));
u.setModel(e);return k=u.getJqUi()};this.setSource=function(M){x=M;e=new ba;e.setDBSource(x)};this.getSource=function(){return x};var B=function(M){var a,b=!0;(M=M.getName())?50<M.length?a=y.get("nameTooLong","\u540d\u79f0\u4e0d\u53ef\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):0==M.indexOf("datacenter")&&(a=y.get("dbNamePrefixForbid","\u540d\u79f0\u8bf7\u4e0d\u8981\u4ee5#1\u5f00\u5934\u3002").replace("#1","datacenter")):a=y.get("emptyName","\u8bf7\u8f93\u5165\u540d\u79f0\u3002");a&&(q.getMessageCurtain().showPrompt(a),
b=!1);return b}}function ca(l){Na.call(this);var q=this.protectedMethod,x,e,u,L,k;this.setCreateSuccessCallback=function(M){L=M};this.setSource=function(M){x=M;e=new ba;e.setDBSourceType(ba.SOURCE_TYPE_BIZMETA);e.setDBSource(x)};this.getSource=function(){return x};this.getSubTitle=function(){return y.get("SuperQuery","\u8d85\u7ea7\u67e5\u8be2")};this.protectedCreateUi=function(){u||(u=new G(l));u.setOuterMessageCurtain(q.getMessageCurtain());u.setModel(e);return k=u.getJqUi()};this.intoThisStep=function(){};
this.outThisStep=function(M,a){M?(q.getTopJqUi()&&q.getTopJqUi().remove(),a(null)):B(a)};var B=function(M){if(u.isModelValid()){var a=u.getModel(),b=u.getOuterMessageCurtain();u.preSaveOrUpdateModel(a.getDBSource(),function(){(new wa(l,function(c){a.fromJsonObject(c);L&&L(a);M(null);return!0},function(c,d){return"1300001"==c?(b.showPrompt(y.get("duplicateName","\u540d\u79f0\u91cd\u590d\u3002")),!0):"1300002"==c?(b.showPrompt(y.get("duplicateHashcode","\u5df2\u5b58\u5728\u8fde\u63a5\u4fe1\u606f\u76f8\u540c\u7684\u6570\u636e\u5e93\u8fde\u63a5\u3002")),
!0):"1300004"==c?(b.showPrompt(y.get("noDbManagePerm","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).saveDBConnection(a)})}else return!1};this.isLastStep=function(){return!0};this.isReturnable=function(){return!0}}function qa(l,q){var x=l,e,u=this,L,k,B=ba.SOURCE_TYPE_DB,M,a,b,c,d,h,g,n,f,N,O,da,t,p,z,m,D,K=!1,V,v,P=!1;this.setDataSourceDisabled=function(w){P=w};this.setDBManageContentPanel=function(w){a=w};this.setSelectedListener=function(w){b=w};this.setSelected=function(w){(v=
w)?(b(x),e.addClass("dbmanage-db-connection-card-item-selected")):e.removeClass("dbmanage-db-connection-card-item-selected")};this.removeCard=function(){e.remove()};this.isSelected=function(){return v};this.setEditListener=function(w){d=w};this.setDeleteListener=function(w){c=w};this.setSearchTarget=function(w,T){K=w;V=T};var X=function(){if(x){ma();Aa=$("<div class='dbmanage-db-connection-card-item'>");var w=$("<div class='dbmanage-db-connection-card-item-icon'>");if(B==ba.SOURCE_TYPE_OPENAPI)za.background(w,
"OPENAPI"),w.attr("title","OpenAPI");else if(B==ba.SOURCE_TYPE_BIZMETA)k.getConnectionType()==sa.DBCONNECTION_TYPE_SUPERQUERY&&(za.background(w,"KINGDEE"),w.attr("title",y.get("SuperQuery","\u8d85\u7ea7\u67e5\u8be2")));else{za.background(w,k.getDbType());var T=k.getDbType();w.attr("title",ra.getDisplayName(T))}Aa.append(w);w=$("<div class='dbmanage-db-connection-card-item-head'>");h=$("<span class='dbmanage-db-connection-card-item-head-title'>");var ta=$("<span class='dbmanage-db-connection-card-item-head-operator'>");
na(ta);ta.hide();Aa.on("mouseover",function(){h.css("width","150px");ta.show()});Aa.on("mouseout",function(){h.css("width","200px");ta.hide()});T=$("<div class='dbmanage-db-connection-card-item-body'>");fa(T);var Pa=$('<div class="dbmanage-db-connection-card-item-permission">');Pa.attr("title",y.get("authority","\u6388\u6743"));za.backgroundWithHover(Pa,"permission");Pa.on("click",la);w.append(h);w.append(ta);Aa.append(w);Aa.append(T);Aa.append(Pa)}else{var Aa=$("<div class='dbmanage-db-connection-card-item'>"),
Ka=$("<div class='dbmanage-db-connection-card-item-creator-icon'>");za.background(Ka,"CreatorIcon");w=$('<div class="dbmanage-db-connection-card-item-creator">');w.text(y.get("createSourceConnection","\u65b0\u5efa\u6570\u636e\u6e90\u8fde\u63a5"));w.attr(y.get("createSourceConnection","\u65b0\u5efa\u6570\u636e\u6e90\u8fde\u63a5"));Aa.append(Ka);Aa.append(w);Aa.on("mouseover",function(){za.background(Ka,"CreatorIcon_hover")});Aa.on("mouseleave",function(){za.background(Ka,"CreatorIcon")})}Aa.on("click",
va);return Aa},la=function(){(new wa(q,function(w){x.fromJsonObject(w);w=new S(q,x);w.setMessageCurtain(M);w.showDialog()},function(w,T){return"1300004"==w?(M.showPrompt(y.get("noDbManagePerm","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).loadDBPermissionInfo(x)},ha=function(w,T,ta){if(w&&T){var Pa=V.toUpperCase(),Aa=T.toUpperCase(),Ka=Aa.split(Pa),Wa=Pa.length;w.text("");if(ta){var La=$("<span>");La.text(ta);w.append(La)}ta=$("<span>");for(var Ua in Ka){La=Aa.indexOf(Ka[Ua]);
var Va=T.substr(0,Ka[Ua].length);La+=Ka[Ua].length;var Ja=Aa.length-La;Aa=Aa.substr(La,Ja);T=T.substr(La,Ja);La=$("<span>");La.text(Va);La.appendTo(ta);if(Ua!==Ka.length-1&&1<Ka.length){Ja=Aa.indexOf(Pa);Va=T.substr(Ja,Wa);Ja+=Wa;var Xa=Aa.length-Ja;Aa=Aa.substr(Ja,Xa);T=T.substr(Ja,Xa);Ja=$("<span>");Ja.text(Va);Ja.css("color","#FF0000");Ja.appendTo(La)}}w.append(ta)}};this.updateUi=function(){if(x)if(ma(),L&&(K?ha(h,L,null):h.text(L),h.attr("title",L)),B==ba.SOURCE_TYPE_OPENAPI){var w=x.getDBSource().getOpenAPIType()==
ba.SOURCE_TYPE_OPENAPI.PROGRAM_DATA_SET;K?(ha(da,z,"\u7c7b\u578b\uff1a"),ha(t,m,"\u8def\u5f84\uff1a"),!w&&ha(p,D,"\u8ba4\u8bc1\u65b9\u5f0f\uff1a")):(da.text("\u7c7b\u578b\uff1a"+z),da.attr("title","\u7c7b\u578b\uff1a"+z),t.text("\u8def\u5f84\uff1a"+m),t.attr("title","\u8def\u5f84\uff1a"+m),!w&&p.text("\u8ba4\u8bc1\u65b9\u5f0f\uff1a"+D),!w&&p.attr("title","\u8ba4\u8bc1\u65b9\u5f0f\uff1a"+D))}else if(B==ba.SOURCE_TYPE_BIZMETA&&k.getConnectionType()==sa.DBCONNECTION_TYPE_SUPERQUERY){if(w=y.get("modeWithColon",
"\u6a21\u5f0f\uff1a")+k.getSchemaName(),K?ha(O,k.getSchemaName(),y.get("modeWithColon","\u6a21\u5f0f\uff1a")):O.text(w),O.attr("title",w),w=k.getDbAddress()){var T=w.lastIndexOf("/"),ta=y.get("serviceAddress","\u670d\u52a1\u5730\u5740\uff1a")+w.substring(0,T);K?ha(f,w.substring(0,T),y.get("serviceAddress","\u670d\u52a1\u5730\u5740\uff1a")):f.text(ta);f.attr("title",ta);ta=y.get("dbCenterName","\u6570\u636e\u4e2d\u5fc3\uff1a")+w.substring(T+1);K?ha(N,w.substring(T+1),y.get("dbCenterName","\u6570\u636e\u4e2d\u5fc3\uff1a")):
N.text(ta);N.attr("title",ta)}}else B==ba.SOURCE_TYPE_DB&&(w=k.getTypeName()==A.TYPE_ORACLE?y.get("SIDOrserverNameWithColon","SID/\u5b9e\u4f8b\u540d\uff1a"):y.get("dbWithColon","\u6570\u636e\u5e93\uff1a"),T=$.trim(k.getDbName()),aa(k.getTypeName())&&(ta=y.get("modeWithColon","\u6a21\u5f0f\uff1a")+k.getSchema(),K?ha(O,k.getSchema(),y.get("modeWithColon","\u6a21\u5f0f\uff1a")):O.text(ta),O.attr("title",ta)),k.getDBAddress()&&(ta=y.get("serverWithColon","\u670d\u52a1\u5668\uff1a")+k.getDBAddress(),K?
ha(n,k.getDBAddress(),y.get("serverWithColon","\u670d\u52a1\u5668\uff1a")):n.text(ta),n.attr("title",ta))),K?ha(g,T,w):g.text(w+T),g.attr("title",w+T)};var fa=function(w){if(B==ba.SOURCE_TYPE_DB)g=$("<div class='dbmanage-db-connection-card-item-body-item'>"),w.append(g),aa(k.getTypeName())&&(O=$("<div class='dbmanage-db-connection-card-item-body-item'>"),w.append(O)),n=$("<div class='dbmanage-db-connection-card-item-body-item'>"),w.append(n);else if(B==ba.SOURCE_TYPE_BIZMETA)k.getConnectionType()==
sa.DBCONNECTION_TYPE_SUPERQUERY&&(O=$("<div class='dbmanage-db-connection-card-item-body-item'>"),w.append(O),f=$("<div class='dbmanage-db-connection-card-item-body-item'>"),w.append(f),N=$("<div class='dbmanage-db-connection-card-item-body-item'>"),w.append(N));else if(B==ba.SOURCE_TYPE_OPENAPI){da=$("<div class='dbmanage-db-connection-card-item-body-item'>");w.append(da);t=$("<div class='dbmanage-db-connection-card-item-body-item'>");w.append(t);var T=x.getDBSource().getOpenAPIType()==ba.SOURCE_TYPE_OPENAPI_PROGRAM_DATA_SET;
p=$("<div class='dbmanage-db-connection-card-item-body-item'>");!T&&w.append(p)}},na=function(w){var T=$("<span>");T.addClass("dbmanage-db-connection-card-item-head-operator-edit");if(B==ba.SOURCE_TYPE_DB)var ta=y.get("editDBConnection","\u7f16\u8f91\u6570\u636e\u5e93\u8fde\u63a5");else B==ba.SOURCE_TYPE_OPENAPI&&(ta=y.get("editOpenAPIConnection","\u7f16\u8f91OpenAPI\u8fde\u63a5"));T.attr("title",ta);T.on("click",ea);za.backgroundWithHover(T,"btn-edit");T.appendTo(w);T=$("<span>");T.addClass("dbmanage-db-connection-card-item-head-operator-delete");
T.attr("title",y.get("del","\u5220\u9664"));T.on("click",function(Pa){b(x);c&&c()});za.backgroundWithHover(T,"btn-delete");T.appendTo(w)},aa=function(w){return w==A.TYPE_POSTGRESQL||w==A.TYPE_DB2||w==A.TYPE_HANA||w==A.TYPE_REDSHIFT||w==A.TYPE_GREENPLUM||w==A.TYPE_KYLIN||w==A.TYPE_VASTBASE||w==A.TYPE_GBASE||w==A.TYPE_KINGBASE?!0:!1};this.setMessageCurtain=function(w){M=w};var ma=function(){null!=x&&(x.getId(),L=x.getName(),k=x.getDBSource(),B=x.getDBSourceType(),x.getCreatorName(),x.getCreateTime(),
x.getModifierName(),x.getModifyTime(),B==ba.SOURCE_TYPE_OPENAPI&&(z=k.getTypeName(),m=Ra.decode(k.getUrl()),D=k.getAuthModel()&&k.getAuthModel().authType&&0!=$.trim(k.getAuthModel().authType).length?k.getAuthModel().authType:"\u65e0"))};this.getJqUi=function(){e||(e=X());u.updateUi();return e};var va=function(w){x&&u.setSelected(!0);x||Y&&Y()},ea=function(){var w=function(T){x=T;u.updateUi()};d&&Oa(function(){d(w)})},Y=function(){Oa(function(){var w=new U;w.setIsLoadUserRecentUsedSourceList(!1);w.setIsShowFileSource(!1);
w.setIsShowOpenAPISource(!1);w.setChangeSourceType(!1);w.setDataSourceDisabled(P);w.setCustomNextDbConnectStepCreator(ia);w.setIsPublicSource(!0);var T=new H;T.setTitle(y.get("createSourceConnection","\u65b0\u5efa\u6570\u636e\u6e90\u8fde\u63a5"));T.setSteps([w]);T.show(960,540)})},ia=function(w){switch(w.getConnectionType()){case sa.DBCONNECTION_TYPE_DB:return Qa(w);case sa.DBCONNECTION_TYPE_SUPERQUERY:return Ta(w);default:throw Error("unknown connection type.");}},Qa=function(w){var T=new Z(q);T.setCreateSuccessCallback(function(ta){a.addModel(ta);
M.showSuccess(y.get("saveSuccess","\u4fdd\u5b58\u6210\u529f\u3002"))});T.setSource(w);return T},Ta=function(w){var T=new ca(q);T.setCreateSuccessCallback(function(ta){a.addModel(ta);M.showSuccess(y.get("saveSuccess","\u4fdd\u5b58\u6210\u529f\u3002"))});T.setSource(w);return T},Oa=function(w){(new wa(q,function(T){1==T&&w();0==T&&M&&M.showPrompt(y.get("noMenuPermission","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002"))},function(T,ta){return!1})).checkDBManagePermission()}}function ya(){var l=
this,q,x,e;this.setDisabled=function(u){u?x.css("color","#ccc"):x.css("color","#666");e=u};this.getDisabled=function(){return e};this.getJqUi=function(){if(!q){q=$("<div>");q.addClass("dbmanage-db-connection-card-item-perm-dialog");x=$("<input readonly=readonly>");x.addClass("dbmanage-db-connection-card-item-perm-dialog-input");x.on("click",l.protectedClickEvent);var u=$("<span>");u.addClass("dbmanage-db-connection-card-item-perm-dialog-icon");za.background(u,"icon_f7");u.appendTo(q);x.appendTo(q);
l.updateUI();u.on("click",l.protectedClickEvent)}return q};this.setSelectedValue=function(){throw Error("override me");};this.getSelectedValue=function(){throw Error("override me");};this.getDisplayText=function(){throw Error("override me");};this.protectedClickEvent=function(){throw Error("override me");};this.updateUI=function(){x.val(l.getDisplayText());x.attr("title",l.getDisplayText())}}function Ia(){ya.call(this);var l=this,q=[],x=!1,e,u,L;this.setSelectedListener=function(b){L=b};var k=l.getJqUi;
this.getJqUi=function(){e||(e=k(),r.DBManageAddAuthClearIcon.getAuthClearIcon()&&(B(),e.on("mouseover",function(){0<q.length&&!l.getDisabled()&&u.show()}),e.on("mouseleave",function(){u.hide()})));return e};this.protectedClickEvent=function(){x||!l.getDisabled()&&M()};this.setSelectedValue=function(b){q=b;l.updateUI()};this.getSelectedValue=function(){return q};this.getDisplayText=function(){if(0==q.length||0<q.length&&!q[0])var b=y.get("selectNoRole","\u5c1a\u672a\u9009\u62e9\u89d2\u8272");else{var c=
q[0].getText();b=y.get("selectMultiRole","\u5df2\u9009\u62e9#1\u7b49#2\u4e2a\u89d2\u8272").replace("#2",q.length);var d=y.get("selectSingleRole","\u5df2\u9009\u62e9\u89d2\u8272#1");b=1==q.length?d:b;b=b.replace("#1",c)}return b};var B=function(){u=$("<div>");u.css({position:"absolute",bottom:"6px",height:"18px",width:"18px",right:"25px",cursor:"pointer",display:"none"});za.backgroundWithHover(u,"btn-delete");u.on("click",function(){var b=new Ea.createFeedbackDialog;b.setMsgImageType(Ea.MSG_CONFIRM);
b.setMessage(y.get("confirmClearAuthority","\u786e\u5b9a\u6e05\u7a7a\u6388\u6743\uff1f"));b.setClosingChecker(function(c){c==Ea.RETURN_OK&&(q=[],L&&L(q),l.updateUI());return!0});b.showDialog()});u.appendTo(e)},M=function(){x=!0;var b=Ga;b.setCallBack(function(c){x=!1;var d=r.DBPermissionCallBackGenerator.createCallBack();if(d){c=d(c);if(!c)return;q=c}else throw Error("DB manage permission call back should add to register");l.updateUI();L&&L(q)});b.openRoleForm(a())},a=function(){for(var b=[],c=0;c<
q.length;c++){var d=q[c].getValue();b.push(d)}return b}}function Ha(){ya.call(this);var l=this,q=[],x=!1,e,u,L;this.setSelectedListener=function(b){L=b};var k=l.getJqUi;this.getJqUi=function(){e||(e=k(),r.DBManageAddAuthClearIcon.getAuthClearIcon()&&(B(),e.on("mouseover",function(){0<q.length&&!l.getDisabled()&&u.show()}),e.on("mouseleave",function(){u.hide()})));return e};this.setSelectedValue=function(b){q=b;l.updateUI()};this.getSelectedValue=function(){return q};this.protectedClickEvent=function(){x||
!l.getDisabled()&&M()};this.getDisplayText=function(){if(0==q.length||0<q.length&&!q[0])var b=y.get("selectNoUser","\u5c1a\u672a\u9009\u62e9\u7528\u6237");else{var c=q[0].getText();b=y.get("selectMultiUser","\u5df2\u9009\u62e9#1\u7b49#2\u4e2a\u7528\u6237").replace("#2",q.length);var d=y.get("selectSingleUser","\u5df2\u9009\u62e9\u7528\u6237#1");b=1==q.length?d:b;b=b.replace("#1",c)}return b};var B=function(){u=$("<div>");u.css({position:"absolute",bottom:"6px",height:"18px",width:"18px",right:"25px",
cursor:"pointer",display:"none"});za.backgroundWithHover(u,"btn-delete");u.on("click",function(){var b=Ea.createFeedbackDialog();b.setMsgImageType(Ea.MSG_CONFIRM);b.setMessage(y.get("confirmClearAuthority","\u786e\u5b9a\u6e05\u7a7a\u6388\u6743\uff1f"));b.setClosingChecker(function(c){c==Ea.RETURN_OK&&(q=[],L&&L(q),l.updateUI());return!0});b.showDialog()});u.appendTo(e)},M=function(){x=!0;var b=Ga;b.setCallBack(function(c){x=!1;var d=r.DBPermissionCallBackGenerator.createCallBack();if(d){c=d(c);if(!c)return;
q=c}else throw Error("DB manage permission callBack should add to register");l.updateUI();L&&L(q)});b.openUserForm(a())},a=function(){for(var b=[],c=0;c<q.length;c++){var d=q[c].getValue();b.push(d)}return b}}function F(l){var q,x,e,u,L=function(){var k=$("<div>"),B=new Sa,M=new Q;M.setText(y.get("ByUser","\u7528\u6237"));M=M.getJqUi();e=new Ha;var a=e.getJqUi(),b=new Q;b.setText(y.get("ByRole","\u89d2\u8272"));x=new Ia;b=b.getJqUi();var c=x.getJqUi();e.setSelectedValue(l.getUsers());e.setDisabled(!1);
x.setSelectedValue(l.getRoles());x.setDisabled(!1);var d=new Ca;d.setText(y.get("authSpecified","\u6388\u6743\u7ed9\u6307\u5b9a\u89d2\u8272\u6216\u7528\u6237"));d.addCheckedListener(function(n,f){n.isChecked()&&(e.setDisabled(!1),x.setDisabled(!1))});var h=d.getJqUi();$(h.find(".sa-ctrl-common-foreground_enabled")).css({"font-size":"14px","font-weight":"500","margin-top":"-10px"});u=new Ca;u.setText(y.get("authAll","\u6388\u6743\u7ed9\u6240\u6709\u7528\u6237"));u.addCheckedListener(function(n,f){n.isChecked()&&
(e.setDisabled(!0),x.setDisabled(!0))});var g=u.getJqUi();$(g.find(".sa-ctrl-common-foreground_enabled")).css({"font-size":"14px","font-weight":"500","margin-top":"-10px"});B.addElement(d);B.addElement(u);l.isShared()?u.setChecked(!0):d.setChecked(!0);J.layoutCtrl(h,20,15,300,23);J.layoutCtrl(b,40,60,64,23);J.layoutCtrl(c,120,60,200,23);J.layoutCtrl(M,40,110,64,23);J.layoutCtrl(a,120,110,200,23);J.layoutCtrl(g,20,158,164,23);k.append(h);k.append(M);k.append(a);k.append(b);k.append(c);k.append(g);
return k};this.udpateUiAfterCallBack=function(k){k?(l.setUsers([]),l.setRoles([]),l.setShared(!0)):l.setShared(!1)};this.getJqUi=function(){q||(q=L());return q};this.isAuthToAll=function(){return u.isChecked()};this.getSelectedUsers=function(){return e.getSelectedValue()};this.getSelectedRoles=function(){return x.getSelectedValue()}}function S(l,q){ja.call(this);var x=this.protectedMethod,e,u;(function(){var L=y.get("authority","\u6388\u6743");x.setTitle(L);x.setSelectable(!0);x.setMinSize(400,350);
x.setContentPaneCreator(function(){e=new F(q);return e.getJqUi()});x.setFooterPaneCreator(function(k){var B=new oa(y.get("confirm","\u786e\u5b9a"));B.setHighlight(!0);B.addActionListener(function(a){var b=e.isAuthToAll();q.setUsers(e.getSelectedUsers());q.setRoles(e.getSelectedRoles());(new wa(l,function(){e.udpateUiAfterCallBack(b);x.destroy();u.showSuccess(y.get("authorizationSucceeds","\u6388\u6743\u6210\u529f\u3002"));return!0},function(c){u.showPrompt(y.get("authorizationFailed","\u6388\u6743\u5931\u8d25\u3002"));
x.destroy();return!1})).saveOrUpdateDBPermissionInfo(q,b)});B=B.getJqUi();B.addClass("sa-ctrl-dialog-footer-ok");B.appendTo(k);B=new oa(y.get("cancel","\u53d6\u6d88"));B.setHighlight(!1);var M=B.getJqUi();M.addClass("sa-ctrl-dialog-footer-cancel");M.appendTo(k);B.addActionListener(function(a){x.destroy();return!0})});x.setClosingAction(function(k){})})();this.setMessageCurtain=function(L){u=L}}function W(l){var q,x,e,u,L,k=!0,B;this.setModel=function(a){if(q=a)if(a=q.getDBSource().getDbType(),a==
A.TYPE_ACCESS||a==A.TYPE_SQLITE)k=!1;e||M();a=q.getName();var b=q.getDBSource(),c=b.getDbType();e.setText(a);u=xa.getDBConnectionPanel(c,l);u.setMoveDBList2Right(k);B&&u.setOuterMessageCurtain(B);u.setModel(b,q.getId())};this.getSuggestSize=function(){return k?[960,548]:[435,530]};this.getModel=function(){var a=q?q.copy():new ba;var b=u.getModel(),c=u.getAdvanceSettingModel();b.setAdvanceSetting(c);a.setName($.trim(e.getText()));a.setDBSource(b);return a};this.isModelValid=function(a,b,c){return u.isModelValid(a,
b,c)};this.setOuterMessageCurtain=function(a){B=a;u&&u.setOuterMessageCurtain(B)};this.getOuterMessageCurtain=function(){return B};this.getJqUi=function(){if(x)return x;x=$("<div>");var a=$("<div>");a.css({position:"absolute","border-right":"1px solid #CBCBCB",height:"100%",width:"1px",top:"0px",left:"50%"});k&&x.append(a);e||M();a=$("<div>");var b=q.getDBSource().getTypeName();b=ra.getDisplayName(b);a.css({height:"20px","line-height":"20px",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",
"font-size":"14px",color:"#666"});a.text(b);x.append(a);b=new Q;a=b.getJqUi();b.setText(y.get("name","\u540d\u79f0"));b=e.getJqUi();L=u.getJqUi();J.layoutCtrl(a,20,36,80,23);J.layoutCtrl(b,110,36,300,23);J.layoutCtrl(L,20,79,375,300);x.append(a);x.append(b);x.append(L);return x};var M=function(){e=new ka;var a=q.getDBSource().getTypeName();u=xa.getDBConnectionPanel(a,l);u.setOuterMessageCurtain(B)}}function G(l){var q,x,e,u,L,k;this.setOuterMessageCurtain=function(B){k=B;L&&L.setOuterMessageCurtain(k)};
this.getOuterMessageCurtain=function(){return k};this.setModel=function(B){u=B;e||(e=new ka);B=u.getDBSource();e.setText(u.getName());var M=B.getConnectionType();L=Fa.getBIZConnectionPanel(M,l);k&&L.setOuterMessageCurtain(k);L.setModel(B,u.getId())};this.getModel=function(){var B=u?u.copy():new ba;var M=L.getModel();B.setName($.trim(e.getText()));B.setDBSource(M);return B};this.isModelValid=function(){var B=null,M=$.trim(e.getText());M?50<M.length?B=y.get("nameTooLong","\u540d\u79f0\u4e0d\u53ef\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002"):
0==M.indexOf("datacenter")&&(B=y.get("dbNamePrefixForbid","\u540d\u79f0\u8bf7\u4e0d\u8981\u4ee5#1\u5f00\u5934\u3002").replace("#1","datacenter")):B=y.get("emptyName","\u8bf7\u8f93\u5165\u540d\u79f0\u3002");return B?(k.showPrompt(B),!1):L.isModelValid()};this.preSaveOrUpdateModel=function(B,M){L.preSaveOrUpdateModel(B,M)};this.getSuggestSize=function(){return[960,548]};this.getJqUi=function(){if(q)return q;q=$("<div>");var B=$("<div>");B.addClass("dbmanage-db-connection-super-query-dialog-splitLine");
q.append(B);B=$("<div>");var M=u.getDBSource().getConnectionType();M=Ba.getDisplayName(M);B.addClass("dbmanage-db-connection-super-query-dialog-type");B.text(M);q.append(B);M=new Q;B=M.getJqUi();M.setText(y.get("name","\u540d\u79f0"));M=e.getJqUi();x=L.getJqUi();J.layoutCtrl(B,20,36,80,23);J.layoutCtrl(M,110,36,300,23);J.layoutCtrl(x,20,79,375,300);q.append(B);q.append(M);q.append(x);return 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.dbmanage&&(com.kingdee.bos.qing.dbmanage={});var r=com.kingdee.bos.qing.dbmanage;r.DBEditDialog=I;r.DBCreateDialog=Z;r.DBRefInfoDialog=function(l,q){ja.call(this);var x=this,e=this.protectedMethod,u;(function(){e.setTitle(y.get("dbRefInfo","\u6570\u636e\u6e90\u88ab\u5f15\u7528\u4fe1\u606f"));x.setSize(560,420);e.setSelectable(!0);e.setContentPaneCreator(function(){u=new E;
(new wa(q,function(L){for(var k=[],B=0,M=L.length;B<M;B++){var a=new Da;a.fromJsonObject(L[B]);k.push(a)}u.setModels(k)})).loadDBRefInfo(l.getId());return u.createJqUi()});e.setFooterClosingOnly(!0);e.setClosingChecker2(null,function(L){e.destroy();return!0});e.setClosingAction(function(L){})})()};r.DBManageContentPanel=function(l){var q,x,e,u,L=this,k,B,M=[],a=!1,b,c,d={},h={},g=!1;this.setDataSourceDisabled=function(p){g=p};this.setConnectionModels=function(p){e=p;n()};this.getSelectedModel=function(){var p=
[];p.push(k);return p};this.addModel=function(p){e||(e=[]);e.unshift(p);k=p;n()};this.removeModel=function(p){if(e){d[p.getId()]&&d[p.getId()].removeCard();p=e.indexOf(p);if(-1<p)if(e.splice(p,1),0<e.length){p=0==p?0:p-1;var z=e[p].getId();d[z]&&d[z].setSelected(!0);B&&B(e[p])}else B&&B(null);a&&f(b)}};this.setMessageCurtain=function(p){u=p};this.setSearchText=function(p){b=p;0==p.length?(a=!1,n()):(a=!0,f(p))};var n=function(){if(e){x&&x.remove();q.find(".dbmanage-db-connection-card-item").not(":first").remove();
d={};for(var p=null,z=0;z<e.length;z++){var m=new qa(e[z],l);m.setMessageCurtain(u);m.setSelectedListener(N);m.setSearchTarget(a,b);m.setEditListener(O);m.setDeleteListener(da);d[e[z].getId()]=m;var D=m.getJqUi();k&&e[z].getId()==k.getId()&&(p=m);q.append(D)}if(p){p.setSelected(!0);var K=p.getJqUi();q&&K&&(p=q.prop("clientHeight"),z=q.prop("scrollTop"),m=z+p,D=K.prop("offsetTop"),K=D+K.prop("offsetHeight"),D<z?q.prop("scrollTop",D-10):K>m&&q.prop("scrollTop",K-p+10))}}},f=function(p){q.find(".dbmanage-db-connection-card-item").not(":first").remove();
x&&x.remove();x=$("<div>");if(e){M=[];h={};for(var z=0;z<e.length;z++){a:{var m=p;for(var D=e[z].getSearchContent(),K=0;K<D.length;K++)if(-1<D[K].toUpperCase().indexOf(m)){m=!0;break a}m=!1}m&&(M.push(e[z]),m=new qa(e[z],l),m.setMessageCurtain(u),m.setSelectedListener(N),m.setSearchTarget(a,p),m.setEditListener(O),m.setDeleteListener(da),h[e[z].getId()]=m,m=m.getJqUi(),m.addClass("dbmanage-db-connection-card-item-searchMark"),x.append(m))}q.append(x);k&&h[k.getId()]?(m=h[k.getId()],m.setSelected(!0)):
0<M.length&&k&&(k=M[z],m=h[M[0].getId()],m.setSelected(!0))}},N=function(p){if(k)if(a){var z=h[k.getId()];z&&z.setSelected(!1)}else(z=d[k.getId()])&&z.setSelected(!1);k=p;B&&B(p)};this.setSelectBtnListener=function(p){B=p};var O=function(p){var z=[];z.push(k);if(z&&0!=z.length)if(1<z.length)u.showPrompt(y.get("singleRowAllowed","\u8bf7\u9009\u62e9\u5355\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\u8fdb\u884c#1\u3002").replace("#1",y.get("edit","\u7f16\u8f91")));else{var m=z[0];z=new I(l,m);z.setEditSuccessCallback(function(D){u.showSuccess(y.get("editSuccess",
"\u7f16\u8f91\u6210\u529f\u3002"));m.fromJsonObject(D.toJsonObject());a?f(b):p&&p(m)});z.showDialog()}},da=function(){if(k){var p=[];p.push(k);var z=new wa(l,function(m){t(p,m)});z.setShowBlocking(!1);z.loadDBRefInfoTimes(k.getId())}},t=function(p,z){var m=Ea.createFeedbackDialog();m.setMsgImageType(Ea.MSG_DELETE);m.setOptionType(Ea.OPTION_OK_CANCEL);var D=""+y.get("confirmDelDB","\u5220\u9664\u6570\u636e\u6e90\u8fde\u63a5\u540e\u5c06\u65e0\u6cd5\u6062\u590d\uff0c\u786e\u5b9a\u5220\u9664\u5417\uff1f");
0<z&&(D=y.get("dbAlreadyReferred","\u6570\u636e\u6e90\u8fde\u63a5\u5df2\u88ab\u5f15\u7528#1\u6b21\uff0c\u786e\u5b9a\u5220\u9664\u5417\uff1f"),D=D.replace("#1",z));m.setMessage(D);m.setClosingChecker(function(K){K==Ea.RETURN_OK&&(new wa(l,function(){L.removeModel(p[0]);u.showSuccess(y.get("deleteSuccess","\u5220\u9664\u6210\u529f\u3002"))},function(V,v){return"1300004"==V?(u.showPrompt(y.get("noDbManagePerm","\u60a8\u6ca1\u6709\u5f53\u524d\u83dc\u5355\u6743\u9650\u3002")),!0):!1})).deleteDBConnection(p[0].getId());
return!0});m.showDialog()};this.getJqUi=function(){q||(q=$("<div class='dbmanage-main-content'>"),J.layoutCtrlWithLRTB(q,0,0,null,46,0,null),c=new qa(null,l),c.setDataSourceDisabled(g),c.setSelectedListener(N),c.setDBManageContentPanel(L),c.setMessageCurtain(u),q.append(c.getJqUi()));return q}};var J,C,Q,ka,ja,oa,ua,y,ba,Da,A,sa,xa,Fa,ra,Ba,wa,za,Ga,Ea,Na,H,U,pa,Ra,Ma,Ca,Sa;(function(){var l=com.kingdee.bos.qing.common;J=l.DomUtil;C=l.DateFormater;Ra=l.Base64Util;l=com.kingdee.bos.qing.dbmanage;za=
l.Icons;l=com.kingdee.bos.qing.integration;Ga=l.UserAndRoleForm;l=com.kingdee.bos.qing.ui.component;ka=l.TextField;Q=l.Label;ja=l.AbstractModalDialog;oa=l.Button;Ea=l.MessageDialog;H=l.WizardDialog;Ca=l.RadioButton;Sa=l.RadioButtonGroup;l=com.kingdee.bos.qing.framework.common;y=l.MultilanguageManager.createPackageAccessor(r);l=com.kingdee.bos.qing.common.ui;ua=l.TableUtil;l=com.kingdee.bos.qing.data;A=l.DBSource;sa=l.AbstractSource;Na=l.AbstractImportEntityStep;U=l.SourceTypeStep;pa=l.SourceType;
Ma=l.OpenAPIAuthTypeUI;l=com.kingdee.bos.qing.dbmanage;xa=l.DBConnectionPanelFactory;Fa=l.BIZConnectionPanelFactory;ra=l.DBSourceDisplayNameFactory;Ba=l.BIZSourceDisplayNameFactory;ba=l.DBConnection;Da=l.DBRefInfo;wa=l.DBManageFacade})();new pa(A.TYPE_SQLSERVER,"SQL Server","source_sqlserver");new pa(A.TYPE_ORACLE,"ORACLE","source_oracle");new pa(A.TYPE_MYSQL,"MySQL","source_mysql");new pa(A.TYPE_POSTGRESQL,"Postgre SQL","source_pg");new pa(A.TYPE_GREENPLUM,"Greenplum","source_greenplum")})();(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.dbmanage&&(com.kingdee.bos.qing.dbmanage={});var I=com.kingdee.bos.qing.dbmanage;I.DBManageMainUi=function(G){var r,J=new E,C,Q,ka,ja,oa,ua=!1,y=function(){r=$("<div class='dbmanage-main'>");qa.layoutCtrlWithLRTB(r,0,0,null,0,0,null);Q||(Q=
new Ia,Q.getJqUi().appendTo($(document.body)));var ra=function(){var wa=r;(oa=J.addButton(A,"btn_check",ya.get("checkRefInfo","\u67e5\u770b\u5f15\u7528\u4fe1\u606f")))&&oa.getJqUi().css("margin-left","12px");J.addButton(Da,"btn_refresh",ya.get("refresh","\u5237\u65b0"));oa.setEnabled(!1);sa(J.getJqUi());J.getJqUi().appendTo(wa);C=new W(G);C.setDataSourceDisabled(ua);C.setSelectBtnListener(ba);C.setMessageCurtain(Q);C.getJqUi().appendTo(r);Fa()};if("qing_modeler"==F.getUrlParamValue("appID")){var Ba=
new R(G,function(wa){ua=wa;ra()},ra);Ba.setShowBlocking(!0);Ba.checkIsCosmicK3CloudFormalProduct()}else ra();return r},ba=function(ra){ra?oa.setEnabled(!0):oa.setEnabled(!1)},Da=function(){(new R(G,function(ra){if(ra){for(var Ba=[],wa=0;wa<ra.length;wa++){var za=new Z;za.fromJsonObject(ra[wa]);if("qing_modeler"==F.getUrlParamValue("appID")){var Ga=za.getDBSource();if(Ga&&Ga.getConnectionType()==S.DBCONNECTION_TYPE_SUPERQUERY)continue}Ba.push(za)}ka?C.setSearchText(ka):C.setConnectionModels(Ba)}})).loadDBConnections()},
A=function(){var ra=C.getSelectedModel();ra&&0!=ra.length&&(1<ra.length?Q.showPrompt(ya.get("singleRowAllowed","\u8bf7\u9009\u62e9\u5355\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\u8fdb\u884c#1\u3002").replace("#1",ya.get("check","\u67e5\u770b"))):(new ca(ra[0],G)).showDialog())},sa=function(ra){ja=new Ha;ja.addSearchListener(xa);ja.setSearchListenerDelay(0);ja.setPlaceholder(ya.get("searchBoxPlaceholder","\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9"));ja.setShowSearchIcon(!0);var Ba=ja.getJqUi();Ba.addClass("dbmanage-main-titleBar-searchBox");
var wa=Ba.find(":input");wa.focus(function(){Ba.css({width:"360px"})});wa.blur(function(){Ba.css({width:"180px"})});Ba.appendTo(ra)},xa=function(){ka=ja.getText().trim().toUpperCase();C.setSearchText(ka)},Fa=function(){var ra=new R(G,function(Ba){if(Ba){for(var wa=[],za=0;za<Ba.length;za++){var Ga=new Z;Ga.fromJsonObject(Ba[za]);if("qing_modeler"==F.getUrlParamValue("appID")){var Ea=Ga.getDBSource();if(Ea&&Ea.getConnectionType()==S.DBCONNECTION_TYPE_SUPERQUERY)continue}wa.push(Ga)}C.setConnectionModels(wa)}});
ra.setShowBlocking(!0);ra.loadDBConnections()};this.createJqUi=function(){r||(r=y());return r};this.resize=function(){};this.addToolbarButton=function(ra,Ba,wa){return J.addButtonForTailCustom(ra,Ba,wa)}};var E,R,Z,ca,qa,ya,Ia,Ha,F,S,W;(function(){var G=com.kingdee.bos.qing.ui.component;Ia=G.MessageCurtain;Ha=G.SearchBox;G=com.kingdee.bos.qing.framework.common;ya=G.MultilanguageManager.createPackageAccessor(I);G=com.kingdee.bos.qing.common;qa=G.DomUtil;G=com.kingdee.bos.qing.dbmanage;E=G.Toolbar;
Z=G.DBConnection;R=G.DBManageFacade;ca=G.DBRefInfoDialog;W=G.DBManageContentPanel;G=com.kingdee.bos.qing;F=G.Seer;G=com.kingdee.bos.qing.data;S=G.AbstractSource})()})();
//qingVersionTag: 20250415