OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 156
Line 26... Line 26...
26
public class BanqueSQLElement extends ComptaSQLConfElement {
26
public class BanqueSQLElement extends ComptaSQLConfElement {
27
 
27
 
28
    public static final String TABLENAME = ProductInfo.getInstance().getName().equals("OpenConcerto") ? "BANQUE" : "BANQUE_POLE_PRODUIT";
28
    public static final String TABLENAME = ProductInfo.getInstance().getName().equals("OpenConcerto") ? "BANQUE" : "BANQUE_POLE_PRODUIT";
29
 
29
 
30
    public BanqueSQLElement() {
30
    public BanqueSQLElement() {
31
        super(TABLENAME, "une banque", "banques");
31
        super(TABLENAME);
32
    }
32
    }
33
 
33
 
34
    @Override
34
    @Override
35
    protected void _initComboRequest(ComboSQLRequest req) {
35
    protected void _initComboRequest(ComboSQLRequest req) {
36
        super._initComboRequest(req);
36
        super._initComboRequest(req);
Line 38... Line 38...
38
        req.keepRows(KeepMode.GRAPH);
38
        req.keepRows(KeepMode.GRAPH);
39
    }
39
    }
40
 
40
 
41
    @Override
41
    @Override
42
    protected List<String> getComboFields() {
42
    protected List<String> getComboFields() {
43
        List<String> list = new ArrayList<String>();
43
        List<String> list = new ArrayList<>(2);
44
        list.add("CODE");
44
        list.add("CODE");
45
        list.add("NOM");
45
        list.add("NOM");
46
        return list;
46
        return list;
47
    }
47
    }
48
 
48
 
49
    @Override
49
    @Override
50
    protected List<String> getListFields() {
50
    protected List<String> getListFields() {
51
        List<String> list = new ArrayList<String>();
51
        List<String> list = new ArrayList<>(4);
52
        list.add("CODE");
52
        list.add("CODE");
53
        list.add("NOM");
53
        list.add("NOM");
54
 
-
 
55
        list.add("ID_JOURNAL");
54
        list.add("ID_JOURNAL");
56
        list.add("ID_COMPTE_PCE");
55
        list.add("ID_COMPTE_PCE");
57
        return list;
56
        return list;
58
    }
57
    }
59
 
58
 
Line 74... Line 73...
74
                this.addView("INFOS");
73
                this.addView("INFOS");
75
 
74
 
76
            }
75
            }
77
        };
76
        };
78
    }
77
    }
-
 
78
 
-
 
79
    @Override
-
 
80
    protected String createCode() {
-
 
81
        return "bank";
-
 
82
    }
79
}
83
}