OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 177 Rev 180
Line 93... Line 93...
93
 
93
 
94
import com.ibm.icu.math.BigDecimal;
94
import com.ibm.icu.math.BigDecimal;
95
 
95
 
96
public class CommandeSQLComponent extends TransfertBaseSQLComponent {
96
public class CommandeSQLComponent extends TransfertBaseSQLComponent {
97
 
97
 
98
    private CommandeItemTable table = new CommandeItemTable();
98
    protected CommandeItemTable table = new CommandeItemTable();
99
    private PanelOOSQLComponent panelOO;
99
    protected PanelOOSQLComponent panelOO;
100
 
100
 
101
    private JUniqueTextField numeroUniqueCommande;
101
    protected JUniqueTextField numeroUniqueCommande;
102
    private final SQLTable tableNum = getTable().getBase().getTable("NUMEROTATION_AUTO");
102
    protected final SQLTable tableNum = getTable().getBase().getTable("NUMEROTATION_AUTO");
103
    private final ITextArea infos = new ITextArea(3, 3);
103
    protected final ITextArea infos = new ITextArea(3, 3);
104
    private ElementComboBox fourn = new ElementComboBox();
104
    protected ElementComboBox fourn = new ElementComboBox();
105
    private final JCheckBox boxLivrClient = new JCheckBox("Livrer directement le client");
105
    protected final JCheckBox boxLivrClient = new JCheckBox("Livrer directement le client");
106
    private DefaultElementSQLObject compAdr;
106
    protected DefaultElementSQLObject compAdr;
107
    final JPanel panelAdrSpec = new JPanel(new GridBagLayout());
107
    protected final JPanel panelAdrSpec = new JPanel(new GridBagLayout());
108
    protected ElementComboBox boxAdr;
108
    protected ElementComboBox boxAdr;
109
    private JDate dateCommande = new JDate(true);
109
    protected JDate dateCommande = new JDate(true);
110
    private ElementSQLObject componentPrincipaleAdr;
110
    protected ElementSQLObject componentPrincipaleAdr;
111
 
111
 
112
    public CommandeSQLComponent() {
112
    public CommandeSQLComponent() {
113
        super(Configuration.getInstance().getDirectory().getElement("COMMANDE"));
113
        super(Configuration.getInstance().getDirectory().getElement("COMMANDE"));
114
    }
114
    }
115
 
115
 
Line 569... Line 569...
569
        c.weightx = 0;
569
        c.weightx = 0;
570
        c.fill = GridBagConstraints.HORIZONTAL;
570
        c.fill = GridBagConstraints.HORIZONTAL;
571
        c.anchor = GridBagConstraints.EAST;
571
        c.anchor = GridBagConstraints.EAST;
572
        this.add(new JLabel(getLabelFor("NOM"), SwingConstants.RIGHT), c);
572
        this.add(new JLabel(getLabelFor("NOM"), SwingConstants.RIGHT), c);
573
 
573
 
574
        final JTextField textNom = new JTextField();
574
        final SQLTextCombo textNom = new SQLTextCombo();
575
        c.gridx++;
575
        c.gridx++;
576
        c.weightx = 1;
576
        c.weightx = 1;
577
        this.add(textNom, c);
577
        this.add(textNom, c);
578
 
578
 
579
        String field;
579
        String field;
Line 651... Line 651...
651
        // }
651
        // }
652
        // });
652
        // });
653
 
653
 
654
        DefaultGridBagConstraints.lockMinimumSize(this.fourn);
654
        DefaultGridBagConstraints.lockMinimumSize(this.fourn);
655
        DefaultGridBagConstraints.lockMinimumSize(commSel);
655
        DefaultGridBagConstraints.lockMinimumSize(commSel);
-
 
656
        this.addView(this.table.getRowValuesTable(), "");
656
    }
657
    }
657
 
658
 
658
    protected SQLRowValues getLivraisonAdr(SQLRow rowAffaire) {
659
    protected SQLRowValues getLivraisonAdr(SQLRow rowAffaire) {
659
        if (rowAffaire != null) {
660
        if (rowAffaire != null) {
660
            SQLRow rowClient = rowAffaire.getForeignRow("ID_CLIENT");
661
            SQLRow rowClient = rowAffaire.getForeignRow("ID_CLIENT");