|
|
@ -4,6 +4,7 @@ import com.fr.base.Parameter; |
|
|
|
import com.fr.base.chart.exception.ChartNotFoundException; |
|
|
|
import com.fr.base.chart.exception.ChartNotFoundException; |
|
|
|
import com.fr.base.io.XMLEncryptUtils; |
|
|
|
import com.fr.base.io.XMLEncryptUtils; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
|
|
|
import com.fr.design.fit.NewJForm; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.mainframe.AbstractAppProvider; |
|
|
|
import com.fr.design.mainframe.AbstractAppProvider; |
|
|
|
import com.fr.design.mainframe.BaseJForm; |
|
|
|
import com.fr.design.mainframe.BaseJForm; |
|
|
@ -19,6 +20,7 @@ import com.fr.exception.TplLockedException; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.form.main.Form; |
|
|
|
import com.fr.form.main.Form; |
|
|
|
import com.fr.form.ui.container.WBorderLayout; |
|
|
|
import com.fr.form.ui.container.WBorderLayout; |
|
|
|
|
|
|
|
import com.fr.form.ui.container.WFitLayout; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.report.util.ReadXmlType; |
|
|
|
import com.fr.report.util.ReadXmlType; |
|
|
@ -59,7 +61,7 @@ class FormApp extends AbstractAppProvider { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private JTemplate<Form, ?> compatibleForm(FILE tplFile, HashMap<String, Class> classType) { |
|
|
|
private JTemplate<Form, ?> compatibleForm(FILE tplFile, HashMap<String, Class> classType) { |
|
|
|
classType.put(Constants.ARG_2, Parameter[].class); |
|
|
|
classType.put(Constants.ARG_2, Parameter[].class); |
|
|
|
JForm emptyForm = new JForm(new Form(new WBorderLayout("form")), tplFile); |
|
|
|
NewJForm emptyForm = new NewJForm(Form.getEmptyBodyForm(), tplFile); |
|
|
|
OpenWorker<OpenResult<Form, Parameter[]>> worker = new OpenWorker<>( |
|
|
|
OpenWorker<OpenResult<Form, Parameter[]>> worker = new OpenWorker<>( |
|
|
|
new Callable<OpenResult<Form, Parameter[]>>() { |
|
|
|
new Callable<OpenResult<Form, Parameter[]>>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|