Browse Source

REPORT-126559 控件事件编辑面板无法修改

fbp-1.0
Destiny.Lin 5 months ago
parent
commit
a4d3903592
  1. 1
      build.gradle
  2. 57
      designer-realize/src/main/java/com/fanruan/boot/env/DesignFunctionComponent.java

1
build.gradle

@ -90,6 +90,7 @@ allprojects {
implementation 'com.fr.license:fine-license-api:' + apiVersion implementation 'com.fr.license:fine-license-api:' + apiVersion
implementation 'com.fr.workplace:workplace:' + apiVersion implementation 'com.fr.workplace:workplace:' + apiVersion
implementation 'com.fr.cluster:fine-cluster-api:' + apiVersion implementation 'com.fr.cluster:fine-cluster-api:' + apiVersion
implementation 'com.fr.messenger:fine-messenger:' + carinaVersion
implementation 'com.install4j:install4j-runtime:8.0.4' implementation 'com.install4j:install4j-runtime:8.0.4'
implementation 'com.fr.third:jxbrowser:6.23' implementation 'com.fr.third:jxbrowser:6.23'
implementation 'com.fr.third:jxbrowser-v7:7.22' implementation 'com.fr.third:jxbrowser-v7:7.22'

57
designer-realize/src/main/java/com/fanruan/boot/env/DesignFunctionComponent.java vendored

@ -3,6 +3,19 @@ package com.fanruan.boot.env;
import com.fanruan.carina.annotions.ActivatorRefer; import com.fanruan.carina.annotions.ActivatorRefer;
import com.fanruan.carina.annotions.DependsOn; import com.fanruan.carina.annotions.DependsOn;
import com.fanruan.carina.annotions.FineComponent; import com.fanruan.carina.annotions.FineComponent;
import com.fanruan.carina.annotions.Start;
import com.fanruan.messenger.ums.config.email.FineEmailSecurityProviderImpl;
import com.fr.base.email.EmailCenter;
import com.fr.base.email.impl.EmailAccountManagerImpl;
import com.fr.base.email.impl.FREmailDispatcherImpl;
import com.fr.base.email.impl.FineEmailExtensionProviderImpl;
import com.fr.base.email.impl.FineEmailResourceProviderImpl;
import com.fr.base.email.provider.FineEmailExtensionProvider;
import com.fr.base.email.provider.FineEmailResourceProvider;
import com.fr.base.email.provider.config.FineEmailServerConfigProvider;
import com.fr.base.email.task.EmailTaskManagement;
import com.fr.config.EmailServerConfig;
import com.fr.decision.webservice.v10.sms.SMSService;
/** /**
* 设计器基础功能组件环境切换的上层模块 * 设计器基础功能组件环境切换的上层模块
@ -27,4 +40,48 @@ import com.fanruan.carina.annotions.FineComponent;
@FineComponent(name = "design_function") @FineComponent(name = "design_function")
@DependsOn(dependencies = {"design_function_analyzer"}) @DependsOn(dependencies = {"design_function_analyzer"})
public class DesignFunctionComponent { public class DesignFunctionComponent {
@Start
public void start() {
// 通知中心目前是不支持的,但是可以先开个邮件的接口出来
initEmail();
initSMS();
}
private void initEmail() {
FineEmailExtensionProvider fineEmailExtensionProvider = new FineEmailExtensionProviderImpl();
FineEmailResourceProvider fineEmailResourceProvider = new FineEmailResourceProviderImpl();
EmailCenter.init(new FineEmailServerConfigProvider() {
@Override
public int getSmtpConnectionTimeout() {
return EmailServerConfig.getInstance().getSmtpConnectionTimeout();
}
@Override
public int getSmtpTimeout() {
return EmailServerConfig.getInstance().getSmtpTimeout();
}
@Override
public int getSmtpWriteTimeout() {
return EmailServerConfig.getInstance().getSmtpWriteTimeout();
}
@Override
public boolean isDebugEnable() {
return true;
}
},
fineEmailExtensionProvider, fineEmailResourceProvider,
new FineEmailSecurityProviderImpl());
EmailCenter.setDispatcher(new FREmailDispatcherImpl());
EmailCenter.setAccountManager(new EmailAccountManagerImpl());
EmailTaskManagement.getInstance().start();
}
private void initSMS() {
SMSService.getInstance().registerTemplateId();
}
} }

Loading…
Cancel
Save