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 13... |
Line 13... |
13 |
|
13 |
|
14 |
package org.openconcerto.erp.core.supplychain.order.element;
|
14 |
package org.openconcerto.erp.core.supplychain.order.element;
|
15 |
|
15 |
|
16 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
16 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
17 |
import org.openconcerto.erp.core.common.ui.DeviseField;
|
17 |
import org.openconcerto.erp.core.common.ui.DeviseField;
|
- |
|
18 |
import org.openconcerto.erp.preferences.GestionArticleGlobalPreferencePanel;
|
18 |
import org.openconcerto.sql.element.SQLComponent;
|
19 |
import org.openconcerto.sql.element.SQLComponent;
|
19 |
import org.openconcerto.sql.element.UISQLComponent;
|
20 |
import org.openconcerto.sql.element.UISQLComponent;
|
20 |
import org.openconcerto.sql.model.SQLRowValues;
|
21 |
import org.openconcerto.sql.model.SQLRowValues;
|
21 |
import org.openconcerto.sql.model.Where;
|
22 |
import org.openconcerto.sql.model.Where;
|
- |
|
23 |
import org.openconcerto.sql.preferences.SQLPreferences;
|
22 |
import org.openconcerto.sql.request.UpdateBuilder;
|
24 |
import org.openconcerto.sql.request.UpdateBuilder;
|
23 |
import org.openconcerto.sql.sqlobject.ElementComboBox;
|
25 |
import org.openconcerto.sql.sqlobject.ElementComboBox;
|
24 |
import org.openconcerto.sql.users.UserManager;
|
26 |
import org.openconcerto.sql.users.UserManager;
|
25 |
import org.openconcerto.sql.view.EditFrame;
|
27 |
import org.openconcerto.sql.view.EditFrame;
|
26 |
import org.openconcerto.sql.view.EditPanel.EditMode;
|
28 |
import org.openconcerto.sql.view.EditPanel.EditMode;
|
Line 102... |
Line 104... |
102 |
protected List<String> getListFields() {
|
104 |
protected List<String> getListFields() {
|
103 |
final List<String> l = new ArrayList<String>();
|
105 |
final List<String> l = new ArrayList<String>();
|
104 |
l.add("ID_STYLE");
|
106 |
l.add("ID_STYLE");
|
105 |
l.add("CODE");
|
107 |
l.add("CODE");
|
106 |
l.add("NOM");
|
108 |
l.add("NOM");
|
- |
|
109 |
SQLPreferences prefs = new SQLPreferences(getTable().getDBRoot());
|
- |
|
110 |
if (prefs.getBoolean(GestionArticleGlobalPreferencePanel.ACTIVER_DECLINAISON, false)) {
|
- |
|
111 |
|
- |
|
112 |
for (String fieldName : getTable().getFieldsName()) {
|
- |
|
113 |
if (fieldName.startsWith("ID_ARTICLE_DECLINAISON_")) {
|
- |
|
114 |
l.add(fieldName);
|
- |
|
115 |
}
|
- |
|
116 |
}
|
- |
|
117 |
}
|
107 |
l.add("ID_COMMANDE");
|
118 |
l.add("ID_COMMANDE");
|
108 |
l.add("ID_ARTICLE");
|
119 |
l.add("ID_ARTICLE");
|
109 |
l.add("PA_HT");
|
120 |
l.add("PA_HT");
|
110 |
l.add("PV_HT");
|
121 |
l.add("PV_HT");
|
111 |
l.add("T_PA_HT");
|
122 |
l.add("T_PA_HT");
|