OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 177 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 62... Line 62...
62
import java.beans.PropertyChangeListener;
62
import java.beans.PropertyChangeListener;
63
import java.sql.SQLException;
63
import java.sql.SQLException;
64
import java.util.ArrayList;
64
import java.util.ArrayList;
65
import java.util.Arrays;
65
import java.util.Arrays;
66
import java.util.Calendar;
66
import java.util.Calendar;
-
 
67
import java.util.Collections;
67
import java.util.Date;
68
import java.util.Date;
68
import java.util.List;
69
import java.util.List;
69
 
70
 
70
import javax.swing.AbstractAction;
71
import javax.swing.AbstractAction;
71
import javax.swing.BorderFactory;
72
import javax.swing.BorderFactory;
Line 84... Line 85...
84
public class FichePayeSQLElement extends ComptaSQLConfElement {
85
public class FichePayeSQLElement extends ComptaSQLConfElement {
85
 
86
 
86
    public FichePayeSQLElement() {
87
    public FichePayeSQLElement() {
87
        super("FICHE_PAYE", "une fiche de paye", "fiches de paye");
88
        super("FICHE_PAYE", "une fiche de paye", "fiches de paye");
88
 
89
 
89
        MouseSheetXmlListeListener l = new MouseSheetXmlListeListener(FichePayeSheetXML.class);
90
        MouseSheetXmlListeListener l = new MouseSheetXmlListeListener(this, FichePayeSheetXML.class);
90
        getRowActions().addAll(l.getRowActions());
91
        getRowActions().addAll(l.getRowActions());
91
 
92
 
92
        PredicateRowAction actionCumuls = new PredicateRowAction(new AbstractAction("Détails cumuls et variables") {
93
        PredicateRowAction actionCumuls = new PredicateRowAction(new AbstractAction("Détails cumuls et variables") {
93
 
94
 
94
            @Override
95
            @Override
Line 108... Line 109...
108
 
109
 
109
                SQLRow row = IListe.get(e).getSelectedRow().asRow();
110
                SQLRow row = IListe.get(e).getSelectedRow().asRow();
110
                FichePayeSheetXML sheet = new FichePayeSheetXML(row, false);
111
                FichePayeSheetXML sheet = new FichePayeSheetXML(row, false);
111
                try {
112
                try {
112
                    sheet.createDocument();
113
                    sheet.createDocument();
113
                    sheet.showPrintAndExport(true, false, true);
114
                    sheet.showPrintAndExport(true, false, true, Collections.emptyList());
114
                } catch (Exception e1) {
115
                } catch (Exception e1) {
115
                    ExceptionHandler.handle("Erreur lors de la création du document.", e1);
116
                    ExceptionHandler.handle("Erreur lors de la création du document.", e1);
116
                }
117
                }
117
            }
118
            }
118
        }, false);
119
        }, false);
Line 436... Line 437...
436
                panelTotal.add(textCice, cPanel);
437
                panelTotal.add(textCice, cPanel);
437
                textCice.setEditable(false);
438
                textCice.setEditable(false);
438
                textCice.setEnabled(false);
439
                textCice.setEnabled(false);
439
                this.addSQLObject(textCice, "CICE");
440
                this.addSQLObject(textCice, "CICE");
440
 
441
 
-
 
442
                // Perte Temps Partiel Thérapeutique
-
 
443
                cPanel.gridx = 0;
-
 
444
                cPanel.gridy++;
-
 
445
                cPanel.weightx = 0;
-
 
446
                JLabel labelTPT = new JLabel(getLabelFor("PERTE_TPT"));
-
 
447
                panelTotal.add(labelTPT, cPanel);
-
 
448
                JTextField textTPT = new JTextField(10);
-
 
449
                cPanel.gridx++;
-
 
450
                cPanel.weightx = 1;
-
 
451
                panelTotal.add(textTPT, cPanel);
-
 
452
                this.addSQLObject(textTPT, "PERTE_TPT");
-
 
453
 
441
                c.gridx = 0;
454
                c.gridx = 0;
442
                c.gridy++;
455
                c.gridy++;
443
                c.fill = GridBagConstraints.HORIZONTAL;
456
                c.fill = GridBagConstraints.HORIZONTAL;
444
                c.weightx = 1;
457
                c.weightx = 1;
445
                c.weighty = 0;
458
                c.weighty = 0;