OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 132 | Show entire file | Ignore 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.sql.element.ConfSQLElement;
16
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
17
import org.openconcerto.sql.element.SQLComponent;
17
import org.openconcerto.sql.element.SQLComponent;
18
import org.openconcerto.sql.element.UISQLComponent;
18
import org.openconcerto.sql.element.UISQLComponent;
-
 
19
import org.openconcerto.sql.model.DBRoot;
19
import org.openconcerto.utils.ListMap;
20
import org.openconcerto.utils.ListMap;
20
 
21
 
21
import java.util.ArrayList;
22
import java.util.ArrayList;
22
import java.util.List;
23
import java.util.List;
23
 
24
 
24
import javax.swing.JTextField;
25
import javax.swing.JTextField;
25
 
26
 
26
public class ImpressionRubriqueSQLElement extends ConfSQLElement {
27
public class ImpressionRubriqueSQLElement extends ComptaSQLConfElement {
27
    public ImpressionRubriqueSQLElement() {
28
    public ImpressionRubriqueSQLElement(final DBRoot root) {
28
        super("IMPRESSION_RUBRIQUE", "une impression de rubrique", "impressions de rubrique");
29
        super(root.getTable("IMPRESSION_RUBRIQUE"), "une impression de rubrique", "impressions de rubrique");
29
    }
30
    }
30
 
31
 
31
    public List<String> getListFields() {
32
    public List<String> getListFields() {
32
        final List<String> l = new ArrayList<String>();
33
        final List<String> l = new ArrayList<String>();
33
        l.add("NOM");
34
        l.add("NOM");
Line 51... Line 52...
51
     * @see org.openconcerto.devis.SQLElement#getComponent()
52
     * @see org.openconcerto.devis.SQLElement#getComponent()
52
     */
53
     */
53
    public SQLComponent createComponent() {
54
    public SQLComponent createComponent() {
54
        return new UISQLComponent(this) {
55
        return new UISQLComponent(this) {
55
            public void addViews() {
56
            public void addViews() {
56
                this.addRequiredSQLObject(new JTextField(), "NOM", "right");
57
                this.addRequiredSQLObject(new JTextField(), "NOM", "left");
57
 
-
 
58
                this.addSQLObject(new JTextField(), "NOM", "left");
-
 
59
            }
58
            }
60
        };
59
        };
61
    }
60
    }
62
 
61
 
63
    @Override
62
    @Override