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 28... Line 28...
28
    public CaisseTicketSQLElement() {
28
    public CaisseTicketSQLElement() {
29
        super("CAISSE", "une caisse", "caisses");
29
        super("CAISSE", "une caisse", "caisses");
30
    }
30
    }
31
 
31
 
32
    protected List<String> getListFields() {
32
    protected List<String> getListFields() {
33
        final List<String> l = new ArrayList<String>();
33
        final List<String> l = new ArrayList<>(2);
34
        l.add("NUMERO");
34
        l.add("NUMERO");
35
        l.add("NOM");
35
        l.add("NOM");
36
        return l;
36
        return l;
37
    }
37
    }
38
 
38
 
39
    protected List<String> getComboFields() {
39
    protected List<String> getComboFields() {
40
        final List<String> l = new ArrayList<String>();
40
        final List<String> l = new ArrayList<>(2);
41
        l.add("NUMERO");
41
        l.add("NUMERO");
42
        l.add("NOM");
42
        l.add("NOM");
43
        return l;
43
        return l;
44
    }
44
    }
45
 
45
 
46
    @Override
46
    @Override
47
    public ListMap<String, String> getShowAs() {
47
    public ListMap<String, String> getShowAs() {
48
        final ListMap<String, String> res = new ListMap<String, String>();
48
        final ListMap<String, String> res = new ListMap<>();
49
        res.putCollection(null, "NUMERO", "NOM");
49
        res.putCollection(null, "NUMERO", "NOM");
50
        return res;
50
        return res;
51
 
51
 
52
    }
52
    }
53
 
53
 
Line 62... Line 62...
62
                this.addRequiredSQLObject(new JTextField(), "NUMERO", "left");
62
                this.addRequiredSQLObject(new JTextField(), "NUMERO", "left");
63
                this.addRequiredSQLObject(new JTextField(), "NOM", "right");
63
                this.addRequiredSQLObject(new JTextField(), "NOM", "right");
64
            }
64
            }
65
        };
65
        };
66
    }
66
    }
-
 
67
 
-
 
68
    @Override
-
 
69
    protected String createCodeSuffix() {
-
 
70
        return ".receipt";
-
 
71
    }
-
 
72
 
67
}
73
}