OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 149
Line 319... Line 319...
319
            };
319
            };
320
        });
320
        });
321
 
321
 
322
        // Contact
322
        // Contact
323
        JPanel panelContact = new JPanel(new GridBagLayout());
323
        JPanel panelContact = new JPanel(new GridBagLayout());
324
 
-
 
-
 
324
        panelContact.setOpaque(false);
325
        this.table = new ContactItemTable(this.defaultContactRowVals);
325
        this.table = new ContactItemTable(this.defaultContactRowVals);
-
 
326
        this.table.setOpaque(false);
326
        this.table.setPreferredSize(new Dimension(this.table.getSize().width, 150));
327
        this.table.setPreferredSize(new Dimension(this.table.getSize().width, 150));
327
        GridBagConstraints cContact = new DefaultGridBagConstraints();
328
        GridBagConstraints cContact = new DefaultGridBagConstraints();
328
        cContact.fill = GridBagConstraints.BOTH;
329
        cContact.fill = GridBagConstraints.BOTH;
329
        cContact.weightx = 1;
330
        cContact.weightx = 1;
330
        cContact.weighty = 1;
331
        cContact.weighty = 1;
331
        panelContact.add(this.table, cContact);
332
        panelContact.add(this.table, cContact);
332
        tabbedPane.add("Contacts", panelContact);
333
        tabbedPane.add("Contacts", panelContact);
333
        c.gridx = 0;
334
        c.gridx = 0;
334
        c.gridy++;
335
        c.gridy++;
335
        c.anchor = GridBagConstraints.WEST;
336
        c.anchor = GridBagConstraints.NORTHWEST;
336
        c.fill = GridBagConstraints.BOTH;
337
        c.fill = GridBagConstraints.BOTH;
337
        c.gridwidth = GridBagConstraints.REMAINDER;
338
        c.gridwidth = GridBagConstraints.REMAINDER;
338
        this.add(tabbedPane, c);
339
        this.add(tabbedPane, c);
339
 
340
 
340
        // Mode de régelement
341
        // Mode de réglement
341
        TitledSeparator reglSep = new TitledSeparator(getLabelFor("ID_MODE_REGLEMENT"));
342
        TitledSeparator reglSep = new TitledSeparator(getLabelFor("ID_MODE_REGLEMENT"));
342
        c.gridwidth = GridBagConstraints.REMAINDER;
343
        c.gridwidth = 2;
343
        c.gridy++;
344
        c.gridy++;
344
        c.gridx = 0;
345
        c.gridx = 0;
345
        this.add(reglSep, c);
346
        this.add(reglSep, c);
346
 
347
 
347
        c.gridy++;
348
        c.gridy++;
Line 349... Line 350...
349
        c.fill = GridBagConstraints.NONE;
350
        c.fill = GridBagConstraints.NONE;
350
        this.addView("ID_MODE_REGLEMENT", REQ + ";" + DEC + ";" + SEP);
351
        this.addView("ID_MODE_REGLEMENT", REQ + ";" + DEC + ";" + SEP);
351
        ElementSQLObject eltModeRegl = (ElementSQLObject) this.getView("ID_MODE_REGLEMENT");
352
        ElementSQLObject eltModeRegl = (ElementSQLObject) this.getView("ID_MODE_REGLEMENT");
352
        this.add(eltModeRegl, c);
353
        this.add(eltModeRegl, c);
353
 
354
 
-
 
355
        //
-
 
356
        {
-
 
357
            c.gridx = 2;
-
 
358
            c.gridy--;
-
 
359
            c.gridwidth = 2;
-
 
360
            c.fill = GridBagConstraints.BOTH;
-
 
361
            TitledSeparator ribSep = new TitledSeparator("Coordonnées bancaires");
-
 
362
 
-
 
363
            this.add(ribSep, c);
-
 
364
 
-
 
365
            final JPanel pCoordonneesBancaires = new JPanel();
-
 
366
            pCoordonneesBancaires.setLayout(new GridBagLayout());
-
 
367
            GridBagConstraints c2 = new DefaultGridBagConstraints();
-
 
368
 
-
 
369
            c2.gridy++;
-
 
370
            // IBAN
-
 
371
            JLabel labelIBAN = new JLabel("IBAN", SwingConstants.RIGHT);
-
 
372
            JTextField textIBAN = new JTextField(40);
-
 
373
            c2.weightx = 0;
-
 
374
            pCoordonneesBancaires.add(labelIBAN, c2);
-
 
375
            c2.gridx++;
-
 
376
            c2.weightx = 1;
-
 
377
            pCoordonneesBancaires.add(textIBAN, c2);
-
 
378
 
-
 
379
            // BIC
-
 
380
            JLabel labelBIC = new JLabel("BIC", SwingConstants.RIGHT);
-
 
381
            JTextField textBIC = new JTextField(12);
-
 
382
            c2.gridx = 0;
-
 
383
            c2.gridy++;
-
 
384
            c2.weightx = 0;
-
 
385
            pCoordonneesBancaires.add(labelBIC, c2);
-
 
386
            c2.gridx++;
-
 
387
            c2.weightx = 1;
-
 
388
            c2.fill = GridBagConstraints.NONE;
-
 
389
            pCoordonneesBancaires.add(textBIC, c2);
-
 
390
            c.gridy++;
-
 
391
            c.fill = GridBagConstraints.HORIZONTAL;
-
 
392
            this.add(pCoordonneesBancaires, c);
-
 
393
 
-
 
394
            this.addView(textIBAN, "IBAN");
-
 
395
            this.addView(textBIC, "BIC");
-
 
396
        }
354
        // Compte associé
397
        // Compte associé
355
 
398
 
356
        c.gridx = 0;
399
        c.gridx = 0;
357
        c.gridy++;
400
        c.gridy++;
358
        c.weightx = 1;
401
        c.weightx = 1;
Line 377... Line 420...
377
        c2.gridx++;
420
        c2.gridx++;
378
        c2.weightx = 1;
421
        c2.weightx = 1;
379
        panel.add(compteSelCharge, c2);
422
        panel.add(compteSelCharge, c2);
380
        addView(compteSelCharge, "ID_COMPTE_PCE_CHARGE");
423
        addView(compteSelCharge, "ID_COMPTE_PCE_CHARGE");
381
 
424
 
382
 
-
 
383
 
-
 
384
        c.gridwidth = GridBagConstraints.REMAINDER;
425
        c.gridwidth = GridBagConstraints.REMAINDER;
385
        c.gridy++;
426
        c.gridy++;
386
        c.gridx = 0;
427
        c.gridx = 0;
387
        c.weightx = 1;
428
        c.weightx = 1;
388
        c.anchor = GridBagConstraints.NORTHWEST;
429
        c.anchor = GridBagConstraints.NORTHWEST;
389
        this.add(panel, c);
430
        this.add(panel, c);
390
 
431
 
-
 
432
        c.gridwidth = 1;
-
 
433
        c.gridy++;
-
 
434
        c.gridx = 0;
-
 
435
        c.weightx = 1;
-
 
436
        c.anchor = GridBagConstraints.NORTHWEST;
-
 
437
 
391
        // INfos
438
        // INfos
392
        c.gridx = 0;
439
        c.gridx = 0;
393
        c.gridy++;
440
        c.gridy++;
394
        c.gridheight = 1;
441
        c.gridheight = 1;
395
        c.weightx = 1;
442
        c.weightx = 1;