OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 140 Rev 181
Line 1... Line 1...
1
/*
1
/*
2
 * Créé le 5 nov. 2012
2
 * Créé le 5 nov. 2012
3
 */
3
 */
4
package org.openconcerto.modules.customerrelationship.lead;
4
package org.openconcerto.modules.customerrelationship.lead;
5
 
5
 
-
 
6
import java.util.Date;
-
 
7
 
6
import org.openconcerto.sql.Configuration;
8
import org.openconcerto.sql.Configuration;
7
import org.openconcerto.sql.model.SQLInjector;
9
import org.openconcerto.sql.model.SQLInjector;
8
import org.openconcerto.sql.model.SQLRowAccessor;
10
import org.openconcerto.sql.model.SQLRowAccessor;
9
import org.openconcerto.sql.model.SQLRowValues;
11
import org.openconcerto.sql.model.SQLRowValues;
10
import org.openconcerto.sql.model.SQLTable;
12
import org.openconcerto.sql.model.SQLTable;
Line 24... Line 26...
24
        map(leadTable.getField("FAX"), customerTable.getField("FAX"));
26
        map(leadTable.getField("FAX"), customerTable.getField("FAX"));
25
        map(leadTable.getField("EMAIL"), customerTable.getField("MAIL"));
27
        map(leadTable.getField("EMAIL"), customerTable.getField("MAIL"));
26
        map(leadTable.getField("MOBILE"), customerTable.getField("TEL_P"));
28
        map(leadTable.getField("MOBILE"), customerTable.getField("TEL_P"));
27
        // map(leadTable.getField("INFORMATION"), customerTable.getField("INFOS"));
29
        // map(leadTable.getField("INFORMATION"), customerTable.getField("INFOS"));
28
        map(getSource().getField("INFOS"), getDestination().getField("INFOS"));
30
        map(getSource().getField("INFOS"), getDestination().getField("INFOS"));
-
 
31
        remove(leadTable.getField("DATE"), customerTable.getField("DATE"));
-
 
32
        mapDefaultValues(customerTable.getField("DATE"), new Date());
29
        remove(leadTable.getField("ID_ADRESSE"), customerTable.getField("ID_ADRESSE"));
33
        remove(leadTable.getField("ID_ADRESSE"), customerTable.getField("ID_ADRESSE"));
30
    }
34
    }
31
 
35
 
32
    @Override
36
    @Override
33
    protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
37
    protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {