1 |
/*
|
1 |
/*
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
3 |
*
|
3 |
*
|
4 |
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
|
4 |
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
|
5 |
*
|
5 |
*
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
9 |
* language governing permissions and limitations under the License.
|
9 |
* language governing permissions and limitations under the License.
|
10 |
*
|
10 |
*
|
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.config;
|
14 |
package org.openconcerto.erp.config;
|
15 |
|
15 |
|
16 |
import org.openconcerto.erp.action.AboutAction;
|
16 |
import org.openconcerto.erp.action.AboutAction;
|
17 |
import org.openconcerto.erp.action.AstuceAction;
|
17 |
import org.openconcerto.erp.action.AstuceAction;
|
18 |
import org.openconcerto.erp.action.GestionDroitsAction;
|
18 |
import org.openconcerto.erp.action.GestionDroitsAction;
|
19 |
import org.openconcerto.erp.action.ListeBanqueAction;
|
19 |
import org.openconcerto.erp.action.ListeBanqueAction;
|
20 |
import org.openconcerto.erp.action.NouvelleSocieteAction;
|
20 |
import org.openconcerto.erp.action.NouvelleSocieteAction;
|
21 |
import org.openconcerto.erp.action.PreferencesAction;
|
21 |
import org.openconcerto.erp.action.PreferencesAction;
|
22 |
import org.openconcerto.erp.action.SauvegardeBaseAction;
|
22 |
import org.openconcerto.erp.action.SauvegardeBaseAction;
|
23 |
import org.openconcerto.erp.action.TaskAdminAction;
|
23 |
import org.openconcerto.erp.action.TaskAdminAction;
|
24 |
import org.openconcerto.erp.action.list.ListeDesSocietesCommonsAction;
|
24 |
import org.openconcerto.erp.action.list.ListeDesSocietesCommonsAction;
|
25 |
import org.openconcerto.erp.action.list.ListeDesUsersCommonAction;
|
25 |
import org.openconcerto.erp.action.list.ListeDesUsersCommonAction;
|
26 |
import org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesClientsAction;
|
26 |
import org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesClientsAction;
|
27 |
import org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesContactsAction;
|
27 |
import org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesContactsAction;
|
28 |
import org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesDepartementsClientsAction;
|
28 |
import org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesDepartementsClientsAction;
|
29 |
import org.openconcerto.erp.core.customerrelationship.customer.action.NouvelHistoriqueListeClientAction;
|
29 |
import org.openconcerto.erp.core.customerrelationship.customer.action.NouvelHistoriqueListeClientAction;
|
30 |
import org.openconcerto.erp.core.customerrelationship.mail.action.ListeDesCourriersClientsAction;
|
30 |
import org.openconcerto.erp.core.customerrelationship.mail.action.ListeDesCourriersClientsAction;
|
31 |
import org.openconcerto.erp.core.finance.accounting.action.BalanceAgeeAction;
|
31 |
import org.openconcerto.erp.core.finance.accounting.action.BalanceAgeeAction;
|
32 |
import org.openconcerto.erp.core.finance.accounting.action.CompteResultatBilanAction;
|
32 |
import org.openconcerto.erp.core.finance.accounting.action.CompteResultatBilanAction;
|
33 |
import org.openconcerto.erp.core.finance.accounting.action.EtatBalanceAction;
|
33 |
import org.openconcerto.erp.core.finance.accounting.action.EtatBalanceAction;
|
34 |
import org.openconcerto.erp.core.finance.accounting.action.EtatChargeAction;
|
34 |
import org.openconcerto.erp.core.finance.accounting.action.EtatChargeAction;
|
35 |
import org.openconcerto.erp.core.finance.accounting.action.EtatGrandLivreAction;
|
35 |
import org.openconcerto.erp.core.finance.accounting.action.EtatGrandLivreAction;
|
36 |
import org.openconcerto.erp.core.finance.accounting.action.EtatJournauxAction;
|
36 |
import org.openconcerto.erp.core.finance.accounting.action.EtatJournauxAction;
|
37 |
import org.openconcerto.erp.core.finance.accounting.action.ExportRelationExpertAction;
|
37 |
import org.openconcerto.erp.core.finance.accounting.action.ExportRelationExpertAction;
|
38 |
import org.openconcerto.erp.core.finance.accounting.action.GenerePointageAction;
|
38 |
import org.openconcerto.erp.core.finance.accounting.action.GenerePointageAction;
|
39 |
import org.openconcerto.erp.core.finance.accounting.action.GestionPlanComptableEAction;
|
39 |
import org.openconcerto.erp.core.finance.accounting.action.GestionPlanComptableEAction;
|
40 |
import org.openconcerto.erp.core.finance.accounting.action.ImportEcritureAction;
|
40 |
import org.openconcerto.erp.core.finance.accounting.action.ImportEcritureAction;
|
41 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionJournauxAnalytiqueAction;
|
41 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionJournauxAnalytiqueAction;
|
42 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionLivrePayeAction;
|
42 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionLivrePayeAction;
|
43 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionRepartitionAnalytiqueAction;
|
43 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionRepartitionAnalytiqueAction;
|
- |
|
44 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesCategorieComptableAction;
|
44 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesComptesAction;
|
45 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesComptesAction;
|
45 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesDevisesAction;
|
46 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesDevisesAction;
|
46 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesEcrituresAction;
|
47 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesEcrituresAction;
|
47 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesEcrituresAnalytiquesAction;
|
48 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesEcrituresAnalytiquesAction;
|
48 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesJournauxAction;
|
49 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesJournauxAction;
|
49 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesPostesAnalytiquesAction;
|
50 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesPostesAnalytiquesAction;
|
50 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesTauxDeChangeAction;
|
51 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesTauxDeChangeAction;
|
51 |
import org.openconcerto.erp.core.finance.accounting.action.ListeEcritureParClasseAction;
|
52 |
import org.openconcerto.erp.core.finance.accounting.action.ListeEcritureParClasseAction;
|
52 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauClotureAction;
|
53 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauClotureAction;
|
- |
|
54 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauClotureSansAnouveauxAction;
|
53 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauLettrageAction;
|
55 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauLettrageAction;
|
54 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauPointageAction;
|
56 |
import org.openconcerto.erp.core.finance.accounting.action.NouveauPointageAction;
|
55 |
import org.openconcerto.erp.core.finance.accounting.action.NouvelleValidationAction;
|
57 |
import org.openconcerto.erp.core.finance.accounting.action.NouvelleValidationAction;
|
56 |
import org.openconcerto.erp.core.finance.accounting.action.ResultatAnalytiqueAction;
|
58 |
import org.openconcerto.erp.core.finance.accounting.action.ResultatAnalytiqueAction;
|
57 |
import org.openconcerto.erp.core.finance.accounting.ui.SaisieJournalAction;
|
59 |
import org.openconcerto.erp.core.finance.accounting.ui.SaisieJournalAction;
|
58 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesChequesAEncaisserAction;
|
60 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesChequesAEncaisserAction;
|
59 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesChequesAvoirAction;
|
61 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesChequesAvoirAction;
|
60 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesChequesFournisseursAction;
|
62 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesChequesFournisseursAction;
|
- |
|
63 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesDepostChequesAction;
|
61 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesEncaissementsAction;
|
64 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesEncaissementsAction;
|
62 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesReferencesAction;
|
65 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesReferencesAction;
|
63 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesRelancesAction;
|
66 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesRelancesAction;
|
64 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesTraitesFournisseursAction;
|
67 |
import org.openconcerto.erp.core.finance.payment.action.ListeDesTraitesFournisseursAction;
|
65 |
import org.openconcerto.erp.core.finance.payment.action.NouveauDecaissementChequeAvoirAction;
|
68 |
import org.openconcerto.erp.core.finance.payment.action.NouveauDecaissementChequeAvoirAction;
|
66 |
import org.openconcerto.erp.core.finance.payment.action.NouveauListeDesChequesADecaisserAction;
|
69 |
import org.openconcerto.erp.core.finance.payment.action.NouveauListeDesChequesADecaisserAction;
|
67 |
import org.openconcerto.erp.core.finance.payment.action.NouveauListeDesChequesAEncaisserAction;
|
70 |
import org.openconcerto.erp.core.finance.payment.action.NouveauListeDesChequesAEncaisserAction;
|
68 |
import org.openconcerto.erp.core.finance.tax.action.ReportingEcoContributionPanel;
|
71 |
import org.openconcerto.erp.core.finance.tax.action.ReportingEcoContributionPanel;
|
69 |
import org.openconcerto.erp.core.finance.tax.action.ReportingTaxeComplementairePanel;
|
72 |
import org.openconcerto.erp.core.finance.tax.action.ReportingTaxeComplementairePanel;
|
70 |
import org.openconcerto.erp.core.humanresources.ListeDesContactsAdministratif;
|
73 |
import org.openconcerto.erp.core.humanresources.ListeDesContactsAdministratif;
|
71 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesAyantsDroitsAction;
|
74 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesAyantsDroitsAction;
|
72 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesCaissesCotisationsAction;
|
75 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesCaissesCotisationsAction;
|
73 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesCommerciauxAction;
|
76 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesCommerciauxAction;
|
74 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesContratsPrevoyanceAction;
|
77 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesContratsPrevoyanceAction;
|
75 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesSalariesAction;
|
78 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesSalariesAction;
|
76 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesSecretairesAction;
|
79 |
import org.openconcerto.erp.core.humanresources.employe.action.ListeDesSecretairesAction;
|
77 |
import org.openconcerto.erp.core.humanresources.employe.action.N4DSAction;
|
80 |
import org.openconcerto.erp.core.humanresources.employe.action.N4DSAction;
|
78 |
import org.openconcerto.erp.core.humanresources.payroll.action.ClotureMensuellePayeAction;
|
81 |
import org.openconcerto.erp.core.humanresources.payroll.action.ClotureMensuellePayeAction;
|
79 |
import org.openconcerto.erp.core.humanresources.payroll.action.EditionFichePayeAction;
|
82 |
import org.openconcerto.erp.core.humanresources.payroll.action.EditionFichePayeAction;
|
80 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesInfosSalariePayeAction;
|
83 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesInfosSalariePayeAction;
|
81 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesProfilsPayeAction;
|
84 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesProfilsPayeAction;
|
82 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesRubriquesDePayeAction;
|
85 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesRubriquesDePayeAction;
|
83 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesVariablesPayes;
|
86 |
import org.openconcerto.erp.core.humanresources.payroll.action.ListeDesVariablesPayes;
|
84 |
import org.openconcerto.erp.core.humanresources.payroll.action.NouvelAcompteAction;
|
87 |
import org.openconcerto.erp.core.humanresources.payroll.action.NouvelAcompteAction;
|
85 |
import org.openconcerto.erp.core.humanresources.payroll.action.NouvelHistoriqueFichePayeAction;
|
88 |
import org.openconcerto.erp.core.humanresources.payroll.action.NouvelHistoriqueFichePayeAction;
|
86 |
import org.openconcerto.erp.core.humanresources.payroll.action.NouvelleSaisieKmAction;
|
89 |
import org.openconcerto.erp.core.humanresources.payroll.action.NouvelleSaisieKmAction;
|
87 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCAAction;
|
90 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCAAction;
|
88 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCACumulAction;
|
91 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCACumulAction;
|
89 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCmdAction;
|
92 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCmdAction;
|
90 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCmdCumulAction;
|
93 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionCmdCumulAction;
|
91 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionMargeAction;
|
94 |
import org.openconcerto.erp.core.reports.stat.action.EvolutionMargeAction;
|
92 |
import org.openconcerto.erp.core.reports.stat.action.VenteArticleFamilleGraphAction;
|
95 |
import org.openconcerto.erp.core.reports.stat.action.VenteArticleFamilleGraphAction;
|
93 |
import org.openconcerto.erp.core.reports.stat.action.VenteArticleGraphAction;
|
96 |
import org.openconcerto.erp.core.reports.stat.action.VenteArticleGraphAction;
|
94 |
import org.openconcerto.erp.core.reports.stat.action.VenteArticleMargeGraphAction;
|
97 |
import org.openconcerto.erp.core.reports.stat.action.VenteArticleMargeGraphAction;
|
95 |
import org.openconcerto.erp.core.sales.credit.action.ListeDesAvoirsClientsAction;
|
98 |
import org.openconcerto.erp.core.sales.credit.action.ListeDesAvoirsClientsAction;
|
96 |
import org.openconcerto.erp.core.sales.credit.action.NouveauAvoirClientAction;
|
99 |
import org.openconcerto.erp.core.sales.credit.action.NouveauAvoirClientAction;
|
97 |
import org.openconcerto.erp.core.sales.invoice.action.EtatVenteAction;
|
100 |
import org.openconcerto.erp.core.sales.invoice.action.EtatVenteAction;
|
98 |
import org.openconcerto.erp.core.sales.invoice.action.GenEtatStockAction;
|
101 |
import org.openconcerto.erp.core.sales.invoice.action.GenEtatStockAction;
|
99 |
import org.openconcerto.erp.core.sales.invoice.action.GenListeVenteAction;
|
102 |
import org.openconcerto.erp.core.sales.invoice.action.GenListeVenteAction;
|
100 |
import org.openconcerto.erp.core.sales.invoice.action.GenReportingVenteAction;
|
103 |
import org.openconcerto.erp.core.sales.invoice.action.GenReportingVenteAction;
|
101 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDebiteursAction;
|
104 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDebiteursAction;
|
102 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesElementsFactureAction;
|
105 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesElementsFactureAction;
|
103 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesFactureItemsAction;
|
106 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesFactureItemsAction;
|
104 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesVentesAction;
|
107 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesVentesAction;
|
105 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSDDMessageAction;
|
108 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSDDMessageAction;
|
106 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSaisieVenteFactureAction;
|
109 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSaisieVenteFactureAction;
|
107 |
import org.openconcerto.erp.core.sales.invoice.action.ListesFacturesClientsImpayeesAction;
|
110 |
import org.openconcerto.erp.core.sales.invoice.action.ListesFacturesClientsImpayeesAction;
|
108 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteComptoirAction;
|
111 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteComptoirAction;
|
109 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteFactureAction;
|
112 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteFactureAction;
|
- |
|
113 |
import org.openconcerto.erp.core.sales.invoice.report.ReportingClientPanel;
|
110 |
import org.openconcerto.erp.core.sales.order.action.ListeDesCommandesClientAction;
|
114 |
import org.openconcerto.erp.core.sales.order.action.ListeDesCommandesClientAction;
|
111 |
import org.openconcerto.erp.core.sales.order.action.ListeDesCommandesClientItemsAction;
|
115 |
import org.openconcerto.erp.core.sales.order.action.ListeDesCommandesClientItemsAction;
|
112 |
import org.openconcerto.erp.core.sales.order.action.ListeDesElementsACommanderClientAction;
|
116 |
import org.openconcerto.erp.core.sales.order.action.ListeDesElementsACommanderClientAction;
|
113 |
import org.openconcerto.erp.core.sales.order.action.ListeDesFacturationCommandesClientAction;
|
117 |
import org.openconcerto.erp.core.sales.order.action.ListeDesFacturationCommandesClientAction;
|
114 |
import org.openconcerto.erp.core.sales.order.action.NouvelleCommandeClientAction;
|
118 |
import org.openconcerto.erp.core.sales.order.action.NouvelleCommandeClientAction;
|
115 |
import org.openconcerto.erp.core.sales.pos.action.ListeDesCaissesTicketAction;
|
119 |
import org.openconcerto.erp.core.sales.pos.action.ListeDesCaissesTicketAction;
|
116 |
import org.openconcerto.erp.core.sales.product.action.FamilleArticleAction;
|
120 |
import org.openconcerto.erp.core.sales.product.action.FamilleArticleAction;
|
117 |
import org.openconcerto.erp.core.sales.product.action.ListeDesArticlesAction;
|
121 |
import org.openconcerto.erp.core.sales.product.action.ListeDesArticlesAction;
|
118 |
import org.openconcerto.erp.core.sales.product.action.ListeEcoContributionAction;
|
122 |
import org.openconcerto.erp.core.sales.product.action.ListeEcoContributionAction;
|
119 |
import org.openconcerto.erp.core.sales.product.action.ListeHistoCodeClientArticleAction;
|
123 |
import org.openconcerto.erp.core.sales.product.action.ListeHistoCodeClientArticleAction;
|
120 |
import org.openconcerto.erp.core.sales.quote.action.ListeDesDevisAction;
|
124 |
import org.openconcerto.erp.core.sales.quote.action.ListeDesDevisAction;
|
- |
|
125 |
import org.openconcerto.erp.core.sales.quote.action.ListeDesDevisActionTCP;
|
121 |
import org.openconcerto.erp.core.sales.quote.action.ListeDesElementsDevisAction;
|
126 |
import org.openconcerto.erp.core.sales.quote.action.ListeDesElementsDevisAction;
|
122 |
import org.openconcerto.erp.core.sales.quote.action.ListeDesElementsPropositionsAction;
|
- |
|
123 |
import org.openconcerto.erp.core.sales.quote.action.NouveauDevisAction;
|
127 |
import org.openconcerto.erp.core.sales.quote.action.NouveauDevisAction;
|
124 |
import org.openconcerto.erp.core.sales.quote.action.NouvellePropositionAction;
|
- |
|
125 |
import org.openconcerto.erp.core.sales.shipment.action.ListeDesBonsDeLivraisonAction;
|
128 |
import org.openconcerto.erp.core.sales.shipment.action.ListeDesBonsDeLivraisonAction;
|
126 |
import org.openconcerto.erp.core.sales.shipment.action.ListeDesReliquatsBonsLivraisonsAction;
|
129 |
import org.openconcerto.erp.core.sales.shipment.action.ListeDesReliquatsBonsLivraisonsAction;
|
127 |
import org.openconcerto.erp.core.sales.shipment.action.NouveauBonLivraisonAction;
|
130 |
import org.openconcerto.erp.core.sales.shipment.action.NouveauBonLivraisonAction;
|
128 |
import org.openconcerto.erp.core.supplychain.credit.action.ListeDesAvoirsFournisseurAction;
|
131 |
import org.openconcerto.erp.core.supplychain.credit.action.ListeDesAvoirsFournisseurAction;
|
129 |
import org.openconcerto.erp.core.supplychain.credit.action.NouvelAvoirFournisseurAction;
|
132 |
import org.openconcerto.erp.core.supplychain.credit.action.NouvelAvoirFournisseurAction;
|
130 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesCommandesAction;
|
133 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesCommandesAction;
|
131 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesDemandesAchatsAction;
|
134 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesDemandesAchatsAction;
|
132 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesDemandesPrixAction;
|
135 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesDemandesPrixAction;
|
133 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesElementsACommanderAction;
|
136 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesElementsACommanderAction;
|
134 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesFacturesFournisseurAction;
|
137 |
import org.openconcerto.erp.core.supplychain.order.action.ListeDesFacturesFournisseurAction;
|
135 |
import org.openconcerto.erp.core.supplychain.order.action.ListeSaisieAchatAction;
|
138 |
import org.openconcerto.erp.core.supplychain.order.action.ListeSaisieAchatAction;
|
136 |
import org.openconcerto.erp.core.supplychain.order.action.NouveauSaisieAchatAction;
|
139 |
import org.openconcerto.erp.core.supplychain.order.action.NouveauSaisieAchatAction;
|
137 |
import org.openconcerto.erp.core.supplychain.order.action.NouvelleCommandeAction;
|
140 |
import org.openconcerto.erp.core.supplychain.order.action.NouvelleCommandeAction;
|
- |
|
141 |
import org.openconcerto.erp.core.supplychain.order.action.NouvelleDemandePrixAction;
|
138 |
import org.openconcerto.erp.core.supplychain.order.action.NouvelleFactureFournisseurAction;
|
142 |
import org.openconcerto.erp.core.supplychain.order.action.NouvelleFactureFournisseurAction;
|
139 |
import org.openconcerto.erp.core.supplychain.product.action.ListeDesArticlesFournisseurAction;
|
143 |
import org.openconcerto.erp.core.supplychain.product.action.ListeDesArticlesFournisseurAction;
|
140 |
import org.openconcerto.erp.core.supplychain.receipt.action.ListeDesBonsReceptionsAction;
|
144 |
import org.openconcerto.erp.core.supplychain.receipt.action.ListeDesBonsReceptionsAction;
|
141 |
import org.openconcerto.erp.core.supplychain.receipt.action.ListeDesReliquatsBonsReceptionsAction;
|
145 |
import org.openconcerto.erp.core.supplychain.receipt.action.ListeDesReliquatsBonsReceptionsAction;
|
142 |
import org.openconcerto.erp.core.supplychain.receipt.action.NouveauBonReceptionAction;
|
146 |
import org.openconcerto.erp.core.supplychain.receipt.action.NouveauBonReceptionAction;
|
- |
|
147 |
import org.openconcerto.erp.core.supplychain.stock.action.ListeDesDepotsStocksAction;
|
- |
|
148 |
import org.openconcerto.erp.core.supplychain.stock.action.ListeDesEtatsStocksAction;
|
143 |
import org.openconcerto.erp.core.supplychain.stock.action.ListeDesMouvementsStockAction;
|
149 |
import org.openconcerto.erp.core.supplychain.stock.action.ListeDesMouvementsStockAction;
|
- |
|
150 |
import org.openconcerto.erp.core.supplychain.stock.action.ListeDesStocksAction;
|
144 |
import org.openconcerto.erp.core.supplychain.stock.action.NouvelleSaisieMouvementStockAction;
|
151 |
import org.openconcerto.erp.core.supplychain.stock.action.NouvelleSaisieMouvementStockAction;
|
145 |
import org.openconcerto.erp.core.supplychain.supplier.action.ListeDesContactsFournisseursAction;
|
152 |
import org.openconcerto.erp.core.supplychain.supplier.action.ListeDesContactsFournisseursAction;
|
146 |
import org.openconcerto.erp.core.supplychain.supplier.action.ListeDesFournisseursAction;
|
153 |
import org.openconcerto.erp.core.supplychain.supplier.action.ListeDesFournisseursAction;
|
147 |
import org.openconcerto.erp.core.supplychain.supplier.action.ListesFacturesFournImpayeesAction;
|
154 |
import org.openconcerto.erp.core.supplychain.supplier.action.ListesFacturesFournImpayeesAction;
|
148 |
import org.openconcerto.erp.core.supplychain.supplier.action.NouvelHistoriqueListeFournAction;
|
155 |
import org.openconcerto.erp.core.supplychain.supplier.action.NouvelHistoriqueListeFournAction;
|
149 |
import org.openconcerto.erp.modules.ModuleFrame;
|
156 |
import org.openconcerto.erp.modules.ModuleFrame;
|
150 |
import org.openconcerto.erp.preferences.DefaultNXProps;
|
157 |
import org.openconcerto.erp.preferences.DefaultNXProps;
|
- |
|
158 |
import org.openconcerto.erp.preferences.GestionArticleGlobalPreferencePanel;
|
151 |
import org.openconcerto.erp.preferences.GestionClientPreferencePanel;
|
159 |
import org.openconcerto.erp.preferences.GestionClientPreferencePanel;
|
152 |
import org.openconcerto.erp.rights.ComptaUserRight;
|
160 |
import org.openconcerto.erp.rights.ComptaUserRight;
|
153 |
import org.openconcerto.erp.rights.NXRights;
|
161 |
import org.openconcerto.erp.rights.NXRights;
|
154 |
import org.openconcerto.erp.utils.correct.CorrectMouvement;
|
162 |
import org.openconcerto.erp.utils.correct.CorrectMouvement;
|
155 |
import org.openconcerto.sql.model.DBRoot;
|
163 |
import org.openconcerto.sql.model.DBRoot;
|
156 |
import org.openconcerto.sql.model.SQLSelect;
|
164 |
import org.openconcerto.sql.model.SQLSelect;
|
157 |
import org.openconcerto.sql.preferences.SQLPreferences;
|
165 |
import org.openconcerto.sql.preferences.SQLPreferences;
|
158 |
import org.openconcerto.sql.users.rights.LockAdminUserRight;
|
166 |
import org.openconcerto.sql.users.rights.LockAdminUserRight;
|
159 |
import org.openconcerto.sql.users.rights.UserRights;
|
167 |
import org.openconcerto.sql.users.rights.UserRights;
|
160 |
import org.openconcerto.sql.users.rights.UserRightsManager;
|
168 |
import org.openconcerto.sql.users.rights.UserRightsManager;
|
161 |
import org.openconcerto.sql.utils.BackupPanel;
|
169 |
import org.openconcerto.sql.utils.BackupPanel;
|
162 |
import org.openconcerto.ui.FrameUtil;
|
170 |
import org.openconcerto.ui.FrameUtil;
|
163 |
import org.openconcerto.ui.PanelFrame;
|
171 |
import org.openconcerto.ui.PanelFrame;
|
164 |
import org.openconcerto.ui.group.Group;
|
172 |
import org.openconcerto.ui.group.Group;
|
165 |
import org.openconcerto.ui.group.LayoutHints;
|
173 |
import org.openconcerto.ui.group.LayoutHints;
|
166 |
|
174 |
|
167 |
import java.awt.Component;
|
175 |
import java.awt.Component;
|
168 |
import java.awt.event.ActionEvent;
|
176 |
import java.awt.event.ActionEvent;
|
169 |
import java.util.List;
|
177 |
import java.util.List;
|
170 |
|
178 |
|
171 |
import javax.swing.AbstractAction;
|
179 |
import javax.swing.AbstractAction;
|
172 |
import javax.swing.JOptionPane;
|
180 |
import javax.swing.JOptionPane;
|
173 |
|
181 |
|
174 |
public class DefaultMenuConfiguration implements MenuConfiguration {
|
182 |
public class DefaultMenuConfiguration implements MenuConfiguration {
|
175 |
private ComptaPropsConfiguration configuration;
|
183 |
private ComptaPropsConfiguration configuration;
|
176 |
|
184 |
|
177 |
public DefaultMenuConfiguration(ComptaPropsConfiguration configuration) {
|
185 |
public DefaultMenuConfiguration(ComptaPropsConfiguration configuration) {
|
178 |
this.configuration = configuration;
|
186 |
this.configuration = configuration;
|
179 |
}
|
187 |
}
|
180 |
|
188 |
|
181 |
public ComptaPropsConfiguration getConfiguration() {
|
189 |
public ComptaPropsConfiguration getConfiguration() {
|
182 |
return configuration;
|
190 |
return configuration;
|
183 |
}
|
191 |
}
|
184 |
|
192 |
|
185 |
public void registerMenuTranslations() {
|
193 |
public void registerMenuTranslations() {
|
186 |
|
194 |
|
187 |
}
|
195 |
}
|
188 |
|
196 |
|
189 |
@Override
|
197 |
@Override
|
190 |
public MenuAndActions createMenuAndActions() {
|
198 |
public MenuAndActions createMenuAndActions() {
|
191 |
final MenuAndActions res = new MenuAndActions();
|
199 |
final MenuAndActions res = new MenuAndActions();
|
192 |
this.createMenuGroup(res.getGroup());
|
200 |
this.createMenuGroup(res.getGroup());
|
193 |
this.registerMenuActions(res);
|
201 |
this.registerMenuActions(res);
|
194 |
return res;
|
202 |
return res;
|
195 |
}
|
203 |
}
|
196 |
|
204 |
|
197 |
public void createMenuGroup(Group mGroup) {
|
205 |
public void createMenuGroup(Group mGroup) {
|
198 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
206 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
199 |
|
207 |
|
200 |
mGroup.add(createFilesMenuGroup());
|
208 |
mGroup.add(createFilesMenuGroup());
|
201 |
mGroup.add(createCreationMenuGroup());
|
209 |
mGroup.add(createCreationMenuGroup());
|
202 |
mGroup.add(createListMenuGroup());
|
210 |
mGroup.add(createListMenuGroup());
|
203 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
211 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
204 |
mGroup.add(createAccountingMenuGroup());
|
212 |
mGroup.add(createAccountingMenuGroup());
|
205 |
mGroup.add(createStatsDocumentsGroup());
|
213 |
mGroup.add(createStatsDocumentsGroup());
|
206 |
}
|
214 |
}
|
207 |
if (rights.haveRight(NXRights.ACCES_MENU_STAT.getCode())) {
|
215 |
if (rights.haveRight(NXRights.ACCES_MENU_STAT.getCode())) {
|
208 |
mGroup.add(createStatsMenuGroup());
|
216 |
mGroup.add(createStatsMenuGroup());
|
209 |
}
|
217 |
}
|
210 |
mGroup.add(createPaymentMenuGroup());
|
218 |
mGroup.add(createPaymentMenuGroup());
|
211 |
if (rights.haveRight(NXRights.LOCK_MENU_PAYE.getCode())) {
|
219 |
if (rights.haveRight(NXRights.LOCK_MENU_PAYE.getCode())) {
|
212 |
mGroup.add(createPayrollMenuGroup());
|
220 |
mGroup.add(createPayrollMenuGroup());
|
213 |
}
|
221 |
}
|
214 |
if (rights.haveRight(NXRights.ACCES_MENU_STRUCTURE.getCode())) {
|
222 |
if (rights.haveRight(NXRights.ACCES_MENU_STRUCTURE.getCode())) {
|
215 |
mGroup.add(createOrganizationMenuGroup());
|
223 |
mGroup.add(createOrganizationMenuGroup());
|
216 |
}
|
224 |
}
|
217 |
mGroup.add(createHelpMenuGroup());
|
225 |
mGroup.add(createHelpMenuGroup());
|
218 |
if (rights.haveRight(NXRights.LOCK_MENU_TEST.getCode())) {
|
226 |
if (rights.haveRight(NXRights.LOCK_MENU_TEST.getCode())) {
|
219 |
mGroup.add(createTestMenuGroup());
|
227 |
mGroup.add(createTestMenuGroup());
|
220 |
}
|
228 |
}
|
221 |
|
229 |
|
222 |
}
|
230 |
}
|
223 |
|
231 |
|
224 |
public void registerMenuActions(final MenuAndActions ma) {
|
232 |
public void registerMenuActions(final MenuAndActions ma) {
|
225 |
registerFilesMenuActions(ma);
|
233 |
registerFilesMenuActions(ma);
|
226 |
registerCreationMenuActions(ma);
|
234 |
registerCreationMenuActions(ma);
|
227 |
registerListMenuActions(ma);
|
235 |
registerListMenuActions(ma);
|
228 |
registerAccountingMenuActions(ma);
|
236 |
registerAccountingMenuActions(ma);
|
229 |
registerStatsDocumentsActions(ma);
|
237 |
registerStatsDocumentsActions(ma);
|
230 |
registerStatsMenuActions(ma);
|
238 |
registerStatsMenuActions(ma);
|
231 |
registerPaymentMenuActions(ma);
|
239 |
registerPaymentMenuActions(ma);
|
232 |
registerPayrollMenuActions(ma);
|
240 |
registerPayrollMenuActions(ma);
|
233 |
registerOrganizationMenuActions(ma);
|
241 |
registerOrganizationMenuActions(ma);
|
234 |
registerHelpMenuActions(ma);
|
242 |
registerHelpMenuActions(ma);
|
235 |
registerHelpTestActions(ma);
|
243 |
registerHelpTestActions(ma);
|
236 |
}
|
244 |
}
|
237 |
|
245 |
|
238 |
/**
|
246 |
/**
|
239 |
* Groups
|
247 |
* Groups
|
240 |
*/
|
248 |
*/
|
241 |
public Group createFilesMenuGroup() {
|
249 |
public Group createFilesMenuGroup() {
|
242 |
Group group = new Group(MainFrame.FILE_MENU);
|
250 |
Group group = new Group(MainFrame.FILE_MENU);
|
243 |
if (UserRightsManager.getCurrentUserRights().haveRight(BackupPanel.RIGHT_CODE))
|
251 |
if (UserRightsManager.getCurrentUserRights().haveRight(BackupPanel.RIGHT_CODE))
|
244 |
group.addItem("backup");
|
252 |
group.addItem("backup");
|
245 |
group.addItem("modules");
|
253 |
group.addItem("modules");
|
246 |
if (!Gestion.MAC_OS_X) {
|
254 |
if (!Gestion.MAC_OS_X) {
|
247 |
group.addItem("preferences");
|
255 |
group.addItem("preferences");
|
248 |
group.addItem("quit");
|
256 |
group.addItem("quit");
|
249 |
}
|
257 |
}
|
250 |
return group;
|
258 |
return group;
|
251 |
}
|
259 |
}
|
252 |
|
260 |
|
253 |
public Group createCreationMenuGroup() {
|
261 |
public Group createCreationMenuGroup() {
|
254 |
final Group group = new Group(MainFrame.CREATE_MENU);
|
262 |
final Group group = new Group(MainFrame.CREATE_MENU);
|
255 |
|
263 |
|
256 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
264 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
257 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
265 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
258 |
final Group accountingGroup = new Group("accounting");
|
266 |
final Group accountingGroup = new Group("accounting");
|
259 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
267 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
260 |
accountingGroup.addItem("accounting.entry.create");
|
268 |
accountingGroup.addItem("accounting.entry.create");
|
261 |
accountingGroup.addItem("accounting.entry.ledger.create");
|
269 |
accountingGroup.addItem("accounting.entry.ledger.create");
|
262 |
}
|
270 |
}
|
263 |
group.add(accountingGroup);
|
271 |
group.add(accountingGroup);
|
264 |
|
272 |
|
265 |
final Group customerGroup = new Group("customer", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
273 |
final Group customerGroup = new Group("customer", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
266 |
|
274 |
|
267 |
customerGroup.addItem("customer.quote.create");
|
275 |
customerGroup.addItem("customer.quote.create");
|
268 |
|
276 |
|
269 |
customerGroup.addItem("customer.delivery.create");
|
277 |
customerGroup.addItem("customer.delivery.create");
|
270 |
customerGroup.addItem("customer.order.create");
|
278 |
customerGroup.addItem("customer.order.create");
|
271 |
if (bModeVenteComptoir && rights.haveRight("VENTE_COMPTOIR")) {
|
279 |
if (bModeVenteComptoir && rights.haveRight("VENTE_COMPTOIR")) {
|
272 |
customerGroup.addItem("pos.sale.create");
|
280 |
customerGroup.addItem("pos.sale.create");
|
273 |
}
|
281 |
}
|
274 |
customerGroup.addItem("customer.invoice.create");
|
282 |
customerGroup.addItem("customer.invoice.create");
|
275 |
|
283 |
|
276 |
customerGroup.addItem("customer.credit.create");
|
284 |
customerGroup.addItem("customer.credit.create");
|
277 |
group.add(customerGroup);
|
285 |
group.add(customerGroup);
|
278 |
|
286 |
|
279 |
final Group supplierGroup = new Group("supplier", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
287 |
final Group supplierGroup = new Group("supplier", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
280 |
group.add(supplierGroup);
|
288 |
group.add(supplierGroup);
|
281 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
289 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
282 |
supplierGroup.addItem("supplier.order.create");
|
290 |
supplierGroup.addItem("supplier.order.create");
|
283 |
supplierGroup.addItem("supplier.receipt.create");
|
291 |
supplierGroup.addItem("supplier.receipt.create");
|
284 |
supplierGroup.addItem("supplier.purchase.create");
|
292 |
supplierGroup.addItem("supplier.purchase.create");
|
285 |
supplierGroup.addItem("supplier.invoice.purchase.create");
|
293 |
supplierGroup.addItem("supplier.invoice.purchase.create");
|
286 |
supplierGroup.addItem("supplier.credit.create");
|
294 |
supplierGroup.addItem("supplier.credit.create");
|
287 |
group.addItem("stock.io.create");
|
295 |
group.addItem("stock.io.create");
|
288 |
}
|
296 |
}
|
289 |
|
297 |
|
290 |
return group;
|
298 |
return group;
|
291 |
}
|
299 |
}
|
292 |
|
300 |
|
293 |
public Group createHelpMenuGroup() {
|
301 |
public Group createHelpMenuGroup() {
|
294 |
final Group group = new Group(MainFrame.HELP_MENU);
|
302 |
final Group group = new Group(MainFrame.HELP_MENU);
|
295 |
group.addItem("information");
|
303 |
group.addItem("information");
|
296 |
group.addItem("tips");
|
304 |
group.addItem("tips");
|
297 |
return group;
|
305 |
return group;
|
298 |
}
|
306 |
}
|
299 |
|
307 |
|
300 |
public Group createOrganizationMenuGroup() {
|
308 |
public Group createOrganizationMenuGroup() {
|
301 |
final Group group = new Group(MainFrame.STRUCTURE_MENU);
|
309 |
final Group group = new Group(MainFrame.STRUCTURE_MENU);
|
302 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
310 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
303 |
|
311 |
|
304 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
312 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
305 |
final Group gAccounting = new Group("menu.organization.accounting", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
313 |
final Group gAccounting = new Group("menu.organization.accounting", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
306 |
gAccounting.addItem("accounting.chart");
|
314 |
gAccounting.addItem("accounting.chart");
|
307 |
gAccounting.addItem("accounting.list");
|
315 |
gAccounting.addItem("accounting.list");
|
308 |
gAccounting.addItem("accounting.journal");
|
316 |
gAccounting.addItem("accounting.journal");
|
- |
|
317 |
gAccounting.addItem("accounting.category.list");
|
309 |
gAccounting.addItem("accounting.checkDB");
|
318 |
gAccounting.addItem("accounting.checkDB");
|
310 |
gAccounting.addItem("accounting.currency");
|
319 |
gAccounting.addItem("accounting.currency");
|
311 |
gAccounting.addItem("accounting.currency.rates");
|
320 |
gAccounting.addItem("accounting.currency.rates");
|
312 |
group.add(gAccounting);
|
321 |
group.add(gAccounting);
|
313 |
}
|
322 |
}
|
314 |
|
323 |
|
315 |
if (rights.haveRight(LockAdminUserRight.LOCK_MENU_ADMIN)) {
|
324 |
if (rights.haveRight(LockAdminUserRight.LOCK_MENU_ADMIN)) {
|
316 |
final Group gUser = new Group("menu.organization.user", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
325 |
final Group gUser = new Group("menu.organization.user", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
317 |
gUser.addItem("user.list");
|
326 |
gUser.addItem("user.list");
|
318 |
gUser.addItem("user.right.list");
|
327 |
gUser.addItem("user.right.list");
|
319 |
gUser.addItem("user.task.right");
|
328 |
gUser.addItem("user.task.right");
|
320 |
group.add(gUser);
|
329 |
group.add(gUser);
|
321 |
}
|
330 |
}
|
322 |
|
331 |
|
323 |
group.addItem("product.ecotax");
|
332 |
group.addItem("product.ecotax");
|
324 |
group.addItem("office.contact.list");
|
333 |
group.addItem("office.contact.list");
|
325 |
group.addItem("salesman.list");
|
334 |
group.addItem("salesman.list");
|
326 |
|
335 |
|
327 |
final Group gPos = new Group("menu.organization.pos", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
336 |
final Group gPos = new Group("menu.organization.pos", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
328 |
gPos.addItem("pos.list");
|
337 |
gPos.addItem("pos.list");
|
329 |
group.add(gPos);
|
338 |
group.add(gPos);
|
330 |
|
339 |
|
331 |
|
340 |
|
332 |
group.addItem("enterprise.list");
|
341 |
group.addItem("enterprise.list");
|
333 |
|
342 |
|
334 |
group.addItem("divison.bank.list");
|
343 |
group.addItem("divison.bank.list");
|
335 |
group.addItem("enterprise.create");
|
344 |
group.addItem("enterprise.create");
|
336 |
return group;
|
345 |
return group;
|
337 |
}
|
346 |
}
|
338 |
|
347 |
|
339 |
public Group createPayrollMenuGroup() {
|
348 |
public Group createPayrollMenuGroup() {
|
340 |
final Group group = new Group(MainFrame.PAYROLL_MENU);
|
349 |
final Group group = new Group(MainFrame.PAYROLL_MENU);
|
341 |
group.addItem("payroll.list.report.print");
|
350 |
group.addItem("payroll.list.report.print");
|
342 |
group.addItem("payroll.profile.list");
|
351 |
group.addItem("payroll.profile.list");
|
343 |
group.addItem("payroll.history");
|
352 |
group.addItem("payroll.history");
|
344 |
group.addItem("payroll.infos.history");
|
353 |
group.addItem("payroll.infos.history");
|
345 |
group.addItem("payroll.create");
|
354 |
group.addItem("payroll.create");
|
346 |
group.addItem("payroll.deposit.create");
|
355 |
group.addItem("payroll.deposit.create");
|
347 |
group.addItem("employee.list");
|
356 |
group.addItem("employee.list");
|
348 |
final Group groupConfig = new Group("menu.payroll.config", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
357 |
final Group groupConfig = new Group("menu.payroll.config", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
349 |
groupConfig.addItem("payroll.section");
|
358 |
groupConfig.addItem("payroll.section");
|
350 |
groupConfig.addItem("payroll.variable");
|
359 |
groupConfig.addItem("payroll.variable");
|
351 |
groupConfig.addItem("payroll.caisse");
|
360 |
groupConfig.addItem("payroll.caisse");
|
352 |
groupConfig.addItem("employee.contrat.prev.list");
|
361 |
groupConfig.addItem("employee.contrat.prev.list");
|
353 |
// groupConfig.addItem("employee.contrat.prev.ayantdroit.list");
|
362 |
// groupConfig.addItem("employee.contrat.prev.ayantdroit.list");
|
354 |
group.add(groupConfig);
|
363 |
group.add(groupConfig);
|
355 |
group.addItem("payroll.closing");
|
364 |
group.addItem("payroll.closing");
|
356 |
return group;
|
365 |
return group;
|
357 |
}
|
366 |
}
|
358 |
|
367 |
|
359 |
public Group createPaymentMenuGroup() {
|
368 |
public Group createPaymentMenuGroup() {
|
360 |
final Group group = new Group(MainFrame.PAYMENT_MENU);
|
369 |
final Group group = new Group(MainFrame.PAYMENT_MENU);
|
361 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
370 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
362 |
|
371 |
|
363 |
if (rights.haveRight(ComptaUserRight.MENU) || rights.haveRight(ComptaUserRight.POINTAGE_LETTRAGE)) {
|
372 |
if (rights.haveRight(ComptaUserRight.MENU) || rights.haveRight(ComptaUserRight.POINTAGE_LETTRAGE)) {
|
364 |
group.addItem("payment.checking.create");
|
373 |
group.addItem("payment.checking.create");
|
365 |
group.addItem("payment.reconciliation.create");
|
374 |
group.addItem("payment.reconciliation.create");
|
366 |
}
|
375 |
}
|
367 |
|
376 |
|
368 |
if (rights.haveRight(NXRights.GESTION_ENCAISSEMENT.getCode())) {
|
377 |
if (rights.haveRight(NXRights.GESTION_ENCAISSEMENT.getCode())) {
|
369 |
Group gCustomer = new Group("menu.payment.customer");
|
378 |
Group gCustomer = new Group("menu.payment.customer");
|
370 |
gCustomer.addItem("customer.invoice.unpaid.list");
|
379 |
gCustomer.addItem("customer.invoice.unpaid.list");
|
- |
|
380 |
gCustomer.addItem("customer.payment.report");
|
371 |
gCustomer.addItem("customer.dept.list");
|
381 |
gCustomer.addItem("customer.dept.list");
|
372 |
gCustomer.addItem("customer.payment.list");
|
382 |
gCustomer.addItem("customer.payment.list");
|
373 |
gCustomer.addItem("customer.payment.followup.list");
|
383 |
gCustomer.addItem("customer.payment.followup.list");
|
374 |
gCustomer.addItem("customer.payment.check.pending.list");
|
384 |
gCustomer.addItem("customer.payment.check.pending.list");
|
- |
|
385 |
gCustomer.addItem("customer.payment.check.deposit.list");
|
375 |
gCustomer.addItem("customer.payment.check.pending.create");
|
386 |
gCustomer.addItem("customer.payment.check.pending.create");
|
- |
|
387 |
gCustomer.addItem("customer.payment.check.deposit.list");
|
376 |
gCustomer.addItem("customer.payment.sddMessage.list");
|
388 |
gCustomer.addItem("customer.payment.sddMessage.list");
|
377 |
gCustomer.addItem("customer.credit.check.list");
|
389 |
gCustomer.addItem("customer.credit.check.list");
|
378 |
gCustomer.addItem("customer.credit.check.create");
|
390 |
gCustomer.addItem("customer.credit.check.create");
|
379 |
group.add(gCustomer);
|
391 |
group.add(gCustomer);
|
380 |
}
|
392 |
}
|
381 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
393 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
382 |
Group gSupplier = new Group("menu.payment.supplier");
|
394 |
Group gSupplier = new Group("menu.payment.supplier");
|
383 |
gSupplier.addItem("supplier.invoice.unpaid.list");
|
395 |
gSupplier.addItem("supplier.invoice.unpaid.list");
|
384 |
gSupplier.addItem("supplier.bill.list");
|
396 |
gSupplier.addItem("supplier.bill.list");
|
385 |
gSupplier.addItem("supplier.payment.check.list");
|
397 |
gSupplier.addItem("supplier.payment.check.list");
|
386 |
gSupplier.addItem("supplier.payment.check.pending.list");
|
398 |
gSupplier.addItem("supplier.payment.check.pending.list");
|
387 |
group.add(gSupplier);
|
399 |
group.add(gSupplier);
|
388 |
}
|
400 |
}
|
389 |
return group;
|
401 |
return group;
|
390 |
}
|
402 |
}
|
391 |
|
403 |
|
392 |
public Group createStatsMenuGroup() {
|
404 |
public Group createStatsMenuGroup() {
|
393 |
final Group group = new Group(MainFrame.STATS_MENU);
|
405 |
final Group group = new Group(MainFrame.STATS_MENU);
|
394 |
|
406 |
|
395 |
group.addItem("sales.graph");
|
407 |
group.addItem("sales.graph");
|
396 |
group.addItem("sales.graph.cumulate");
|
408 |
group.addItem("sales.graph.cumulate");
|
397 |
group.addItem("sales.graph.cmd");
|
409 |
group.addItem("sales.graph.cmd");
|
398 |
group.addItem("sales.graph.cmd.cumulate");
|
410 |
group.addItem("sales.graph.cmd.cumulate");
|
399 |
|
411 |
|
400 |
group.addItem("sales.margin.graph");
|
412 |
group.addItem("sales.margin.graph");
|
401 |
group.addItem("sales.list.stock.report");
|
413 |
group.addItem("sales.list.stock.report");
|
402 |
group.addItem("sales.list.reporting");
|
414 |
group.addItem("sales.list.reporting");
|
403 |
group.addItem("order.list.reporting");
|
415 |
group.addItem("order.list.reporting");
|
404 |
group.addItem("sales.list.report");
|
416 |
group.addItem("sales.list.report");
|
405 |
group.addItem("sales.product.graph");
|
417 |
group.addItem("sales.product.graph");
|
406 |
group.addItem("sales.product.margin.graph");
|
418 |
group.addItem("sales.product.margin.graph");
|
407 |
group.addItem("sales.product.family.graph");
|
419 |
group.addItem("sales.product.family.graph");
|
408 |
group.addItem("sales.list.graph");
|
420 |
group.addItem("sales.list.graph");
|
409 |
group.addItem("sales.report.ecocontribution");
|
421 |
group.addItem("sales.report.ecocontribution");
|
410 |
group.addItem("sales.report.taxesupp");
|
422 |
group.addItem("sales.report.taxesupp");
|
411 |
|
423 |
|
412 |
return group;
|
424 |
return group;
|
413 |
}
|
425 |
}
|
414 |
|
426 |
|
415 |
public Group createStatsDocumentsGroup() {
|
427 |
public Group createStatsDocumentsGroup() {
|
416 |
final Group group = new Group(MainFrame.DECLARATION_MENU);
|
428 |
final Group group = new Group(MainFrame.DECLARATION_MENU);
|
417 |
// group.addItem("accounting.vat.report");
|
429 |
// group.addItem("accounting.vat.report");
|
418 |
group.addItem("accounting.costs.report");
|
430 |
group.addItem("accounting.costs.report");
|
419 |
group.addItem("accounting.balance.report");
|
431 |
group.addItem("accounting.balance.report");
|
420 |
// group.addItem("accounting.2050Report");
|
432 |
// group.addItem("accounting.2050Report");
|
421 |
group.addItem("employe.social.report");
|
433 |
group.addItem("employe.social.report");
|
422 |
return group;
|
434 |
return group;
|
423 |
}
|
435 |
}
|
424 |
|
436 |
|
425 |
public Group createAccountingMenuGroup() {
|
437 |
public Group createAccountingMenuGroup() {
|
426 |
final Group group = new Group(MainFrame.STATE_MENU);
|
438 |
final Group group = new Group(MainFrame.STATE_MENU);
|
427 |
group.addItem("accounting.balance");
|
439 |
group.addItem("accounting.balance");
|
428 |
group.addItem("accounting.client.balance");
|
440 |
group.addItem("accounting.client.balance");
|
429 |
group.addItem("accounting.ledger");
|
441 |
group.addItem("accounting.ledger");
|
430 |
Group analytic = new Group("accounting.analytical");
|
442 |
Group analytic = new Group("accounting.analytical");
|
431 |
analytic.addItem("accounting.analytical.ledger");
|
443 |
analytic.addItem("accounting.analytical.ledger");
|
432 |
analytic.addItem("accounting.analytical.entries.ledger");
|
444 |
analytic.addItem("accounting.analytical.entries.ledger");
|
433 |
analytic.addItem("accounting.analytical.ledger.global");
|
445 |
analytic.addItem("accounting.analytical.ledger.global");
|
434 |
analytic.addItem("accounting.analytical.dpt");
|
446 |
analytic.addItem("accounting.analytical.dpt");
|
435 |
group.add(analytic);
|
447 |
group.add(analytic);
|
436 |
group.addItem("accounting.general.ledger");
|
448 |
group.addItem("accounting.general.ledger");
|
437 |
group.addItem("accounting.entries.ledger");
|
449 |
group.addItem("accounting.entries.ledger");
|
438 |
group.addItem("accounting.entries.list");
|
450 |
group.addItem("accounting.entries.list");
|
439 |
|
451 |
|
440 |
final Group gIO = new Group("menu.accounting.io", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
452 |
final Group gIO = new Group("menu.accounting.io", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
441 |
gIO.addItem("accounting.import");
|
453 |
gIO.addItem("accounting.import");
|
442 |
gIO.addItem("accounting.export");
|
454 |
gIO.addItem("accounting.export");
|
443 |
group.add(gIO);
|
455 |
group.add(gIO);
|
444 |
|
456 |
|
445 |
final Group gClosing = new Group("menu.accounting.closing", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
457 |
final Group gClosing = new Group("menu.accounting.closing", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
446 |
gClosing.addItem("accounting.validating");
|
458 |
gClosing.addItem("accounting.validating");
|
447 |
gClosing.addItem("accounting.closing");
|
459 |
gClosing.addItem("accounting.closing");
|
448 |
group.add(gClosing);
|
460 |
group.add(gClosing);
|
449 |
return group;
|
461 |
return group;
|
450 |
}
|
462 |
}
|
451 |
|
463 |
|
452 |
public Group createListMenuGroup() {
|
464 |
public Group createListMenuGroup() {
|
453 |
final Group group = new Group(MainFrame.LIST_MENU);
|
465 |
final Group group = new Group(MainFrame.LIST_MENU);
|
454 |
|
466 |
|
455 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
467 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
456 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
468 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
457 |
|
469 |
|
458 |
Group gCustomer = new Group("menu.list.customer", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
470 |
Group gCustomer = new Group("menu.list.customer", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
459 |
gCustomer.addItem("customer.list");
|
471 |
gCustomer.addItem("customer.list");
|
460 |
|
472 |
|
461 |
SQLPreferences prefs = SQLPreferences.getMemCached(configuration.getRootSociete());
|
473 |
SQLPreferences prefs = SQLPreferences.getMemCached(configuration.getRootSociete());
|
462 |
if (prefs.getBoolean(GestionClientPreferencePanel.DISPLAY_CLIENT_DPT, false)) {
|
474 |
if (prefs.getBoolean(GestionClientPreferencePanel.DISPLAY_CLIENT_DPT, false)) {
|
463 |
gCustomer.addItem("customer.department.list");
|
475 |
gCustomer.addItem("customer.department.list");
|
464 |
}
|
476 |
}
|
465 |
|
477 |
|
466 |
gCustomer.addItem("contact.list");
|
478 |
gCustomer.addItem("contact.list");
|
467 |
|
479 |
|
468 |
if (rights.haveRight(NXRights.ACCES_HISTORIQUE.getCode())) {
|
480 |
if (rights.haveRight(NXRights.ACCES_HISTORIQUE.getCode())) {
|
469 |
gCustomer.addItem("customer.history");
|
481 |
gCustomer.addItem("customer.history");
|
470 |
}
|
482 |
}
|
471 |
|
483 |
|
472 |
|
484 |
|
473 |
gCustomer.addItem("customer.quote.list");
|
485 |
gCustomer.addItem("customer.quote.list");
|
474 |
|
486 |
|
475 |
|
487 |
|
476 |
gCustomer.addItem("customer.order.list");
|
488 |
gCustomer.addItem("customer.order.list");
|
477 |
gCustomer.addItem("customer.order.invoice.list");
|
489 |
gCustomer.addItem("customer.order.invoice.list");
|
478 |
gCustomer.addItem("customer.order.list.details");
|
490 |
gCustomer.addItem("customer.order.list.details");
|
479 |
gCustomer.addItem("customer.delivery.list");
|
491 |
gCustomer.addItem("customer.delivery.list");
|
480 |
if (configuration.getRootSociete().contains("RELIQUAT_BR")) {
|
492 |
if (configuration.getRootSociete().contains("RELIQUAT_BR")) {
|
481 |
gCustomer.addItem("customer.delivery.reliquat.list");
|
493 |
gCustomer.addItem("customer.delivery.reliquat.list");
|
482 |
}
|
494 |
}
|
483 |
group.add(gCustomer);
|
495 |
group.add(gCustomer);
|
484 |
|
496 |
|
485 |
boolean useListDesVentesAction = bModeVenteComptoir;
|
497 |
boolean useListDesVentesAction = bModeVenteComptoir;
|
486 |
if (useListDesVentesAction) {
|
498 |
if (useListDesVentesAction) {
|
487 |
gCustomer.addItem("sales.list");
|
499 |
gCustomer.addItem("sales.list");
|
488 |
|
500 |
|
489 |
} else {
|
501 |
} else {
|
490 |
|
502 |
|
491 |
gCustomer.addItem("customer.invoice.list");
|
503 |
gCustomer.addItem("customer.invoice.list");
|
492 |
}
|
504 |
}
|
493 |
|
505 |
|
494 |
gCustomer.addItem("customer.credit.list");
|
506 |
gCustomer.addItem("customer.credit.list");
|
495 |
gCustomer.addItem("customer.invoice.details.list");
|
507 |
gCustomer.addItem("customer.invoice.details.list");
|
496 |
|
508 |
|
497 |
final Group gSupplier = new Group("menu.list.supplier", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
509 |
final Group gSupplier = new Group("menu.list.supplier", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
498 |
gSupplier.addItem("supplier.list");
|
510 |
gSupplier.addItem("supplier.list");
|
499 |
gSupplier.addItem("supplier.contact.list");
|
511 |
gSupplier.addItem("supplier.contact.list");
|
500 |
gSupplier.addItem("supplier.history");
|
512 |
gSupplier.addItem("supplier.history");
|
501 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
513 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
502 |
gSupplier.addItem("supplier.order.preview");
|
514 |
gSupplier.addItem("supplier.order.preview");
|
503 |
gSupplier.addItem("supplier.order.ask");
|
515 |
gSupplier.addItem("supplier.order.ask");
|
504 |
gSupplier.addItem("supplier.order.list");
|
516 |
gSupplier.addItem("supplier.order.list");
|
505 |
gSupplier.addItem("supplier.receipt.list");
|
517 |
gSupplier.addItem("supplier.receipt.list");
|
506 |
if (configuration.getRootSociete().contains("RELIQUAT_BR")) {
|
518 |
if (configuration.getRootSociete().contains("RELIQUAT_BR")) {
|
507 |
gSupplier.addItem("supplier.receipt.reliquat.list");
|
519 |
gSupplier.addItem("supplier.receipt.reliquat.list");
|
508 |
}
|
520 |
}
|
509 |
gSupplier.addItem("supplier.purchase.list");
|
521 |
gSupplier.addItem("supplier.purchase.list");
|
510 |
gSupplier.addItem("supplier.invoice.purchase.list");
|
522 |
gSupplier.addItem("supplier.invoice.purchase.list");
|
511 |
gSupplier.addItem("supplier.credit.list");
|
523 |
gSupplier.addItem("supplier.credit.list");
|
512 |
}
|
524 |
}
|
513 |
group.add(gSupplier);
|
525 |
group.add(gSupplier);
|
514 |
|
526 |
|
515 |
final Group gProduct = new Group("menu.list.product", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
527 |
final Group gProduct = new Group("menu.list.product", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
516 |
gProduct.addItem("product.list");
|
528 |
gProduct.addItem("product.list");
|
517 |
// gProduct.addItem("product.customer.list");
|
529 |
// gProduct.addItem("product.customer.list");
|
518 |
// gProduct.addItem("product.supplychain.list");
|
530 |
// gProduct.addItem("product.supplychain.list");
|
- |
|
531 |
if (prefs.getBoolean(GestionArticleGlobalPreferencePanel.STOCK_MULTI_DEPOT, false)) {
|
- |
|
532 |
gProduct.addItem("stock.depot.list");
|
- |
|
533 |
gProduct.addItem("stock.item.list");
|
- |
|
534 |
}
|
519 |
gProduct.addItem("stock.io.list");
|
535 |
gProduct.addItem("stock.io.list");
|
- |
|
536 |
gProduct.addItem("stock.io.state");
|
520 |
gProduct.addItem("customer.order.waiting");
|
537 |
gProduct.addItem("customer.order.waiting");
|
521 |
gProduct.addItem("supplier.order.waiting");
|
538 |
gProduct.addItem("supplier.order.waiting");
|
522 |
group.add(gProduct);
|
539 |
group.add(gProduct);
|
523 |
|
540 |
|
524 |
return group;
|
541 |
return group;
|
525 |
}
|
542 |
}
|
526 |
|
543 |
|
527 |
public Group createTestMenuGroup() {
|
544 |
public Group createTestMenuGroup() {
|
528 |
final Group group = new Group("menu.test");
|
545 |
final Group group = new Group("menu.test");
|
529 |
group.addItem("test.lettrage.fact");
|
546 |
group.addItem("test.lettrage.fact");
|
530 |
group.addItem("test.lettrage.compt");
|
547 |
group.addItem("test.lettrage.compt");
|
531 |
group.addItem("test.lettrage.achat");
|
548 |
group.addItem("test.lettrage.achat");
|
532 |
// group.addItem("test.export.ecrp");
|
549 |
// group.addItem("test.export.ecrp");
|
533 |
|
550 |
|
534 |
return group;
|
551 |
return group;
|
535 |
}
|
552 |
}
|
536 |
|
553 |
|
537 |
/**
|
554 |
/**
|
538 |
* Actions
|
555 |
* Actions
|
539 |
*/
|
556 |
*/
|
540 |
public void registerFilesMenuActions(final MenuAndActions mManager) {
|
557 |
public void registerFilesMenuActions(final MenuAndActions mManager) {
|
541 |
mManager.putAction(new SauvegardeBaseAction(), "backup");
|
558 |
mManager.putAction(new SauvegardeBaseAction(), "backup");
|
542 |
mManager.putAction(new AbstractAction() {
|
559 |
mManager.putAction(new AbstractAction() {
|
- |
|
560 |
|
- |
|
561 |
private ModuleFrame frame = null;
|
- |
|
562 |
|
543 |
@Override
|
563 |
@Override
|
544 |
public void actionPerformed(ActionEvent e) {
|
564 |
public void actionPerformed(ActionEvent e) {
|
- |
|
565 |
if (this.frame == null) {
|
- |
|
566 |
this.frame = new ModuleFrame(getConfiguration().getModuleManager());
|
- |
|
567 |
}
|
- |
|
568 |
this.frame.setLocationRelativeTo(null);
|
545 |
FrameUtil.show(ModuleFrame.getInstance());
|
569 |
FrameUtil.show(this.frame);
|
546 |
}
|
570 |
}
|
547 |
}, "modules");
|
571 |
}, "modules");
|
548 |
if (!Gestion.MAC_OS_X) {
|
- |
|
549 |
mManager.putAction(new PreferencesAction(), "preferences");
|
572 |
mManager.putAction(new PreferencesAction(getConfiguration().getModuleManager()), "preferences");
|
550 |
mManager.putAction(new AbstractAction() {
|
573 |
mManager.putAction(new AbstractAction() {
|
551 |
@Override
|
574 |
@Override
|
552 |
public void actionPerformed(ActionEvent e) {
|
575 |
public void actionPerformed(ActionEvent e) {
|
553 |
MainFrame.getInstance().quit();
|
576 |
MainFrame.getInstance().quit();
|
554 |
}
|
577 |
}
|
555 |
}, "quit");
|
578 |
}, "quit");
|
556 |
}
|
579 |
}
|
557 |
}
|
- |
|
558 |
|
580 |
|
559 |
public void registerCreationMenuActions(final MenuAndActions mManager) {
|
581 |
public void registerCreationMenuActions(final MenuAndActions mManager) {
|
560 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
582 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
561 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
583 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
- |
|
584 |
final ComptaPropsConfiguration conf = this.getConfiguration();
|
562 |
|
585 |
|
563 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
586 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
564 |
mManager.putAction(new NouvelleSaisieKmAction(), "accounting.entry.create");
|
587 |
mManager.putAction(new NouvelleSaisieKmAction(conf), "accounting.entry.create");
|
565 |
mManager.putAction(new SaisieJournalAction(), "accounting.entry.ledger.create");
|
588 |
mManager.putAction(new SaisieJournalAction(), "accounting.entry.ledger.create");
|
566 |
}
|
589 |
}
|
567 |
|
590 |
|
568 |
|
591 |
|
569 |
mManager.putAction(new NouveauDevisAction(), "customer.quote.create");
|
592 |
mManager.putAction(new NouveauDevisAction(conf), "customer.quote.create");
|
570 |
|
593 |
|
571 |
mManager.putAction(new NouveauBonLivraisonAction(), "customer.delivery.create");
|
594 |
mManager.putAction(new NouveauBonLivraisonAction(conf), "customer.delivery.create");
|
572 |
mManager.putAction(new NouvelleCommandeClientAction(), "customer.order.create");
|
595 |
mManager.putAction(new NouvelleCommandeClientAction(conf), "customer.order.create");
|
573 |
if (bModeVenteComptoir && rights.haveRight("VENTE_COMPTOIR")) {
|
596 |
if (bModeVenteComptoir && rights.haveRight("VENTE_COMPTOIR")) {
|
574 |
mManager.putAction(new NouveauSaisieVenteComptoirAction(), "pos.sale.create");
|
597 |
mManager.putAction(new NouveauSaisieVenteComptoirAction(conf), "pos.sale.create");
|
575 |
}
|
598 |
}
|
576 |
mManager.putAction(new NouveauSaisieVenteFactureAction(), "customer.invoice.create");
|
599 |
mManager.putAction(new NouveauSaisieVenteFactureAction(conf), "customer.invoice.create");
|
577 |
|
600 |
|
578 |
mManager.putAction(new NouveauAvoirClientAction(), "customer.credit.create");
|
601 |
mManager.putAction(new NouveauAvoirClientAction(conf), "customer.credit.create");
|
579 |
|
602 |
|
580 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
603 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
- |
|
604 |
mManager.putAction(new NouvelleDemandePrixAction(conf), "supplier.order.ask.create");
|
581 |
mManager.putAction(new NouvelleCommandeAction(), "supplier.order.create");
|
605 |
mManager.putAction(new NouvelleCommandeAction(conf), "supplier.order.create");
|
582 |
mManager.putAction(new NouveauBonReceptionAction(), "supplier.receipt.create");
|
606 |
mManager.putAction(new NouveauBonReceptionAction(conf), "supplier.receipt.create");
|
583 |
mManager.putAction(new NouveauSaisieAchatAction(), "supplier.purchase.create");
|
607 |
mManager.putAction(new NouveauSaisieAchatAction(conf), "supplier.purchase.create");
|
584 |
mManager.putAction(new NouvelleFactureFournisseurAction(), "supplier.invoice.purchase.create");
|
608 |
mManager.putAction(new NouvelleFactureFournisseurAction(conf), "supplier.invoice.purchase.create");
|
585 |
mManager.putAction(new NouvelAvoirFournisseurAction(), "supplier.credit.create");
|
609 |
mManager.putAction(new NouvelAvoirFournisseurAction(conf), "supplier.credit.create");
|
586 |
mManager.putAction(new NouvelleSaisieMouvementStockAction(), "stock.io.create");
|
610 |
mManager.putAction(new NouvelleSaisieMouvementStockAction(conf), "stock.io.create");
|
587 |
}
|
611 |
}
|
588 |
|
612 |
|
589 |
}
|
613 |
}
|
590 |
|
614 |
|
591 |
public void registerListMenuActions(final MenuAndActions mManager) {
|
615 |
public void registerListMenuActions(final MenuAndActions mManager) {
|
- |
|
616 |
final ComptaPropsConfiguration conf = this.configuration;
|
592 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
617 |
final Boolean bModeVenteComptoir = DefaultNXProps.getInstance().getBooleanValue("ArticleVenteComptoir", true);
|
593 |
|
618 |
|
- |
|
619 |
// FIXME conf.getCurrentUserRights();
|
594 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
620 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
595 |
|
621 |
|
596 |
mManager.putAction(new ListeDesClientsAction(), "customer.list");
|
622 |
mManager.putAction(new ListeDesClientsAction(conf), "customer.list");
|
597 |
SQLPreferences prefs = SQLPreferences.getMemCached(configuration.getRootSociete());
|
623 |
SQLPreferences prefs = SQLPreferences.getMemCached(conf.getRootSociete());
|
598 |
if (prefs.getBoolean(GestionClientPreferencePanel.DISPLAY_CLIENT_DPT, false)) {
|
624 |
if (prefs.getBoolean(GestionClientPreferencePanel.DISPLAY_CLIENT_DPT, false)) {
|
599 |
mManager.putAction(new ListeDesDepartementsClientsAction(), "customer.department.list");
|
625 |
mManager.putAction(new ListeDesDepartementsClientsAction(conf), "customer.department.list");
|
600 |
}
|
626 |
}
|
601 |
mManager.putAction(new ListeDesContactsAction(), "contact.list");
|
627 |
mManager.putAction(new ListeDesContactsAction(conf), "contact.list");
|
602 |
|
628 |
|
603 |
if (rights.haveRight(NXRights.ACCES_HISTORIQUE.getCode())) {
|
629 |
if (rights.haveRight(NXRights.ACCES_HISTORIQUE.getCode())) {
|
604 |
mManager.putAction(new NouvelHistoriqueListeClientAction(), "customer.history");
|
630 |
mManager.putAction(new NouvelHistoriqueListeClientAction(), "customer.history");
|
605 |
}
|
631 |
}
|
606 |
|
632 |
|
607 |
|
633 |
|
- |
|
634 |
|
608 |
mManager.putAction(new ListeDesDevisAction(), "customer.quote.list");
|
635 |
mManager.putAction(new ListeDesDevisAction(conf), "customer.quote.list");
|
- |
|
636 |
|
609 |
|
637 |
|
610 |
|
638 |
|
611 |
mManager.putAction(new ListeDesCommandesClientAction(), "customer.order.list");
|
639 |
mManager.putAction(new ListeDesCommandesClientAction(), "customer.order.list");
|
612 |
mManager.putAction(new ListeDesFacturationCommandesClientAction(), "customer.order.invoice.list");
|
640 |
mManager.putAction(new ListeDesFacturationCommandesClientAction(conf), "customer.order.invoice.list");
|
613 |
mManager.putAction(new ListeDesCommandesClientItemsAction(), "customer.order.list.details");
|
641 |
mManager.putAction(new ListeDesCommandesClientItemsAction(conf), "customer.order.list.details");
|
614 |
mManager.putAction(new ListeDesBonsDeLivraisonAction(), "customer.delivery.list");
|
642 |
mManager.putAction(new ListeDesBonsDeLivraisonAction(conf), "customer.delivery.list");
|
615 |
if (configuration.getRootSociete().contains("RELIQUAT_BL")) {
|
643 |
if (conf.getRootSociete().contains("RELIQUAT_BL")) {
|
616 |
mManager.registerAction("customer.delivery.reliquat.list", new ListeDesReliquatsBonsLivraisonsAction());
|
644 |
mManager.putAction(new ListeDesReliquatsBonsLivraisonsAction(), "customer.delivery.reliquat.list");
|
617 |
}
|
645 |
}
|
618 |
|
646 |
|
619 |
boolean useListDesVentesAction = bModeVenteComptoir;
|
647 |
boolean useListDesVentesAction = bModeVenteComptoir;
|
620 |
if (useListDesVentesAction) {
|
648 |
if (useListDesVentesAction) {
|
621 |
mManager.putAction(new ListeDesVentesAction(), "sales.list");
|
649 |
mManager.putAction(new ListeDesVentesAction(), "sales.list");
|
622 |
|
650 |
|
623 |
} else {
|
651 |
} else {
|
624 |
|
652 |
|
625 |
mManager.putAction(new ListeSaisieVenteFactureAction(), "customer.invoice.list");
|
653 |
mManager.putAction(new ListeSaisieVenteFactureAction(), "customer.invoice.list");
|
626 |
}
|
654 |
}
|
627 |
|
655 |
|
628 |
mManager.putAction(new ListeDesAvoirsClientsAction(), "customer.credit.list");
|
656 |
mManager.putAction(new ListeDesAvoirsClientsAction(conf), "customer.credit.list");
|
629 |
mManager.putAction(new ListeDesFactureItemsAction(), "customer.invoice.details.list");
|
657 |
mManager.putAction(new ListeDesFactureItemsAction(conf), "customer.invoice.details.list");
|
630 |
|
658 |
|
631 |
mManager.putAction(new ListeDesFournisseursAction(), "supplier.list");
|
659 |
mManager.putAction(new ListeDesFournisseursAction(), "supplier.list");
|
632 |
mManager.putAction(new ListeDesContactsFournisseursAction(), "supplier.contact.list");
|
660 |
mManager.putAction(new ListeDesContactsFournisseursAction(), "supplier.contact.list");
|
633 |
mManager.putAction(new NouvelHistoriqueListeFournAction(), "supplier.history");
|
661 |
mManager.putAction(new NouvelHistoriqueListeFournAction(), "supplier.history");
|
634 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
662 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
635 |
mManager.putAction(new ListeDesCommandesAction(), "supplier.order.list");
|
663 |
mManager.putAction(new ListeDesCommandesAction(), "supplier.order.list");
|
636 |
mManager.putAction(new ListeDesDemandesPrixAction(), "supplier.order.ask");
|
664 |
mManager.putAction(new ListeDesDemandesPrixAction(conf), "supplier.order.ask");
|
637 |
mManager.putAction(new ListeDesDemandesAchatsAction(), "supplier.order.preview");
|
665 |
mManager.putAction(new ListeDesDemandesAchatsAction(conf), "supplier.order.preview");
|
638 |
mManager.putAction(new ListeDesReliquatsBonsReceptionsAction(), "supplier.receipt.reliquat.list");
|
666 |
mManager.putAction(new ListeDesReliquatsBonsReceptionsAction(), "supplier.receipt.reliquat.list");
|
639 |
mManager.registerAction("supplier.receipt.list", new ListeDesBonsReceptionsAction());
|
667 |
mManager.putAction(new ListeDesBonsReceptionsAction(), "supplier.receipt.list");
|
640 |
mManager.registerAction("supplier.purchase.list", new ListeSaisieAchatAction());
|
668 |
mManager.putAction(new ListeSaisieAchatAction(), "supplier.purchase.list");
|
641 |
mManager.registerAction("supplier.invoice.purchase.list", new ListeDesFacturesFournisseurAction());
|
669 |
mManager.putAction(new ListeDesFacturesFournisseurAction(), "supplier.invoice.purchase.list");
|
642 |
mManager.registerAction("supplier.credit.list", new ListeDesAvoirsFournisseurAction());
|
670 |
mManager.putAction(new ListeDesAvoirsFournisseurAction(), "supplier.credit.list");
|
643 |
}
|
671 |
}
|
644 |
|
672 |
|
645 |
mManager.registerAction("product.list", new ListeDesArticlesAction());
|
673 |
mManager.putAction(new ListeDesArticlesAction(), "product.list");
|
646 |
mManager.registerAction("product.customer.list", new ListeHistoCodeClientArticleAction());
|
674 |
mManager.putAction(new ListeHistoCodeClientArticleAction(), "product.customer.list");
|
647 |
mManager.registerAction("product.supplychain.list", new ListeDesArticlesFournisseurAction());
|
675 |
mManager.putAction(new ListeDesArticlesFournisseurAction(), "product.supplychain.list");
|
- |
|
676 |
mManager.putAction(new ListeDesDepotsStocksAction(), "stock.depot.list");
|
- |
|
677 |
mManager.putAction(new ListeDesStocksAction(), "stock.item.list");
|
648 |
mManager.registerAction("stock.io.list", new ListeDesMouvementsStockAction());
|
678 |
mManager.putAction(new ListeDesMouvementsStockAction(conf), "stock.io.list");
|
- |
|
679 |
mManager.putAction(new ListeDesEtatsStocksAction(conf), "stock.io.state");
|
649 |
mManager.registerAction("customer.order.waiting", new ListeDesElementsACommanderClientAction());
|
680 |
mManager.putAction(new ListeDesElementsACommanderClientAction(conf), "customer.order.waiting");
|
650 |
mManager.registerAction("supplier.order.waiting", new ListeDesElementsACommanderAction());
|
681 |
mManager.putAction(new ListeDesElementsACommanderAction(conf), "supplier.order.waiting");
|
651 |
|
682 |
|
652 |
|
683 |
|
653 |
|
684 |
|
654 |
}
|
685 |
}
|
655 |
|
686 |
|
656 |
public void registerAccountingMenuActions(final MenuAndActions mManager) {
|
687 |
public void registerAccountingMenuActions(final MenuAndActions mManager) {
|
657 |
mManager.registerAction("accounting.balance", new EtatBalanceAction());
|
688 |
mManager.putAction(new EtatBalanceAction(), "accounting.balance");
|
658 |
mManager.registerAction("accounting.client.balance", new BalanceAgeeAction());
|
689 |
mManager.putAction(new BalanceAgeeAction(), "accounting.client.balance");
|
659 |
mManager.registerAction("accounting.analytical.ledger", new ImpressionJournauxAnalytiqueAction());
|
690 |
mManager.putAction(new ImpressionJournauxAnalytiqueAction(), "accounting.analytical.ledger");
|
660 |
mManager.registerAction("accounting.ledger", new EtatJournauxAction());
|
691 |
mManager.putAction(new EtatJournauxAction(), "accounting.ledger");
|
661 |
mManager.registerAction("accounting.general.ledger", new EtatGrandLivreAction());
|
692 |
mManager.putAction(new EtatGrandLivreAction(), "accounting.general.ledger");
|
662 |
mManager.registerAction("accounting.entries.ledger", new ListeDesEcrituresAction());
|
693 |
mManager.putAction(new ListeDesEcrituresAction(), "accounting.entries.ledger");
|
663 |
mManager.registerAction("accounting.analytical.entries.ledger", new ListeDesEcrituresAnalytiquesAction());
|
694 |
mManager.putAction(new ListeDesEcrituresAnalytiquesAction(), "accounting.analytical.entries.ledger");
|
664 |
mManager.registerAction("accounting.analytical.dpt", new ListeDesPostesAnalytiquesAction());
|
695 |
mManager.putAction(new ListeDesPostesAnalytiquesAction(), "accounting.analytical.dpt");
|
665 |
mManager.registerAction("accounting.analytical.ledger.global", new ImpressionRepartitionAnalytiqueAction());
|
696 |
mManager.putAction(new ImpressionRepartitionAnalytiqueAction(), "accounting.analytical.ledger.global");
|
666 |
mManager.registerAction("accounting.entries.list", new ListeEcritureParClasseAction());
|
697 |
mManager.putAction(new ListeEcritureParClasseAction(), "accounting.entries.list");
|
667 |
mManager.registerAction("accounting.validating", new NouvelleValidationAction());
|
698 |
mManager.putAction(new NouvelleValidationAction(), "accounting.validating");
|
668 |
mManager.registerAction("accounting.closing", new NouveauClotureAction());
|
699 |
mManager.putAction(new NouveauClotureAction(), "accounting.closing");
|
669 |
mManager.registerAction("accounting.import", new ImportEcritureAction());
|
700 |
mManager.putAction(new ImportEcritureAction(), "accounting.import");
|
670 |
mManager.registerAction("accounting.export", new ExportRelationExpertAction());
|
701 |
mManager.putAction(new ExportRelationExpertAction(), "accounting.export");
|
671 |
}
|
702 |
}
|
672 |
|
703 |
|
673 |
public void registerStatsDocumentsActions(final MenuAndActions mManager) {
|
704 |
public void registerStatsDocumentsActions(final MenuAndActions mManager) {
|
674 |
// mManager.registerAction("accounting.vat.report", new DeclarationTVAAction());
|
705 |
// mManager.putAction("accounting.vat.report", new DeclarationTVAAction());
|
675 |
mManager.registerAction("accounting.costs.report", new EtatChargeAction());
|
706 |
mManager.putAction(new EtatChargeAction(), "accounting.costs.report");
|
676 |
mManager.registerAction("accounting.balance.report", new CompteResultatBilanAction());
|
707 |
mManager.putAction(new CompteResultatBilanAction(), "accounting.balance.report");
|
677 |
mManager.registerAction("employe.social.report", new N4DSAction());
|
708 |
mManager.putAction(new N4DSAction(), "employe.social.report");
|
678 |
// mManager.registerAction("accounting.2050Report", new CompteResultatBilan2050Action());
|
709 |
// mManager.putAction("accounting.2050Report", new CompteResultatBilan2050Action());
|
679 |
}
|
710 |
}
|
680 |
|
711 |
|
681 |
public void registerStatsMenuActions(final MenuAndActions mManager) {
|
712 |
public void registerStatsMenuActions(final MenuAndActions mManager) {
|
682 |
|
713 |
|
683 |
|
714 |
|
684 |
mManager.registerAction("sales.graph", new EvolutionCAAction());
|
715 |
mManager.putAction(new EvolutionCAAction(), "sales.graph");
|
685 |
mManager.registerAction("sales.graph.cumulate", new EvolutionCACumulAction());
|
716 |
mManager.putAction(new EvolutionCACumulAction(), "sales.graph.cumulate");
|
686 |
|
717 |
|
687 |
mManager.registerAction("sales.graph.cmd", new EvolutionCmdAction());
|
718 |
mManager.putAction(new EvolutionCmdAction(), "sales.graph.cmd");
|
688 |
mManager.registerAction("sales.graph.cmd.cumulate", new EvolutionCmdCumulAction());
|
719 |
mManager.putAction(new EvolutionCmdCumulAction(), "sales.graph.cmd.cumulate");
|
689 |
|
720 |
|
690 |
mManager.registerAction("sales.margin.graph", new EvolutionMargeAction());
|
721 |
mManager.putAction(new EvolutionMargeAction(), "sales.margin.graph");
|
691 |
mManager.registerAction("sales.list.reporting", new GenReportingVenteAction(false));
|
722 |
mManager.putAction(new GenReportingVenteAction(false), "sales.list.reporting");
|
- |
|
723 |
mManager.putAction(new GenReportingVenteAction(true), "order.list.reporting");
|
692 |
mManager.registerAction("order.list.reporting", new GenReportingVenteAction(true));
|
724 |
// mManager.putAction("sales.list.reporting", new GenReportingVenteAction());
|
693 |
mManager.registerAction("sales.list.report", new GenListeVenteAction());
|
725 |
mManager.putAction(new GenListeVenteAction(), "sales.list.report");
|
694 |
mManager.registerAction("sales.list.stock.report", new GenEtatStockAction());
|
726 |
mManager.putAction(new GenEtatStockAction(), "sales.list.stock.report");
|
695 |
|
727 |
|
696 |
mManager.registerAction("sales.product.graph", new VenteArticleGraphAction());
|
728 |
mManager.putAction(new VenteArticleGraphAction(), "sales.product.graph");
|
697 |
mManager.registerAction("sales.product.margin.graph", new VenteArticleMargeGraphAction());
|
729 |
mManager.putAction(new VenteArticleMargeGraphAction(), "sales.product.margin.graph");
|
698 |
mManager.registerAction("sales.product.family.graph", new VenteArticleFamilleGraphAction());
|
730 |
mManager.putAction(new VenteArticleFamilleGraphAction(), "sales.product.family.graph");
|
699 |
mManager.registerAction("sales.list.graph", new EtatVenteAction());
|
731 |
mManager.putAction(new EtatVenteAction(), "sales.list.graph");
|
700 |
|
732 |
|
701 |
mManager.registerAction("sales.report.ecocontribution", new AbstractAction("Reporting Eco Contribution") {
|
733 |
mManager.putAction(new AbstractAction("Reporting Eco Contribution") {
|
702 |
|
734 |
|
703 |
@Override
|
735 |
@Override
|
704 |
public void actionPerformed(ActionEvent e) {
|
736 |
public void actionPerformed(ActionEvent e) {
|
705 |
|
737 |
|
706 |
PanelFrame frame = new PanelFrame(new ReportingEcoContributionPanel(), "Reporting Eco Contribution");
|
738 |
PanelFrame frame = new PanelFrame(new ReportingEcoContributionPanel(), "Reporting Eco Contribution");
|
707 |
frame.setVisible(true);
|
739 |
frame.setVisible(true);
|
708 |
}
|
740 |
}
|
709 |
});
|
741 |
}, "sales.report.ecocontribution");
|
710 |
|
742 |
|
711 |
mManager.registerAction("sales.report.taxesupp", new AbstractAction("Reporting Taxes complémentaires") {
|
743 |
mManager.putAction(new AbstractAction("Reporting Taxes complémentaires") {
|
712 |
|
744 |
|
713 |
@Override
|
745 |
@Override
|
714 |
public void actionPerformed(ActionEvent e) {
|
746 |
public void actionPerformed(ActionEvent e) {
|
715 |
|
747 |
|
716 |
PanelFrame frame = new PanelFrame(new ReportingTaxeComplementairePanel(), "Reporting Taxes complémentaires");
|
748 |
PanelFrame frame = new PanelFrame(new ReportingTaxeComplementairePanel(), "Reporting Taxes complémentaires");
|
717 |
frame.setVisible(true);
|
749 |
frame.setVisible(true);
|
718 |
}
|
750 |
}
|
719 |
});
|
751 |
}, "sales.report.taxesupp");
|
720 |
|
752 |
|
721 |
}
|
753 |
}
|
722 |
|
754 |
|
723 |
public void registerPaymentMenuActions(final MenuAndActions mManager) {
|
755 |
public void registerPaymentMenuActions(final MenuAndActions mManager) {
|
724 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
756 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
- |
|
757 |
final ComptaPropsConfiguration conf = getConfiguration();
|
725 |
|
758 |
|
726 |
if (rights.haveRight(ComptaUserRight.MENU) || rights.haveRight(ComptaUserRight.POINTAGE_LETTRAGE)) {
|
759 |
if (rights.haveRight(ComptaUserRight.MENU) || rights.haveRight(ComptaUserRight.POINTAGE_LETTRAGE)) {
|
727 |
mManager.putAction(new NouveauPointageAction(), "payment.checking.create");
|
760 |
mManager.putAction(new NouveauPointageAction(), "payment.checking.create");
|
728 |
mManager.putAction(new NouveauLettrageAction(), "payment.reconciliation.create");
|
761 |
mManager.putAction(new NouveauLettrageAction(), "payment.reconciliation.create");
|
729 |
}
|
762 |
}
|
730 |
|
763 |
|
731 |
if (rights.haveRight(NXRights.GESTION_ENCAISSEMENT.getCode())) {
|
764 |
if (rights.haveRight(NXRights.GESTION_ENCAISSEMENT.getCode())) {
|
732 |
mManager.putAction(new ListesFacturesClientsImpayeesAction(), "customer.invoice.unpaid.list");
|
765 |
mManager.putAction(new ListesFacturesClientsImpayeesAction(), "customer.invoice.unpaid.list");
|
733 |
mManager.putAction(new ListeDebiteursAction(), "customer.dept.list");
|
766 |
mManager.putAction(new ListeDebiteursAction(), "customer.dept.list");
|
- |
|
767 |
mManager.putAction(new AbstractAction("Relevé client") {
|
- |
|
768 |
@Override
|
- |
|
769 |
public void actionPerformed(ActionEvent arg0) {
|
- |
|
770 |
|
- |
|
771 |
PanelFrame frame = new PanelFrame(new ReportingClientPanel(), "Reporting client");
|
- |
|
772 |
frame.setVisible(true);
|
- |
|
773 |
|
- |
|
774 |
}
|
- |
|
775 |
}, "customer.payment.report");
|
734 |
mManager.putAction(new ListeDesEncaissementsAction(), "customer.payment.list");
|
776 |
mManager.putAction(new ListeDesEncaissementsAction(), "customer.payment.list");
|
735 |
mManager.putAction(new ListeDesRelancesAction(), "customer.payment.followup.list");
|
777 |
mManager.putAction(new ListeDesRelancesAction(), "customer.payment.followup.list");
|
736 |
mManager.putAction(new ListeDesChequesAEncaisserAction(), "customer.payment.check.pending.list");
|
778 |
mManager.putAction(new ListeDesChequesAEncaisserAction(), "customer.payment.check.pending.list");
|
- |
|
779 |
mManager.putAction(new ListeDesDepostChequesAction(), "customer.payment.check.deposit.list");
|
737 |
mManager.putAction(new NouveauListeDesChequesAEncaisserAction(), "customer.payment.check.pending.create");
|
780 |
mManager.putAction(new NouveauListeDesChequesAEncaisserAction(conf), "customer.payment.check.pending.create");
|
738 |
mManager.putAction(new ListeSDDMessageAction(configuration.getDirectory()), "customer.payment.sddMessage.list");
|
781 |
mManager.putAction(new ListeSDDMessageAction(conf.getDirectory()), "customer.payment.sddMessage.list");
|
739 |
mManager.putAction(new ListeDesChequesAvoirAction(), "customer.credit.check.list");
|
782 |
mManager.putAction(new ListeDesChequesAvoirAction(), "customer.credit.check.list");
|
740 |
mManager.putAction(new NouveauDecaissementChequeAvoirAction(), "customer.credit.check.create");
|
783 |
mManager.putAction(new NouveauDecaissementChequeAvoirAction(conf), "customer.credit.check.create");
|
741 |
}
|
784 |
}
|
742 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
785 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
743 |
mManager.putAction(new ListesFacturesFournImpayeesAction(), "supplier.invoice.unpaid.list");
|
786 |
mManager.putAction(new ListesFacturesFournImpayeesAction(), "supplier.invoice.unpaid.list");
|
744 |
mManager.putAction(new ListeDesTraitesFournisseursAction(), "supplier.bill.list");
|
787 |
mManager.putAction(new ListeDesTraitesFournisseursAction(), "supplier.bill.list");
|
745 |
mManager.putAction(new ListeDesChequesFournisseursAction(), "supplier.payment.check.list");
|
788 |
mManager.putAction(new ListeDesChequesFournisseursAction(), "supplier.payment.check.list");
|
746 |
mManager.putAction(new NouveauListeDesChequesADecaisserAction(), "supplier.payment.check.pending.list");
|
789 |
mManager.putAction(new NouveauListeDesChequesADecaisserAction(conf), "supplier.payment.check.pending.list");
|
747 |
}
|
790 |
}
|
748 |
|
791 |
|
749 |
}
|
792 |
}
|
750 |
|
793 |
|
751 |
public void registerPayrollMenuActions(final MenuAndActions mManager) {
|
794 |
public void registerPayrollMenuActions(final MenuAndActions mManager) {
|
- |
|
795 |
final ComptaPropsConfiguration conf = getConfiguration();
|
752 |
mManager.putAction(new ImpressionLivrePayeAction(), "payroll.list.report.print");
|
796 |
mManager.putAction(new ImpressionLivrePayeAction(), "payroll.list.report.print");
|
753 |
mManager.putAction(new ListeDesProfilsPayeAction(), "payroll.profile.list");
|
797 |
mManager.putAction(new ListeDesProfilsPayeAction(), "payroll.profile.list");
|
754 |
mManager.putAction(new NouvelHistoriqueFichePayeAction(), "payroll.history");
|
798 |
mManager.putAction(new NouvelHistoriqueFichePayeAction(), "payroll.history");
|
755 |
mManager.putAction(new EditionFichePayeAction(), "payroll.create");
|
799 |
mManager.putAction(new EditionFichePayeAction(), "payroll.create");
|
756 |
mManager.putAction(new NouvelAcompteAction(), "payroll.deposit.create");
|
800 |
mManager.putAction(new NouvelAcompteAction(conf), "payroll.deposit.create");
|
757 |
mManager.putAction(new ListeDesSalariesAction(), "employee.list");
|
801 |
mManager.putAction(new ListeDesSalariesAction(), "employee.list");
|
758 |
mManager.putAction(new ListeDesContratsPrevoyanceAction(), "employee.contrat.prev.list");
|
802 |
mManager.putAction(new ListeDesContratsPrevoyanceAction(), "employee.contrat.prev.list");
|
759 |
mManager.putAction(new ListeDesCaissesCotisationsAction(), "payroll.caisse");
|
803 |
mManager.putAction(new ListeDesCaissesCotisationsAction(), "payroll.caisse");
|
760 |
mManager.putAction(new ListeDesAyantsDroitsAction(), "employee.contrat.prev.ayantdroit.list");
|
804 |
mManager.putAction(new ListeDesAyantsDroitsAction(), "employee.contrat.prev.ayantdroit.list");
|
761 |
|
805 |
|
762 |
mManager.putAction(new ListeDesRubriquesDePayeAction(), "payroll.section");
|
806 |
mManager.putAction(new ListeDesRubriquesDePayeAction(), "payroll.section");
|
763 |
mManager.putAction(new ListeDesVariablesPayes(), "payroll.variable");
|
807 |
mManager.putAction(new ListeDesVariablesPayes(), "payroll.variable");
|
764 |
mManager.putAction(new ListeDesInfosSalariePayeAction(), "payroll.infos.history");
|
808 |
mManager.putAction(new ListeDesInfosSalariePayeAction(), "payroll.infos.history");
|
765 |
mManager.putAction(new ClotureMensuellePayeAction(), "payroll.closing");
|
809 |
mManager.putAction(new ClotureMensuellePayeAction(), "payroll.closing");
|
766 |
|
810 |
|
767 |
}
|
811 |
}
|
768 |
|
812 |
|
769 |
public void registerOrganizationMenuActions(final MenuAndActions mManager) {
|
813 |
public void registerOrganizationMenuActions(final MenuAndActions mManager) {
|
770 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
814 |
final UserRights rights = UserRightsManager.getCurrentUserRights();
|
771 |
|
815 |
|
772 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
816 |
if (rights.haveRight(ComptaUserRight.MENU)) {
|
773 |
mManager.putAction(new GestionPlanComptableEAction(), "accounting.chart");
|
817 |
mManager.putAction(new GestionPlanComptableEAction(), "accounting.chart");
|
774 |
mManager.putAction(new ListeDesComptesAction(), "accounting.list");
|
818 |
mManager.putAction(new ListeDesComptesAction(), "accounting.list");
|
775 |
|
819 |
|
776 |
mManager.putAction(new ListeDesJournauxAction(), "accounting.journal");
|
820 |
mManager.putAction(new ListeDesJournauxAction(), "accounting.journal");
|
777 |
mManager.putAction(new ListeDesDevisesAction(), "accounting.currency");
|
821 |
mManager.putAction(new ListeDesDevisesAction(), "accounting.currency");
|
- |
|
822 |
mManager.putAction(new ListeDesCategorieComptableAction(), "accounting.category.list");
|
778 |
mManager.putAction(new ListeDesTauxDeChangeAction(), "accounting.currency.rates");
|
823 |
mManager.putAction(new ListeDesTauxDeChangeAction(), "accounting.currency.rates");
|
779 |
mManager.putAction(new AbstractAction("Check DB") {
|
824 |
mManager.putAction(new AbstractAction("Check DB") {
|
780 |
@Override
|
825 |
@Override
|
781 |
public void actionPerformed(ActionEvent e) {
|
826 |
public void actionPerformed(ActionEvent e) {
|
782 |
final DBRoot rootSociete = configuration.getRootSociete();
|
827 |
final DBRoot rootSociete = configuration.getRootSociete();
|
783 |
final SQLSelect sel = CorrectMouvement.createUnbalancedSelect(rootSociete);
|
828 |
final SQLSelect sel = CorrectMouvement.createUnbalancedSelect(rootSociete);
|
784 |
final List<?> ids = rootSociete.getDBSystemRoot().getDataSource().executeCol(sel.asString());
|
829 |
final List<?> ids = rootSociete.getDBSystemRoot().getDataSource().executeCol(sel.asString());
|
785 |
JOptionPane.showMessageDialog((Component) e.getSource(), "Il y a " + ids.size() + " mouvement(s) non équilibré(s).", "Résultat",
|
830 |
JOptionPane.showMessageDialog((Component) e.getSource(), "Il y a " + ids.size() + " mouvement(s) non équilibré(s).", "Résultat",
|
786 |
ids.size() == 0 ? JOptionPane.INFORMATION_MESSAGE : JOptionPane.WARNING_MESSAGE);
|
831 |
ids.size() == 0 ? JOptionPane.INFORMATION_MESSAGE : JOptionPane.WARNING_MESSAGE);
|
787 |
}
|
832 |
}
|
788 |
}, "accounting.checkDB");
|
833 |
}, "accounting.checkDB");
|
789 |
}
|
834 |
}
|
790 |
mManager.putAction(new ListeEcoContributionAction(), "product.ecotax");
|
835 |
mManager.putAction(new ListeEcoContributionAction(), "product.ecotax");
|
791 |
|
836 |
|
792 |
if (rights.haveRight(LockAdminUserRight.LOCK_MENU_ADMIN)) {
|
837 |
if (rights.haveRight(LockAdminUserRight.LOCK_MENU_ADMIN)) {
|
793 |
mManager.putAction(new ListeDesUsersCommonAction(), "user.list");
|
838 |
mManager.putAction(new ListeDesUsersCommonAction(), "user.list");
|
794 |
mManager.putAction(new GestionDroitsAction(), "user.right.list");
|
839 |
mManager.putAction(new GestionDroitsAction(), "user.right.list");
|
795 |
mManager.putAction(new TaskAdminAction(), "user.task.right");
|
840 |
mManager.putAction(new TaskAdminAction(), "user.task.right");
|
796 |
}
|
841 |
}
|
797 |
|
842 |
|
798 |
mManager.putAction(new ListeDesContactsAdministratif(), "office.contact.list");
|
843 |
mManager.putAction(new ListeDesContactsAdministratif(), "office.contact.list");
|
799 |
mManager.putAction(new ListeDesCommerciauxAction(), "salesman.list");
|
844 |
mManager.putAction(new ListeDesCommerciauxAction(), "salesman.list");
|
800 |
mManager.putAction(new ListeDesCaissesTicketAction(), "pos.list");
|
845 |
mManager.putAction(new ListeDesCaissesTicketAction(), "pos.list");
|
801 |
|
846 |
|
802 |
|
847 |
|
803 |
mManager.putAction(new ListeDesSocietesCommonsAction(), "enterprise.list");
|
848 |
mManager.putAction(new ListeDesSocietesCommonsAction(), "enterprise.list");
|
804 |
|
849 |
|
805 |
mManager.putAction(new ListeBanqueAction(), "divison.bank.list");
|
850 |
mManager.putAction(new ListeBanqueAction(), "divison.bank.list");
|
806 |
mManager.putAction(new NouvelleSocieteAction(), "enterprise.create");
|
851 |
mManager.putAction(new NouvelleSocieteAction(this.getConfiguration()), "enterprise.create");
|
807 |
}
|
852 |
}
|
808 |
|
853 |
|
809 |
public void registerHelpMenuActions(final MenuAndActions mManager) {
|
854 |
public void registerHelpMenuActions(final MenuAndActions mManager) {
|
810 |
mManager.putAction(AboutAction.getInstance(), "information");
|
855 |
mManager.putAction(AboutAction.getInstance(), "information");
|
811 |
mManager.putAction(new AstuceAction(), "tips");
|
856 |
mManager.putAction(new AstuceAction(), "tips");
|
812 |
}
|
857 |
}
|
813 |
|
858 |
|
814 |
public void registerHelpTestActions(final MenuAndActions mManager) {
|
859 |
public void registerHelpTestActions(final MenuAndActions mManager) {
|
815 |
|
860 |
|
- |
|
861 |
mManager.putAction(new NouveauClotureSansAnouveauxAction(), "accounting.closing.sansanouveaux");
|
816 |
// mManager.registerAction("test.export.ecrp", new ExportPointageAction());
|
862 |
// mManager.putAction("test.export.ecrp", new ExportPointageAction());
|
817 |
|
863 |
|
818 |
}
|
864 |
}
|
819 |
}
|
865 |
}
|