OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 93 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.element.SQLElement;
18
import org.openconcerto.erp.core.customerrelationship.customer.element.ClientDepartementSQLElement;
19
import org.openconcerto.sql.view.IListFrame;
-
 
20
import org.openconcerto.sql.view.ListeAddPanel;
-
 
21
 
-
 
22
import javax.swing.Action;
-
 
23
import javax.swing.JFrame;
-
 
24
 
19
 
25
public class ListeDesDepartementsClientsAction extends CreateListFrameAbstractAction {
20
public class ListeDesDepartementsClientsAction extends CreateIListFrameAbstractAction<ClientDepartementSQLElement> {
26
 
-
 
27
    public ListeDesDepartementsClientsAction() {
21
    public ListeDesDepartementsClientsAction(final ComptaPropsConfiguration conf) {
28
        super();
-
 
29
        this.putValue(Action.NAME, "Liste des services clients");
22
        super(conf, ClientDepartementSQLElement.class);
30
    }
-
 
31
 
-
 
32
    @Override
-
 
33
    public String getTableName() {
-
 
34
        return "CLIENT_DEPARTEMENT";
-
 
35
    }
-
 
36
 
-
 
37
    public JFrame createFrame() {
-
 
38
        SQLElement eltClientDpt = Configuration.getInstance().getDirectory().getElement("CLIENT_DEPARTEMENT");
-
 
39
 
-
 
40
        final ListeAddPanel panel = new ListeAddPanel(eltClientDpt);
-
 
41
        IListFrame frame = new IListFrame(panel);
-
 
42
        return frame;
-
 
43
    }
23
    }
44
}
24
}