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