18 |
ilm |
1 |
/*
|
|
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
|
|
3 |
*
|
182 |
ilm |
4 |
* Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
|
18 |
ilm |
5 |
*
|
|
|
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
|
|
|
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.
|
|
|
10 |
*
|
|
|
11 |
* When distributing the software, include this License Header Notice in each file.
|
|
|
12 |
*/
|
|
|
13 |
|
|
|
14 |
package org.openconcerto.erp.core.humanresources.payroll.element;
|
|
|
15 |
|
|
|
16 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
|
|
17 |
import org.openconcerto.sql.element.BaseSQLComponent;
|
|
|
18 |
import org.openconcerto.sql.element.SQLComponent;
|
|
|
19 |
import org.openconcerto.sql.sqlobject.ElementComboBox;
|
|
|
20 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
132 |
ilm |
21 |
import org.openconcerto.ui.JDate;
|
18 |
ilm |
22 |
|
|
|
23 |
import java.awt.GridBagConstraints;
|
|
|
24 |
import java.awt.GridBagLayout;
|
177 |
ilm |
25 |
import java.beans.PropertyChangeEvent;
|
|
|
26 |
import java.beans.PropertyChangeListener;
|
18 |
ilm |
27 |
import java.util.ArrayList;
|
132 |
ilm |
28 |
import java.util.Arrays;
|
142 |
ilm |
29 |
import java.util.HashSet;
|
18 |
ilm |
30 |
import java.util.List;
|
142 |
ilm |
31 |
import java.util.Set;
|
18 |
ilm |
32 |
|
|
|
33 |
import javax.swing.JLabel;
|
|
|
34 |
import javax.swing.JTextField;
|
|
|
35 |
import javax.swing.SwingConstants;
|
|
|
36 |
|
|
|
37 |
public class ContratSalarieSQLElement extends ComptaSQLConfElement {
|
|
|
38 |
|
|
|
39 |
public ContratSalarieSQLElement() {
|
|
|
40 |
super("CONTRAT_SALARIE", "un contrat salarié", "contrats salariés");
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
protected List<String> getListFields() {
|
|
|
44 |
final List<String> l = new ArrayList<String>();
|
|
|
45 |
l.add("NATURE");
|
|
|
46 |
return l;
|
|
|
47 |
}
|
|
|
48 |
|
142 |
ilm |
49 |
@Override
|
|
|
50 |
public Set<String> getInsertOnlyFields() {
|
|
|
51 |
Set<String> s = new HashSet<String>();
|
|
|
52 |
s.add("DATE_MODIFICATION");
|
|
|
53 |
return s;
|
|
|
54 |
}
|
|
|
55 |
|
18 |
ilm |
56 |
protected List<String> getComboFields() {
|
|
|
57 |
final List<String> l = new ArrayList<String>();
|
142 |
ilm |
58 |
l.add("NUMERO");
|
|
|
59 |
l.add("DATE_DEBUT");
|
18 |
ilm |
60 |
return l;
|
|
|
61 |
}
|
|
|
62 |
|
132 |
ilm |
63 |
@Override
|
|
|
64 |
public boolean isPrivate() {
|
|
|
65 |
return true;
|
|
|
66 |
}
|
|
|
67 |
|
18 |
ilm |
68 |
/*
|
|
|
69 |
* (non-Javadoc)
|
|
|
70 |
*
|
|
|
71 |
* @see org.openconcerto.devis.SQLElement#getComponent()
|
|
|
72 |
*/
|
|
|
73 |
public SQLComponent createComponent() {
|
|
|
74 |
return new BaseSQLComponent(this) {
|
|
|
75 |
|
|
|
76 |
public void addViews() {
|
|
|
77 |
|
|
|
78 |
this.setLayout(new GridBagLayout());
|
142 |
ilm |
79 |
|
18 |
ilm |
80 |
GridBagConstraints c = new DefaultGridBagConstraints();
|
|
|
81 |
|
142 |
ilm |
82 |
// Numero
|
|
|
83 |
JLabel labelNumero = new JLabel(getLabelFor("NUMERO"));
|
|
|
84 |
labelNumero.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
85 |
JTextField textNumero = new JTextField();
|
|
|
86 |
|
|
|
87 |
this.add(labelNumero, c);
|
|
|
88 |
c.gridx++;
|
|
|
89 |
c.weightx = 1;
|
|
|
90 |
this.add(textNumero, c);
|
|
|
91 |
this.addRequiredSQLObject(textNumero, "NUMERO");
|
|
|
92 |
|
|
|
93 |
c.gridy++;
|
|
|
94 |
c.gridx = 0;
|
18 |
ilm |
95 |
// Nature
|
|
|
96 |
JLabel labelNature = new JLabel(getLabelFor("NATURE"));
|
|
|
97 |
labelNature.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
98 |
JTextField textNature = new JTextField();
|
|
|
99 |
|
|
|
100 |
this.add(labelNature, c);
|
|
|
101 |
c.gridx++;
|
|
|
102 |
c.weightx = 1;
|
177 |
ilm |
103 |
c.gridwidth = 3;
|
18 |
ilm |
104 |
this.add(textNature, c);
|
|
|
105 |
|
177 |
ilm |
106 |
c.gridwidth = 1;
|
18 |
ilm |
107 |
// Catégorie socioprofessionnelle
|
|
|
108 |
JLabel labelCatSocio = new JLabel(getLabelFor("ID_CODE_EMPLOI"));
|
|
|
109 |
labelCatSocio.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
110 |
ElementComboBox selCodeCatSocio = new ElementComboBox();
|
|
|
111 |
selCodeCatSocio.setInfoIconVisible(false);
|
|
|
112 |
c.gridy++;
|
|
|
113 |
c.gridx = 0;
|
|
|
114 |
c.weightx = 0;
|
|
|
115 |
this.add(labelCatSocio, c);
|
|
|
116 |
c.gridx++;
|
|
|
117 |
c.weightx = 1;
|
|
|
118 |
this.add(selCodeCatSocio, c);
|
177 |
ilm |
119 |
|
174 |
ilm |
120 |
JLabel complPCSLabel = new JLabel(getLabelFor("COMPLEMENT_PCS"));
|
|
|
121 |
complPCSLabel.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
122 |
JTextField complPCS = new JTextField();
|
177 |
ilm |
123 |
c.gridx++;
|
174 |
ilm |
124 |
c.weightx = 0;
|
|
|
125 |
this.add(complPCSLabel, c);
|
|
|
126 |
c.gridx++;
|
|
|
127 |
c.weightx = 1;
|
|
|
128 |
this.add(complPCS, c);
|
177 |
ilm |
129 |
addView(complPCS, "COMPLEMENT_PCS");
|
18 |
ilm |
130 |
|
177 |
ilm |
131 |
JLabel objetSpecLabel = new JLabel(getLabelFor("SPECTACLE_OBJET"));
|
|
|
132 |
objetSpecLabel.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
133 |
JTextField objetSpec = new JTextField();
|
|
|
134 |
c.gridy++;
|
|
|
135 |
c.gridx = 0;
|
|
|
136 |
c.weightx = 0;
|
|
|
137 |
this.add(objetSpecLabel, c);
|
|
|
138 |
c.gridx++;
|
|
|
139 |
c.weightx = 1;
|
|
|
140 |
this.add(objetSpec, c);
|
|
|
141 |
addView(objetSpec, "SPECTACLE_OBJET");
|
|
|
142 |
objetSpec.setEditable(false);
|
|
|
143 |
|
|
|
144 |
JLabel jourContratLabel = new JLabel(getLabelFor("SPECTACLE_JOUR_CONTRAT"));
|
|
|
145 |
jourContratLabel.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
146 |
JTextField jourContrat = new JTextField();
|
|
|
147 |
c.gridx++;
|
|
|
148 |
c.weightx = 0;
|
|
|
149 |
this.add(jourContratLabel, c);
|
|
|
150 |
c.gridx++;
|
|
|
151 |
c.weightx = 1;
|
|
|
152 |
this.add(jourContrat, c);
|
|
|
153 |
addView(jourContrat, "SPECTACLE_JOUR_CONTRAT");
|
|
|
154 |
jourContrat.setEditable(false);
|
|
|
155 |
|
|
|
156 |
final ElementComboBox selCaractActivite = new ElementComboBox();
|
|
|
157 |
selCaractActivite.setInfoIconVisible(false);
|
|
|
158 |
this.addRequiredSQLObject(selCaractActivite, "ID_CODE_CARACT_ACTIVITE");
|
|
|
159 |
selCaractActivite.addModelListener("wantedID", new PropertyChangeListener() {
|
|
|
160 |
|
|
|
161 |
@Override
|
|
|
162 |
public void propertyChange(PropertyChangeEvent evt) {
|
|
|
163 |
final boolean b = selCaractActivite.getSelectedRow() != null && selCaractActivite.getSelectedRow().getString("CODE").equals("04");
|
|
|
164 |
objetSpec.setEditable(b);
|
|
|
165 |
jourContrat.setEditable(b);
|
|
|
166 |
if (!b) {
|
|
|
167 |
objetSpec.setText("");
|
|
|
168 |
;
|
|
|
169 |
jourContrat.setText("");
|
|
|
170 |
}
|
|
|
171 |
}
|
|
|
172 |
});
|
|
|
173 |
|
18 |
ilm |
174 |
// Contrat de travail
|
|
|
175 |
JLabel labelContratTravail = new JLabel(getLabelFor("ID_CODE_CONTRAT_TRAVAIL"));
|
|
|
176 |
labelContratTravail.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
177 |
ElementComboBox selContratTravail = new ElementComboBox();
|
|
|
178 |
selContratTravail.setInfoIconVisible(false);
|
|
|
179 |
c.gridy++;
|
|
|
180 |
c.gridx = 0;
|
|
|
181 |
c.weightx = 0;
|
|
|
182 |
this.add(labelContratTravail, c);
|
|
|
183 |
c.gridx++;
|
|
|
184 |
c.weightx = 1;
|
|
|
185 |
this.add(selContratTravail, c);
|
|
|
186 |
|
|
|
187 |
// Droit Contrat de travail
|
|
|
188 |
JLabel labelDroitContrat = new JLabel(getLabelFor("ID_CODE_DROIT_CONTRAT"));
|
|
|
189 |
labelDroitContrat.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
190 |
ElementComboBox selDroitContrat = new ElementComboBox();
|
|
|
191 |
selDroitContrat.setInfoIconVisible(false);
|
177 |
ilm |
192 |
c.gridx++;
|
18 |
ilm |
193 |
c.weightx = 0;
|
|
|
194 |
this.add(labelDroitContrat, c);
|
|
|
195 |
c.gridx++;
|
|
|
196 |
c.weightx = 1;
|
|
|
197 |
this.add(selDroitContrat, c);
|
|
|
198 |
|
|
|
199 |
// caracteristiques activité
|
|
|
200 |
JLabel labelCaractActivite = new JLabel(getLabelFor("ID_CODE_CARACT_ACTIVITE"));
|
|
|
201 |
labelCaractActivite.setHorizontalAlignment(SwingConstants.RIGHT);
|
177 |
ilm |
202 |
|
18 |
ilm |
203 |
c.gridy++;
|
|
|
204 |
c.gridx = 0;
|
|
|
205 |
c.weightx = 0;
|
|
|
206 |
this.add(labelCaractActivite, c);
|
|
|
207 |
c.gridx++;
|
|
|
208 |
c.weightx = 1;
|
|
|
209 |
this.add(selCaractActivite, c);
|
|
|
210 |
|
|
|
211 |
// Statut profesionnel
|
|
|
212 |
JLabel labelStatutProf = new JLabel(getLabelFor("ID_CODE_STATUT_PROF"));
|
|
|
213 |
labelStatutProf.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
214 |
ElementComboBox selStatutProf = new ElementComboBox();
|
|
|
215 |
selStatutProf.setInfoIconVisible(false);
|
177 |
ilm |
216 |
c.gridx++;
|
18 |
ilm |
217 |
c.weightx = 0;
|
|
|
218 |
this.add(labelStatutProf, c);
|
|
|
219 |
c.gridx++;
|
|
|
220 |
c.weightx = 1;
|
|
|
221 |
this.add(selStatutProf, c);
|
|
|
222 |
|
|
|
223 |
// Statut categoriel
|
|
|
224 |
JLabel labelStatutCat = new JLabel(getLabelFor("ID_CODE_STATUT_CATEGORIEL"));
|
|
|
225 |
labelStatutCat.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
226 |
ElementComboBox selStatutCat = new ElementComboBox();
|
|
|
227 |
selStatutCat.setInfoIconVisible(false);
|
|
|
228 |
c.gridy++;
|
|
|
229 |
c.gridx = 0;
|
|
|
230 |
c.weightx = 0;
|
|
|
231 |
this.add(labelStatutCat, c);
|
|
|
232 |
c.gridx++;
|
|
|
233 |
c.weightx = 1;
|
|
|
234 |
this.add(selStatutCat, c);
|
|
|
235 |
|
41 |
ilm |
236 |
// Statut categoriel
|
|
|
237 |
JLabel labelStatutCatConv = new JLabel(getLabelFor("ID_CODE_STATUT_CAT_CONV"));
|
|
|
238 |
labelStatutCatConv.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
239 |
ElementComboBox selStatutCatConv = new ElementComboBox();
|
|
|
240 |
selStatutCatConv.setInfoIconVisible(false);
|
177 |
ilm |
241 |
c.gridx++;
|
41 |
ilm |
242 |
c.weightx = 0;
|
|
|
243 |
this.add(labelStatutCatConv, c);
|
|
|
244 |
c.gridx++;
|
|
|
245 |
c.weightx = 1;
|
|
|
246 |
this.add(selStatutCatConv, c);
|
|
|
247 |
|
132 |
ilm |
248 |
List<String> dsnFF = Arrays.asList("ID_CONTRAT_MODALITE_TEMPS", "ID_CONTRAT_REGIME_MALADIE", "ID_CONTRAT_REGIME_VIEILLESSE", "ID_CONTRAT_DETACHE_EXPATRIE",
|
180 |
ilm |
249 |
"ID_CONTRAT_DISPOSITIF_POLITIQUE", "ID_CONTRAT_MOTIF_RECOURS", "ID_DIPLOME_PREPARE");
|
177 |
ilm |
250 |
int p = 0;
|
132 |
ilm |
251 |
for (String ffName : dsnFF) {
|
|
|
252 |
JLabel labelFF = new JLabel(getLabelFor(ffName));
|
|
|
253 |
labelFF.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
254 |
ElementComboBox selFF = new ElementComboBox();
|
|
|
255 |
selFF.setInfoIconVisible(false);
|
177 |
ilm |
256 |
if (p % 2 == 0) {
|
|
|
257 |
c.gridy++;
|
|
|
258 |
c.gridx = 0;
|
|
|
259 |
} else {
|
|
|
260 |
c.gridx++;
|
|
|
261 |
}
|
|
|
262 |
p++;
|
132 |
ilm |
263 |
c.weightx = 0;
|
|
|
264 |
this.add(labelFF, c);
|
|
|
265 |
c.gridx++;
|
|
|
266 |
c.weighty = 1;
|
|
|
267 |
c.weightx = 1;
|
|
|
268 |
this.add(selFF, c);
|
180 |
ilm |
269 |
if (ffName.equals("ID_CONTRAT_MOTIF_RECOURS") || ffName.equals("ID_DIPLOME_PREPARE")) {
|
177 |
ilm |
270 |
this.addSQLObject(selFF, ffName);
|
|
|
271 |
} else {
|
|
|
272 |
this.addRequiredSQLObject(selFF, ffName);
|
|
|
273 |
}
|
132 |
ilm |
274 |
}
|
|
|
275 |
|
182 |
ilm |
276 |
// ccode congés payés
|
|
|
277 |
JLabel labelCodeConges = new JLabel(getLabelFor("ID_CODE_CAISSE_CONGES_PAYES"));
|
|
|
278 |
labelCodeConges.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
279 |
|
|
|
280 |
c.gridy++;
|
|
|
281 |
c.gridx = 0;
|
|
|
282 |
c.weightx = 0;
|
|
|
283 |
this.add(labelCodeConges, c);
|
|
|
284 |
c.gridx++;
|
|
|
285 |
c.weightx = 1;
|
|
|
286 |
ElementComboBox boxConges = new ElementComboBox(true);
|
|
|
287 |
this.add(boxConges, c);
|
|
|
288 |
this.addView(boxConges, "ID_CODE_CAISSE_CONGES_PAYES");
|
|
|
289 |
|
|
|
290 |
// Statut profesionnel
|
|
|
291 |
JLabel labelTauxProf = new JLabel(getLabelFor("TAUX_FRAIS_PROFESSIONNELS"));
|
|
|
292 |
labelTauxProf.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
293 |
JTextField tauxProf = new JTextField();
|
|
|
294 |
c.gridx++;
|
|
|
295 |
c.weightx = 0;
|
|
|
296 |
this.add(labelTauxProf, c);
|
|
|
297 |
c.gridx++;
|
|
|
298 |
c.weightx = 1;
|
|
|
299 |
this.add(tauxProf, c);
|
|
|
300 |
this.addView(tauxProf, "TAUX_FRAIS_PROFESSIONNELS");
|
|
|
301 |
|
174 |
ilm |
302 |
// Code Arrco, agirc retirés du contrat et ajoutés dans les caisses de cotisations
|
|
|
303 |
|
41 |
ilm |
304 |
// Code UGRR
|
|
|
305 |
|
174 |
ilm |
306 |
// JLabel labelCodeUGRR = new JLabel(getLabelFor("CODE_IRC_UGRR"));
|
|
|
307 |
// labelCodeUGRR.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
308 |
// JTextField textCodeUGRR = new JTextField();
|
|
|
309 |
// c.gridy++;
|
|
|
310 |
// c.gridx = 0;
|
|
|
311 |
// c.weightx = 0;
|
|
|
312 |
// this.add(labelCodeUGRR, c);
|
|
|
313 |
// c.gridx++;
|
|
|
314 |
// c.weighty = 1;
|
|
|
315 |
// c.weightx = 1;
|
|
|
316 |
// this.add(textCodeUGRR, c);
|
|
|
317 |
// addView(textCodeUGRR, "CODE_IRC_UGRR");
|
|
|
318 |
//
|
|
|
319 |
// JLabel labelNumUGRR = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_UGRR"));
|
|
|
320 |
// labelNumUGRR.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
321 |
// JTextField textNumUGRR = new JTextField();
|
|
|
322 |
// c.gridy++;
|
|
|
323 |
// c.gridx = 0;
|
|
|
324 |
// c.weightx = 0;
|
|
|
325 |
// this.add(labelNumUGRR, c);
|
|
|
326 |
// c.gridx++;
|
|
|
327 |
// c.weighty = 1;
|
|
|
328 |
// c.weightx = 1;
|
|
|
329 |
// this.add(textNumUGRR, c);
|
|
|
330 |
// addView(textNumUGRR, "NUMERO_RATTACHEMENT_UGRR");
|
|
|
331 |
//
|
|
|
332 |
// // Code UGRC
|
|
|
333 |
// JLabel labelCodeUGRC = new JLabel(getLabelFor("CODE_IRC_UGRC"));
|
|
|
334 |
// labelCodeUGRC.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
335 |
// JTextField textCodeUGRC = new JTextField();
|
|
|
336 |
// c.gridy++;
|
|
|
337 |
// c.gridx = 0;
|
|
|
338 |
// c.weightx = 0;
|
|
|
339 |
// this.add(labelCodeUGRC, c);
|
|
|
340 |
// c.gridx++;
|
|
|
341 |
// c.weighty = 1;
|
|
|
342 |
// c.weightx = 1;
|
|
|
343 |
// this.add(textCodeUGRC, c);
|
|
|
344 |
// addView(textCodeUGRC, "CODE_IRC_UGRC");
|
|
|
345 |
//
|
|
|
346 |
// JLabel labelNumUGRC = new JLabel(getLabelFor("NUMERO_RATTACHEMENT_UGRC"));
|
|
|
347 |
// labelNumUGRC.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
348 |
// JTextField textNumUGRC = new JTextField();
|
|
|
349 |
// c.gridy++;
|
|
|
350 |
// c.gridx = 0;
|
|
|
351 |
// c.weightx = 0;
|
|
|
352 |
// this.add(labelNumUGRC, c);
|
|
|
353 |
// c.gridx++;
|
|
|
354 |
// c.weighty = 1;
|
|
|
355 |
// c.weightx = 1;
|
|
|
356 |
// this.add(textNumUGRC, c);
|
|
|
357 |
// addView(textNumUGRC, "NUMERO_RATTACHEMENT_UGRC");
|
|
|
358 |
//
|
|
|
359 |
// // Retraite
|
|
|
360 |
// JLabel labelCodeRetraite = new JLabel(getLabelFor("CODE_IRC_RETRAITE"));
|
|
|
361 |
// labelCodeRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
362 |
// JTextField textCodeRetraite = new JTextField();
|
|
|
363 |
// c.gridy++;
|
|
|
364 |
// c.gridx = 0;
|
|
|
365 |
// c.weightx = 0;
|
|
|
366 |
// this.add(labelCodeRetraite, c);
|
|
|
367 |
// c.gridx++;
|
|
|
368 |
// c.weighty = 1;
|
|
|
369 |
// c.weightx = 1;
|
|
|
370 |
// this.add(textCodeRetraite, c);
|
|
|
371 |
// addView(textCodeRetraite, "CODE_IRC_RETRAITE");
|
|
|
372 |
//
|
|
|
373 |
// JLabel labelNumRetraite = new
|
|
|
374 |
// JLabel(getLabelFor("NUMERO_RATTACHEMENT_RETRAITE"));
|
|
|
375 |
// labelNumRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
376 |
// JTextField textNumRetraite = new JTextField();
|
|
|
377 |
// c.gridy++;
|
|
|
378 |
// c.gridx = 0;
|
|
|
379 |
// c.weightx = 0;
|
|
|
380 |
// this.add(labelNumRetraite, c);
|
|
|
381 |
// c.gridx++;
|
|
|
382 |
// c.weighty = 1;
|
|
|
383 |
// c.weightx = 1;
|
|
|
384 |
// this.add(textNumRetraite, c);
|
|
|
385 |
// addView(textNumRetraite, "NUMERO_RATTACHEMENT_RETRAITE");
|
41 |
ilm |
386 |
|
132 |
ilm |
387 |
// JLabel labelCodeRegimeRetraite = new
|
|
|
388 |
// JLabel(getLabelFor("CODE_REGIME_RETRAITE_DSN"));
|
|
|
389 |
// labelCodeRegimeRetraite.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
390 |
// JTextField textCodeRegimeRetraite = new JTextField();
|
|
|
391 |
// c.gridy++;
|
|
|
392 |
// c.gridx = 0;
|
|
|
393 |
// c.weightx = 0;
|
|
|
394 |
// this.add(labelCodeRegimeRetraite, c);
|
|
|
395 |
// c.gridx++;
|
|
|
396 |
// c.weighty = 1;
|
|
|
397 |
// c.weightx = 1;
|
|
|
398 |
// this.add(textCodeRegimeRetraite, c);
|
|
|
399 |
// addRequiredSQLObject(textCodeRegimeRetraite, "CODE_REGIME_RETRAITE_DSN");
|
|
|
400 |
|
177 |
ilm |
401 |
// JLabel labelDateModif = new JLabel(getLabelFor("DATE_MODIFICATION"));
|
|
|
402 |
// labelDateModif.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
403 |
// JDate textDateModif = new JDate();
|
|
|
404 |
// c.gridy++;
|
|
|
405 |
// c.gridx = 0;
|
|
|
406 |
// c.weightx = 0;
|
|
|
407 |
// this.add(textDateModif, c);
|
|
|
408 |
// c.gridx++;
|
|
|
409 |
// c.weighty = 1;
|
|
|
410 |
// c.weightx = 1;
|
|
|
411 |
// this.add(textDateModif, c);
|
|
|
412 |
// addSQLObject(textDateModif, "DATE_MODIFICATION");
|
142 |
ilm |
413 |
|
|
|
414 |
// JLabel labelCM = new JLabel(getLabelFor("ID_INFOS_SALARIE_PAYE_MODIFIE"));
|
|
|
415 |
// labelCM.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
416 |
// ElementComboBox selCM = new ElementComboBox();
|
|
|
417 |
// final SQLElement elementInfosPaye =
|
|
|
418 |
// getDirectory().getElement("INFOS_SALARIE_PAYE");
|
|
|
419 |
// selCM.init(elementInfosPaye, elementInfosPaye.createComboRequest());
|
|
|
420 |
// selCM.setInfoIconVisible(false);
|
|
|
421 |
// c.gridy++;
|
|
|
422 |
// c.gridx = 0;
|
|
|
423 |
// c.weightx = 0;
|
|
|
424 |
// this.add(labelCM, c);
|
|
|
425 |
// c.gridx++;
|
|
|
426 |
// c.weighty = 1;
|
|
|
427 |
// c.weightx = 1;
|
|
|
428 |
// this.add(selCM, c);
|
|
|
429 |
// this.addSQLObject(selCM, "ID_INFOS_SALARIE_PAYE_MODIFIE");
|
|
|
430 |
|
|
|
431 |
JLabel labelDateDebut = new JLabel(getLabelFor("DATE_DEBUT"));
|
|
|
432 |
labelDateDebut.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
433 |
JDate textDateDebut = new JDate();
|
|
|
434 |
c.gridy++;
|
|
|
435 |
c.gridx = 0;
|
|
|
436 |
c.weightx = 0;
|
|
|
437 |
this.add(labelDateDebut, c);
|
|
|
438 |
c.gridx++;
|
|
|
439 |
c.weightx = 1;
|
|
|
440 |
this.add(textDateDebut, c);
|
|
|
441 |
addSQLObject(textDateDebut, "DATE_DEBUT", REQ);
|
|
|
442 |
|
132 |
ilm |
443 |
JLabel labelDateFin = new JLabel(getLabelFor("DATE_PREV_FIN"));
|
|
|
444 |
labelDateFin.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
445 |
JDate textDateFin = new JDate();
|
177 |
ilm |
446 |
c.gridx++;
|
132 |
ilm |
447 |
c.weightx = 0;
|
|
|
448 |
this.add(labelDateFin, c);
|
|
|
449 |
c.gridx++;
|
|
|
450 |
c.weightx = 1;
|
|
|
451 |
this.add(textDateFin, c);
|
|
|
452 |
addSQLObject(textDateFin, "DATE_PREV_FIN");
|
|
|
453 |
|
182 |
ilm |
454 |
// Déplacer dans les arrets chomage intempérie
|
|
|
455 |
// JLabel labelAmen = new JLabel(getLabelFor("ID_CODE_AMENAGEMENT_PARTIEL"));
|
|
|
456 |
// labelAmen.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
457 |
// ElementComboBox selAmen = new ElementComboBox();
|
|
|
458 |
// selAmen.setInfoIconVisible(false);
|
|
|
459 |
// c.gridy++;
|
|
|
460 |
// c.gridx = 0;
|
|
|
461 |
// c.weightx = 0;
|
|
|
462 |
// this.add(labelAmen, c);
|
|
|
463 |
// c.gridx++;
|
|
|
464 |
// c.weightx = 1;
|
|
|
465 |
// this.add(selAmen, c);
|
|
|
466 |
// this.addSQLObject(selAmen, "ID_CODE_AMENAGEMENT_PARTIEL");
|
|
|
467 |
//
|
|
|
468 |
// JLabel labelSupsension = new JLabel(getLabelFor("ID_CODE_SUSPENSION"));
|
|
|
469 |
// labelSupsension.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
470 |
// ElementComboBox selSupsension = new ElementComboBox();
|
|
|
471 |
// selSupsension.setInfoIconVisible(false);
|
|
|
472 |
// c.gridx++;
|
|
|
473 |
// c.weightx = 0;
|
|
|
474 |
// this.add(labelSupsension, c);
|
|
|
475 |
// c.gridx++;
|
|
|
476 |
// c.weightx = 1;
|
|
|
477 |
// this.add(selSupsension, c);
|
|
|
478 |
// this.addSQLObject(selSupsension, "ID_CODE_SUSPENSION");
|
|
|
479 |
//
|
|
|
480 |
// JLabel labelDateDebutSusp = new JLabel(getLabelFor("DATE_DEBUT_SUSPENSION"));
|
|
|
481 |
// labelDateDebutSusp.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
482 |
// JDate textDateDebutSups = new JDate();
|
|
|
483 |
// c.gridy++;
|
|
|
484 |
// c.gridx = 0;
|
|
|
485 |
// c.weightx = 0;
|
|
|
486 |
// this.add(labelDateDebutSusp, c);
|
|
|
487 |
// c.gridx++;
|
|
|
488 |
// c.weightx = 1;
|
|
|
489 |
// this.add(textDateDebutSups, c);
|
|
|
490 |
// this.addSQLObject(textDateDebutSups, "DATE_DEBUT_SUSPENSION");
|
|
|
491 |
//
|
|
|
492 |
// JLabel labelDateFinSups = new JLabel(getLabelFor("DATE_FIN_SUSPENSION"));
|
|
|
493 |
// labelDateFinSups.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
494 |
// JDate textDateFinSuspension = new JDate();
|
|
|
495 |
// c.gridx++;
|
|
|
496 |
// c.weightx = 0;
|
|
|
497 |
// this.add(labelDateFinSups, c);
|
|
|
498 |
// c.gridx++;
|
|
|
499 |
// c.weightx = 1;
|
|
|
500 |
// this.add(textDateFinSuspension, c);
|
|
|
501 |
// this.addSQLObject(textDateFinSuspension, "DATE_FIN_SUSPENSION");
|
177 |
ilm |
502 |
|
132 |
ilm |
503 |
this.addRequiredSQLObject(selCodeCatSocio, "ID_CODE_EMPLOI");
|
151 |
ilm |
504 |
this.addRequiredSQLObject(selContratTravail, "ID_CODE_CONTRAT_TRAVAIL");
|
|
|
505 |
this.addRequiredSQLObject(selDroitContrat, "ID_CODE_DROIT_CONTRAT");
|
|
|
506 |
this.addRequiredSQLObject(selStatutProf, "ID_CODE_STATUT_PROF");
|
|
|
507 |
this.addRequiredSQLObject(selStatutCat, "ID_CODE_STATUT_CATEGORIEL");
|
|
|
508 |
this.addRequiredSQLObject(selStatutCatConv, "ID_CODE_STATUT_CAT_CONV");
|
18 |
ilm |
509 |
this.addRequiredSQLObject(textNature, "NATURE");
|
|
|
510 |
}
|
|
|
511 |
};
|
|
|
512 |
}
|
57 |
ilm |
513 |
|
|
|
514 |
@Override
|
|
|
515 |
protected String createCode() {
|
156 |
ilm |
516 |
return createCodeOfPackage() + ".contract.employe";
|
57 |
ilm |
517 |
}
|
18 |
ilm |
518 |
}
|