OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Go to most recent revision | Show entire file | Regard 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.action;
14
 package org.openconcerto.erp.core.customerrelationship.customer.action;
15
 
15
 
16
import org.openconcerto.erp.action.CreateListFrameAbstractAction;
16
import org.openconcerto.erp.action.CreateIListFrameAbstractAction;
17
import org.openconcerto.sql.Configuration;
17
import org.openconcerto.erp.config.ComptaPropsConfiguration;
18
import org.openconcerto.sql.view.IListFrame;
-
 
19
import org.openconcerto.sql.view.ListeAddPanel;
-
 
20
import org.openconcerto.task.config.ComptaBasePropsConfiguration;
18
import org.openconcerto.erp.core.customerrelationship.customer.element.ContactSQLElement;
21
 
19
 
22
import javax.swing.Action;
20
public class ListeDesContactsAction extends CreateIListFrameAbstractAction<ContactSQLElement> {
23
import javax.swing.JFrame;
-
 
24
 
21
 
25
public class ListeDesContactsAction extends CreateListFrameAbstractAction {
22
    public ListeDesContactsAction(final ComptaPropsConfiguration conf) {
26
 
-
 
27
    public ListeDesContactsAction() {
-
 
28
        super();
-
 
29
        this.putValue(Action.NAME, "Liste des contacts");
23
        super(conf, ContactSQLElement.class);
30
    }
-
 
31
 
-
 
32
    public JFrame createFrame() {
-
 
33
        final ComptaBasePropsConfiguration conf = ((ComptaBasePropsConfiguration) Configuration.getInstance());
-
 
34
        return new IListFrame(new ListeAddPanel(conf.getDirectory().getElement("CONTACT")));
-
 
35
    }
24
    }
36
 
25
 
37
    @Override
-
 
38
    public String getTableName() {
-
 
39
        return "CONTACT";
-
 
40
    }
-
 
41
}
26
}