|
|
|
@ -15,6 +15,7 @@ import com.fr.design.data.DesignTableDataManager;
|
|
|
|
|
import com.fr.design.data.datapane.ChoosePane; |
|
|
|
|
import com.fr.design.data.datapane.DataBaseItems; |
|
|
|
|
import com.fr.design.data.datapane.VerticalChoosePane; |
|
|
|
|
import com.fr.design.data.datapane.preview.ConnectionInfoBeanHelper; |
|
|
|
|
import com.fr.design.data.datapane.preview.PreviewLabel.Previewable; |
|
|
|
|
import com.fr.design.editor.DoubleDeckValueEditorPane; |
|
|
|
|
import com.fr.design.editor.editor.ColumnIndexEditor; |
|
|
|
@ -178,7 +179,7 @@ public class DatabaseDictPane extends FurtherBasicBeanPane<DatabaseDictionary> i
|
|
|
|
|
if (StringUtils.isBlank(para.getDatabaseName())) { |
|
|
|
|
dbDict.setDatabaseConnection(null); |
|
|
|
|
} else { |
|
|
|
|
Connection connection = ConnectionRepository.getInstance().getByName(para.getDatabaseName()).getConnection(); |
|
|
|
|
Connection connection = ConnectionInfoBeanHelper.createConnection(ConnectionRepository.getInstance().getByName(para.getDatabaseName())); |
|
|
|
|
if (connection != null) { |
|
|
|
|
database = new NameDatabaseConnection(para.getDatabaseName()); |
|
|
|
|
dbDict.setDatabaseConnection(database); |
|
|
|
|