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.humanresources.payroll.element;
14
 package org.openconcerto.erp.core.humanresources.payroll.element;
15
 
15
 
-
 
16
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
16
import org.openconcerto.sql.element.BaseSQLComponent;
17
import org.openconcerto.sql.element.BaseSQLComponent;
17
import org.openconcerto.sql.element.ConfSQLElement;
-
 
18
import org.openconcerto.sql.element.SQLComponent;
18
import org.openconcerto.sql.element.SQLComponent;
-
 
19
import org.openconcerto.sql.model.SQLTable;
19
import org.openconcerto.ui.DefaultGridBagConstraints;
20
import org.openconcerto.ui.DefaultGridBagConstraints;
20
 
21
 
21
import java.awt.GridBagConstraints;
22
import java.awt.GridBagConstraints;
22
import java.awt.GridBagLayout;
23
import java.awt.GridBagLayout;
23
import java.util.ArrayList;
24
import java.util.ArrayList;
24
import java.util.List;
25
import java.util.List;
25
 
26
 
26
import javax.swing.JLabel;
27
import javax.swing.JLabel;
27
import javax.swing.JTextField;
28
import javax.swing.JTextField;
28
 
29
 
29
public abstract class AbstractCodeCommonSQLElement extends ConfSQLElement {
30
public abstract class AbstractCodeCommonSQLElement extends ComptaSQLConfElement {
30
 
31
 
31
    public AbstractCodeCommonSQLElement(final String tableName, final String singular, final String plural) {
32
    public AbstractCodeCommonSQLElement(final SQLTable table, final String singular, final String plural) {
32
        super(tableName, singular, plural);
33
        super(table, singular, plural);
33
    }
34
    }
34
 
35
 
35
    protected List<String> getListFields() {
36
    protected List<String> getListFields() {
36
        final List<String> list = new ArrayList<String>(2);
37
        final List<String> list = new ArrayList<String>(2);
37
        list.add("CODE");
38
        list.add("CODE");