Browse Source

Merge remote-tracking branch 'origin/fbp-1.0' into fbp-1.0

fbp-1.0
Levy.Xie-解安森 4 months ago
parent
commit
02c5f2e3b5
  1. 7
      designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java
  2. 4
      designer-base/src/main/java/com/fr/design/gui/controlpane/JControlUpdatePane.java
  3. 4
      designer-base/src/main/java/com/fr/design/report/fit/BaseFitAttrPane.java
  4. 2
      designer-base/src/main/java/com/fr/env/RemoteWorkspaceURL.java

7
designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java vendored

@ -1,7 +1,9 @@
package com.fr.design.env; package com.fr.design.env;
import com.fanruan.workplace.http.HttpConstants; import com.fanruan.workplace.http.HttpConstants;
import com.fanruan.workplace.http.HttpServiceMap;
import com.fanruan.workplace.http.RepositoryManager; import com.fanruan.workplace.http.RepositoryManager;
import com.fanruan.workplace.http.info.Stub;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository; import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository;
@ -15,6 +17,7 @@ import com.fr.workspace.connect.WorkspaceConnectionInfo;
import com.fr.workspace.connect.WorkspaceConnector; import com.fr.workspace.connect.WorkspaceConnector;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.Map;
import java.util.UUID; import java.util.UUID;
/** /**
@ -52,6 +55,10 @@ public class HttpWorkspaceConnector implements WorkspaceConnector {
public WorkspaceClient connect(WorkspaceConnectionInfo connectionInfo) throws Exception { public WorkspaceClient connect(WorkspaceConnectionInfo connectionInfo) throws Exception {
FineWorkspaceHttpClient client = FineWorkspaceHttpClient.create("Http-Client", connectionInfo); FineWorkspaceHttpClient client = FineWorkspaceHttpClient.create("Http-Client", connectionInfo);
try { try {
for (Map.Entry<Class, Stub<?>> entry : HttpServiceMap.getInstance().entrySet()) {
Stub<?> stub = entry.getValue();
stub.clearProxy();
}
LoginResponseInfoBean bean = RemoteAuthorityRepository.getInstance().login(createLoginBean(connectionInfo)); LoginResponseInfoBean bean = RemoteAuthorityRepository.getInstance().login(createLoginBean(connectionInfo));
// 服务器如果没返回token,肯定是出问题了,直接抛出异常 // 服务器如果没返回token,肯定是出问题了,直接抛出异常
if (StringUtils.isEmpty(bean.getAccessToken())) { if (StringUtils.isEmpty(bean.getAccessToken())) {

4
designer-base/src/main/java/com/fr/design/gui/controlpane/JControlUpdatePane.java

@ -1,5 +1,6 @@
package com.fr.design.gui.controlpane; package com.fr.design.gui.controlpane;
import com.fr.data.impl.Connection;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.data.tabledata.tabledatapane.GlobalMultiTDTableDataPane; import com.fr.design.data.tabledata.tabledatapane.GlobalMultiTDTableDataPane;
@ -81,6 +82,9 @@ class JControlUpdatePane extends JPanel {
if (ob2Populate instanceof Listener) { if (ob2Populate instanceof Listener) {
listControlPane.wrapperListener((Listener) ob2Populate); listControlPane.wrapperListener((Listener) ob2Populate);
} }
if (ob2Populate instanceof Connection) {
((Connection) ob2Populate).setConnectionName(elEditing.wrapper.getName());
}
updatePanes[i].populateBean(ob2Populate); updatePanes[i].populateBean(ob2Populate);
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e); FineLoggerFactory.getLogger().error(e.getMessage(), e);

4
designer-base/src/main/java/com/fr/design/report/fit/BaseFitAttrPane.java

@ -37,12 +37,8 @@ public abstract class BaseFitAttrPane extends BasicBeanPane<ReportFitAttr> {
} }
private void initFitAttrModel() { private void initFitAttrModel() {
//旧决策报表
fitAttrModelList.add(new FrmFitAttrModel());
//普通报表 //普通报表
fitAttrModelList.add(new CptFitAttrModel()); fitAttrModelList.add(new CptFitAttrModel());
//决策报表
fitAttrModelList.add(new AdaptiveFrmFitAttrModel());
Set<FitAttrModelProvider> fitAttrModelProviders = ExtraDesignClassManager.getInstance().getArray(FitAttrModelProvider.XML_TAG); Set<FitAttrModelProvider> fitAttrModelProviders = ExtraDesignClassManager.getInstance().getArray(FitAttrModelProvider.XML_TAG);
for (FitAttrModelProvider fitAttrModelProvider : fitAttrModelProviders) { for (FitAttrModelProvider fitAttrModelProvider : fitAttrModelProviders) {
fitAttrModelList.add(fitAttrModelProvider); fitAttrModelList.add(fitAttrModelProvider);

2
designer-base/src/main/java/com/fr/env/RemoteWorkspaceURL.java vendored

@ -16,7 +16,7 @@ public class RemoteWorkspaceURL implements FCloneable {
private static final String IPV6_JUDGE_SYMBOL2 = "]"; private static final String IPV6_JUDGE_SYMBOL2 = "]";
public static final String SYSTEM_LOGIN_PATH = "#management/system/login"; public static final String SYSTEM_LOGIN_PATH = "decision#/management/login_center";
/** /**
* 默认 web app name * 默认 web app name

Loading…
Cancel
Save