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.supplychain.order.element;
|
14 |
package org.openconcerto.erp.core.supplychain.order.element;
|
15 |
|
15 |
|
16 |
import java.util.ArrayList;
|
- |
|
17 |
import java.util.HashSet;
|
- |
|
18 |
import java.util.List;
|
- |
|
19 |
import java.util.Set;
|
- |
|
20 |
|
- |
|
21 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
16 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
- |
|
17 |
import org.openconcerto.erp.core.edm.AttachmentAction;
|
22 |
import org.openconcerto.erp.core.supplychain.order.component.FactureFournisseurSQLComponent;
|
18 |
import org.openconcerto.erp.core.supplychain.order.component.FactureFournisseurSQLComponent;
|
23 |
import org.openconcerto.erp.generationDoc.gestcomm.FactureFournisseurXmlSheet;
|
19 |
import org.openconcerto.erp.generationDoc.gestcomm.FactureFournisseurXmlSheet;
|
24 |
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
|
20 |
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
|
25 |
import org.openconcerto.sql.element.SQLComponent;
|
21 |
import org.openconcerto.sql.element.SQLComponent;
|
- |
|
22 |
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
|
- |
|
23 |
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
|
26 |
import org.openconcerto.utils.ListMap;
|
24 |
import org.openconcerto.utils.ListMap;
|
27 |
|
25 |
|
- |
|
26 |
import java.util.ArrayList;
|
- |
|
27 |
import java.util.List;
|
- |
|
28 |
|
28 |
public class FactureFournisseurSQLElement extends ComptaSQLConfElement {
|
29 |
public class FactureFournisseurSQLElement extends ComptaSQLConfElement {
|
29 |
|
30 |
|
30 |
public FactureFournisseurSQLElement() {
|
31 |
public FactureFournisseurSQLElement() {
|
31 |
super("FACTURE_FOURNISSEUR", "une facture fournisseur", "factures fournisseur");
|
32 |
super("FACTURE_FOURNISSEUR", "une facture fournisseur", "factures fournisseur");
|
32 |
MouseSheetXmlListeListener mouseSheetXmlListeListener = new MouseSheetXmlListeListener(FactureFournisseurXmlSheet.class);
|
33 |
MouseSheetXmlListeListener mouseSheetXmlListeListener = new MouseSheetXmlListeListener(FactureFournisseurXmlSheet.class);
|
33 |
mouseSheetXmlListeListener.setGenerateHeader(true);
|
34 |
mouseSheetXmlListeListener.setGenerateHeader(true);
|
34 |
mouseSheetXmlListeListener.setShowHeader(true);
|
35 |
mouseSheetXmlListeListener.setShowHeader(true);
|
35 |
getRowActions().addAll(mouseSheetXmlListeListener.getRowActions());
|
36 |
getRowActions().addAll(mouseSheetXmlListeListener.getRowActions());
|
- |
|
37 |
if (getTable().contains("ATTACHMENTS")) {
|
- |
|
38 |
PredicateRowAction actionAttachment = new PredicateRowAction(new AttachmentAction().getAction(), true);
|
- |
|
39 |
actionAttachment.setPredicate(IListeEvent.getSingleSelectionPredicate());
|
- |
|
40 |
getRowActions().add(actionAttachment);
|
- |
|
41 |
}
|
36 |
}
|
42 |
}
|
37 |
|
43 |
|
38 |
protected List<String> getListFields() {
|
44 |
protected List<String> getListFields() {
|
39 |
final List<String> l = new ArrayList<String>();
|
45 |
final List<String> l = new ArrayList<String>();
|
40 |
l.add("NUMERO");
|
46 |
l.add("NUMERO");
|