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