156 |
ilm |
1 |
/*
|
|
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
|
|
3 |
*
|
|
|
4 |
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
|
|
|
5 |
*
|
|
|
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
|
|
|
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.
|
|
|
10 |
*
|
|
|
11 |
* When distributing the software, include this License Header Notice in each file.
|
|
|
12 |
*/
|
|
|
13 |
|
|
|
14 |
package org.openconcerto.erp.core.supplychain.stock.element;
|
|
|
15 |
|
|
|
16 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
|
|
17 |
import org.openconcerto.sql.element.SQLComponent;
|
|
|
18 |
|
|
|
19 |
import java.util.ArrayList;
|
|
|
20 |
import java.util.List;
|
|
|
21 |
|
|
|
22 |
public class EtatStockItemSQLElement extends ComptaSQLConfElement {
|
|
|
23 |
|
|
|
24 |
public EtatStockItemSQLElement() {
|
|
|
25 |
super("ETAT_STOCK_ELEMENT");
|
|
|
26 |
setDefaultGroup(new EtatStockGroup());
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
protected List<String> getListFields() {
|
|
|
30 |
final List<String> l = new ArrayList<String>();
|
|
|
31 |
l.add("ID_ARTICLE");
|
|
|
32 |
l.add("QTE");
|
|
|
33 |
return l;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
protected List<String> getComboFields() {
|
|
|
37 |
final List<String> l = new ArrayList<String>();
|
|
|
38 |
l.add("ID_ARTICLE");
|
|
|
39 |
l.add("QTE");
|
|
|
40 |
// l.add("PA");
|
|
|
41 |
return l;
|
|
|
42 |
}
|
|
|
43 |
//
|
|
|
44 |
// @Override
|
|
|
45 |
// public ListMap<String, String> getShowAs() {
|
|
|
46 |
// ListMap<String, String> map = new ListMap<String, String>();
|
|
|
47 |
// map.add("ID_ARTICLE", "CODE");
|
|
|
48 |
// map.add("ID_ARTICLE", "NOM");
|
|
|
49 |
// return map;
|
|
|
50 |
// }
|
|
|
51 |
|
|
|
52 |
/*
|
|
|
53 |
* (non-Javadoc)
|
|
|
54 |
*
|
|
|
55 |
* @see org.openconcerto.devis.SQLElement#getComponent()
|
|
|
56 |
*/
|
|
|
57 |
public SQLComponent createComponent() {
|
|
|
58 |
return null;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
@Override
|
|
|
62 |
protected String createCode() {
|
|
|
63 |
return createCodeOfPackage() + ".state.items";
|
|
|
64 |
}
|
|
|
65 |
}
|