OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 132 Rev 177
Line 48... Line 48...
48
    private JCheckBox checkImpr;
48
    private JCheckBox checkImpr;
49
    private JCheckBox checkVisu;
49
    private JCheckBox checkVisu;
50
    private JCheckBox checkClientCentral;
50
    private JCheckBox checkClientCentral;
51
    private JCheckBox checkFournCentral;
51
    private JCheckBox checkFournCentral;
52
    private JCheckBox checkFournImmoCentral;
52
    private JCheckBox checkFournImmoCentral;
-
 
53
    private JCheckBox checkTotalRacine;
53
    private JProgressBar bar = new JProgressBar(0, 3);
54
    private JProgressBar bar = new JProgressBar(0, 3);
54
    private JTextField compteDeb, compteEnd;
55
    private JTextField compteDeb, compteEnd;
55
 
56
 
56
    public ImpressionBalancePanel() {
57
    public ImpressionBalancePanel() {
57
        this.setLayout(new GridBagLayout());
58
        this.setLayout(new GridBagLayout());
Line 120... Line 121...
120
        c.gridwidth = GridBagConstraints.REMAINDER;
121
        c.gridwidth = GridBagConstraints.REMAINDER;
121
        c.gridx = 0;
122
        c.gridx = 0;
122
        this.checkFournImmoCentral = new JCheckBox("Centralisation des comptes fournisseurs d'immobilisations");
123
        this.checkFournImmoCentral = new JCheckBox("Centralisation des comptes fournisseurs d'immobilisations");
123
        this.add(this.checkFournImmoCentral, c);
124
        this.add(this.checkFournImmoCentral, c);
124
 
125
 
-
 
126
        // Centralisation Fournisseurs
-
 
127
        c.gridy++;
-
 
128
        c.gridwidth = GridBagConstraints.REMAINDER;
-
 
129
        c.gridx = 0;
-
 
130
        this.checkTotalRacine = new JCheckBox("Total par racine");
-
 
131
        this.add(this.checkTotalRacine, c);
-
 
132
 
125
        // Progress bar
133
        // Progress bar
126
        c.gridwidth = GridBagConstraints.REMAINDER;
134
        c.gridwidth = GridBagConstraints.REMAINDER;
127
        c.gridy++;
135
        c.gridy++;
128
        c.gridx = 0;
136
        c.gridx = 0;
129
        c.weightx = 1;
137
        c.weightx = 1;
Line 161... Line 169...
161
                bar.setString(null);
169
                bar.setString(null);
162
                bar.setValue(1);
170
                bar.setValue(1);
163
                new Thread(new Runnable() {
171
                new Thread(new Runnable() {
164
                    public void run() {
172
                    public void run() {
165
                        BalanceSheet bSheet = new BalanceSheet(dateStart.getDate(), dateEnd.getDate(), compteDeb.getText(), compteEnd.getText(), checkClientCentral.isSelected(),
173
                        BalanceSheet bSheet = new BalanceSheet(dateStart.getDate(), dateEnd.getDate(), compteDeb.getText(), compteEnd.getText(), checkClientCentral.isSelected(),
166
                                checkFournCentral.isSelected(), checkFournImmoCentral.isSelected());
174
                                checkFournCentral.isSelected(), checkFournImmoCentral.isSelected(), checkTotalRacine.isSelected());
167
                        final SpreadSheetGeneratorCompta generator = new SpreadSheetGeneratorCompta(bSheet, "Balance" + new Date().getTime(), checkImpr.isSelected(), checkVisu.isSelected());
175
                        final SpreadSheetGeneratorCompta generator = new SpreadSheetGeneratorCompta(bSheet, "Balance" + new Date().getTime(), checkImpr.isSelected(), checkVisu.isSelected());
168
 
176
 
169
                        SwingUtilities.invokeLater(new Runnable() {
177
                        SwingUtilities.invokeLater(new Runnable() {
170
                            public void run() {
178
                            public void run() {
171
                                bar.setValue(2);
179
                                bar.setValue(2);