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