OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 25 Rev 73
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.generationDoc.gestcomm;
14
 package org.openconcerto.erp.generationDoc.gestcomm;
15
 
15
 
-
 
16
import java.util.Arrays;
-
 
17
import java.util.List;
-
 
18
 
16
import org.openconcerto.erp.generationDoc.AbstractSheetXMLWithDate;
19
import org.openconcerto.erp.generationDoc.AbstractSheetXMLWithDate;
-
 
20
import org.openconcerto.erp.generationDoc.MetaDataSheet;
17
import org.openconcerto.erp.preferences.PrinterNXProps;
21
import org.openconcerto.erp.preferences.PrinterNXProps;
18
import org.openconcerto.sql.Configuration;
22
import org.openconcerto.sql.Configuration;
19
import org.openconcerto.sql.model.SQLRow;
23
import org.openconcerto.sql.model.SQLRow;
20
 
24
 
21
public class CommandeXmlSheet extends AbstractSheetXMLWithDate {
25
public class CommandeXmlSheet extends AbstractSheetXMLWithDate {
Line 36... Line 40...
36
    // FIXME Prefs printer location
40
    // FIXME Prefs printer location
37
    public CommandeXmlSheet(SQLRow row) {
41
    public CommandeXmlSheet(SQLRow row) {
38
        super(row);
42
        super(row);
39
        this.printer = PrinterNXProps.getInstance().getStringProperty("CmdPrinter");
43
        this.printer = PrinterNXProps.getInstance().getStringProperty("CmdPrinter");
40
        this.elt = Configuration.getInstance().getDirectory().getElement("COMMANDE");
44
        this.elt = Configuration.getInstance().getDirectory().getElement("COMMANDE");
-
 
45
        MetaDataSheet meta = new MetaDataSheet();
-
 
46
        SQLRow foreign = this.row.getForeign("ID_FOURNISSEUR");
-
 
47
        if (foreign != null && !foreign.isUndefined())
-
 
48
            meta.setKeywords(Arrays.asList(foreign.getString("NOM")));
41
    }
49
    }
42
 
50
 
43
    @Override
51
    @Override
44
    public String getDefaultTemplateId() {
52
    public String getDefaultTemplateId() {
45
        return TEMPLATE_ID;
53
        return TEMPLATE_ID;