Browse Source

Pull request #5253: REPORT-50665【FRX】挂载新决策报表模板时,应该无须添加&op=form_adaptive参数

Merge in DESIGN/design from ~KERRY/design_10.0:release/11.0 to release/11.0

* commit '21e4bc1f77853efd1a023d13dd8df36fcba0f9d2':
  REPORT-50665【FRX】挂载新决策报表模板时,应该无须添加&op=form_adaptive参数
persist/11.0
kerry 3 years ago
parent
commit
9e96755af5
  1. 13
      designer-form/src/main/java/com/fr/design/preview/FormAdaptivePreview.java

13
designer-form/src/main/java/com/fr/design/preview/FormAdaptivePreview.java

@ -4,17 +4,12 @@ import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.fun.impl.AbstractPreviewProvider;
import com.fr.design.mainframe.JForm;
import com.fr.design.mainframe.JTemplate;
import com.fr.general.web.ParameterConstants;
import java.util.HashMap;
import java.util.Map;
/**
* Created by kerry on 2020-04-23
*/
public class FormAdaptivePreview extends AbstractPreviewProvider {
private static final int PREVIEW_TYPE = 6;
public static final String PREVIEW_OP = "form_adaptive";
@Override
public String nameForPopupItem() {
@ -36,14 +31,6 @@ public class FormAdaptivePreview extends AbstractPreviewProvider {
return PREVIEW_TYPE;
}
@Override
public Map<String, Object> parametersForPreview() {
Map<String, Object> map = new HashMap<String, Object>();
map.put(ParameterConstants.OP, PREVIEW_OP);
return map;
}
@Override
public boolean accept(JTemplate jTemplate) {
if (jTemplate == null) {

Loading…
Cancel
Save