Skip to content

Commit

Permalink
Aggiunto tipo debito siope
Browse files Browse the repository at this point in the history
  • Loading branch information
gifracr committed Dec 21, 2018
1 parent 4eaad35 commit bbf925f
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 3 deletions.
Expand Up @@ -1571,13 +1571,18 @@ ASSICURATA"/>
C: COMMERCIALE
N: NON COMMERCIALE
I: IVA"/>
</addColumn>
</addColumn>
<addColumn tableName="reversale">
<column name="tipo_debito_siope" type="char(1)" remarks="Tipo Debito siope+ Può assumere i valori:
C: COMMERCIALE
N: NON COMMERCIALE
I: IVA"/>
</addColumn>
</changeSet>
<changeSet author="gianfranco.gasparro" id="alter_tipo_trattamento_add_tipo_debito_siope">
<addColumn tableName="tipo_trattamento">
<column name="tipo_debito_siope" type="varchar2(1)" remarks="Tipo Debito per Siope+. I valori possibili sono: C = Commerciale o N = Non Commerciale"/>
</addColumn>
</changeSet>
</databaseChangeLog>

Expand Up @@ -80,6 +80,8 @@ public class Tipo_trattamentoBase extends Tipo_trattamentoKey implements Keyed {

private java.lang.Boolean fl_split_payment;

private java.lang.String tipoDebitoSiope;

public Tipo_trattamentoBase() {
super();
}
Expand Down Expand Up @@ -317,4 +319,10 @@ public java.lang.Boolean getFl_split_payment() {
public void setFl_split_payment(java.lang.Boolean fl_split_payment) {
this.fl_split_payment = fl_split_payment;
}
public java.lang.String getTipoDebitoSiope() {
return tipoDebitoSiope;
}
public void setTipoDebitoSiope(java.lang.String tipoDebitoSiope) {
this.tipoDebitoSiope = tipoDebitoSiope;
}
}
Expand Up @@ -4,13 +4,17 @@
import it.cnr.jada.bulk.OggettoBulk;
import it.cnr.jada.util.OrderedHashtable;

import java.util.Dictionary;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(value=Include.NON_NULL)
public class Tipo_trattamentoBulk extends Tipo_trattamentoBase {

public final static java.lang.String ATT_COMMERCIALE = "Y";
public final static java.lang.String ATT_NON_COMMERCIALE = "N";
public final static java.lang.String TIPO_DEBITO_NON_COMMERCIALE = "N";
public final static java.lang.String TIPO_DEBITO_COMMERCIALE = "C";

private final static java.util.Dictionary TIPO_COMMERCIALE;

Expand All @@ -19,6 +23,15 @@ public class Tipo_trattamentoBulk extends Tipo_trattamentoBase {
TIPO_COMMERCIALE.put(ATT_COMMERCIALE, "Attività commerciali");
TIPO_COMMERCIALE.put(ATT_NON_COMMERCIALE, "Attività NON commerciali");
}

public final static Dictionary TIPO_DEBITO_SIOPE;

static {
TIPO_DEBITO_SIOPE = new it.cnr.jada.util.OrderedHashtable();
TIPO_DEBITO_SIOPE.put(TIPO_DEBITO_COMMERCIALE,"Commerciale");
TIPO_DEBITO_SIOPE.put(TIPO_DEBITO_NON_COMMERCIALE,"Non Commerciale");
}

private java.util.List intervalli;
public Tipo_trattamentoBulk() {
super();
Expand Down Expand Up @@ -113,4 +126,8 @@ public void setDataFineValidita(java.sql.Timestamp newDate) {
public void setIntervalli(java.util.List newIntervalli) {
intervalli = newIntervalli;
}
public Dictionary getTipoDebitoSiopeKeys() {

return TIPO_DEBITO_SIOPE;
}
}
Expand Up @@ -197,7 +197,7 @@ public void firmaOTP(ActionContext context, FirmaOTPBulk firmaOTPBulk) throws Ex
storageFile.getContentType(),
storageFile.getFileName(),
path,
true
false
)).ifPresent(storageObject -> {
List<String> aspects = storageObject.<List<String>>getPropertyValue(StoragePropertyNames.SECONDARY_OBJECT_TYPE_IDS.value());
aspects.add(StorageDocAmmAspect.SIGLA_FATTURE_ATTACHMENT_FATTURA_ELETTRONICA_XML_ANTE_FIRMA.value());
Expand Down
Expand Up @@ -204,6 +204,12 @@
columnSize="1"
nullable="false"
converterClassName="it.cnr.jada.persistency.sql.CHARToBooleanConverter" />
<columnMapping
columnName="TIPO_DEBITO_SIOPE"
propertyName="tipoDebitoSiope"
sqlTypeName="CHAR"
columnSize="1"
nullable="true" />

</defaultColumnMap>
<persistentProperty
Expand Down Expand Up @@ -265,5 +271,7 @@
<persistentProperty
name="fl_solo_inail_ente" />
<persistentProperty
name="fl_split_payment" />
name="fl_split_payment" />
<persistentProperty
name="tipoDebitoSiope" />
</SQLPersistentInfo>
Expand Up @@ -242,6 +242,17 @@
enabledOnSearch="false"
enabledOnEdit="true"
enabledOnInsert="true" />
<fieldProperty
name="tipoDebitoSiope"
property="tipoDebitoSiope"
keysProperty="tipoDebitoSiopeKeys"
inputType="SELECT"
nullable="false"
enabledOnInsert="true"
enabledOnEdit="true"
enabledOnSearch="false"
enabledOnFreeSearch="true"
label="Tipo Debito per Siope+"/>

<formFieldProperty
name="cd_trattamento"
Expand Down Expand Up @@ -273,6 +284,7 @@
<formFieldProperty name="fl_agevolazioni_rientro_lav" />
<formFieldProperty name="fl_solo_inail_ente" />
<formFieldProperty name="fl_split_payment" />
<formFieldProperty name="tipoDebitoSiope" />

<columnFieldProperty name="cd_trattamento" />
<columnFieldProperty name="ds_ti_trattamento" />
Expand Down Expand Up @@ -300,6 +312,7 @@
<columnFieldProperty name="fl_agevolazioni_rientro_lav" />
<columnFieldProperty name="fl_solo_inail_ente" />
<columnFieldProperty name="fl_split_payment" />
<columnFieldProperty name="tipoDebitoSiope" />

<columnSet name="cd_ds_trattamento">
<columnFieldProperty name="cd_trattamento" />
Expand Down Expand Up @@ -334,5 +347,6 @@
<findFieldProperty name="fl_agevolazioni_rientro_lav" />
<findFieldProperty name="fl_solo_inail_ente" />
<findFieldProperty name="fl_split_payment" />
<findFieldProperty name="tipoDebitoSiope" />

</bulkInfo>
7 changes: 7 additions & 0 deletions sigla-web/src/main/webapp/compensi00/tipo_trattamento.jsp
Expand Up @@ -112,6 +112,13 @@
<td><% bp.getController().writeFormInput(out,"fl_split_payment");%></td>
<td align="left"><% bp.getController().writeFormLabel(out,"fl_split_payment");%></td>
</tr>
<table class="Panel">
<tr>
<td colspan=4><% bp.getController().writeFormField(out,"tipoDebitoSiope"); %></td>
</tr>
</table>


</table>

<table class="Group" style="width:100%">
Expand Down

0 comments on commit bbf925f

Please sign in to comment.