Browse Source

Merge pull request #785 in BA/design from ~PLOUGH/design:release to release

* commit '9014f648299a8d25be5ae9a9c7ab65848f73f843':
  REPORT-1916 模板耗时=》解决带参数表单无法保存的bug
master
superman 8 years ago
parent
commit
3d2bcf370f
  1. 6
      designer_base/src/com/fr/design/mainframe/templateinfo/JFormProcessInfo.java

6
designer_base/src/com/fr/design/mainframe/templateinfo/JFormProcessInfo.java

@ -1,7 +1,7 @@
package com.fr.design.mainframe.templateinfo; package com.fr.design.mainframe.templateinfo;
import com.fr.form.main.Form; import com.fr.form.main.Form;
import com.fr.form.ui.container.WFitLayout; import com.fr.form.ui.container.WLayout;
/** /**
* Created by plough on 2017/3/17. * Created by plough on 2017/3/17.
@ -32,8 +32,8 @@ public class JFormProcessInfo extends TemplateProcessInfo<Form> {
public int getWidgetCount() { public int getWidgetCount() {
int widgetCount = 0; int widgetCount = 0;
for (int i = 0; i < template.getContainer().getWidgetCount(); i++) { for (int i = 0; i < template.getContainer().getWidgetCount(); i++) {
WFitLayout wf = (WFitLayout) template.getContainer().getWidget(i); WLayout wl = (WLayout) template.getContainer().getWidget(i);
widgetCount += wf.getWidgetCount(); widgetCount += wl.getWidgetCount();
} }
int a = 1; int a = 1;
int b = 2; int b = 2;

Loading…
Cancel
Save