|
|
@ -1,8 +1,7 @@ |
|
|
|
import {WidgetType, Vertical, MultiSelectItem, TextAreaEditor, Button, TextValueCombo, TextEditor} from '@ui/index'; |
|
|
|
import {WidgetType, Vertical, MultiSelectItem, TextAreaEditor, Button, TextValueCombo, TextEditor, VerticalAdapt, Label} from '@ui/index'; |
|
|
|
import {LinkType} from '@ui/type'; |
|
|
|
import {LinkType} from '@ui/type'; |
|
|
|
import {CONNECT_CHARSET} from '@private/constants'; |
|
|
|
import {CONNECT_CHARSET} from '@private/constants'; |
|
|
|
import Model from '../../link_set.model'; |
|
|
|
import Model from '../../link_set.model'; |
|
|
|
import FormItem from '@shared/components/form_item'; |
|
|
|
|
|
|
|
import Title from '@shared/components/title'; |
|
|
|
import Title from '@shared/components/title'; |
|
|
|
import {getDrivers, connectNameChecker} from './right_edit.service'; |
|
|
|
import {getDrivers, connectNameChecker} from './right_edit.service'; |
|
|
|
let connectionName: any = null; |
|
|
|
let connectionName: any = null; |
|
|
@ -31,236 +30,340 @@ const Widget: WidgetType = { |
|
|
|
vgap: 10, |
|
|
|
vgap: 10, |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: FormItem, |
|
|
|
type: VerticalAdapt, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_ConnectionName'), |
|
|
|
items: [ |
|
|
|
hint: BI.i18nText('Dec-Dcm_Connection_Form_ConnectionName-Change-Confirm'), |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Label, |
|
|
|
type: TextEditor, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
width: 300, |
|
|
|
width: 115, |
|
|
|
value: linkSelected.connectionName, |
|
|
|
textAlign: 'left', |
|
|
|
ref(ref: any) { |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_ConnectionName'), |
|
|
|
connectionName = ref; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
listeners: [{ |
|
|
|
{ |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
type: TextEditor, |
|
|
|
action() { |
|
|
|
width: 300, |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
value: linkSelected.connectionName, |
|
|
|
...that.model.linkUpdate, |
|
|
|
ref(ref: any) { |
|
|
|
connectionName: this.getValue(), |
|
|
|
connectionName = ref; |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_FOCUS, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setConnectionNameErr(''); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
listeners: [{ |
|
|
|
}, |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
connectionName: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_FOCUS, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setConnectionNameErr(''); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: Label, |
|
|
|
|
|
|
|
cls: 'bi-water-mark', |
|
|
|
|
|
|
|
lgap: 5, |
|
|
|
|
|
|
|
textAlign: 'left', |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_ConnectionName-Change-Confirm'), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: FormItem, |
|
|
|
type: VerticalAdapt, |
|
|
|
text: BI.i18nText('Dec-Dcm_First_Step'), |
|
|
|
items: [ |
|
|
|
height: 420, |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Label, |
|
|
|
type: Vertical, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
vgap: 10, |
|
|
|
width: 115, |
|
|
|
items: [ |
|
|
|
textAlign: 'left', |
|
|
|
{ |
|
|
|
text: BI.i18nText('Dec-Dcm_First_Step'), |
|
|
|
type: FormItem, |
|
|
|
}, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Driver'), |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Vertical, |
|
|
|
type: TextValueCombo, |
|
|
|
vgap: 10, |
|
|
|
width: 300, |
|
|
|
items: [ |
|
|
|
text: linkSelected.driver, |
|
|
|
{ |
|
|
|
items: getDrivers(linkSelected), |
|
|
|
type: VerticalAdapt, |
|
|
|
listeners: [{ |
|
|
|
items: [ |
|
|
|
eventName: BI.TextValueCombo.EVENT_CHANGE, |
|
|
|
{ |
|
|
|
action() { |
|
|
|
type: Label, |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
cls: 'bi-font-bold', |
|
|
|
...that.model.linkUpdate, |
|
|
|
width: 115, |
|
|
|
driver: this.getValue()[0], |
|
|
|
textAlign: 'left', |
|
|
|
}); |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Driver'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
{ |
|
|
|
}, |
|
|
|
type: TextValueCombo, |
|
|
|
}, |
|
|
|
width: 300, |
|
|
|
{ |
|
|
|
text: linkSelected.driver, |
|
|
|
type: FormItem, |
|
|
|
items: getDrivers(linkSelected), |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_URL'), |
|
|
|
listeners: [{ |
|
|
|
form: { |
|
|
|
eventName: BI.TextValueCombo.EVENT_CHANGE, |
|
|
|
type: TextEditor, |
|
|
|
action() { |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
width: 300, |
|
|
|
...that.model.linkUpdate, |
|
|
|
value: linkSelected.url, |
|
|
|
driver: this.getValue()[0], |
|
|
|
listeners: [{ |
|
|
|
}); |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
}, |
|
|
|
action() { |
|
|
|
}], |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
url: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: VerticalAdapt, |
|
|
|
type: FormItem, |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_OriginalCharsetName'), |
|
|
|
|
|
|
|
form: { |
|
|
|
|
|
|
|
type: TextValueCombo, |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
text: linkSelected.originalCharsetName === '' ? BI.i18nText('Dec-Dcm_Connection_Form_Auto') : linkSelected.originalCharsetName, |
|
|
|
|
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Auto'), |
|
|
|
type: Label, |
|
|
|
value: '', |
|
|
|
cls: 'bi-font-bold', |
|
|
|
|
|
|
|
width: 115, |
|
|
|
|
|
|
|
textAlign: 'left', |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_URL'), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: TextEditor, |
|
|
|
|
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
value: linkSelected.url, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
url: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
...CONNECT_CHARSET, |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
listeners: [{ |
|
|
|
}, |
|
|
|
eventName: BI.TextValueCombo.EVENT_CHANGE, |
|
|
|
{ |
|
|
|
action() { |
|
|
|
type: VerticalAdapt, |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
items: [ |
|
|
|
...that.model.linkUpdate, |
|
|
|
{ |
|
|
|
originalCharsetName: this.getValue()[0], |
|
|
|
type: Label, |
|
|
|
}); |
|
|
|
cls: 'bi-font-bold', |
|
|
|
|
|
|
|
width: 115, |
|
|
|
|
|
|
|
textAlign: 'left', |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_OriginalCharsetName'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
{ |
|
|
|
|
|
|
|
type: TextValueCombo, |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
text: linkSelected.originalCharsetName === '' ? BI.i18nText('Dec-Dcm_Connection_Form_Auto') : linkSelected.originalCharsetName, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Auto'), |
|
|
|
|
|
|
|
value: '', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
...CONNECT_CHARSET, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.TextValueCombo.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
originalCharsetName: this.getValue()[0], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: VerticalAdapt, |
|
|
|
type: FormItem, |
|
|
|
items: [ |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_UserName'), |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Label, |
|
|
|
type: TextEditor, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
allowBlank: true, |
|
|
|
width: 115, |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
textAlign: 'left', |
|
|
|
width: 300, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_UserName'), |
|
|
|
value: linkSelected.user, |
|
|
|
}, |
|
|
|
listeners: [{ |
|
|
|
{ |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
type: TextEditor, |
|
|
|
action() { |
|
|
|
allowBlank: true, |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
...that.model.linkUpdate, |
|
|
|
width: 300, |
|
|
|
user: this.getValue(), |
|
|
|
value: linkSelected.user, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
user: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: VerticalAdapt, |
|
|
|
type: FormItem, |
|
|
|
items: [ |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Password'), |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Label, |
|
|
|
type: TextEditor, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
inputType: 'password', |
|
|
|
width: 115, |
|
|
|
allowBlank: true, |
|
|
|
textAlign: 'left', |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Password'), |
|
|
|
width: 300, |
|
|
|
}, |
|
|
|
value: linkSelected.password, |
|
|
|
{ |
|
|
|
listeners: [{ |
|
|
|
type: TextEditor, |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
inputType: 'password', |
|
|
|
action() { |
|
|
|
allowBlank: true, |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
...that.model.linkUpdate, |
|
|
|
width: 300, |
|
|
|
password: this.getValue(), |
|
|
|
value: linkSelected.password, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
password: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: Title, |
|
|
|
type: Title, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Pool_Properties'), |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Pool_Properties'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: VerticalAdapt, |
|
|
|
type: FormItem, |
|
|
|
items: [ |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_SQL_Validation_Query'), |
|
|
|
{ |
|
|
|
height: 100, |
|
|
|
type: Label, |
|
|
|
form: { |
|
|
|
cls: 'bi-font-bold', |
|
|
|
type: TextAreaEditor, |
|
|
|
width: 115, |
|
|
|
allowBlank: true, |
|
|
|
textAlign: 'left', |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_SQL_Validation_Query'), |
|
|
|
width: 300, |
|
|
|
}, |
|
|
|
height: 100, |
|
|
|
{ |
|
|
|
value: linkSelected.validationQuery, |
|
|
|
type: TextAreaEditor, |
|
|
|
listeners: [{ |
|
|
|
cls: 'bi-border', |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
allowBlank: true, |
|
|
|
action() { |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
width: 300, |
|
|
|
...that.model.linkUpdate, |
|
|
|
height: 100, |
|
|
|
validationQuery: this.getValue(), |
|
|
|
value: linkSelected.validationQuery, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
validationQuery: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: VerticalAdapt, |
|
|
|
type: FormItem, |
|
|
|
items: [ |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Connection-Check'), |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Label, |
|
|
|
type: MultiSelectItem, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
text: BI.i18nText('Dec-Dcm_Yes'), |
|
|
|
width: 115, |
|
|
|
selected: linkSelected.testOnBorrow, |
|
|
|
textAlign: 'left', |
|
|
|
width: 60, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Connection-Check'), |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
testOnBorrow: this.isSelected(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
{ |
|
|
|
|
|
|
|
type: MultiSelectItem, |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Yes'), |
|
|
|
|
|
|
|
selected: linkSelected.testOnBorrow, |
|
|
|
|
|
|
|
width: 60, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
testOnBorrow: this.isSelected(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: VerticalAdapt, |
|
|
|
type: FormItem, |
|
|
|
items: [ |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Connection_Max_Number'), |
|
|
|
{ |
|
|
|
form: { |
|
|
|
type: Label, |
|
|
|
type: TextEditor, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
allowBlank: true, |
|
|
|
width: 115, |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
textAlign: 'left', |
|
|
|
width: 60, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Connection_Max_Number'), |
|
|
|
value: linkSelected.maxActive, |
|
|
|
}, |
|
|
|
errorText: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input-Number'), |
|
|
|
{ |
|
|
|
validationChecker: connectNameChecker, |
|
|
|
type: TextEditor, |
|
|
|
listeners: [{ |
|
|
|
allowBlank: true, |
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input'), |
|
|
|
action() { |
|
|
|
width: 60, |
|
|
|
that.store.setLinkUpdate({ |
|
|
|
value: linkSelected.maxActive, |
|
|
|
...that.model.linkUpdate, |
|
|
|
errorText: BI.i18nText('Dec-Dcm_Connection_Form_Place_Input-Number'), |
|
|
|
maxActive: this.getValue(), |
|
|
|
validationChecker: connectNameChecker, |
|
|
|
}); |
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Editor.EVENT_CHANGE, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
that.store.setLinkUpdate({ |
|
|
|
|
|
|
|
...that.model.linkUpdate, |
|
|
|
|
|
|
|
maxActive: this.getValue(), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: FormItem, |
|
|
|
type: VerticalAdapt, |
|
|
|
text: BI.i18nText('Dec-Dcm_Second_Step'), |
|
|
|
items: [ |
|
|
|
form: { |
|
|
|
{ |
|
|
|
type: Button, |
|
|
|
type: Label, |
|
|
|
width: 80, |
|
|
|
cls: 'bi-font-bold', |
|
|
|
text: BI.i18nText('Dec-Dcm_Test_Connection'), |
|
|
|
width: 115, |
|
|
|
level: 'ignore', |
|
|
|
textAlign: 'left', |
|
|
|
}, |
|
|
|
text: BI.i18nText('Dec-Dcm_Second_Step'), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: Button, |
|
|
|
|
|
|
|
width: 80, |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Test_Connection'), |
|
|
|
|
|
|
|
level: 'ignore', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: FormItem, |
|
|
|
type: VerticalAdapt, |
|
|
|
text: BI.i18nText('Dec-Dcm_Third_Step'), |
|
|
|
items: [ |
|
|
|
form: { |
|
|
|
{ |
|
|
|
type: FormItem, |
|
|
|
type: Label, |
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Pattern'), |
|
|
|
cls: 'bi-font-bold', |
|
|
|
form: { |
|
|
|
width: 115, |
|
|
|
|
|
|
|
textAlign: 'left', |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Third_Step'), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: Label, |
|
|
|
|
|
|
|
cls: 'bi-font-bold', |
|
|
|
|
|
|
|
width: 115, |
|
|
|
|
|
|
|
textAlign: 'left', |
|
|
|
|
|
|
|
text: BI.i18nText('Dec-Dcm_Connection_Form_Pattern'), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
type: TextEditor, |
|
|
|
type: TextEditor, |
|
|
|
width: 300, |
|
|
|
width: 300, |
|
|
|
disabled: true, |
|
|
|
disabled: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}; |
|
|
|