OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 151
Line 14... Line 14...
14
 package org.openconcerto.erp.core.humanresources.payroll.element;
14
 package org.openconcerto.erp.core.humanresources.payroll.element;
15
 
15
 
16
import org.openconcerto.erp.config.ComptaPropsConfiguration;
16
import org.openconcerto.erp.config.ComptaPropsConfiguration;
17
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
17
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
18
import org.openconcerto.erp.core.common.ui.JNiceButton;
18
import org.openconcerto.erp.core.common.ui.JNiceButton;
-
 
19
import org.openconcerto.erp.core.common.ui.PanelFrame;
19
import org.openconcerto.erp.core.humanresources.payroll.component.VariableRowTreeNode;
20
import org.openconcerto.erp.core.humanresources.payroll.component.VariableRowTreeNode;
-
 
21
import org.openconcerto.erp.core.humanresources.payroll.report.FichePayeSheetXML;
20
import org.openconcerto.erp.core.humanresources.payroll.ui.FichePayeRenderer;
22
import org.openconcerto.erp.core.humanresources.payroll.ui.FichePayeRenderer;
-
 
23
import org.openconcerto.erp.core.humanresources.payroll.ui.PanelCumulsPaye;
21
import org.openconcerto.erp.generationEcritures.GenerationMvtFichePaye;
24
import org.openconcerto.erp.generationEcritures.GenerationMvtFichePaye;
22
import org.openconcerto.erp.model.FichePayeModel;
25
import org.openconcerto.erp.model.FichePayeModel;
-
 
26
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
23
import org.openconcerto.erp.model.RubriquePayeTree;
27
import org.openconcerto.erp.model.RubriquePayeTree;
24
import org.openconcerto.sql.Configuration;
28
import org.openconcerto.sql.Configuration;
25
import org.openconcerto.sql.element.BaseSQLComponent;
29
import org.openconcerto.sql.element.BaseSQLComponent;
26
import org.openconcerto.sql.element.SQLComponent;
30
import org.openconcerto.sql.element.SQLComponent;
27
import org.openconcerto.sql.element.SQLElementDirectory;
31
import org.openconcerto.sql.element.SQLElementDirectory;
Line 38... Line 42...
38
import org.openconcerto.sql.model.SQLSystem;
42
import org.openconcerto.sql.model.SQLSystem;
39
import org.openconcerto.sql.model.SQLTable;
43
import org.openconcerto.sql.model.SQLTable;
40
import org.openconcerto.sql.sqlobject.ElementComboBox;
44
import org.openconcerto.sql.sqlobject.ElementComboBox;
41
import org.openconcerto.sql.view.EditFrame;
45
import org.openconcerto.sql.view.EditFrame;
42
import org.openconcerto.sql.view.IListFrame;
46
import org.openconcerto.sql.view.IListFrame;
-
 
47
import org.openconcerto.sql.view.list.IListe;
-
 
48
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
-
 
49
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
43
import org.openconcerto.ui.DefaultGridBagConstraints;
50
import org.openconcerto.ui.DefaultGridBagConstraints;
44
import org.openconcerto.ui.JDate;
51
import org.openconcerto.ui.JDate;
45
import org.openconcerto.ui.component.ITextArea;
52
import org.openconcerto.ui.component.ITextArea;
46
import org.openconcerto.ui.component.InteractionMode;
53
import org.openconcerto.ui.component.InteractionMode;
47
import org.openconcerto.utils.ExceptionHandler;
54
import org.openconcerto.utils.ExceptionHandler;
Line 77... Line 84...
77
 
84
 
78
public class FichePayeSQLElement extends ComptaSQLConfElement {
85
public class FichePayeSQLElement extends ComptaSQLConfElement {
79
 
86
 
80
    public FichePayeSQLElement() {
87
    public FichePayeSQLElement() {
81
        super("FICHE_PAYE", "une fiche de paye", "fiches de paye");
88
        super("FICHE_PAYE", "une fiche de paye", "fiches de paye");
-
 
89
 
-
 
90
        MouseSheetXmlListeListener l = new MouseSheetXmlListeListener(FichePayeSheetXML.class);
-
 
91
        getRowActions().addAll(l.getRowActions());
-
 
92
 
-
 
93
        PredicateRowAction actionCumuls = new PredicateRowAction(new AbstractAction("Détails cumuls et variables") {
-
 
94
 
-
 
95
            @Override
-
 
96
            public void actionPerformed(ActionEvent e) {
-
 
97
                final PanelCumulsPaye pCumuls = new PanelCumulsPaye();
-
 
98
                final PanelFrame p = new PanelFrame(pCumuls, "Détails cumuls et variables");
-
 
99
                pCumuls.selectFiche(IListe.get(e).getSelectedRow().asRow());
-
 
100
                p.setVisible(true);
-
 
101
            }
-
 
102
        }, true);
-
 
103
        actionCumuls.setPredicate(IListeEvent.getSingleSelectionPredicate());
-
 
104
        getRowActions().add(actionCumuls);
-
 
105
 
82
    }
106
    }
83
 
107
 
84
    protected List<String> getListFields() {
108
    protected List<String> getListFields() {
85
        final List<String> l = new ArrayList<String>();
109
        final List<String> l = new ArrayList<String>();
86
        l.add("ID_SALARIE");
110
        l.add("ID_SALARIE");