Browse Source

Pull request #35: REPORT-42908 调用sap接口帆软上没执行

Merge in PG/plugin-report-doc-demo from ~ZACK/plugin-report-doc-demo:release/10.0 to release/10.0

* commit 'ae0260ea55d825a7b303da5d3440cf6fb9d833e8':
  REPORT-42908 调用sap接口帆软上没执行
release/10.0
zack 4 years ago
parent
commit
ebdca952ab
  1. 12
      src/main/java/com/fr/data/ParamSAPDataTest.java

12
src/main/java/com/fr/data/ParamSAPDataTest.java

@ -1,6 +1,7 @@
package com.fr.data; package com.fr.data;
import com.fr.base.FRContext; import com.fr.base.FRContext;
import com.fr.base.Parameter;
import com.fr.config.holder.impl.xml.XmlColConf; import com.fr.config.holder.impl.xml.XmlColConf;
import com.fr.function.ConnectSAPServer; import com.fr.function.ConnectSAPServer;
import com.fr.stable.ParameterProvider; import com.fr.stable.ParameterProvider;
@ -10,7 +11,6 @@ import com.sap.conn.jco.JCoFunction;
import com.sap.conn.jco.JCoTable; import com.sap.conn.jco.JCoTable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
public class ParamSAPDataTest extends AbstractTableData { public class ParamSAPDataTest extends AbstractTableData {
private String[] columnNames = null; private String[] columnNames = null;
@ -22,12 +22,10 @@ public class ParamSAPDataTest extends AbstractTableData {
private static JCoDestination jCoDestination; private static JCoDestination jCoDestination;
public ParamSAPDataTest() { public ParamSAPDataTest() {
ArrayList<String> arrayList = new ArrayList<String>(); ArrayList<ParameterProvider> arrayList = new ArrayList<>();
arrayList.add("LIFNR"); arrayList.add(new Parameter("LIFNR"));
arrayList.add("NAME1"); arrayList.add(new Parameter("NAME1"));
this.parameters = new XmlColConf<>(arrayList, ParameterProvider.class);
this.parameters = new XmlColConf<Collection<ParameterProvider>>(arrayList, ParameterProvider.class);
this.columnNames = new String[this.columnNum]; this.columnNames = new String[this.columnNum];
this.columnNames[0] = "供应商编码"; this.columnNames[0] = "供应商编码";

Loading…
Cancel
Save