Line 14... |
Line 14... |
14 |
package org.openconcerto.erp.core.supplychain.order.element;
|
14 |
package org.openconcerto.erp.core.supplychain.order.element;
|
15 |
|
15 |
|
16 |
import org.openconcerto.erp.config.Gestion;
|
16 |
import org.openconcerto.erp.config.Gestion;
|
17 |
import org.openconcerto.erp.core.common.component.TransfertBaseSQLComponent;
|
17 |
import org.openconcerto.erp.core.common.component.TransfertBaseSQLComponent;
|
18 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
18 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
- |
|
19 |
import org.openconcerto.erp.core.edm.AttachmentAction;
|
19 |
import org.openconcerto.erp.core.supplychain.order.component.CommandeSQLComponent;
|
20 |
import org.openconcerto.erp.core.supplychain.order.component.CommandeSQLComponent;
|
20 |
import org.openconcerto.erp.core.supplychain.order.component.SaisieAchatSQLComponent;
|
21 |
import org.openconcerto.erp.core.supplychain.order.component.SaisieAchatSQLComponent;
|
21 |
import org.openconcerto.erp.core.supplychain.receipt.component.BonReceptionSQLComponent;
|
22 |
import org.openconcerto.erp.core.supplychain.receipt.component.BonReceptionSQLComponent;
|
22 |
import org.openconcerto.erp.generationDoc.gestcomm.CommandeXmlSheet;
|
23 |
import org.openconcerto.erp.generationDoc.gestcomm.CommandeXmlSheet;
|
23 |
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
|
24 |
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
|
Line 60... |
Line 61... |
60 |
public class CommandeSQLElement extends ComptaSQLConfElement {
|
61 |
public class CommandeSQLElement extends ComptaSQLConfElement {
|
61 |
|
62 |
|
62 |
public CommandeSQLElement() {
|
63 |
public CommandeSQLElement() {
|
63 |
super("COMMANDE", "une commande fournisseur", "commandes fournisseur");
|
64 |
super("COMMANDE", "une commande fournisseur", "commandes fournisseur");
|
64 |
|
65 |
|
- |
|
66 |
if (getTable().contains("ATTACHMENTS")) {
|
- |
|
67 |
PredicateRowAction actionAttachment = new PredicateRowAction(new AttachmentAction().getAction(), true);
|
- |
|
68 |
actionAttachment.setPredicate(IListeEvent.getSingleSelectionPredicate());
|
- |
|
69 |
getRowActions().add(actionAttachment);
|
- |
|
70 |
}
|
- |
|
71 |
|
65 |
getRowActions().addAll(new MouseSheetXmlListeListener(CommandeXmlSheet.class).getRowActions());
|
72 |
getRowActions().addAll(new MouseSheetXmlListeListener(CommandeXmlSheet.class).getRowActions());
|
66 |
|
73 |
|
67 |
// Transfert vers BR
|
74 |
// Transfert vers BR
|
68 |
PredicateRowAction bonAction = new PredicateRowAction(new AbstractAction() {
|
75 |
PredicateRowAction bonAction = new PredicateRowAction(new AbstractAction() {
|
69 |
public void actionPerformed(ActionEvent e) {
|
76 |
public void actionPerformed(ActionEvent e) {
|