OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 156
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.core.customerrelationship.customer.element;
14
 package org.openconcerto.erp.core.customerrelationship.customer.element;
15
 
15
 
16
import java.awt.event.ActionEvent;
-
 
17
 
-
 
18
import javax.swing.AbstractAction;
-
 
19
 
-
 
20
import org.openconcerto.erp.config.Gestion;
-
 
21
import org.openconcerto.sql.view.list.IListe;
16
import org.openconcerto.sql.view.list.IListe;
22
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
17
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
23
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
18
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
24
 
19
 
-
 
20
import java.awt.event.ActionEvent;
-
 
21
 
-
 
22
import javax.swing.AbstractAction;
-
 
23
 
25
public class ContactSQLElement extends ContactSQLElementBase {
24
public class ContactSQLElement extends ContactSQLElementBase {
26
 
25
 
27
    static public class ContactFournisseurSQLElement extends ContactSQLElement {
26
    static public class ContactFournisseurSQLElement extends ContactSQLElement {
28
        public ContactFournisseurSQLElement() {
27
        public ContactFournisseurSQLElement() {
29
            super("CONTACT_FOURNISSEUR");
28
            super("CONTACT_FOURNISSEUR");
Line 41... Line 40...
41
 
40
 
42
    }
41
    }
43
 
42
 
44
    protected ContactSQLElement(String tableName) {
43
    protected ContactSQLElement(String tableName) {
45
        super(tableName);
44
        super(tableName);
46
        this.setL18nLocation(Gestion.class);
-
 
47
        PredicateRowAction action = new PredicateRowAction(new AbstractAction() {
45
        PredicateRowAction action = new PredicateRowAction(new AbstractAction() {
48
 
46
 
49
            @Override
47
            @Override
50
            public void actionPerformed(ActionEvent e) {
48
            public void actionPerformed(ActionEvent e) {
51
                sendMail(IListe.get(e).getSelectedRows());
49
                sendMail(IListe.get(e).getSelectedRows());