OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 19 Rev 25
Line 15... Line 15...
15
 
15
 
16
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
16
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
17
import org.openconcerto.erp.core.sales.order.report.CommandeClientXmlSheet;
17
import org.openconcerto.erp.core.sales.order.report.CommandeClientXmlSheet;
18
import org.openconcerto.erp.core.sales.quote.report.DevisXmlSheet;
18
import org.openconcerto.erp.core.sales.quote.report.DevisXmlSheet;
19
import org.openconcerto.erp.core.sales.shipment.report.BonLivraisonXmlSheet;
19
import org.openconcerto.erp.core.sales.shipment.report.BonLivraisonXmlSheet;
20
import org.openconcerto.erp.generationDoc.SheetXml;
-
 
21
import org.openconcerto.erp.generationDoc.gestcomm.AvoirClientXmlSheet;
20
import org.openconcerto.erp.generationDoc.gestcomm.AvoirClientXmlSheet;
22
import org.openconcerto.erp.generationDoc.gestcomm.AvoirFournisseurXmlSheet;
21
import org.openconcerto.erp.generationDoc.gestcomm.AvoirFournisseurXmlSheet;
23
import org.openconcerto.erp.generationDoc.gestcomm.CommandeXmlSheet;
22
import org.openconcerto.erp.generationDoc.gestcomm.CommandeXmlSheet;
24
import org.openconcerto.erp.generationDoc.gestcomm.CourrierClientSheet;
23
import org.openconcerto.erp.generationDoc.gestcomm.CourrierClientSheet;
25
import org.openconcerto.erp.generationDoc.gestcomm.RelanceSheet;
24
import org.openconcerto.erp.generationDoc.gestcomm.RelanceSheet;
26
import org.openconcerto.erp.generationDoc.gestcomm.ReleveChequeEmisSheet;
25
import org.openconcerto.erp.generationDoc.gestcomm.ReleveChequeEmisSheet;
27
import org.openconcerto.erp.generationDoc.gestcomm.ReleveChequeSheet;
26
import org.openconcerto.erp.generationDoc.gestcomm.ReleveChequeSheet;
-
 
27
import org.openconcerto.sql.Configuration;
-
 
28
import org.openconcerto.utils.StringUtils;
28
 
29
 
29
public class GenerationDocumentGestCommPreferencePanel extends AbstractGenerationDocumentPreferencePanel {
30
public class GenerationDocumentGestCommPreferencePanel extends AbstractGenerationDocumentPreferencePanel {
30
 
31
 
31
    public GenerationDocumentGestCommPreferencePanel() {
32
    public GenerationDocumentGestCommPreferencePanel() {
32
        super();
33
        super();
33
        this.mapKeyLabel.put(DevisXmlSheet.getTuple2Location().get0(), DevisXmlSheet.getTuple2Location().get1());
34
        this.mapKeyLabel.put(DevisXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("DEVIS"));
34
        this.mapKeyLabel.put(AvoirClientXmlSheet.getTuple2Location().get0(), AvoirClientXmlSheet.getTuple2Location().get1());
35
        this.mapKeyLabel.put(AvoirClientXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("AVOIR_CLIENT"));
35
        this.mapKeyLabel.put(DevisXmlSheet.getTuple2Location().get0(), DevisXmlSheet.getTuple2Location().get1());
-
 
-
 
36
 
36
        this.mapKeyLabel.put(BonLivraisonXmlSheet.getTuple2Location().get0(), BonLivraisonXmlSheet.getTuple2Location().get1());
37
        this.mapKeyLabel.put(BonLivraisonXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("BON_DE_LIVRAISON"));
37
        this.mapKeyLabel.put(VenteFactureXmlSheet.getTuple2Location().get0(), VenteFactureXmlSheet.getTuple2Location().get1());
38
        this.mapKeyLabel.put(VenteFactureXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("SAISIE_VENTE_FACTURE"));
38
        this.mapKeyLabel.put(RelanceSheet.getTuple2Location().get0(), RelanceSheet.getTuple2Location().get1());
39
        this.mapKeyLabel.put(RelanceSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("RELANCE"));
39
        this.mapKeyLabel.put(CommandeXmlSheet.getTuple2Location().get0(), CommandeXmlSheet.getTuple2Location().get1());
40
        this.mapKeyLabel.put(CommandeXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("COMMANDE"));
40
        this.mapKeyLabel.put(CommandeClientXmlSheet.getTuple2Location().get0(), CommandeClientXmlSheet.getTuple2Location().get1());
41
        this.mapKeyLabel.put(CommandeClientXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("COMMANDE_CLIENT"));
41
        this.mapKeyLabel.put(AvoirFournisseurXmlSheet.getTuple2Location().get0(), AvoirFournisseurXmlSheet.getTuple2Location().get1());
42
        this.mapKeyLabel.put(AvoirFournisseurXmlSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("AVOIR_FOURNISSEUR"));
42
        this.mapKeyLabel.put(CourrierClientSheet.getTuple2Location().get0(), CourrierClientSheet.getTuple2Location().get1());
43
        this.mapKeyLabel.put(CourrierClientSheet.TEMPLATE_PROPERTY_NAME, getLabelFromTable("COURRIER_CLIENT"));
43
        this.mapKeyLabel.put(ReleveChequeEmisSheet.getTuple2Location().get0(), ReleveChequeEmisSheet.getTuple2Location().get1());
44
        this.mapKeyLabel.put(ReleveChequeEmisSheet.TEMPLATE_PROPERTY_NAME, "Relevé chèque émis");
44
        this.mapKeyLabel.put(ReleveChequeSheet.getTuple2Location().get0(), ReleveChequeSheet.getTuple2Location().get1());
45
        this.mapKeyLabel.put(ReleveChequeSheet.TEMPLATE_PROPERTY_NAME, "Relevé chèque");
45
        this.mapKeyLabel.put(SheetXml.tupleDefault.get0(), SheetXml.tupleDefault.get1());
46
        // this.mapKeyLabel.put(SheetXml.tupleDefault.get0(), SheetXml.tupleDefault.get1());
46
        // uiInit();
47
        // uiInit();
47
    }
48
    }
48
 
49
 
-
 
50
    private String getLabelFromTable(String tableName) {
-
 
51
        String pluralName = Configuration.getInstance().getDirectory().getElement(tableName).getPluralName();
-
 
52
        pluralName = StringUtils.firstUp(pluralName);
-
 
53
        return pluralName;
-
 
54
    }
-
 
55
 
49
    public String getTitleName() {
56
    public String getTitleName() {
50
        return "Destination des documents générés";
57
        return "Destination des documents générés";
51
    }
58
    }
52
}
59
}