Browse Source

REPORT-58270 新前端填报剥离插件

persist/11.0
Yuan.Wang 3 years ago
parent
commit
c0d3517bc9
  1. 39
      designer-base/src/main/java/com/fr/design/preview/NewWritePreview.java
  2. 3
      designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java

39
designer-base/src/main/java/com/fr/design/preview/NewWritePreview.java

@ -1,39 +0,0 @@
package com.fr.design.preview;
import com.fr.design.fun.impl.AbstractPreviewProvider;
import java.util.HashMap;
import java.util.Map;
/**
* 新前端填报预览
* by abel 2021/07/08
*/
public class NewWritePreview extends AbstractPreviewProvider {
@Override
public String nameForPopupItem() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Write_New_Preview");
}
@Override
public String iconPathForPopupItem() {
return "com/fr/design/images/buttonicon/writes.png";
}
@Override
public String iconPathForLarge() {
return "com/fr/design/images/buttonicon/writeb24.png";
}
@Override
public int previewTypeCode() {
return 99;
}
@Override
public Map<String, Object> parametersForPreview() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("op", "write_new");
return map;
}
}

3
designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java

@ -145,6 +145,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
super(workBook, fileName);
populateReportParameterAttr();
}
public JWorkBook(WorkBook workBook, FILE file, Parameter[] parameters) {
super(workBook, file, parameters);
populateReportParameterAttr();
@ -929,7 +930,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
public PreviewProvider[] supportPreview() {
PreviewProvider[] templatePreviews = super.supportPreview();
return ArrayUtils.addAll(new PreviewProvider[]{
new PagePreview(), new WritePreview(), new ViewPreview(), new MobilePreview(), new NewWritePreview()
new PagePreview(), new WritePreview(), new ViewPreview(), new MobilePreview()
}, templatePreviews);
}

Loading…
Cancel
Save