OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 151 | Rev 180 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 177
Line 102... Line 102...
102
    private LettrageModel model;
102
    private LettrageModel model;
103
    private JButton buttonLettrer;
103
    private JButton buttonLettrer;
104
    private JDate dateDeb, dateFin, dateLettrage;
104
    private JDate dateDeb, dateFin, dateLettrage;
105
 
105
 
106
    public LettragePanel() {
106
    public LettragePanel() {
-
 
107
        this(ComptePCESQLElement.getId("4"));
-
 
108
    }
-
 
109
 
-
 
110
    public LettragePanel(int idCompte) {
107
        this.setLayout(new GridBagLayout());
111
        this.setLayout(new GridBagLayout());
108
        GridBagConstraints c = new DefaultGridBagConstraints();
112
        GridBagConstraints c = new DefaultGridBagConstraints();
109
        final SQLElementDirectory directory = Configuration.getInstance().getDirectory();
113
        final SQLElementDirectory directory = Configuration.getInstance().getDirectory();
110
 
114
 
111
        this.modeSelect = allEcriture;
115
        this.modeSelect = allEcriture;
Line 122... Line 126...
122
        if (Configuration.getInstance().getBase().getServer().getSQLSystem() == SQLSystem.POSTGRESQL) {
126
        if (Configuration.getInstance().getBase().getServer().getSQLSystem() == SQLSystem.POSTGRESQL) {
123
            function = "~";
127
            function = "~";
124
        }
128
        }
125
        createComboRequest.setWhere(new Where(eltCpt.getTable().getField("NUMERO"), function, "^4.*$"));
129
        createComboRequest.setWhere(new Where(eltCpt.getTable().getField("NUMERO"), function, "^4.*$"));
126
        this.selCompte.init(eltCpt, createComboRequest);
130
        this.selCompte.init(eltCpt, createComboRequest);
127
        this.selCompte.setValue(ComptePCESQLElement.getId("4"));
131
        this.selCompte.setValue(idCompte);
128
 
132
 
129
        c.gridx++;
133
        c.gridx++;
130
        c.weightx = 1;
134
        c.weightx = 1;
131
        c.gridwidth = GridBagConstraints.REMAINDER;
135
        c.gridwidth = GridBagConstraints.REMAINDER;
132
        this.add(this.selCompte, c);
136
        this.add(this.selCompte, c);