|
|
|
@ -6,7 +6,7 @@ import { FormPluginXtype } from './components/form.plugin';
|
|
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
|
import { ConnectionJDBC, Connection } from 'src/modules/crud/crud.typings'; |
|
|
|
|
import { DEFAULT_JNDI_DATA, DEFAULT_JDBC_POOL, DATEBASE_FILTER_TYPE } from '@constants/constant'; |
|
|
|
|
import { getJdbcDatabaseType } from 'src/modules/app.service'; |
|
|
|
|
import { getJdbcDatabaseType, getChartLength } from '../../../app.service'; |
|
|
|
|
export const MaintainFormXtype = 'dec.dcm.maintain.form'; |
|
|
|
|
@shortcut(MaintainFormXtype) |
|
|
|
|
@store(MaintainFormModelXtype) |
|
|
|
@ -190,6 +190,11 @@ export class MaintainForm extends BI.Widget {
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (getChartLength(value.connectionName) > 200) { |
|
|
|
|
this.setFromError(BI.i18nText('Dec-Dcm_Connection_Cannot_Too_Lang')); |
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -221,6 +226,11 @@ export class MaintainForm extends BI.Widget {
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (getChartLength(formValue.connectionName) > 200) { |
|
|
|
|
this.setFromError(BI.i18nText('Dec-Dcm_Connection_Cannot_Too_Lang')); |
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (this.isEdit || this.model.isCopy) { |
|
|
|
|
formValue.connectionId = this.connectionName; |
|
|
|
|
} |
|
|
|
|