Browse Source

REPORT-140338 【数据集替换】报表填报属性-数据校验-不满足公式提示中,没有替换

release/11.0
Destiny.Lin 2 weeks ago
parent
commit
75121cc86d
  1. 7
      designer-realize/src/main/java/com/fr/design/actions/replace/action/content/formula/template/SearchTemplateFormulaAction.java

7
designer-realize/src/main/java/com/fr/design/actions/replace/action/content/formula/template/SearchTemplateFormulaAction.java

@ -2,7 +2,6 @@ package com.fr.design.actions.replace.action.content.formula.template;
import com.fr.base.Formula; import com.fr.base.Formula;
import com.fr.base.Parameter; import com.fr.base.Parameter;
import com.fr.base.ParameterConfig;
import com.fr.base.io.AttrMark; import com.fr.base.io.AttrMark;
import com.fr.base.iofile.attr.WatermarkAttr; import com.fr.base.iofile.attr.WatermarkAttr;
import com.fr.data.Verifier; import com.fr.data.Verifier;
@ -11,12 +10,8 @@ import com.fr.design.actions.replace.action.content.formula.highlight.javascript
import com.fr.design.actions.replace.info.FormulaInfo; import com.fr.design.actions.replace.info.FormulaInfo;
import com.fr.design.actions.replace.info.base.ITContent; import com.fr.design.actions.replace.info.base.ITContent;
import com.fr.design.actions.replace.info.base.SearchTag; import com.fr.design.actions.replace.info.base.SearchTag;
import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.i18n.Toolkit; import com.fr.design.i18n.Toolkit;
import com.fr.design.mainframe.JTemplate; import com.fr.design.mainframe.JTemplate;
import com.fr.design.mainframe.ReportComponentComposite;
import com.fr.design.mainframe.SheetNameTabPane;
import com.fr.main.impl.WorkBook; import com.fr.main.impl.WorkBook;
import com.fr.report.core.ReportUtils; import com.fr.report.core.ReportUtils;
import com.fr.report.report.Report; import com.fr.report.report.Report;
@ -27,7 +22,6 @@ import com.fr.report.write.SubmitVisitor;
import com.fr.report.write.ValueVerifier; import com.fr.report.write.ValueVerifier;
import com.fr.stable.CommonUtils; import com.fr.stable.CommonUtils;
import java.util.List; import java.util.List;
/** /**
@ -133,6 +127,7 @@ public class SearchTemplateFormulaAction implements SearchTemplateFormula {
ITContent messageContent = ITContent.copy(verifyContent); ITContent messageContent = ITContent.copy(verifyContent);
messageContent.setReplaceObject(item.getMessage()); messageContent.setReplaceObject(item.getMessage());
messageContent.setHoldObject(item); messageContent.setHoldObject(item);
messageContent.setTag(SearchTag.WRITE_ATTR_MESSAGE);
formulaInfos.add(new FormulaInfo(messageContent)); formulaInfos.add(new FormulaInfo(messageContent));
} }
} }

Loading…
Cancel
Save