Line 15... |
Line 15... |
15 |
* Créé le 6 mars 2012
|
15 |
* Créé le 6 mars 2012
|
16 |
*/
|
16 |
*/
|
17 |
package org.openconcerto.erp.preferences;
|
17 |
package org.openconcerto.erp.preferences;
|
18 |
|
18 |
|
19 |
import org.openconcerto.erp.config.ComptaPropsConfiguration;
|
19 |
import org.openconcerto.erp.config.ComptaPropsConfiguration;
|
- |
|
20 |
import org.openconcerto.erp.core.common.ui.AbstractVenteArticleItemTable;
|
20 |
import org.openconcerto.sql.Configuration;
|
21 |
import org.openconcerto.sql.Configuration;
|
21 |
import org.openconcerto.sql.preferences.SQLPreferences;
|
22 |
import org.openconcerto.sql.preferences.SQLPreferences;
|
22 |
import org.openconcerto.ui.preferences.JavaPrefPreferencePanel;
|
23 |
import org.openconcerto.ui.preferences.JavaPrefPreferencePanel;
|
23 |
import org.openconcerto.ui.preferences.PrefView;
|
24 |
import org.openconcerto.ui.preferences.PrefView;
|
24 |
import org.openconcerto.utils.PrefType;
|
25 |
import org.openconcerto.utils.PrefType;
|
Line 33... |
Line 34... |
33 |
public static String WARNING_STOCK_MIN = "ArticleStockMin";
|
34 |
public static String WARNING_STOCK_MIN = "ArticleStockMin";
|
34 |
public static String BOM_STYLE = "BomStyle";
|
35 |
public static String BOM_STYLE = "BomStyle";
|
35 |
public static String SHOW_PRODUCT_BAR_CODE = "ShowProductBarCode";
|
36 |
public static String SHOW_PRODUCT_BAR_CODE = "ShowProductBarCode";
|
36 |
public static String ITEM_PACKAGING = "ItemPackaging";
|
37 |
public static String ITEM_PACKAGING = "ItemPackaging";
|
37 |
public static String FILTER_BY_FAMILY = "FilterByFamily";
|
38 |
public static String FILTER_BY_FAMILY = "FilterByFamily";
|
- |
|
39 |
public static String STOCK_MULTI_DEPOT = "MultiDepot";
|
38 |
public static String CAN_EXPAND_NOMENCLATURE_VT = "CanExpandNomenclature";
|
40 |
public static String CAN_EXPAND_NOMENCLATURE_VT = "CanExpandNomenclature";
|
39 |
public static String CAN_EXPAND_NOMENCLATURE_HA = "CanExpandNomenclaturePurchase";
|
41 |
public static String CAN_EXPAND_NOMENCLATURE_HA = "CanExpandNomenclaturePurchase";
|
40 |
|
42 |
|
41 |
public GestionArticleGlobalPreferencePanel() {
|
43 |
public GestionArticleGlobalPreferencePanel() {
|
42 |
super("Gestion des articles", null);
|
44 |
super("Gestion des articles", null);
|
Line 44... |
Line 46... |
44 |
}
|
46 |
}
|
45 |
|
47 |
|
46 |
@Override
|
48 |
@Override
|
47 |
protected void addViews() {
|
49 |
protected void addViews() {
|
48 |
|
50 |
|
- |
|
51 |
PrefView<Boolean> viewShowDevise = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer plusieurs devises", AbstractVenteArticleItemTable.ARTICLE_SHOW_DEVISE);
|
- |
|
52 |
viewShowDevise.setDefaultValue(Boolean.FALSE);
|
- |
|
53 |
this.addView(viewShowDevise);
|
- |
|
54 |
|
49 |
PrefView<Boolean> viewExpandNom = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Permettre d'applatir, d'exposer, d'éclater les articles dans les pièces commerciales de vente",
|
55 |
PrefView<Boolean> viewExpandNom = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Permettre d'applatir, d'exposer, d'éclater les articles dans les pièces commerciales de vente",
|
50 |
CAN_EXPAND_NOMENCLATURE_VT);
|
56 |
CAN_EXPAND_NOMENCLATURE_VT);
|
51 |
viewExpandNom.setDefaultValue(Boolean.TRUE);
|
57 |
viewExpandNom.setDefaultValue(Boolean.TRUE);
|
52 |
this.addView(viewExpandNom);
|
58 |
this.addView(viewExpandNom);
|
53 |
|
59 |
|
Line 70... |
Line 76... |
70 |
|
76 |
|
71 |
PrefView<Boolean> view = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer les sorties de stock avec les factures et non les bons de livraison", STOCK_FACT);
|
77 |
PrefView<Boolean> view = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer les sorties de stock avec les factures et non les bons de livraison", STOCK_FACT);
|
72 |
view.setDefaultValue(Boolean.TRUE);
|
78 |
view.setDefaultValue(Boolean.TRUE);
|
73 |
this.addView(view);
|
79 |
this.addView(view);
|
74 |
|
80 |
|
- |
|
81 |
PrefView<Boolean> viewMultiStock = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Activer la gestion multidépôt", STOCK_MULTI_DEPOT);
|
- |
|
82 |
viewMultiStock.setDefaultValue(Boolean.FALSE);
|
- |
|
83 |
this.addView(viewMultiStock);
|
- |
|
84 |
|
75 |
PrefView<Boolean> view2 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer différentes unités de vente", UNITE_VENTE);
|
85 |
PrefView<Boolean> view2 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer différentes unités de vente", UNITE_VENTE);
|
76 |
view2.setDefaultValue(Boolean.TRUE);
|
86 |
view2.setDefaultValue(Boolean.TRUE);
|
77 |
this.addView(view2);
|
87 |
this.addView(view2);
|
78 |
|
88 |
|
79 |
PrefView<Boolean> view6 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer les colis", ITEM_PACKAGING);
|
89 |
PrefView<Boolean> view6 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer les colis", ITEM_PACKAGING);
|