OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Rev 94 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 93
Line 28... Line 28...
28
 
28
 
29
public class GestionCommercialeGlobalPreferencePanel extends JavaPrefPreferencePanel {
29
public class GestionCommercialeGlobalPreferencePanel extends JavaPrefPreferencePanel {
30
    public static String TRANSFERT_REF = "TransfertRef";
30
    public static String TRANSFERT_REF = "TransfertRef";
31
    public static String TRANSFERT_MULTI_REF = "TransfertMultiRef";
31
    public static String TRANSFERT_MULTI_REF = "TransfertMultiRef";
32
    public static String TRANSFERT_NO_REF = "TransfertNoRef";
32
    public static String TRANSFERT_NO_REF = "TransfertNoRef";
-
 
33
    public static String ORDER_PACKAGING_MANAGEMENT = "OrderPackagingManagement";
33
 
34
 
34
    public GestionCommercialeGlobalPreferencePanel() {
35
    public GestionCommercialeGlobalPreferencePanel() {
35
        super("Gestion des pièces commerciales", null);
36
        super("Gestion des pièces commerciales", null);
36
        setPrefs(new SQLPreferences(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete()));
37
        setPrefs(new SQLPreferences(((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete()));
37
    }
38
    }
Line 48... Line 49...
48
 
49
 
49
        PrefView<Boolean> viewNo = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Ne pas transférer les numéros des pièces commerciales", TRANSFERT_NO_REF);
50
        PrefView<Boolean> viewNo = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Ne pas transférer les numéros des pièces commerciales", TRANSFERT_NO_REF);
50
        viewNo.setDefaultValue(Boolean.FALSE);
51
        viewNo.setDefaultValue(Boolean.FALSE);
51
        this.addView(viewNo);
52
        this.addView(viewNo);
52
 
53
 
-
 
54
        PrefView<Boolean> orderPackaging = new PrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Gérer la préparation des commandes clients", ORDER_PACKAGING_MANAGEMENT);
-
 
55
        orderPackaging.setDefaultValue(Boolean.TRUE);
-
 
56
        this.addView(orderPackaging);
-
 
57
 
53
        ButtonGroup group = new ButtonGroup();
58
        ButtonGroup group = new ButtonGroup();
54
        group.add((JCheckBox) viewMultiTransfert.getVW().getComp());
59
        group.add((JCheckBox) viewMultiTransfert.getVW().getComp());
55
        group.add((JCheckBox) viewTransfert.getVW().getComp());
60
        group.add((JCheckBox) viewTransfert.getVW().getComp());
56
        group.add((JCheckBox) viewNo.getVW().getComp());
61
        group.add((JCheckBox) viewNo.getVW().getComp());
57
 
62