OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 174 Rev 177
Line 18... Line 18...
18
import org.openconcerto.erp.core.common.ui.DeviseField;
18
import org.openconcerto.erp.core.common.ui.DeviseField;
19
import org.openconcerto.erp.core.common.ui.PanelFrame;
19
import org.openconcerto.erp.core.common.ui.PanelFrame;
20
import org.openconcerto.erp.core.edm.AttachmentAction;
20
import org.openconcerto.erp.core.edm.AttachmentAction;
21
import org.openconcerto.erp.core.finance.accounting.ui.AssociationAnalytiquePanel;
21
import org.openconcerto.erp.core.finance.accounting.ui.AssociationAnalytiquePanel;
22
import org.openconcerto.erp.core.finance.accounting.ui.ConsultationCompteFrame;
22
import org.openconcerto.erp.core.finance.accounting.ui.ConsultationCompteFrame;
-
 
23
import org.openconcerto.erp.core.finance.accounting.ui.LettragePanel;
23
import org.openconcerto.erp.core.finance.accounting.ui.LettrageRenderer;
24
import org.openconcerto.erp.core.finance.accounting.ui.LettrageRenderer;
24
import org.openconcerto.erp.core.finance.accounting.ui.ListEcritureRenderer;
25
import org.openconcerto.erp.core.finance.accounting.ui.ListEcritureRenderer;
25
import org.openconcerto.erp.core.finance.accounting.ui.ListeDesEcrituresPanel;
26
import org.openconcerto.erp.core.finance.accounting.ui.ListeDesEcrituresPanel;
26
import org.openconcerto.erp.core.finance.accounting.ui.PointageRenderer;
27
import org.openconcerto.erp.core.finance.accounting.ui.PointageRenderer;
27
import org.openconcerto.erp.core.finance.accounting.ui.SuppressionEcrituresPanel;
28
import org.openconcerto.erp.core.finance.accounting.ui.SuppressionEcrituresPanel;
Line 98... Line 99...
98
            }
99
            }
99
        }, false);
100
        }, false);
100
        consult.setPredicate(IListeEvent.getSingleSelectionPredicate());
101
        consult.setPredicate(IListeEvent.getSingleSelectionPredicate());
101
        getRowActions().add(consult);
102
        getRowActions().add(consult);
102
 
103
 
-
 
104
        PredicateRowAction interrogation = new PredicateRowAction(new AbstractAction("Interrogation du compte") {
-
 
105
            public void actionPerformed(ActionEvent event) {
-
 
106
 
-
 
107
                SQLRowAccessor row = IListe.get(event).getSelectedRow();
-
 
108
 
-
 
109
                PanelFrame f = new PanelFrame(new LettragePanel(row.getForeignID("ID_COMPTE_PCE")), "Lettrage manuel par compte");
-
 
110
                f.setVisible(true);
-
 
111
            }
-
 
112
        }, false);
-
 
113
        interrogation.setPredicate(IListeEvent.getSingleSelectionPredicate());
-
 
114
        getRowActions().add(interrogation);
-
 
115
 
103
        PredicateRowAction contre = new PredicateRowAction(new AbstractAction("Contrepassation") {
116
        PredicateRowAction contre = new PredicateRowAction(new AbstractAction("Contrepassation") {
104
            public void actionPerformed(ActionEvent event) {
117
            public void actionPerformed(ActionEvent event) {
105
                EcritureSQLElement.contrePassationPiece(IListe.get(event).getSelectedId());
118
                EcritureSQLElement.contrePassationPiece(IListe.get(event).getSelectedId());
106
            }
119
            }
107
        }, false);
120
        }, false);