OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 25 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25 Rev 73
Line 23... Line 23...
23
import java.awt.GridBagConstraints;
23
import java.awt.GridBagConstraints;
24
import java.awt.GridBagLayout;
24
import java.awt.GridBagLayout;
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.util.Calendar;
27
import java.util.Calendar;
28
import java.util.concurrent.ExecutionException;
-
 
29
 
28
 
30
import javax.swing.JButton;
29
import javax.swing.JButton;
-
 
30
import javax.swing.JCheckBox;
31
import javax.swing.JLabel;
31
import javax.swing.JLabel;
32
import javax.swing.JPanel;
32
import javax.swing.JPanel;
33
 
33
 
34
public class BalanceAgeePanel extends JPanel {
34
public class BalanceAgeePanel extends JPanel {
35
 
35
 
Line 50... Line 50...
50
        this.add(dateDeb, c);
50
        this.add(dateDeb, c);
51
        this.add(new JLabel("au"), c);
51
        this.add(new JLabel("au"), c);
52
        this.add(dateFin, c);
52
        this.add(dateFin, c);
53
 
53
 
54
        c.gridy++;
54
        c.gridy++;
-
 
55
        c.gridx = 0;
-
 
56
        c.gridwidth = GridBagConstraints.REMAINDER;
-
 
57
        final JCheckBox boxExcludeEcr = new JCheckBox("Exclure les écritures de clotures");
-
 
58
        boxExcludeEcr.setSelected(true);
-
 
59
        this.add(boxExcludeEcr, c);
-
 
60
 
-
 
61
        c.gridy++;
55
        c.gridwidth = GridBagConstraints.REMAINDER;
62
        c.gridwidth = GridBagConstraints.REMAINDER;
56
        c.anchor = GridBagConstraints.EAST;
63
        c.anchor = GridBagConstraints.EAST;
57
        c.fill = GridBagConstraints.NONE;
64
        c.fill = GridBagConstraints.NONE;
58
        JButton gen = new JButton("Créer");
65
        JButton gen = new JButton("Créer");
59
 
66
 
Line 61... Line 68...
61
 
68
 
62
        gen.addActionListener(new ActionListener() {
69
        gen.addActionListener(new ActionListener() {
63
 
70
 
64
            @Override
71
            @Override
65
            public void actionPerformed(ActionEvent e) {
72
            public void actionPerformed(ActionEvent e) {
66
                BalanceAgeeListeSheetXML l = new BalanceAgeeListeSheetXML(dateDeb.getDate(), dateFin.getDate());
73
                BalanceAgeeListeSheetXML l = new BalanceAgeeListeSheetXML(dateDeb.getDate(), dateFin.getDate(), boxExcludeEcr.isSelected());
67
 
74
 
68
                try {
75
                try {
69
                    l.createDocument();
76
                    l.createDocument();
70
                    l.openDocument(false);
77
                    l.openDocument(false);
71
                } catch (Exception e1) {
78
                } catch (Exception e1) {