OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Compare Revisions

Regard whitespace Rev 77 → Rev 87

/trunk/Modules/Module Lead/src/org/openconcerto/modules/customerrelationship/lead/SQLElementNames_fr.xml
New file
0,0 → 1,3
<translations>
<element refid="customerrelationship.lead" nameClass="masculine" name="prospect" />
</translations>
/trunk/Modules/Module Lead/src/org/openconcerto/modules/customerrelationship/lead/Module.java
66,10 → 66,9
@Override
protected void setupElements(SQLElementDirectory dir) {
super.setupElements(dir);
GlobalMapper.getInstance().map("customerrelationship.lead.default", new LeadGroup());
final LeadSQLElement element = new LeadSQLElement();
final LeadSQLElement element = new LeadSQLElement(this);
GlobalMapper.getInstance().map(element.getCode() + ".default", new LeadGroup());
dir.addSQLElement(element);
 
}
 
@Override
/trunk/Modules/Module Lead/src/org/openconcerto/modules/customerrelationship/lead/LeadSQLComponent.java
28,7 → 28,7
}
 
@Override
public JComponent getEditor(String id) {
public JComponent createEditor(String id) {
if (id.equals("INFORMATION")) {
final JTextArea jTextArea = new JTextArea();
jTextArea.setFont(new JLabel().getFont());
38,6 → 38,6
} else if (id.equals("DATE")) {
return new JDate(true);
}
return super.getEditor(id);
return super.createEditor(id);
}
}
/trunk/Modules/Module Lead/src/org/openconcerto/modules/customerrelationship/lead/labels_fr.xml
New file
0,0 → 1,24
<?xml version="1.0" encoding="UTF-8" ?>
<ROOT>
<TABLE name="LEAD">
<FIELD name="NUMBER" label="Numéro" titlelabel="N°" />
<FIELD name="NAME" label="Nom" />
<FIELD name="DATE" label="Date" titlelabel="Date" />
<FIELD name="COMPANY" label="Entreprise" titlelabel="Entreprise" />
<FIELD name="FIRSTNAME" label="Prénom" titlelabel="Prénom" />
<FIELD name="PHONE" label="Téléphone" titlelabel="Téléphone" />
<FIELD name="MOBILE" label="Mobile" titlelabel="Mobile" />
<FIELD name="FAX" label="Fax" titlelabel="Fax" />
<FIELD name="EMAIL" label="Email" titlelabel="Email" />
<FIELD name="WEBSITE" label="Site internet" titlelabel="Site internet" />
<FIELD name="ID_ADRESSE" label="Adresse" titlelabel="Adresse" />
<FIELD name="INFORMATION" label="Description" titlelabel="Description" />
<FIELD name="INDUSTRY" label="Secteur d'activité" titlelabel="Secteur" />
<FIELD name="REVENUE" label="Chiffre d'affaire" titlelabel="C.A." />
<FIELD name="EMPLOYEES" label="Nombre de salariés" titlelabel="Salariés" />
<FIELD name="RATING" label="Évaluation" titlelabel="Évaluation" />
<FIELD name="SOURCE" label="Origine du contact" titlelabel="Origine" />
<FIELD name="STATUS" label="Status" titlelabel="Status" />
<FIELD name="ID_COMMERCIAL" label="Assigné à" titlelabel="Assigné à" />
</TABLE>
</ROOT>
/trunk/Modules/Module Lead/src/org/openconcerto/modules/customerrelationship/lead/SQLElementNames_en.xml
New file
0,0 → 1,3
<translations>
<element refid="customerrelationship.lead" name="lead" />
</translations>
/trunk/Modules/Module Lead/src/org/openconcerto/modules/customerrelationship/lead/LeadSQLElement.java
3,17 → 3,18
import java.util.ArrayList;
import java.util.List;
 
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
import org.openconcerto.erp.modules.AbstractModule;
import org.openconcerto.erp.modules.ModuleElement;
import org.openconcerto.sql.element.GlobalMapper;
import org.openconcerto.sql.element.SQLComponent;
import org.openconcerto.ui.group.Group;
import org.openconcerto.utils.CollectionMap;
 
public class LeadSQLElement extends ComptaSQLConfElement {
public class LeadSQLElement extends ModuleElement {
public static final String ELEMENT_CODE = "customerrelationship.lead";
 
public LeadSQLElement() {
super(Module.TABLE_LEAD, "un prospect", "prospects");
public LeadSQLElement(final AbstractModule module) {
super(module, Module.TABLE_LEAD);
}
 
@Override
58,7 → 59,10
if (group == null) {
throw new IllegalStateException("No group found for id " + groupId);
}
return new LeadSQLComponent(this, group);
return createComponent(group);
}
 
protected SQLComponent createComponent(final Group group) {
return new LeadSQLComponent(this, group);
}
}