OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 152 Rev 181
Line 38... Line 38...
38
import org.openconcerto.sql.view.IListFrame;
38
import org.openconcerto.sql.view.IListFrame;
39
import org.openconcerto.sql.view.ListeAddPanel;
39
import org.openconcerto.sql.view.ListeAddPanel;
40
import org.openconcerto.sql.view.list.IListe;
40
import org.openconcerto.sql.view.list.IListe;
41
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
41
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
42
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
42
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
43
import org.openconcerto.utils.i18n.TranslationManager;
-
 
44
 
43
 
45
public final class Module extends AbstractModule {
44
public final class Module extends AbstractModule {
46
 
45
 
47
    public Module(ModuleFactory f) throws IOException {
46
    public Module(ModuleFactory f) throws IOException {
48
        super(f);
47
        super(f);
Line 108... Line 107...
108
    }
107
    }
109
 
108
 
110
    @Override
109
    @Override
111
    protected void setupElements(final SQLElementDirectory dir) {
110
    protected void setupElements(final SQLElementDirectory dir) {
112
        super.setupElements(dir);
111
        super.setupElements(dir);
113
        TranslationManager.getInstance().addTranslationStreamFromClass(this.getClass());
-
 
114
        dir.addSQLElement(SubscriptionSQLElement.class);
112
        dir.addSQLElement(SubscriptionSQLElement.class);
115
        NumerotationAutoSQLElement.addClass(SubscriptionSQLElement.class, "ABONNEMENT");
113
        NumerotationAutoSQLElement.addClass(SubscriptionSQLElement.class, "ABONNEMENT");
116
        ((SaisieVenteFactureSQLElement) dir.getElement("SAISIE_VENTE_FACTURE")).putSpecialAction("subscription.autocreate", new DoWithRow() {
114
        ((SaisieVenteFactureSQLElement) dir.getElement("SAISIE_VENTE_FACTURE")).putSpecialAction("subscription.autocreate", new DoWithRow() {
117
            @Override
115
            @Override
118
            public void process(SQLRow row) {
116
            public void process(SQLRow row) {