OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 182
Line 1... Line 1...
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-2019 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.
Line 26... Line 26...
26
import org.openconcerto.sql.model.SQLRowAccessor;
26
import org.openconcerto.sql.model.SQLRowAccessor;
27
import org.openconcerto.sql.model.SQLRowValues;
27
import org.openconcerto.sql.model.SQLRowValues;
28
import org.openconcerto.sql.model.SQLTable;
28
import org.openconcerto.sql.model.SQLTable;
29
import org.openconcerto.sql.model.graph.TablesMap;
29
import org.openconcerto.sql.model.graph.TablesMap;
30
import org.openconcerto.sql.sqlobject.ElementComboBox;
30
import org.openconcerto.sql.sqlobject.ElementComboBox;
-
 
31
import org.openconcerto.sql.sqlobject.SQLRequestComboBox;
31
import org.openconcerto.sql.sqlobject.SQLTextCombo;
32
import org.openconcerto.sql.sqlobject.SQLTextCombo;
32
import org.openconcerto.ui.DefaultGridBagConstraints;
33
import org.openconcerto.ui.DefaultGridBagConstraints;
33
import org.openconcerto.ui.FormLayouter;
34
import org.openconcerto.ui.FormLayouter;
34
import org.openconcerto.ui.TitledSeparator;
35
import org.openconcerto.ui.TitledSeparator;
35
import org.openconcerto.ui.component.InteractionMode;
36
import org.openconcerto.ui.component.InteractionMode;
Line 43... Line 44...
43
import java.util.Collections;
44
import java.util.Collections;
44
import java.util.Date;
45
import java.util.Date;
45
import java.util.List;
46
import java.util.List;
46
 
47
 
47
import javax.swing.BorderFactory;
48
import javax.swing.BorderFactory;
-
 
49
import javax.swing.JCheckBox;
48
import javax.swing.JComboBox;
50
import javax.swing.JComboBox;
49
import javax.swing.JLabel;
51
import javax.swing.JLabel;
50
import javax.swing.JPanel;
52
import javax.swing.JPanel;
51
import javax.swing.JTextField;
53
import javax.swing.JTextField;
52
import javax.swing.SwingConstants;
54
import javax.swing.SwingConstants;
Line 230... Line 232...
230
                c.weightx = 1;
232
                c.weightx = 1;
231
                JTextField fieldIDSoc = new JTextField();
233
                JTextField fieldIDSoc = new JTextField();
232
                this.add(fieldIDSoc, c);
234
                this.add(fieldIDSoc, c);
233
                this.addView(fieldIDSoc, "ORG_PROTECTION_SOCIAL_ID");
235
                this.addView(fieldIDSoc, "ORG_PROTECTION_SOCIAL_ID");
234
 
236
 
-
 
237
                c.gridx++;
-
 
238
                c.weightx = 0;
-
 
239
                JLabel labelIDCC = new JLabel(getLabelFor("ID_IDCC"));
-
 
240
                labelIDCC.setHorizontalAlignment(SwingConstants.RIGHT);
-
 
241
                this.add(labelIDCC, c);
-
 
242
 
-
 
243
                c.gridx++;
-
 
244
                c.weightx = 1;
-
 
245
                final SQLRequestComboBox comboIDCC = new SQLRequestComboBox();
-
 
246
                this.add(comboIDCC, c);
-
 
247
                this.addView(comboIDCC, "ID_IDCC");
-
 
248
 
235
                // RCS
249
                // RCS
236
                c.gridy++;
250
                c.gridy++;
237
                c.gridx = 0;
251
                c.gridx = 0;
238
                c.weightx = 0;
252
                c.weightx = 0;
239
                JLabel labelRCS = new JLabel(getLabelFor("RCS"));
253
                JLabel labelRCS = new JLabel(getLabelFor("RCS"));
Line 314... Line 328...
314
                    JTextField fieldPolice = new JTextField();
328
                    JTextField fieldPolice = new JTextField();
315
                    this.add(fieldPolice, c);
329
                    this.add(fieldPolice, c);
316
                    this.addView(fieldPolice, "NUMERO_POLICE");
330
                    this.addView(fieldPolice, "NUMERO_POLICE");
317
                }
331
                }
318
 
332
 
-
 
333
                // ccode congés payés
-
 
334
                JPanel panelAssuj = new JPanel();
-
 
335
 
-
 
336
                JCheckBox boxAssujCFP = new JCheckBox(getLabelFor("ASSUJETTISSEMENT_CFP"));
-
 
337
                panelAssuj.add(boxAssujCFP);
-
 
338
                this.addView(boxAssujCFP, "ASSUJETTISSEMENT_CFP");
-
 
339
 
-
 
340
                JCheckBox boxAssujCFPCDD = new JCheckBox(getLabelFor("ASSUJETTISSEMENT_CFP_CDD"));
-
 
341
                panelAssuj.add(boxAssujCFPCDD);
-
 
342
                this.addView(boxAssujCFPCDD, "ASSUJETTISSEMENT_CFP_CDD");
-
 
343
 
-
 
344
                JCheckBox boxAssujTA = new JCheckBox(getLabelFor("ASSUJETTISSEMENT_TA"));
-
 
345
                panelAssuj.add(boxAssujTA, c);
-
 
346
                this.addView(boxAssujTA, "ASSUJETTISSEMENT_TA");
-
 
347
                c.gridy++;
-
 
348
                c.gridx = 0;
-
 
349
                c.weightx = 0;
-
 
350
                c.gridwidth = 2;
-
 
351
                this.add(panelAssuj, c);
-
 
352
 
-
 
353
                JLabel labelMotifTA = new JLabel(getLabelFor("ID_MOTIF_NON_ASSUJETIS_TA"));
-
 
354
                labelMotifTA.setHorizontalAlignment(SwingConstants.RIGHT);
-
 
355
                c.gridx += 2;
-
 
356
                c.gridwidth = 1;
-
 
357
                c.weightx = 0;
-
 
358
                this.add(labelMotifTA, c);
-
 
359
                c.gridx++;
-
 
360
                c.weightx = 1;
-
 
361
                ElementComboBox boxMotifTA = new ElementComboBox(true);
-
 
362
                this.add(boxMotifTA, c);
-
 
363
                this.addView(boxMotifTA, "ID_MOTIF_NON_ASSUJETIS_TA");
-
 
364
 
319
                // Adresse
365
                // Adresse
320
                final TitledSeparator sepAdresse = new TitledSeparator(getLabelFor("ID_ADRESSE_COMMON"));
366
                final TitledSeparator sepAdresse = new TitledSeparator(getLabelFor("ID_ADRESSE_COMMON"));
321
                c.gridx = 0;
367
                c.gridx = 0;
322
                c.gridy++;
368
                c.gridy++;
323
                c.gridwidth = 4;
369
                c.gridwidth = 4;