OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 73 Rev 156
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.core.sales.quote.action;
14
 package org.openconcerto.erp.core.sales.quote.action;
15
 
15
 
16
import org.openconcerto.erp.action.CreateFrameAbstractAction;
16
import org.openconcerto.erp.action.CreateEditFrameAbstractAction;
17
import org.openconcerto.sql.Configuration;
-
 
18
import org.openconcerto.sql.element.SQLElement;
17
import org.openconcerto.erp.core.sales.quote.element.DevisSQLElement;
19
import org.openconcerto.sql.view.EditFrame;
18
import org.openconcerto.sql.PropsConfiguration;
20
import org.openconcerto.utils.StringUtils;
-
 
21
 
19
 
22
import javax.swing.Action;
20
public class NouveauDevisAction extends CreateEditFrameAbstractAction<DevisSQLElement> {
23
import javax.swing.JFrame;
-
 
24
 
21
 
25
public class NouveauDevisAction extends CreateFrameAbstractAction {
-
 
26
 
-
 
27
    final SQLElement element = Configuration.getInstance().getDirectory().getElement("DEVIS");
-
 
28
 
-
 
29
    public NouveauDevisAction() {
22
    public NouveauDevisAction(final PropsConfiguration conf) {
30
        super();
-
 
31
 
-
 
32
        final String pluralName = this.element.getPluralName();
-
 
33
        this.putValue(Action.NAME, StringUtils.firstUpThenLow(pluralName));
-
 
34
    }
-
 
35
 
-
 
36
    @Override
-
 
37
    public JFrame createFrame() {
-
 
38
        return new EditFrame(this.element);
23
        super(conf, DevisSQLElement.class);
39
    }
24
    }
40
 
25
 
41
}
26
}