Line 1... |
Line 1... |
1 |
/*
|
1 |
/*
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
3 |
*
|
3 |
*
|
4 |
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
|
4 |
* Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
|
5 |
*
|
5 |
*
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
9 |
* language governing permissions and limitations under the License.
|
9 |
* language governing permissions and limitations under the License.
|
Line 32... |
Line 32... |
32 |
import java.awt.event.ActionEvent;
|
32 |
import java.awt.event.ActionEvent;
|
33 |
import java.beans.PropertyChangeEvent;
|
33 |
import java.beans.PropertyChangeEvent;
|
34 |
import java.beans.PropertyChangeListener;
|
34 |
import java.beans.PropertyChangeListener;
|
35 |
import java.io.File;
|
35 |
import java.io.File;
|
36 |
import java.util.Calendar;
|
36 |
import java.util.Calendar;
|
- |
|
37 |
import java.util.Collections;
|
37 |
import java.util.Date;
|
38 |
import java.util.Date;
|
38 |
import java.util.concurrent.ExecutionException;
|
39 |
import java.util.concurrent.ExecutionException;
|
39 |
|
40 |
|
40 |
import javax.swing.AbstractAction;
|
41 |
import javax.swing.AbstractAction;
|
41 |
import javax.swing.JButton;
|
42 |
import javax.swing.JButton;
|
Line 111... |
Line 112... |
111 |
public void run() {
|
112 |
public void run() {
|
112 |
SQLRow poste = box.getSelectedRow();
|
113 |
SQLRow poste = box.getSelectedRow();
|
113 |
VentilationAnalytiqueSheetXML sheet = new VentilationAnalytiqueSheetXML(dateDeb.getDate(), dateEnd.getDate(), poste);
|
114 |
VentilationAnalytiqueSheetXML sheet = new VentilationAnalytiqueSheetXML(dateDeb.getDate(), dateEnd.getDate(), poste);
|
114 |
try {
|
115 |
try {
|
115 |
sheet.createDocument();
|
116 |
sheet.createDocument();
|
116 |
sheet.showPrintAndExport(true, false, false);
|
117 |
sheet.showPrintAndExport(true, false, false, Collections.emptyList());
|
117 |
} catch (InterruptedException e) {
|
118 |
} catch (InterruptedException e) {
|
118 |
// TODO Auto-generated catch block
|
119 |
// TODO Auto-generated catch block
|
119 |
e.printStackTrace();
|
120 |
e.printStackTrace();
|
120 |
} catch (ExecutionException e) {
|
121 |
} catch (ExecutionException e) {
|
121 |
// TODO Auto-generated catch block
|
122 |
// TODO Auto-generated catch block
|