Browse Source

REPORT-89901 feat: sql添加注释

feature/x
Sky.Luo 2 years ago
parent
commit
bf9b529af8
  1. 8
      designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/AbstractTableDataWrapper.java

8
designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/AbstractTableDataWrapper.java

@ -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);
}

Loading…
Cancel
Save