OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 151 | Rev 174 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 156
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
10
 * 
10
 * 
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.erp.core.common.element.ComptaSQLConfElement;
17
import org.openconcerto.sql.element.BaseSQLComponent;
17
import org.openconcerto.sql.element.BaseSQLComponent;
18
import org.openconcerto.sql.element.SQLComponent;
18
import org.openconcerto.sql.element.SQLComponent;
19
import org.openconcerto.sql.sqlobject.ElementComboBox;
19
import org.openconcerto.sql.sqlobject.ElementComboBox;
20
import org.openconcerto.ui.DefaultGridBagConstraints;
20
import org.openconcerto.ui.DefaultGridBagConstraints;
21
import org.openconcerto.ui.JDate;
21
import org.openconcerto.ui.JDate;
22
 
22
 
23
import java.awt.GridBagConstraints;
23
import java.awt.GridBagConstraints;
24
import java.awt.GridBagLayout;
24
import java.awt.GridBagLayout;
25
import java.util.ArrayList;
25
import java.util.ArrayList;
26
import java.util.Arrays;
26
import java.util.Arrays;
27
import java.util.HashSet;
27
import java.util.HashSet;
28
import java.util.List;
28
import java.util.List;
29
import java.util.Set;
29
import java.util.Set;
30
 
30
 
31
import javax.swing.JLabel;
31
import javax.swing.JLabel;
32
import javax.swing.JTextField;
32
import javax.swing.JTextField;
33
import javax.swing.SwingConstants;
33
import javax.swing.SwingConstants;
34
 
34
 
35
public class ContratSalarieSQLElement extends ComptaSQLConfElement {
35
public class ContratSalarieSQLElement extends ComptaSQLConfElement {
36
 
36
 
37
    public ContratSalarieSQLElement() {
37
    public ContratSalarieSQLElement() {
38
        super("CONTRAT_SALARIE", "un contrat salarié", "contrats salariés");
38
        super("CONTRAT_SALARIE", "un contrat salarié", "contrats salariés");
39
    }
39
    }
40
 
40
 
41
    protected List<String> getListFields() {
41
    protected List<String> getListFields() {
42
        final List<String> l = new ArrayList<String>();
42
        final List<String> l = new ArrayList<String>();
43
        l.add("NATURE");
43
        l.add("NATURE");
44
        return l;
44
        return l;
45
    }
45
    }
46
 
46
 
47
    @Override
47
    @Override
48
    public Set<String> getInsertOnlyFields() {
48
    public Set<String> getInsertOnlyFields() {
49
        Set<String> s = new HashSet<String>();
49
        Set<String> s = new HashSet<String>();
50
        s.add("DATE_MODIFICATION");
50
        s.add("DATE_MODIFICATION");
51
        return s;
51
        return s;
52
    }
52
    }
53
 
53
 
54
    protected List<String> getComboFields() {
54
    protected List<String> getComboFields() {
55
        final List<String> l = new ArrayList<String>();
55
        final List<String> l = new ArrayList<String>();
56
        l.add("NUMERO");
56
        l.add("NUMERO");
57
        l.add("DATE_DEBUT");
57
        l.add("DATE_DEBUT");
58
        return l;
58
        return l;
59
    }
59
    }
60
 
60
 
61
    @Override
61
    @Override
62
    public boolean isPrivate() {
62
    public boolean isPrivate() {
63
        return true;
63
        return true;
64
    }
64
    }
65
 
65
 
66
    /*
66
    /*
67
     * (non-Javadoc)
67
     * (non-Javadoc)
68
     * 
68
     * 
69
     * @see org.openconcerto.devis.SQLElement#getComponent()
69
     * @see org.openconcerto.devis.SQLElement#getComponent()
70
     */
70
     */
71
    public SQLComponent createComponent() {
71
    public SQLComponent createComponent() {
72
        return new BaseSQLComponent(this) {
72
        return new BaseSQLComponent(this) {
73
 
73
 
74
            public void addViews() {
74
            public void addViews() {
75
 
75
 
76
                this.setLayout(new GridBagLayout());
76
                this.setLayout(new GridBagLayout());
77
 
77
 
78
                GridBagConstraints c = new DefaultGridBagConstraints();
78
                GridBagConstraints c = new DefaultGridBagConstraints();
79
 
79
 
80
                // Numero
80
                // Numero
81
                JLabel labelNumero = new JLabel(getLabelFor("NUMERO"));
81
                JLabel labelNumero = new JLabel(getLabelFor("NUMERO"));
82
                labelNumero.setHorizontalAlignment(SwingConstants.RIGHT);
82
                labelNumero.setHorizontalAlignment(SwingConstants.RIGHT);
83
                JTextField textNumero = new JTextField();
83
                JTextField textNumero = new JTextField();
84
 
84
 
85
                this.add(labelNumero, c);
85
                this.add(labelNumero, c);
86
                c.gridx++;
86
                c.gridx++;
87
                c.weightx = 1;
87
                c.weightx = 1;
88
                this.add(textNumero, c);
88
                this.add(textNumero, c);
89
                this.addRequiredSQLObject(textNumero, "NUMERO");
89
                this.addRequiredSQLObject(textNumero, "NUMERO");
90
 
90
 
91
                c.gridy++;
91
                c.gridy++;
92
                c.gridx = 0;
92
                c.gridx = 0;
93
                // Nature
93
                // Nature
94
                JLabel labelNature = new JLabel(getLabelFor("NATURE"));
94
                JLabel labelNature = new JLabel(getLabelFor("NATURE"));
95
                labelNature.setHorizontalAlignment(SwingConstants.RIGHT);
95
                labelNature.setHorizontalAlignment(SwingConstants.RIGHT);
96
                JTextField textNature = new JTextField();
96
                JTextField textNature = new JTextField();
97
 
97
 
98
                this.add(labelNature, c);
98
                this.add(labelNature, c);
99
                c.gridx++;
99
                c.gridx++;
100
                c.weightx = 1;
100
                c.weightx = 1;
101
                this.add(textNature, c);
101
                this.add(textNature, c);
102
 
102
 
103
                // Catégorie socioprofessionnelle
103
                // Catégorie socioprofessionnelle
104
                JLabel labelCatSocio = new JLabel(getLabelFor("ID_CODE_EMPLOI"));
104
                JLabel labelCatSocio = new JLabel(getLabelFor("ID_CODE_EMPLOI"));
105
                labelCatSocio.setHorizontalAlignment(SwingConstants.RIGHT);
105
                labelCatSocio.setHorizontalAlignment(SwingConstants.RIGHT);
106
                ElementComboBox selCodeCatSocio = new ElementComboBox();
106
                ElementComboBox selCodeCatSocio = new ElementComboBox();
107
                selCodeCatSocio.setInfoIconVisible(false);
107
                selCodeCatSocio.setInfoIconVisible(false);
108
                c.gridy++;
108
                c.gridy++;
109
                c.gridx = 0;
109
                c.gridx = 0;
110
                c.weightx = 0;
110
                c.weightx = 0;
111
                this.add(labelCatSocio, c);
111
                this.add(labelCatSocio, c);
112
                c.gridx++;
112
                c.gridx++;
113
                c.weightx = 1;
113
                c.weightx = 1;
114
                this.add(selCodeCatSocio, c);
114
                this.add(selCodeCatSocio, c);
115
 
115
 
116
                // Contrat de travail
116
                // Contrat de travail
117
                JLabel labelContratTravail = new JLabel(getLabelFor("ID_CODE_CONTRAT_TRAVAIL"));
117
                JLabel labelContratTravail = new JLabel(getLabelFor("ID_CODE_CONTRAT_TRAVAIL"));
118
                labelContratTravail.setHorizontalAlignment(SwingConstants.RIGHT);
118
                labelContratTravail.setHorizontalAlignment(SwingConstants.RIGHT);
119
                ElementComboBox selContratTravail = new ElementComboBox();
119
                ElementComboBox selContratTravail = new ElementComboBox();
120
                selContratTravail.setInfoIconVisible(false);
120
                selContratTravail.setInfoIconVisible(false);
121
                c.gridy++;
121
                c.gridy++;
122
                c.gridx = 0;
122
                c.gridx = 0;
123
                c.weightx = 0;
123
                c.weightx = 0;
124
                this.add(labelContratTravail, c);
124
                this.add(labelContratTravail, c);
125
                c.gridx++;
125
                c.gridx++;
126
                c.weightx = 1;
126
                c.weightx = 1;
127
                this.add(selContratTravail, c);
127
                this.add(selContratTravail, c);
128
 
128
 
129
                // Droit Contrat de travail
129
                // Droit Contrat de travail
130
                JLabel labelDroitContrat = new JLabel(getLabelFor("ID_CODE_DROIT_CONTRAT"));
130
                JLabel labelDroitContrat = new JLabel(getLabelFor("ID_CODE_DROIT_CONTRAT"));
131
                labelDroitContrat.setHorizontalAlignment(SwingConstants.RIGHT);
131
                labelDroitContrat.setHorizontalAlignment(SwingConstants.RIGHT);
132
                ElementComboBox selDroitContrat = new ElementComboBox();
132
                ElementComboBox selDroitContrat = new ElementComboBox();
133
                selDroitContrat.setInfoIconVisible(false);
133
                selDroitContrat.setInfoIconVisible(false);
134
                c.gridy++;
134
                c.gridy++;
135
                c.gridx = 0;
135
                c.gridx = 0;
136
                c.weightx = 0;
136
                c.weightx = 0;
137
                this.add(labelDroitContrat, c);
137
                this.add(labelDroitContrat, c);
138
                c.gridx++;
138
                c.gridx++;
139
                c.weightx = 1;
139
                c.weightx = 1;
140
                this.add(selDroitContrat, c);
140
                this.add(selDroitContrat, c);
141
 
141
 
142
                // caracteristiques activité
142
                // caracteristiques activité
143
                JLabel labelCaractActivite = new JLabel(getLabelFor("ID_CODE_CARACT_ACTIVITE"));
143
                JLabel labelCaractActivite = new JLabel(getLabelFor("ID_CODE_CARACT_ACTIVITE"));
144
                labelCaractActivite.setHorizontalAlignment(SwingConstants.RIGHT);
144
                labelCaractActivite.setHorizontalAlignment(SwingConstants.RIGHT);
145
                ElementComboBox selCaractActivite = new ElementComboBox();
145
                ElementComboBox selCaractActivite = new ElementComboBox();
146
                selCaractActivite.setInfoIconVisible(false);
146
                selCaractActivite.setInfoIconVisible(false);
147
                c.gridy++;
147
                c.gridy++;
148
                c.gridx = 0;
148
                c.gridx = 0;
149
                c.weightx = 0;
149
                c.weightx = 0;
150
                this.add(labelCaractActivite, c);
150
                this.add(labelCaractActivite, c);
151
                c.gridx++;
151
                c.gridx++;
152
                c.weightx = 1;
152
                c.weightx = 1;
153
                this.add(selCaractActivite, c);
153
                this.add(selCaractActivite, c);
154
 
154
 
155
                // Statut profesionnel
155
                // Statut profesionnel
156
                JLabel labelStatutProf = new JLabel(getLabelFor("ID_CODE_STATUT_PROF"));
156
                JLabel labelStatutProf = new JLabel(getLabelFor("ID_CODE_STATUT_PROF"));
157
                labelStatutProf.setHorizontalAlignment(SwingConstants.RIGHT);
157
                labelStatutProf.setHorizontalAlignment(SwingConstants.RIGHT);
158
                ElementComboBox selStatutProf = new ElementComboBox();
158
                ElementComboBox selStatutProf = new ElementComboBox();
159
                selStatutProf.setInfoIconVisible(false);
159
                selStatutProf.setInfoIconVisible(false);
160
                c.gridy++;
160
                c.gridy++;
161
                c.gridx = 0;
161
                c.gridx = 0;
162
                c.weightx = 0;
162
                c.weightx = 0;
163
                this.add(labelStatutProf, c);
163
                this.add(labelStatutProf, c);
164
                c.gridx++;
164
                c.gridx++;
165
                c.weightx = 1;
165
                c.weightx = 1;
166
                this.add(selStatutProf, c);
166
                this.add(selStatutProf, c);
167
 
167
 
168
                // Statut categoriel
168
                // Statut categoriel
169
                JLabel labelStatutCat = new JLabel(getLabelFor("ID_CODE_STATUT_CATEGORIEL"));
169
                JLabel labelStatutCat = new JLabel(getLabelFor("ID_CODE_STATUT_CATEGORIEL"));
170
                labelStatutCat.setHorizontalAlignment(SwingConstants.RIGHT);
170
                labelStatutCat.setHorizontalAlignment(SwingConstants.RIGHT);
171
                ElementComboBox selStatutCat = new ElementComboBox();
171
                ElementComboBox selStatutCat = new ElementComboBox();
172
                selStatutCat.setInfoIconVisible(false);
172
                selStatutCat.setInfoIconVisible(false);
173
                c.gridy++;
173
                c.gridy++;
174
                c.gridx = 0;
174
                c.gridx = 0;
175
                c.weightx = 0;
175
                c.weightx = 0;
176
                this.add(labelStatutCat, c);
176
                this.add(labelStatutCat, c);
177
                c.gridx++;
177
                c.gridx++;
178
                c.weighty = 1;
178
                c.weighty = 1;
179
                c.weightx = 1;
179
                c.weightx = 1;
180
                this.add(selStatutCat, c);
180
                this.add(selStatutCat, c);
181
 
181
 
182
                // Statut categoriel
182
                // Statut categoriel
183
                JLabel labelStatutCatConv = new JLabel(getLabelFor("ID_CODE_STATUT_CAT_CONV"));
183
                JLabel labelStatutCatConv = new JLabel(getLabelFor("ID_CODE_STATUT_CAT_CONV"));
184
                labelStatutCatConv.setHorizontalAlignment(SwingConstants.RIGHT);
184
                labelStatutCatConv.setHorizontalAlignment(SwingConstants.RIGHT);
185
                ElementComboBox selStatutCatConv = new ElementComboBox();
185
                ElementComboBox selStatutCatConv = new ElementComboBox();
186
                selStatutCatConv.setInfoIconVisible(false);
186
                selStatutCatConv.setInfoIconVisible(false);
187
                c.gridy++;
187
                c.gridy++;
188
                c.gridx = 0;
188
                c.gridx = 0;
189
                c.weightx = 0;
189
                c.weightx = 0;
190
                this.add(labelStatutCatConv, c);
190
                this.add(labelStatutCatConv, c);
191
                c.gridx++;
191
                c.gridx++;
192
                c.weighty = 1;
192
                c.weighty = 1;
193
                c.weightx = 1;
193
                c.weightx = 1;
194
                this.add(selStatutCatConv, c);
194
                this.add(selStatutCatConv, c);
195
 
195
 
196
                List<String> dsnFF = Arrays.asList("ID_CONTRAT_MODALITE_TEMPS", "ID_CONTRAT_REGIME_MALADIE", "ID_CONTRAT_REGIME_VIEILLESSE", "ID_CONTRAT_DETACHE_EXPATRIE",
196
                List<String> dsnFF = Arrays.asList("ID_CONTRAT_MODALITE_TEMPS", "ID_CONTRAT_REGIME_MALADIE", "ID_CONTRAT_REGIME_VIEILLESSE", "ID_CONTRAT_DETACHE_EXPATRIE",
197
                        "ID_CONTRAT_DISPOSITIF_POLITIQUE");
197
                        "ID_CONTRAT_DISPOSITIF_POLITIQUE");
198
 
198
 
199
                for (String ffName : dsnFF) {
199
                for (String ffName : dsnFF) {
200
                    JLabel labelFF = new JLabel(getLabelFor(ffName));
200
                    JLabel labelFF = new JLabel(getLabelFor(ffName));
201
                    labelFF.setHorizontalAlignment(SwingConstants.RIGHT);
201
                    labelFF.setHorizontalAlignment(SwingConstants.RIGHT);
202
                    ElementComboBox selFF = new ElementComboBox();
202
                    ElementComboBox selFF = new ElementComboBox();
203
                    selFF.setInfoIconVisible(false);
203
                    selFF.setInfoIconVisible(false);
204
                    c.gridy++;
204
                    c.gridy++;
205
                    c.gridx = 0;
205
                    c.gridx = 0;
206
                    c.weightx = 0;
206
                    c.weightx = 0;
207
                    this.add(labelFF, c);
207
                    this.add(labelFF, c);
208
                    c.gridx++;
208
                    c.gridx++;
209
                    c.weighty = 1;
209
                    c.weighty = 1;
210
                    c.weightx = 1;
210
                    c.weightx = 1;
211
                    this.add(selFF, c);
211
                    this.add(selFF, c);
212
                    this.addRequiredSQLObject(selFF, ffName);
212
                    this.addRequiredSQLObject(selFF, ffName);
213
                }
213
                }
214
                JLabel labelFF = new JLabel(getLabelFor("ID_CONTRAT_MOTIF_RECOURS"));
214
                JLabel labelFF = new JLabel(getLabelFor("ID_CONTRAT_MOTIF_RECOURS"));
215
                labelFF.setHorizontalAlignment(SwingConstants.RIGHT);
215
                labelFF.setHorizontalAlignment(SwingConstants.RIGHT);
216
                ElementComboBox selFF = new ElementComboBox();
216
                ElementComboBox selFF = new ElementComboBox();
217
                selFF.setInfoIconVisible(false);
217
                selFF.setInfoIconVisible(false);
218
                c.gridy++;
218
                c.gridy++;
219
                c.gridx = 0;
219
                c.gridx = 0;
220
                c.weightx = 0;
220
                c.weightx = 0;
221
                this.add(labelFF, c);
221
                this.add(labelFF, c);
222
                c.gridx++;
222
                c.gridx++;
223
                c.weighty = 1;
223
                c.weighty = 1;
224
                c.weightx = 1;
224
                c.weightx = 1;
225
                this.add(selFF, c);
225
                this.add(selFF, c);
226
                this.addSQLObject(selFF, "ID_CONTRAT_MOTIF_RECOURS");
226
                this.addSQLObject(selFF, "ID_CONTRAT_MOTIF_RECOURS");
227
 
227
 
228
                // Code UGRR
228
                // Code UGRR
229
                JLabel labelCodeUGRR = new JLabel(getLabelFor("CODE_IRC_UGRR"));
229
                JLabel labelCodeUGRR = new JLabel(getLabelFor("CODE_IRC_UGRR"));
230
                labelCodeUGRR.setHorizontalAlignment(SwingConstants.RIGHT);
230
                labelCodeUGRR.setHorizontalAlignment(SwingConstants.RIGHT);
231
                JTextField textCodeUGRR = new JTextField();
231
                JTextField textCodeUGRR = new JTextField();
232
                c.gridy++;
232
                c.gridy++;
233
                c.gridx = 0;
233
                c.gridx = 0;
234
                c.weightx = 0;
234
                c.weightx = 0;
235
                this.add(labelCodeUGRR, c);
235
                this.add(labelCodeUGRR, c);
236
                c.gridx++;
236
                c.gridx++;
237
                c.weighty = 1;
237
                c.weighty = 1;
238
                c.weightx = 1;
238
                c.weightx = 1;
239
                this.add(textCodeUGRR, c);
239
                this.add(textCodeUGRR, c);
240
                addView(textCodeUGRR, "CODE_IRC_UGRR");
240
                addView(textCodeUGRR, "CODE_IRC_UGRR");
241
 
241
 
242
                JLabel labelNumUGRR = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_UGRR"));
242
                JLabel labelNumUGRR = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_UGRR"));
243
                labelNumUGRR.setHorizontalAlignment(SwingConstants.RIGHT);
243
                labelNumUGRR.setHorizontalAlignment(SwingConstants.RIGHT);
244
                JTextField textNumUGRR = new JTextField();
244
                JTextField textNumUGRR = new JTextField();
245
                c.gridy++;
245
                c.gridy++;
246
                c.gridx = 0;
246
                c.gridx = 0;
247
                c.weightx = 0;
247
                c.weightx = 0;
248
                this.add(labelNumUGRR, c);
248
                this.add(labelNumUGRR, c);
249
                c.gridx++;
249
                c.gridx++;
250
                c.weighty = 1;
250
                c.weighty = 1;
251
                c.weightx = 1;
251
                c.weightx = 1;
252
                this.add(textNumUGRR, c);
252
                this.add(textNumUGRR, c);
253
                addView(textNumUGRR, "NUMERO_RATTACHEMENT_UGRR");
253
                addView(textNumUGRR, "NUMERO_RATTACHEMENT_UGRR");
254
 
254
 
255
                // Code UGRC
255
                // Code UGRC
256
                JLabel labelCodeUGRC = new JLabel(getLabelFor("CODE_IRC_UGRC"));
256
                JLabel labelCodeUGRC = new JLabel(getLabelFor("CODE_IRC_UGRC"));
257
                labelCodeUGRC.setHorizontalAlignment(SwingConstants.RIGHT);
257
                labelCodeUGRC.setHorizontalAlignment(SwingConstants.RIGHT);
258
                JTextField textCodeUGRC = new JTextField();
258
                JTextField textCodeUGRC = new JTextField();
259
                c.gridy++;
259
                c.gridy++;
260
                c.gridx = 0;
260
                c.gridx = 0;
261
                c.weightx = 0;
261
                c.weightx = 0;
262
                this.add(labelCodeUGRC, c);
262
                this.add(labelCodeUGRC, c);
263
                c.gridx++;
263
                c.gridx++;
264
                c.weighty = 1;
264
                c.weighty = 1;
265
                c.weightx = 1;
265
                c.weightx = 1;
266
                this.add(textCodeUGRC, c);
266
                this.add(textCodeUGRC, c);
267
                addView(textCodeUGRC, "CODE_IRC_UGRC");
267
                addView(textCodeUGRC, "CODE_IRC_UGRC");
268
 
268
 
269
                JLabel labelNumUGRC = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_UGRC"));
269
                JLabel labelNumUGRC = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_UGRC"));
270
                labelNumUGRC.setHorizontalAlignment(SwingConstants.RIGHT);
270
                labelNumUGRC.setHorizontalAlignment(SwingConstants.RIGHT);
271
                JTextField textNumUGRC = new JTextField();
271
                JTextField textNumUGRC = new JTextField();
272
                c.gridy++;
272
                c.gridy++;
273
                c.gridx = 0;
273
                c.gridx = 0;
274
                c.weightx = 0;
274
                c.weightx = 0;
275
                this.add(labelNumUGRC, c);
275
                this.add(labelNumUGRC, c);
276
                c.gridx++;
276
                c.gridx++;
277
                c.weighty = 1;
277
                c.weighty = 1;
278
                c.weightx = 1;
278
                c.weightx = 1;
279
                this.add(textNumUGRC, c);
279
                this.add(textNumUGRC, c);
280
                addView(textNumUGRC, "NUMERO_RATTACHEMENT_UGRC");
280
                addView(textNumUGRC, "NUMERO_RATTACHEMENT_UGRC");
281
 
281
 
282
                // Retraite
282
                // Retraite
283
                JLabel labelCodeRetraite = new JLabel(getLabelFor("CODE_IRC_RETRAITE"));
283
                JLabel labelCodeRetraite = new JLabel(getLabelFor("CODE_IRC_RETRAITE"));
284
                labelCodeRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
284
                labelCodeRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
285
                JTextField textCodeRetraite = new JTextField();
285
                JTextField textCodeRetraite = new JTextField();
286
                c.gridy++;
286
                c.gridy++;
287
                c.gridx = 0;
287
                c.gridx = 0;
288
                c.weightx = 0;
288
                c.weightx = 0;
289
                this.add(labelCodeRetraite, c);
289
                this.add(labelCodeRetraite, c);
290
                c.gridx++;
290
                c.gridx++;
291
                c.weighty = 1;
291
                c.weighty = 1;
292
                c.weightx = 1;
292
                c.weightx = 1;
293
                this.add(textCodeRetraite, c);
293
                this.add(textCodeRetraite, c);
294
                addView(textCodeRetraite, "CODE_IRC_RETRAITE");
294
                addView(textCodeRetraite, "CODE_IRC_RETRAITE");
295
 
295
 
296
                JLabel labelNumRetraite = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_RETRAITE"));
296
                JLabel labelNumRetraite = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_RETRAITE"));
297
                labelNumRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
297
                labelNumRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
298
                JTextField textNumRetraite = new JTextField();
298
                JTextField textNumRetraite = new JTextField();
299
                c.gridy++;
299
                c.gridy++;
300
                c.gridx = 0;
300
                c.gridx = 0;
301
                c.weightx = 0;
301
                c.weightx = 0;
302
                this.add(labelNumRetraite, c);
302
                this.add(labelNumRetraite, c);
303
                c.gridx++;
303
                c.gridx++;
304
                c.weighty = 1;
304
                c.weighty = 1;
305
                c.weightx = 1;
305
                c.weightx = 1;
306
                this.add(textNumRetraite, c);
306
                this.add(textNumRetraite, c);
307
                addView(textNumRetraite, "NUMERO_RATTACHEMENT_RETRAITE");
307
                addView(textNumRetraite, "NUMERO_RATTACHEMENT_RETRAITE");
308
 
308
 
309
                // JLabel labelCodeRegimeRetraite = new
309
                // JLabel labelCodeRegimeRetraite = new
310
                // JLabel(getLabelFor("CODE_REGIME_RETRAITE_DSN"));
310
                // JLabel(getLabelFor("CODE_REGIME_RETRAITE_DSN"));
311
                // labelCodeRegimeRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
311
                // labelCodeRegimeRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
312
                // JTextField textCodeRegimeRetraite = new JTextField();
312
                // JTextField textCodeRegimeRetraite = new JTextField();
313
                // c.gridy++;
313
                // c.gridy++;
314
                // c.gridx = 0;
314
                // c.gridx = 0;
315
                // c.weightx = 0;
315
                // c.weightx = 0;
316
                // this.add(labelCodeRegimeRetraite, c);
316
                // this.add(labelCodeRegimeRetraite, c);
317
                // c.gridx++;
317
                // c.gridx++;
318
                // c.weighty = 1;
318
                // c.weighty = 1;
319
                // c.weightx = 1;
319
                // c.weightx = 1;
320
                // this.add(textCodeRegimeRetraite, c);
320
                // this.add(textCodeRegimeRetraite, c);
321
                // addRequiredSQLObject(textCodeRegimeRetraite, "CODE_REGIME_RETRAITE_DSN");
321
                // addRequiredSQLObject(textCodeRegimeRetraite, "CODE_REGIME_RETRAITE_DSN");
322
 
322
 
323
                JLabel labelDateModif = new JLabel(getLabelFor("DATE_MODIFICATION"));
323
                JLabel labelDateModif = new JLabel(getLabelFor("DATE_MODIFICATION"));
324
                labelDateModif.setHorizontalAlignment(SwingConstants.RIGHT);
324
                labelDateModif.setHorizontalAlignment(SwingConstants.RIGHT);
325
                JDate textDateModif = new JDate();
325
                JDate textDateModif = new JDate();
326
                c.gridy++;
326
                c.gridy++;
327
                c.gridx = 0;
327
                c.gridx = 0;
328
                c.weightx = 0;
328
                c.weightx = 0;
329
                this.add(textDateModif, c);
329
                this.add(textDateModif, c);
330
                c.gridx++;
330
                c.gridx++;
331
                c.weighty = 1;
331
                c.weighty = 1;
332
                c.weightx = 1;
332
                c.weightx = 1;
333
                this.add(textDateModif, c);
333
                this.add(textDateModif, c);
334
                addSQLObject(textDateModif, "DATE_MODIFICATION");
334
                addSQLObject(textDateModif, "DATE_MODIFICATION");
335
 
335
 
336
                // JLabel labelCM = new JLabel(getLabelFor("ID_INFOS_SALARIE_PAYE_MODIFIE"));
336
                // JLabel labelCM = new JLabel(getLabelFor("ID_INFOS_SALARIE_PAYE_MODIFIE"));
337
                // labelCM.setHorizontalAlignment(SwingConstants.RIGHT);
337
                // labelCM.setHorizontalAlignment(SwingConstants.RIGHT);
338
                // ElementComboBox selCM = new ElementComboBox();
338
                // ElementComboBox selCM = new ElementComboBox();
339
                // final SQLElement elementInfosPaye =
339
                // final SQLElement elementInfosPaye =
340
                // getDirectory().getElement("INFOS_SALARIE_PAYE");
340
                // getDirectory().getElement("INFOS_SALARIE_PAYE");
341
                // selCM.init(elementInfosPaye, elementInfosPaye.createComboRequest());
341
                // selCM.init(elementInfosPaye, elementInfosPaye.createComboRequest());
342
                // selCM.setInfoIconVisible(false);
342
                // selCM.setInfoIconVisible(false);
343
                // c.gridy++;
343
                // c.gridy++;
344
                // c.gridx = 0;
344
                // c.gridx = 0;
345
                // c.weightx = 0;
345
                // c.weightx = 0;
346
                // this.add(labelCM, c);
346
                // this.add(labelCM, c);
347
                // c.gridx++;
347
                // c.gridx++;
348
                // c.weighty = 1;
348
                // c.weighty = 1;
349
                // c.weightx = 1;
349
                // c.weightx = 1;
350
                // this.add(selCM, c);
350
                // this.add(selCM, c);
351
                // this.addSQLObject(selCM, "ID_INFOS_SALARIE_PAYE_MODIFIE");
351
                // this.addSQLObject(selCM, "ID_INFOS_SALARIE_PAYE_MODIFIE");
352
 
352
 
353
                JLabel labelDateDebut = new JLabel(getLabelFor("DATE_DEBUT"));
353
                JLabel labelDateDebut = new JLabel(getLabelFor("DATE_DEBUT"));
354
                labelDateDebut.setHorizontalAlignment(SwingConstants.RIGHT);
354
                labelDateDebut.setHorizontalAlignment(SwingConstants.RIGHT);
355
                JDate textDateDebut = new JDate();
355
                JDate textDateDebut = new JDate();
356
                c.gridy++;
356
                c.gridy++;
357
                c.gridx = 0;
357
                c.gridx = 0;
358
                c.weightx = 0;
358
                c.weightx = 0;
359
                this.add(labelDateDebut, c);
359
                this.add(labelDateDebut, c);
360
                c.gridx++;
360
                c.gridx++;
361
                c.weighty = 1;
361
                c.weighty = 1;
362
                c.weightx = 1;
362
                c.weightx = 1;
363
                this.add(textDateDebut, c);
363
                this.add(textDateDebut, c);
364
                addSQLObject(textDateDebut, "DATE_DEBUT", REQ);
364
                addSQLObject(textDateDebut, "DATE_DEBUT", REQ);
365
 
365
 
366
                JLabel labelDateFin = new JLabel(getLabelFor("DATE_PREV_FIN"));
366
                JLabel labelDateFin = new JLabel(getLabelFor("DATE_PREV_FIN"));
367
                labelDateFin.setHorizontalAlignment(SwingConstants.RIGHT);
367
                labelDateFin.setHorizontalAlignment(SwingConstants.RIGHT);
368
                JDate textDateFin = new JDate();
368
                JDate textDateFin = new JDate();
369
                c.gridy++;
369
                c.gridy++;
370
                c.gridx = 0;
370
                c.gridx = 0;
371
                c.weightx = 0;
371
                c.weightx = 0;
372
                this.add(labelDateFin, c);
372
                this.add(labelDateFin, c);
373
                c.gridx++;
373
                c.gridx++;
374
                c.weighty = 1;
374
                c.weighty = 1;
375
                c.weightx = 1;
375
                c.weightx = 1;
376
                this.add(textDateFin, c);
376
                this.add(textDateFin, c);
377
                addSQLObject(textDateFin, "DATE_PREV_FIN");
377
                addSQLObject(textDateFin, "DATE_PREV_FIN");
378
 
378
 
379
                this.addRequiredSQLObject(selCodeCatSocio, "ID_CODE_EMPLOI");
379
                this.addRequiredSQLObject(selCodeCatSocio, "ID_CODE_EMPLOI");
380
                this.addRequiredSQLObject(selContratTravail, "ID_CODE_CONTRAT_TRAVAIL");
380
                this.addRequiredSQLObject(selContratTravail, "ID_CODE_CONTRAT_TRAVAIL");
381
                this.addRequiredSQLObject(selCaractActivite, "ID_CODE_CARACT_ACTIVITE");
381
                this.addRequiredSQLObject(selCaractActivite, "ID_CODE_CARACT_ACTIVITE");
382
                this.addRequiredSQLObject(selDroitContrat, "ID_CODE_DROIT_CONTRAT");
382
                this.addRequiredSQLObject(selDroitContrat, "ID_CODE_DROIT_CONTRAT");
383
                this.addRequiredSQLObject(selStatutProf, "ID_CODE_STATUT_PROF");
383
                this.addRequiredSQLObject(selStatutProf, "ID_CODE_STATUT_PROF");
384
                this.addRequiredSQLObject(selStatutCat, "ID_CODE_STATUT_CATEGORIEL");
384
                this.addRequiredSQLObject(selStatutCat, "ID_CODE_STATUT_CATEGORIEL");
385
                this.addRequiredSQLObject(selStatutCatConv, "ID_CODE_STATUT_CAT_CONV");
385
                this.addRequiredSQLObject(selStatutCatConv, "ID_CODE_STATUT_CAT_CONV");
386
                this.addRequiredSQLObject(textNature, "NATURE");
386
                this.addRequiredSQLObject(textNature, "NATURE");
387
            }
387
            }
388
        };
388
        };
389
    }
389
    }
390
 
390
 
391
    @Override
391
    @Override
392
    protected String createCode() {
392
    protected String createCode() {
393
        return createCodeFromPackage() + ".contract.employe";
393
        return createCodeOfPackage() + ".contract.employe";
394
    }
394
    }
395
}
395
}