|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.fr.design.fit.common; |
|
|
|
package com.fr.design.fit.common; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.decision.ExtraDecisionClassManager; |
|
|
|
|
|
|
|
import com.fr.decision.fun.EmailSendProvider; |
|
|
|
import com.fr.design.data.DesignTableDataManager; |
|
|
|
import com.fr.design.data.DesignTableDataManager; |
|
|
|
import com.fr.design.fit.DesignerUIModeConfig; |
|
|
|
import com.fr.design.fit.DesignerUIModeConfig; |
|
|
|
import com.fr.design.fit.NewJForm; |
|
|
|
import com.fr.design.fit.NewJForm; |
|
|
@ -23,6 +25,8 @@ import com.fr.design.widget.ui.designer.layout.FRAbsoluteLayoutDefinePane; |
|
|
|
import com.fr.design.widget.ui.designer.layout.FRFitLayoutDefinePane; |
|
|
|
import com.fr.design.widget.ui.designer.layout.FRFitLayoutDefinePane; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.MemFILE; |
|
|
|
import com.fr.file.MemFILE; |
|
|
|
|
|
|
|
import com.fr.form.fit.NewFormMarkAttr; |
|
|
|
|
|
|
|
import com.fr.form.main.Form; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.container.WAbsoluteBodyLayout; |
|
|
|
import com.fr.form.ui.container.WAbsoluteBodyLayout; |
|
|
@ -34,6 +38,7 @@ import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.report.fit.ReportFitAttr; |
|
|
|
import com.fr.report.fit.ReportFitAttr; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by kerry on 2020-06-02 |
|
|
|
* Created by kerry on 2020-06-02 |
|
|
@ -167,7 +172,16 @@ public class AdaptiveSwitchUtil { |
|
|
|
} |
|
|
|
} |
|
|
|
TemplateTool.saveForm(old); |
|
|
|
TemplateTool.saveForm(old); |
|
|
|
} |
|
|
|
} |
|
|
|
return JTemplateFactory.createJTemplate(old.getEditingFILE()); |
|
|
|
if (old.getTarget() instanceof Form) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
return new NewJForm((Form) (old.getTarget()).clone(), old.getEditingFILE()); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e, e.getMessage()); |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|