Line 15... |
Line 15... |
15 |
|
15 |
|
16 |
import org.openconcerto.erp.core.common.ui.NumericTextField;
|
16 |
import org.openconcerto.erp.core.common.ui.NumericTextField;
|
17 |
import org.openconcerto.erp.core.sales.product.element.ReferenceArticleSQLElement;
|
17 |
import org.openconcerto.erp.core.sales.product.element.ReferenceArticleSQLElement;
|
18 |
import org.openconcerto.sql.Configuration;
|
18 |
import org.openconcerto.sql.Configuration;
|
19 |
import org.openconcerto.sql.element.SQLElement;
|
19 |
import org.openconcerto.sql.element.SQLElement;
|
- |
|
20 |
import org.openconcerto.sql.model.Where;
|
- |
|
21 |
import org.openconcerto.sql.request.ComboSQLRequest;
|
20 |
import org.openconcerto.sql.sqlobject.SQLRequestComboBox;
|
22 |
import org.openconcerto.sql.sqlobject.SQLRequestComboBox;
|
21 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
23 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
22 |
import org.openconcerto.ui.JDate;
|
24 |
import org.openconcerto.ui.JDate;
|
23 |
import org.openconcerto.utils.text.SimpleDocumentListener;
|
25 |
import org.openconcerto.utils.text.SimpleDocumentListener;
|
24 |
import org.openconcerto.utils.Tuple2;
|
26 |
import org.openconcerto.utils.Tuple2;
|
Line 51... |
Line 53... |
51 |
final JButton buttonUpdate = new JButton("Mettre à jour");
|
53 |
final JButton buttonUpdate = new JButton("Mettre à jour");
|
52 |
|
54 |
|
53 |
final ReferenceArticleSQLElement articleElt = instance.getDirectory().getElement(ReferenceArticleSQLElement.class);
|
55 |
final ReferenceArticleSQLElement articleElt = instance.getDirectory().getElement(ReferenceArticleSQLElement.class);
|
54 |
|
56 |
|
55 |
final SQLRequestComboBox comboArticle = new SQLRequestComboBox();
|
57 |
final SQLRequestComboBox comboArticle = new SQLRequestComboBox();
|
- |
|
58 |
|
- |
|
59 |
final ComboSQLRequest createComboRequest = articleElt.createComboRequest();
|
- |
|
60 |
createComboRequest.putWhere("obsolete", new Where(articleElt.getTable().getField("OBSOLETE"), "=", Boolean.FALSE));
|
56 |
comboArticle.uiInit(articleElt.createComboRequest());
|
61 |
comboArticle.uiInit(createComboRequest);
|
57 |
|
62 |
|
58 |
final SQLElement stockElt = instance.getDirectory().getElement("DEPOT_STOCK");
|
63 |
final SQLElement stockElt = instance.getDirectory().getElement("DEPOT_STOCK");
|
59 |
final SQLRequestComboBox comboStockDepart = new SQLRequestComboBox();
|
64 |
final SQLRequestComboBox comboStockDepart = new SQLRequestComboBox();
|
60 |
comboStockDepart.uiInit(stockElt.createComboRequest());
|
65 |
comboStockDepart.uiInit(stockElt.createComboRequest());
|
61 |
|
66 |
|