|
|
@ -7,6 +7,7 @@ import { connectionType, errorCode } from '@constants/env'; |
|
|
|
import { ConnectionJDBC, Connection, ResultType } from 'src/modules/crud/crud.typings'; |
|
|
|
import { ConnectionJDBC, Connection, ResultType } from 'src/modules/crud/crud.typings'; |
|
|
|
import { DEFAULT_JNDI_DATA, DEFAULT_JDBC_POOL, DATEBASE_FILTER_TYPE } from '@constants/constant'; |
|
|
|
import { DEFAULT_JNDI_DATA, DEFAULT_JDBC_POOL, DATEBASE_FILTER_TYPE } from '@constants/constant'; |
|
|
|
import { getJdbcDatabaseType, getChartLength } from '../../../app.service'; |
|
|
|
import { getJdbcDatabaseType, getChartLength } from '../../../app.service'; |
|
|
|
|
|
|
|
import { NAME_MAX_LENGTH } from '../../../app.constant'; |
|
|
|
export const MaintainFormXtype = 'dec.dcm.maintain.form'; |
|
|
|
export const MaintainFormXtype = 'dec.dcm.maintain.form'; |
|
|
|
@shortcut(MaintainFormXtype) |
|
|
|
@shortcut(MaintainFormXtype) |
|
|
|
@store(MaintainFormModelXtype) |
|
|
|
@store(MaintainFormModelXtype) |
|
|
@ -186,7 +187,7 @@ export class MaintainForm extends BI.Widget { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (getChartLength(value.connectionName) > 200) { |
|
|
|
if (getChartLength(value.connectionName) > NAME_MAX_LENGTH) { |
|
|
|
this.setFromError(BI.i18nText('Dec-Dcm_Connection_Cannot_Too_Lang')); |
|
|
|
this.setFromError(BI.i18nText('Dec-Dcm_Connection_Cannot_Too_Lang')); |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -220,7 +221,7 @@ export class MaintainForm extends BI.Widget { |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (getChartLength(formValue.connectionName) > 200) { |
|
|
|
if (getChartLength(formValue.connectionName) > NAME_MAX_LENGTH) { |
|
|
|
this.setFromError(BI.i18nText('Dec-Dcm_Connection_Cannot_Too_Lang')); |
|
|
|
this.setFromError(BI.i18nText('Dec-Dcm_Connection_Cannot_Too_Lang')); |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|