OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 177 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 182
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 23... Line 23...
23
import org.openconcerto.ui.preferences.JavaPrefPreferencePanel;
23
import org.openconcerto.ui.preferences.JavaPrefPreferencePanel;
24
import org.openconcerto.ui.preferences.PrefView;
24
import org.openconcerto.ui.preferences.PrefView;
25
import org.openconcerto.utils.PrefType;
25
import org.openconcerto.utils.PrefType;
26
 
26
 
27
public class GestionArticleGlobalPreferencePanel extends JavaPrefPreferencePanel {
27
public class GestionArticleGlobalPreferencePanel extends JavaPrefPreferencePanel {
-
 
28
    public static String ACTIVER_DECLINAISON = "GestionDeclinaison";
28
    public static String STOCK_FACT = "StockOnOrder";
29
    public static String STOCK_FACT = "StockOnOrder";
29
    public static String UNITE_VENTE = "UniteVenteActive";
30
    public static String UNITE_VENTE = "UniteVenteActive";
30
    public static String USE_CREATED_ARTICLE = "UseCreatedArticle";
31
    public static String USE_CREATED_ARTICLE = "UseCreatedArticle";
31
    public static String CREATE_ARTICLE_AUTO = "CreateArticleAuto";
32
    public static String CREATE_ARTICLE_AUTO = "CreateArticleAuto";
32
    public static String ACTIVE_DEMANDE_ACHAT = "ActiveDemandeAchat";
33
    public static String ACTIVE_DEMANDE_ACHAT = "ActiveDemandeAchat";
Line 38... Line 39...
38
    public static String FILTER_BY_FAMILY = "FilterByFamily";
39
    public static String FILTER_BY_FAMILY = "FilterByFamily";
39
    public static String ACTIVE_CALCUL_M2 = "CalculM2";
40
    public static String ACTIVE_CALCUL_M2 = "CalculM2";
40
    public static String STOCK_MULTI_DEPOT = "MultiDepot";
41
    public static String STOCK_MULTI_DEPOT = "MultiDepot";
41
    public static String CAN_EXPAND_NOMENCLATURE_VT = "CanExpandNomenclature";
42
    public static String CAN_EXPAND_NOMENCLATURE_VT = "CanExpandNomenclature";
42
    public static String CAN_EXPAND_NOMENCLATURE_HA = "CanExpandNomenclaturePurchase";
43
    public static String CAN_EXPAND_NOMENCLATURE_HA = "CanExpandNomenclaturePurchase";
-
 
44
    public static String SHOW_LIST_COMPTE = "ShowListProductCompte";
-
 
45
    public static String SHOW_LIST_TAXE = "ShowListProductTaxe";
-
 
46
    public static String SHOW_LIST_FAMILLE = "ShowListProductFamille";
-
 
47
    public static String SHOW_LIST_FOURNISSEUR = "ShowListProductFournisseur";
43
 
48
 
44
    public GestionArticleGlobalPreferencePanel() {
49
    public GestionArticleGlobalPreferencePanel() {
45
        super("Gestion des articles", null);
50
        super("Gestion des articles", null);
46
        setPrefs(new SQLPreferences(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete()));
51
        setPrefs(new SQLPreferences(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete()));
47
    }
52
    }
Line 80... Line 85...
80
 
85
 
81
        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);
86
        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);
82
        view.setDefaultValue(Boolean.TRUE);
87
        view.setDefaultValue(Boolean.TRUE);
83
        this.addView(view);
88
        this.addView(view);
84
 
89
 
-
 
90
        PrefView<Boolean> viewGestionDeclinaison = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Activer la gestion des déclinaisons", ACTIVER_DECLINAISON);
-
 
91
        viewGestionDeclinaison.setDefaultValue(Boolean.FALSE);
-
 
92
        this.addView(viewGestionDeclinaison);
-
 
93
 
85
        PrefView<Boolean> viewMultiStock = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Activer la gestion multidépôt", STOCK_MULTI_DEPOT);
94
        PrefView<Boolean> viewMultiStock = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Activer la gestion multidépôt", STOCK_MULTI_DEPOT);
86
        viewMultiStock.setDefaultValue(Boolean.FALSE);
95
        viewMultiStock.setDefaultValue(Boolean.FALSE);
87
        this.addView(viewMultiStock);
96
        this.addView(viewMultiStock);
88
 
97
 
89
        PrefView<Boolean> view2 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer différentes unités de vente", UNITE_VENTE);
98
        PrefView<Boolean> view2 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer différentes unités de vente", UNITE_VENTE);
Line 108... Line 117...
108
 
117
 
109
        PrefView<Boolean> view5 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Afficher le code barre des articles dans les sélecteurs", SHOW_PRODUCT_BAR_CODE);
118
        PrefView<Boolean> view5 = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Afficher le code barre des articles dans les sélecteurs", SHOW_PRODUCT_BAR_CODE);
110
        view5.setDefaultValue(Boolean.FALSE);
119
        view5.setDefaultValue(Boolean.FALSE);
111
        this.addView(view5);
120
        this.addView(view5);
112
 
121
 
-
 
122
        PrefView<Boolean> viewCompte = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Afficher les comptes comptables des articles dans les listes", SHOW_LIST_COMPTE);
-
 
123
        viewCompte.setDefaultValue(Boolean.FALSE);
-
 
124
        this.addView(viewCompte);
-
 
125
        PrefView<Boolean> viewTaxe = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Afficher la TVA des articles dans les listes", SHOW_LIST_TAXE);
-
 
126
        viewTaxe.setDefaultValue(Boolean.FALSE);
-
 
127
        this.addView(viewTaxe);
-
 
128
        PrefView<Boolean> viewFamille = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Afficher les familles des articles dans les listes", SHOW_LIST_FAMILLE);
-
 
129
        viewFamille.setDefaultValue(Boolean.FALSE);
-
 
130
        this.addView(viewFamille);
-
 
131
        PrefView<Boolean> viewFournisseur = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Afficher les fournisseurs des articles dans les listes", SHOW_LIST_FOURNISSEUR);
-
 
132
        viewFournisseur.setDefaultValue(Boolean.FALSE);
-
 
133
        this.addView(viewFournisseur);
-
 
134
 
113
    }
135
    }
114
}
136
}