|
|
|
@ -2,11 +2,13 @@ package com.fr.design.data.tabledata.wrapper;
|
|
|
|
|
|
|
|
|
|
import com.fr.base.TableData; |
|
|
|
|
import com.fr.data.TableDataSource; |
|
|
|
|
import com.fr.data.impl.DBTableData; |
|
|
|
|
import com.fr.data.impl.EmbeddedTableData; |
|
|
|
|
import com.fr.design.DesignModelAdapter; |
|
|
|
|
import com.fr.design.data.DesignTableDataManager; |
|
|
|
|
import com.fr.design.data.datapane.preview.PreviewTablePane; |
|
|
|
|
import com.fr.design.data.tabledata.tabledatapane.AbstractTableDataPane; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
|
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
@ -58,6 +60,9 @@ public abstract class AbstractTableDataWrapper implements TableDataWrapper {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EmbeddedTableData embeddedTableData = null; |
|
|
|
|
if (tabledata instanceof DBTableData) { |
|
|
|
|
((DBTableData) tabledata).setDesignerCurrEditTemplate(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().getEditingFILE().getName()); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
embeddedTableData = DesignTableDataManager.previewTableDataNotNeedInputParameters(tds, tabledata, TableData.RESULT_NOT_NEED, false); |
|
|
|
|
} catch (Exception e) { |
|
|
|
@ -103,6 +108,9 @@ public abstract class AbstractTableDataWrapper implements TableDataWrapper {
|
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
public void previewData() { |
|
|
|
|
if (tabledata instanceof DBTableData) { |
|
|
|
|
((DBTableData) tabledata).setDesignerCurrEditTemplate(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().getEditingFILE().getName()); |
|
|
|
|
} |
|
|
|
|
PreviewTablePane.previewTableData(tabledata); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|