Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BugID: 551 - Nuova consultazione dati intrastat inviati per UO
- Loading branch information
rpucciarelli
committed
Feb 21, 2011
1 parent
dd237d9
commit 5b36f2b
Showing
11 changed files
with
756 additions
and
0 deletions.
There are no files selected for viewing
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
158 changes: 158 additions & 0 deletions
158
sigla-ejb/src/main/java/it/cnr/contab/docamm00/docs/bulk/VIntrastatInviatoBase.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 |
---|---|---|
@@ -0,0 +1,158 @@ | ||
/* | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Date 17/02/2011 | ||
*/ | ||
package it.cnr.contab.docamm00.docs.bulk; | ||
import java.math.BigDecimal; | ||
|
||
import it.cnr.jada.persistency.Keyed; | ||
public class VIntrastatInviatoBase extends VIntrastatInviatoKey implements Keyed { | ||
|
||
// MESE DECIMAL(22,0) | ||
private java.lang.Integer mese; | ||
|
||
// TIPO VARCHAR(15) | ||
private java.lang.String tipo; | ||
|
||
// DT_REGISTRAZIONE TIMESTAMP(7) | ||
private java.sql.Timestamp dt_registrazione; | ||
|
||
// NR_FATTURA VARCHAR(40) | ||
private java.lang.String nr_fattura; | ||
|
||
// PARTITA_IVA VARCHAR(20) | ||
private java.lang.String partita_iva; | ||
|
||
// TI_BENE_SERVIZIO VARCHAR(7) | ||
private java.lang.String ti_bene_servizio; | ||
|
||
// CODICE VARCHAR(8) | ||
private java.lang.String codice; | ||
|
||
// AMMONTARE_EURO DECIMAL(22,0) | ||
private BigDecimal ammontare_euro; | ||
|
||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Table name: V_INTRASTAT_INVIATO | ||
**/ | ||
public VIntrastatInviatoBase() { | ||
super(); | ||
} | ||
public VIntrastatInviatoBase(java.lang.String uo,java.lang.Integer esercizio,java.lang.Long progressivo,java.lang.Long protocollo_invio,java.lang.Long riga_invio) { | ||
super(uo,esercizio,progressivo,protocollo_invio,riga_invio); | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [mese] | ||
**/ | ||
public java.lang.Integer getMese() { | ||
return mese; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [mese] | ||
**/ | ||
public void setMese(java.lang.Integer mese) { | ||
this.mese=mese; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [tipo] | ||
**/ | ||
public java.lang.String getTipo() { | ||
return tipo; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [tipo] | ||
**/ | ||
public void setTipo(java.lang.String tipo) { | ||
this.tipo=tipo; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [dt_registrazione] | ||
**/ | ||
public java.sql.Timestamp getDt_registrazione() { | ||
return dt_registrazione; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [dt_registrazione] | ||
**/ | ||
public void setDt_registrazione(java.sql.Timestamp dt_registrazione) { | ||
this.dt_registrazione=dt_registrazione; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [nr_fattura] | ||
**/ | ||
public java.lang.String getNr_fattura() { | ||
return nr_fattura; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [nr_fattura] | ||
**/ | ||
public void setNr_fattura(java.lang.String nr_fattura) { | ||
this.nr_fattura=nr_fattura; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [partita_iva] | ||
**/ | ||
public java.lang.String getPartita_iva() { | ||
return partita_iva; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [partita_iva] | ||
**/ | ||
public void setPartita_iva(java.lang.String partita_iva) { | ||
this.partita_iva=partita_iva; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [ti_bene_servizio] | ||
**/ | ||
public java.lang.String getTi_bene_servizio() { | ||
return ti_bene_servizio; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [ti_bene_servizio] | ||
**/ | ||
public void setTi_bene_servizio(java.lang.String ti_bene_servizio) { | ||
this.ti_bene_servizio=ti_bene_servizio; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [codice] | ||
**/ | ||
public java.lang.String getCodice() { | ||
return codice; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [codice] | ||
**/ | ||
public void setCodice(java.lang.String codice) { | ||
this.codice=codice; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Restituisce il valore di: [ammontare_euro] | ||
**/ | ||
public BigDecimal getAmmontare_euro() { | ||
return ammontare_euro; | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Setta il valore di: [ammontare_euro] | ||
**/ | ||
public void setAmmontare_euro(BigDecimal ammontare_euro) { | ||
this.ammontare_euro=ammontare_euro; | ||
} | ||
|
||
} |
108 changes: 108 additions & 0 deletions
108
sigla-ejb/src/main/java/it/cnr/contab/docamm00/docs/bulk/VIntrastatInviatoBulk.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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Date 17/02/2011 | ||
*/ | ||
package it.cnr.contab.docamm00.docs.bulk; | ||
import it.cnr.jada.action.ActionContext; | ||
import it.cnr.jada.bulk.OggettoBulk; | ||
import it.cnr.jada.util.OrderedHashtable; | ||
import it.cnr.jada.util.action.CRUDBP; | ||
public class VIntrastatInviatoBulk extends VIntrastatInviatoBase { | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Table name: V_INTRASTAT_INVIATO | ||
**/ | ||
public VIntrastatInviatoBulk() { | ||
super(); | ||
} | ||
/** | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Table name: V_INTRASTAT_INVIATO | ||
**/ | ||
public VIntrastatInviatoBulk(java.lang.String uo,java.lang.Integer esercizio,java.lang.Long progressivo,java.lang.Long protocollo_invio,java.lang.Long riga_invio) { | ||
super(uo,esercizio,progressivo,protocollo_invio,riga_invio); | ||
} | ||
|
||
|
||
private static OrderedHashtable tipoKeys; | ||
final public static String ATTIVA = "Fattura Attiva"; | ||
final public static String PASSIVA = "Fattura Passiva"; | ||
|
||
public OrderedHashtable getTipoKeys() { | ||
if (tipoKeys == null) | ||
{ | ||
tipoKeys = new OrderedHashtable(); | ||
tipoKeys.put("Fattura Attiva", "Fattura Attiva"); | ||
tipoKeys.put("Fattura Passiva", "Fattura Passiva"); | ||
} | ||
return tipoKeys; | ||
} | ||
|
||
/** | ||
* @param hashtable | ||
*/ | ||
public static void setTipoKeys(OrderedHashtable hashtable) { | ||
tipoKeys = hashtable; | ||
} | ||
private static OrderedHashtable tiBeneServizioKeys; | ||
final public static String BENI = "Beni"; | ||
final public static String SERVIZI = "Servizi"; | ||
|
||
public OrderedHashtable getTiBeneServizioKeys() { | ||
if (tiBeneServizioKeys == null) | ||
{ | ||
tiBeneServizioKeys = new OrderedHashtable(); | ||
tiBeneServizioKeys.put("Beni", "Beni"); | ||
tiBeneServizioKeys.put("Servizi", "Servizi"); | ||
} | ||
return tiBeneServizioKeys; | ||
} | ||
|
||
/** | ||
* @param hashtable | ||
*/ | ||
public static void setTiBeneServizioKeys(OrderedHashtable hashtable) { | ||
tiBeneServizioKeys = hashtable; | ||
} | ||
|
||
private static java.util.Dictionary meseKeys = new it.cnr.jada.util.OrderedHashtable(); | ||
public static final int GENNAIO = 1; | ||
public static final int FEBBRAIO = 2; | ||
public static final int MARZO = 3; | ||
public static final int APRILE = 4; | ||
public static final int MAGGIO = 5; | ||
public static final int GIUGNO = 6; | ||
public static final int LUGLIO = 7; | ||
public static final int AGOSTO = 8; | ||
public static final int SETTEMBRE = 9; | ||
public static final int OTTOBRE = 10; | ||
public static final int NOVEMBRE = 11; | ||
public static final int DICEMBRE = 12; | ||
|
||
static { | ||
meseKeys.put(new Integer(GENNAIO),"Gennaio"); | ||
meseKeys.put(new Integer(FEBBRAIO),"Febbraio"); | ||
meseKeys.put(new Integer(MARZO),"Marzo"); | ||
meseKeys.put(new Integer(APRILE),"Aprile"); | ||
meseKeys.put(new Integer(MAGGIO),"Maggio"); | ||
meseKeys.put(new Integer(GIUGNO),"Giugno"); | ||
meseKeys.put(new Integer(LUGLIO),"Luglio"); | ||
meseKeys.put(new Integer(AGOSTO),"Agosto"); | ||
meseKeys.put(new Integer(SETTEMBRE),"Settembre"); | ||
meseKeys.put(new Integer(OTTOBRE),"Ottobre"); | ||
meseKeys.put(new Integer(NOVEMBRE),"Novembre"); | ||
meseKeys.put(new Integer(DICEMBRE),"Dicembre"); | ||
} | ||
/** | ||
* @param dictionary | ||
*/ | ||
public final java.util.Dictionary getMeseKeys() { | ||
return meseKeys; | ||
} | ||
/** | ||
* @param dictionary | ||
*/ | ||
public static void setMeseKeys(java.util.Dictionary dictionary) { | ||
meseKeys = dictionary; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
sigla-ejb/src/main/java/it/cnr/contab/docamm00/docs/bulk/VIntrastatInviatoHome.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Created by BulkGenerator 2.0 [07/12/2009] | ||
* Date 17/02/2011 | ||
*/ | ||
package it.cnr.contab.docamm00.docs.bulk; | ||
import java.sql.Connection; | ||
import java.util.List; | ||
|
||
import it.cnr.contab.config00.sto.bulk.Unita_organizzativaBulk; | ||
import it.cnr.contab.config00.sto.bulk.Unita_organizzativa_enteBulk; | ||
import it.cnr.contab.utenze00.bp.CNRUserContext; | ||
import it.cnr.jada.UserContext; | ||
import it.cnr.jada.bulk.BulkHome; | ||
import it.cnr.jada.persistency.PersistencyException; | ||
import it.cnr.jada.persistency.PersistentCache; | ||
import it.cnr.jada.persistency.sql.CompoundFindClause; | ||
import it.cnr.jada.persistency.sql.PersistentHome; | ||
import it.cnr.jada.persistency.sql.SQLBuilder; | ||
public class VIntrastatInviatoHome extends BulkHome { | ||
public VIntrastatInviatoHome(Connection conn) { | ||
super(VIntrastatInviatoBulk.class, conn); | ||
} | ||
public VIntrastatInviatoHome(Connection conn, PersistentCache persistentCache) { | ||
super(VIntrastatInviatoBulk.class, conn, persistentCache); | ||
} | ||
public SQLBuilder selectByClause(UserContext usercontext, CompoundFindClause compoundfindclause) throws PersistencyException { | ||
SQLBuilder sql = super.selectByClause(usercontext, compoundfindclause); | ||
sql.addClause("AND","esercizio",SQLBuilder.EQUALS, CNRUserContext.getEsercizio(usercontext)); | ||
PersistentHome uoEnteHome = getHomeCache().getHome(Unita_organizzativa_enteBulk.class); | ||
List result = uoEnteHome.fetchAll( uoEnteHome.createSQLBuilder() ); | ||
String uoEnte = ((Unita_organizzativaBulk) result.get(0)).getCd_unita_organizzativa(); | ||
|
||
if(CNRUserContext.getCd_unita_organizzativa(usercontext).compareTo(uoEnte)!=0) | ||
sql.addClause("AND","uo",SQLBuilder.EQUALS, CNRUserContext.getCd_unita_organizzativa(usercontext)); | ||
return sql; | ||
} | ||
} |
Oops, something went wrong.