|
|
@ -7,6 +7,7 @@ import com.fr.design.mainframe.JWorkBook; |
|
|
|
import com.fr.design.worker.open.OpenResult; |
|
|
|
import com.fr.design.worker.open.OpenResult; |
|
|
|
import com.fr.design.worker.open.OpenWorker; |
|
|
|
import com.fr.design.worker.open.OpenWorker; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FILE; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
import java.util.concurrent.Callable; |
|
|
|
import java.util.concurrent.Callable; |
|
|
@ -42,6 +43,7 @@ abstract class AbstractWorkBookApp implements App<WorkBook> { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
worker.start(tplFile.getPath()); |
|
|
|
worker.start(tplFile.getPath()); |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().info(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Template_Opening_And_Waiting", tplFile.getName()) + "..."); |
|
|
|
OpenResult<WorkBook, Parameter[]> result = worker.getResult(); |
|
|
|
OpenResult<WorkBook, Parameter[]> result = worker.getResult(); |
|
|
|
if (result != null) { |
|
|
|
if (result != null) { |
|
|
|
return new JWorkBook(result.getBaseBook(), tplFile); |
|
|
|
return new JWorkBook(result.getBaseBook(), tplFile); |
|
|
|