OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 180 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 org.openconcerto.erp.core.finance.payment.element.EncaisserMontantSQLElement;
25
import org.openconcerto.erp.core.finance.payment.element.EncaisserMontantSQLElement;
26
import org.openconcerto.erp.core.sales.invoice.action.ImportReglementSage;
26
import org.openconcerto.erp.core.sales.invoice.action.ImportReglementSage;
27
import org.openconcerto.erp.core.sales.invoice.report.MailRelanceCreator;
27
import org.openconcerto.erp.core.sales.invoice.report.MailRelanceCreator;
28
import org.openconcerto.erp.core.sales.invoice.report.SituationCompteClientPanel;
28
import org.openconcerto.erp.core.sales.invoice.report.SituationCompteClientPanel;
29
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
29
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
-
 
30
import org.openconcerto.erp.core.sales.invoice.ui.DecaleEcheancePanel;
30
import org.openconcerto.erp.rights.ComptaUserRight;
31
import org.openconcerto.erp.rights.ComptaUserRight;
31
import org.openconcerto.sql.Configuration;
32
import org.openconcerto.sql.Configuration;
32
import org.openconcerto.sql.element.BaseSQLComponent;
33
import org.openconcerto.sql.element.BaseSQLComponent;
33
import org.openconcerto.sql.element.SQLComponent;
34
import org.openconcerto.sql.element.SQLComponent;
34
import org.openconcerto.sql.element.SQLElement;
35
import org.openconcerto.sql.element.SQLElement;
Line 60... Line 61...
60
import org.openconcerto.sql.view.list.RowAction;
61
import org.openconcerto.sql.view.list.RowAction;
61
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
62
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
62
import org.openconcerto.sql.view.list.SQLTableModelSource;
63
import org.openconcerto.sql.view.list.SQLTableModelSource;
63
import org.openconcerto.ui.DefaultGridBagConstraints;
64
import org.openconcerto.ui.DefaultGridBagConstraints;
64
import org.openconcerto.ui.EmailComposer;
65
import org.openconcerto.ui.EmailComposer;
-
 
66
import org.openconcerto.ui.FrameUtil;
65
import org.openconcerto.ui.JDate;
67
import org.openconcerto.ui.JDate;
66
import org.openconcerto.ui.PanelFrame;
68
import org.openconcerto.ui.PanelFrame;
67
import org.openconcerto.ui.SwingThreadUtils;
69
import org.openconcerto.ui.SwingThreadUtils;
68
import org.openconcerto.utils.CollectionUtils;
70
import org.openconcerto.utils.CollectionUtils;
69
import org.openconcerto.utils.ExceptionHandler;
71
import org.openconcerto.utils.ExceptionHandler;
Line 224... Line 226...
224
                    frame.setVisible(true);
226
                    frame.setVisible(true);
225
                }
227
                }
226
            }, true);
228
            }, true);
227
            actionSituation.setPredicate(IListeEvent.createSelectionCountPredicate(0, Integer.MAX_VALUE));
229
            actionSituation.setPredicate(IListeEvent.createSelectionCountPredicate(0, Integer.MAX_VALUE));
228
            getRowActions().add(actionSituation);
230
            getRowActions().add(actionSituation);
-
 
231
 
-
 
232
            PredicateRowAction actionEchDecalage = new PredicateRowAction(new AbstractAction("Décaler la date d'échéance") {
-
 
233
 
-
 
234
                @Override
-
 
235
                public void actionPerformed(ActionEvent e) {
-
 
236
                    SQLRowValues rowVals = IListe.get(e).getSelectedRow();
-
 
237
                    PanelFrame frame = new PanelFrame(new DecaleEcheancePanel(rowVals), "Décaler une échéance");
-
 
238
                    FrameUtil.showPacked(frame);
-
 
239
                }
-
 
240
            }, true);
-
 
241
            actionEchDecalage.setPredicate(IListeEvent.getSingleSelectionPredicate());
-
 
242
            getRowActions().add(actionEchDecalage);
229
        }
243
        }
230
 
244
 
231
        if (UserRightsManager.getCurrentUserRights().haveRight(ComptaUserRight.MENU)) {
245
        if (UserRightsManager.getCurrentUserRights().haveRight(ComptaUserRight.MENU)) {
232
            RowAction actionCancel = new RowAction(new AbstractAction("Annuler la régularisation en comptabilité") {
246
            RowAction actionCancel = new RowAction(new AbstractAction("Annuler la régularisation en comptabilité") {
233
 
247