Browse Source

代碼修改

master
kerry 7 years ago
parent
commit
70e3022e16
  1. 18
      designer-realize/src/com/fr/design/webattr/EditReportServerParameterPane.java

18
designer-realize/src/com/fr/design/webattr/EditReportServerParameterPane.java

@ -15,6 +15,9 @@ import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.design.webattr.printsettings.PrintSettingPane; import com.fr.design.webattr.printsettings.PrintSettingPane;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.report.core.ReportUtils; import com.fr.report.core.ReportUtils;
import com.fr.report.web.WebPage;
import com.fr.report.web.WebView;
import com.fr.report.web.WebWrite;
import com.fr.web.attr.ReportWebAttr; import com.fr.web.attr.ReportWebAttr;
import javax.swing.*; import javax.swing.*;
@ -74,14 +77,17 @@ public class EditReportServerParameterPane extends LoadingBasicPane {
// File.separator + reportServerPreferenceConfig.fileName()); // File.separator + reportServerPreferenceConfig.fileName());
webAttr = ((ReportWebAttr) ConfigManager.getProviderInstance().getGlobalAttribute(ReportWebAttr.class)); webAttr = ((ReportWebAttr) ConfigManager.getProviderInstance().getGlobalAttribute(ReportWebAttr.class));
if(webAttr.getWebPage() != null){ WebPage webPage = webAttr.getWebPage();
pagePane.populateBean(webAttr.getWebPage()); WebView webView = webAttr.getWebView();
WebWrite webWrite = webAttr.getWebWrite();
if(webPage != null){
pagePane.populateBean(webPage);
} }
if(webAttr.getWebView() != null){ if(webView != null){
viewPane.populateBean(webAttr.getWebView()); viewPane.populateBean(webView);
} }
if(webAttr.getWebWrite() != null){ if(webWrite != null){
writePane.populateBean(webAttr.getWebWrite()); writePane.populateBean(webWrite);
} }
cssPane.populate(webAttr); cssPane.populate(webAttr);
jsPane.populate(webAttr); jsPane.populate(webAttr);

Loading…
Cancel
Save