Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Variazioni Bilancio Residuo: corretta controllo su disponibilità …
…Piano Economico Progetto.
- Loading branch information
1 parent
e3af1ed
commit d227d80
Showing
10 changed files
with
2,561 additions
and
2,364 deletions.
There are no files selected for viewing
514 changes: 318 additions & 196 deletions
514
sigla-ejb/src/main/java/it/cnr/contab/doccont00/comp/SaldoComponent.java
Large diffs are not rendered by default.
Oops, something went wrong.
119 changes: 60 additions & 59 deletions
119
sigla-ejb/src/main/java/it/cnr/contab/doccont00/ejb/SaldoComponentSession.java
Large diffs are not rendered by default.
Oops, something went wrong.
1,001 changes: 509 additions & 492 deletions
1,001
sigla-ejb/src/main/java/it/cnr/contab/doccont00/ejb/SaldoComponentSessionBean.java
Large diffs are not rendered by default.
Oops, something went wrong.
1,083 changes: 550 additions & 533 deletions
1,083
sigla-ejb/src/main/java/it/cnr/contab/doccont00/ejb/TransactionalSaldoComponentSession.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,977 changes: 1,008 additions & 969 deletions
1,977
sigla-ejb/src/main/java/it/cnr/contab/progettiric00/core/bulk/ProgettoHome.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
190 changes: 95 additions & 95 deletions
190
sigla-ejb/src/main/java/it/cnr/contab/varstanz00/bulk/Var_stanz_resHome.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,96 @@ | ||
/* | ||
* Copyright (C) 2019 Consiglio Nazionale delle Ricerche | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* | ||
* Created by Generator 1.0 | ||
* Date 15/02/2006 | ||
*/ | ||
package it.cnr.contab.varstanz00.bulk; | ||
import it.cnr.contab.utenze00.bp.CNRUserContext; | ||
import it.cnr.jada.bulk.BulkHome; | ||
import it.cnr.jada.bulk.OggettoBulk; | ||
import it.cnr.jada.comp.ApplicationException; | ||
import it.cnr.jada.persistency.IntrospectionException; | ||
import it.cnr.jada.persistency.PersistencyException; | ||
import it.cnr.jada.persistency.PersistentCache; | ||
import it.cnr.jada.persistency.sql.PersistentHome; | ||
import it.cnr.jada.persistency.sql.SQLBuilder; | ||
public class Var_stanz_resHome extends BulkHome { | ||
public Var_stanz_resHome(java.sql.Connection conn) { | ||
super(Var_stanz_resBulk.class, conn); | ||
} | ||
public Var_stanz_resHome(java.sql.Connection conn, PersistentCache persistentCache) { | ||
super(Var_stanz_resBulk.class, conn, persistentCache); | ||
} | ||
public void initializePrimaryKeyForInsert(it.cnr.jada.UserContext userContext,OggettoBulk var_stanz_res) throws PersistencyException,ApplicationException { | ||
try { | ||
it.cnr.contab.config00.tabnum.ejb.Numerazione_baseComponentSession numerazione = | ||
(it.cnr.contab.config00.tabnum.ejb.Numerazione_baseComponentSession) | ||
it.cnr.jada.util.ejb.EJBCommonServices.createEJB("CNRCONFIG00_TABNUM_EJB_Numerazione_baseComponentSession", | ||
it.cnr.contab.config00.tabnum.ejb.Numerazione_baseComponentSession.class); | ||
if (((Var_stanz_resBulk)var_stanz_res).getPg_variazione()==null) { | ||
if (!userContext.isTransactional()) | ||
((Var_stanz_resBulk)var_stanz_res).setPg_variazione( | ||
numerazione.creaNuovoProgressivo(userContext,CNRUserContext.getEsercizio(userContext), "VAR_STANZ_RES", "PG_VARIAZIONE", CNRUserContext.getUser(userContext)) | ||
); | ||
else | ||
((Var_stanz_resBulk)var_stanz_res).setPg_variazione( | ||
numerazione.creaNuovoProgressivoTemp(userContext,CNRUserContext.getEsercizio(userContext), "VAR_STANZ_RES", "PG_VARIAZIONE", CNRUserContext.getUser(userContext)) | ||
); | ||
} | ||
((Var_stanz_resBulk)var_stanz_res).setEsercizio(CNRUserContext.getEsercizio(userContext)); | ||
}catch(it.cnr.jada.bulk.BusyResourceException e) { | ||
throw new ApplicationException(e); | ||
}catch(Throwable e) { | ||
throw new PersistencyException(e); | ||
} | ||
} | ||
/** | ||
* Recupera tutti i dati nella tabella ASS_VAR_STANZ_RES_CDR relativi alla testata in uso. | ||
* | ||
* @param testata La testata in uso. | ||
* | ||
* @return java.util.Collection Collezione di oggetti <code>Ass_pdg_variazione_cdrBulk</code> | ||
*/ | ||
|
||
public java.util.Collection findAssociazioneCDR(Var_stanz_resBulk testata) throws IntrospectionException, PersistencyException { | ||
PersistentHome dettHome = getHomeCache().getHome(Ass_var_stanz_res_cdrBulk.class); | ||
SQLBuilder sql = dettHome.createSQLBuilder(); | ||
sql.addClause("AND","esercizio",sql.EQUALS,testata.getEsercizio()); | ||
sql.addClause("AND","pg_variazione",sql.EQUALS,testata.getPg_variazione()); | ||
sql.addOrderBy("CD_CENTRO_RESPONSABILITA"); | ||
return dettHome.fetchAll(sql); | ||
} | ||
|
||
public java.util.Collection findVariazioniRiga(Var_stanz_resBulk testata) throws IntrospectionException, PersistencyException { | ||
PersistentHome dettHome = getHomeCache().getHome(Var_stanz_res_rigaBulk.class); | ||
SQLBuilder sql = dettHome.createSQLBuilder(); | ||
sql.addClause("AND","esercizio",sql.EQUALS,testata.getEsercizio()); | ||
sql.addClause("AND","pg_variazione",sql.EQUALS,testata.getPg_variazione()); | ||
sql.addClause("AND","cd_cdr",sql.EQUALS,testata.getCdr()!=null?testata.getCdr().getCd_centro_responsabilita():null); | ||
return dettHome.fetchAll(sql); | ||
} | ||
public java.util.Collection findAllVariazioniRiga(Var_stanz_resBulk testata) throws IntrospectionException, PersistencyException { | ||
PersistentHome dettHome = getHomeCache().getHome(Var_stanz_res_rigaBulk.class); | ||
SQLBuilder sql = dettHome.createSQLBuilder(); | ||
sql.addClause("AND","esercizio",sql.EQUALS,testata.getEsercizio()); | ||
sql.addClause("AND","pg_variazione",sql.EQUALS,testata.getPg_variazione()); | ||
return dettHome.fetchAll(sql); | ||
} | ||
|
||
|
||
/* | ||
* Copyright (C) 2019 Consiglio Nazionale delle Ricerche | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* | ||
* Created by Generator 1.0 | ||
* Date 15/02/2006 | ||
*/ | ||
package it.cnr.contab.varstanz00.bulk; | ||
import it.cnr.contab.utenze00.bp.CNRUserContext; | ||
import it.cnr.jada.bulk.BulkHome; | ||
import it.cnr.jada.bulk.OggettoBulk; | ||
import it.cnr.jada.comp.ApplicationException; | ||
import it.cnr.jada.persistency.IntrospectionException; | ||
import it.cnr.jada.persistency.PersistencyException; | ||
import it.cnr.jada.persistency.PersistentCache; | ||
import it.cnr.jada.persistency.sql.PersistentHome; | ||
import it.cnr.jada.persistency.sql.SQLBuilder; | ||
public class Var_stanz_resHome extends BulkHome { | ||
public Var_stanz_resHome(java.sql.Connection conn) { | ||
super(Var_stanz_resBulk.class, conn); | ||
} | ||
public Var_stanz_resHome(java.sql.Connection conn, PersistentCache persistentCache) { | ||
super(Var_stanz_resBulk.class, conn, persistentCache); | ||
} | ||
public void initializePrimaryKeyForInsert(it.cnr.jada.UserContext userContext,OggettoBulk var_stanz_res) throws PersistencyException,ApplicationException { | ||
try { | ||
it.cnr.contab.config00.tabnum.ejb.Numerazione_baseComponentSession numerazione = | ||
(it.cnr.contab.config00.tabnum.ejb.Numerazione_baseComponentSession) | ||
it.cnr.jada.util.ejb.EJBCommonServices.createEJB("CNRCONFIG00_TABNUM_EJB_Numerazione_baseComponentSession", | ||
it.cnr.contab.config00.tabnum.ejb.Numerazione_baseComponentSession.class); | ||
if (((Var_stanz_resBulk)var_stanz_res).getPg_variazione()==null) { | ||
if (!userContext.isTransactional()) | ||
((Var_stanz_resBulk)var_stanz_res).setPg_variazione( | ||
numerazione.creaNuovoProgressivo(userContext,CNRUserContext.getEsercizio(userContext), "VAR_STANZ_RES", "PG_VARIAZIONE", CNRUserContext.getUser(userContext)) | ||
); | ||
else | ||
((Var_stanz_resBulk)var_stanz_res).setPg_variazione( | ||
numerazione.creaNuovoProgressivoTemp(userContext,CNRUserContext.getEsercizio(userContext), "VAR_STANZ_RES", "PG_VARIAZIONE", CNRUserContext.getUser(userContext)) | ||
); | ||
} | ||
((Var_stanz_resBulk)var_stanz_res).setEsercizio(CNRUserContext.getEsercizio(userContext)); | ||
}catch(it.cnr.jada.bulk.BusyResourceException e) { | ||
throw new ApplicationException(e); | ||
}catch(Throwable e) { | ||
throw new PersistencyException(e); | ||
} | ||
} | ||
/** | ||
* Recupera tutti i dati nella tabella ASS_VAR_STANZ_RES_CDR relativi alla testata in uso. | ||
* | ||
* @param testata La testata in uso. | ||
* | ||
* @return java.util.Collection Collezione di oggetti <code>Ass_pdg_variazione_cdrBulk</code> | ||
*/ | ||
|
||
public java.util.Collection findAssociazioneCDR(Var_stanz_resBulk testata) throws PersistencyException { | ||
PersistentHome dettHome = getHomeCache().getHome(Ass_var_stanz_res_cdrBulk.class); | ||
SQLBuilder sql = dettHome.createSQLBuilder(); | ||
sql.addClause("AND","esercizio",sql.EQUALS,testata.getEsercizio()); | ||
sql.addClause("AND","pg_variazione",sql.EQUALS,testata.getPg_variazione()); | ||
sql.addOrderBy("CD_CENTRO_RESPONSABILITA"); | ||
return dettHome.fetchAll(sql); | ||
} | ||
|
||
public java.util.Collection findVariazioniRiga(Var_stanz_resBulk testata) throws PersistencyException { | ||
PersistentHome dettHome = getHomeCache().getHome(Var_stanz_res_rigaBulk.class); | ||
SQLBuilder sql = dettHome.createSQLBuilder(); | ||
sql.addClause("AND","esercizio",sql.EQUALS,testata.getEsercizio()); | ||
sql.addClause("AND","pg_variazione",sql.EQUALS,testata.getPg_variazione()); | ||
sql.addClause("AND","cd_cdr",sql.EQUALS,testata.getCdr()!=null?testata.getCdr().getCd_centro_responsabilita():null); | ||
return dettHome.fetchAll(sql); | ||
} | ||
public java.util.Collection findAllVariazioniRiga(Var_stanz_resBulk testata) throws PersistencyException { | ||
PersistentHome dettHome = getHomeCache().getHome(Var_stanz_res_rigaBulk.class); | ||
SQLBuilder sql = dettHome.createSQLBuilder(); | ||
sql.addClause("AND","esercizio",sql.EQUALS,testata.getEsercizio()); | ||
sql.addClause("AND","pg_variazione",sql.EQUALS,testata.getPg_variazione()); | ||
return dettHome.fetchAll(sql); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters