OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 65 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 65 Rev 182
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 25... Line 25...
25
import java.awt.event.ActionEvent;
25
import java.awt.event.ActionEvent;
26
import java.awt.event.ActionListener;
26
import java.awt.event.ActionListener;
27
import java.beans.PropertyChangeEvent;
27
import java.beans.PropertyChangeEvent;
28
import java.beans.PropertyChangeListener;
28
import java.beans.PropertyChangeListener;
29
import java.util.Calendar;
29
import java.util.Calendar;
-
 
30
import java.util.Collections;
30
 
31
 
31
import javax.swing.JButton;
32
import javax.swing.JButton;
32
import javax.swing.JFrame;
33
import javax.swing.JFrame;
33
import javax.swing.JLabel;
34
import javax.swing.JLabel;
34
import javax.swing.JPanel;
35
import javax.swing.JPanel;
Line 97... Line 98...
97
 
98
 
98
            int mois = this.combo.getValue() - 2;
99
            int mois = this.combo.getValue() - 2;
99
            int year = Integer.valueOf(this.spinYear.getValue().toString());
100
            int year = Integer.valueOf(this.spinYear.getValue().toString());
100
            PointageXmlSheet sheet = new PointageXmlSheet(mois, year);
101
            PointageXmlSheet sheet = new PointageXmlSheet(mois, year);
101
            sheet.createDocumentAsynchronous();
102
            sheet.createDocumentAsynchronous();
102
            sheet.showPrintAndExportAsynchronous(true, false, true);
103
            sheet.showPrintAndExportAsynchronous(true, false, true, Collections.emptyList());
103
        } else {
104
        } else {
104
            if (e.getSource() == this.close) {
105
            if (e.getSource() == this.close) {
105
                ((JFrame) SwingUtilities.getRoot(this)).dispose();
106
                ((JFrame) SwingUtilities.getRoot(this)).dispose();
106
            }
107
            }
107
        }
108
        }