OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 132 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.sales.price.element;
14
 package org.openconcerto.erp.core.sales.price.element;
15
 
15
 
-
 
16
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
16
import org.openconcerto.erp.core.finance.accounting.model.Currency;
17
import org.openconcerto.erp.core.finance.accounting.model.Currency;
17
import org.openconcerto.sql.Configuration;
-
 
18
import org.openconcerto.sql.element.BaseSQLComponent;
18
import org.openconcerto.sql.element.BaseSQLComponent;
19
import org.openconcerto.sql.element.ConfSQLElement;
-
 
20
import org.openconcerto.sql.element.SQLComponent;
19
import org.openconcerto.sql.element.SQLComponent;
21
import org.openconcerto.sql.model.DBRoot;
20
import org.openconcerto.sql.model.DBRoot;
22
import org.openconcerto.ui.DefaultGridBagConstraints;
21
import org.openconcerto.ui.DefaultGridBagConstraints;
23
import org.openconcerto.ui.component.combo.ISearchableTextCombo;
22
import org.openconcerto.ui.component.combo.ISearchableTextCombo;
24
import org.openconcerto.utils.ListMap;
23
import org.openconcerto.utils.ListMap;
Line 30... Line 29...
30
import java.util.List;
29
import java.util.List;
31
 
30
 
32
import javax.swing.JLabel;
31
import javax.swing.JLabel;
33
import javax.swing.JTextField;
32
import javax.swing.JTextField;
34
 
33
 
35
public class DeviseSQLElement extends ConfSQLElement {
34
public class DeviseSQLElement extends ComptaSQLConfElement {
36
 
35
 
37
    public DeviseSQLElement(DBRoot root) {
36
    public DeviseSQLElement(DBRoot root) {
38
        super(root.getTable("DEVISE"), "une devise", "devises");
37
        super(root.getTable("DEVISE"), "une devise", "devises");
39
    }
38
    }
40
 
39
 
41
    public DeviseSQLElement() {
-
 
42
        this(Configuration.getInstance().getRoot());
-
 
43
    }
-
 
44
 
-
 
45
    @Override
40
    @Override
46
    public boolean isShared() {
41
    public boolean isShared() {
47
        return true;
42
        return true;
48
    }
43
    }
49
 
44