Skip to content

Commit

Permalink
Inserito Flag "Soo gae Movimentate" in stampa progetto
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelepagano committed Nov 10, 2016
1 parent 6df145a commit b9bfd5c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
Expand Up @@ -44,4 +44,18 @@ public Forward doBringBackSearchFindGaeForPrint(ActionContext context, Stampa_si
stampa_gae.setProgettoForPrint(gae.getProgetto());
return context.findDefaultForward();
}

public Forward doCheckPrintGae(ActionContext context){
try {
fillModel(context);
ParametricPrintBP bp = (ParametricPrintBP)context.getBusinessProcess();
Stampa_situazione_sintetica_x_progettoBulk stampa = ((Stampa_situazione_sintetica_x_progettoBulk)bp.getModel());

if (!stampa.getPrintGae())
stampa.setPrintSoloGaeAttive(Boolean.FALSE);
return context.findDefaultForward();
} catch(Exception e) {
return handleException(context,e);
}
}
}
Expand Up @@ -44,6 +44,8 @@ public class Stampa_situazione_sintetica_x_progettoBulk extends OggettoBulk {

private Boolean printMovimentazione;

private Boolean printSoloGaeAttive;

private String ti_ordine_stampa;

public final static String TI_ORDINE_GAE_VOCE_ANNO = "V";
Expand Down Expand Up @@ -207,4 +209,12 @@ public Boolean getPrintVoce() {
public void setPrintVoce(Boolean printVoce) {
this.printVoce = printVoce;
}

public Boolean getPrintSoloGaeAttive() {
return printSoloGaeAttive;
}

public void setPrintSoloGaeAttive(Boolean printSoloGaeAttive) {
this.printSoloGaeAttive = printSoloGaeAttive;
}
}
Expand Up @@ -105,6 +105,7 @@
property="printGae"
inputType="CHECKBOX"
nullable="false"
command="doCheckPrintGae"
label="GAE" />
<fieldProperty
name="printVoce"
Expand All @@ -126,6 +127,12 @@
inputType="CHECKBOX"
nullable="false"
label="Movimentazione" />
<fieldProperty
name="printSoloGaeAttive"
property="printSoloGaeAttive"
inputType="CHECKBOX"
nullable="false"
label="Solo GAE movimentate nell'esercizio" />
<fieldProperty
name="ti_ordine_stampa"
property="ti_ordine_stampa"
Expand Down Expand Up @@ -162,6 +169,7 @@
<formFieldProperty name="printVoce" />
<formFieldProperty name="printAnno" />
<formFieldProperty name="printMovimentazione" />
<formFieldProperty name="printSoloGaeAttive" />
<formFieldProperty name="ti_ordine_stampa" />

<printForm
Expand Down Expand Up @@ -217,6 +225,12 @@
parameterType="STRING"
paramNameJR="P_PRINT_MOVIMENTAZIONE"
paramTypeJR="java.lang.Boolean" />
<printFieldProperty
name="printSoloGaeAttive"
parameterPosition="8"
parameterType="STRING"
paramNameJR="P_PRINT_SOLO_GAE_ATTIVE"
paramTypeJR="java.lang.Boolean" />
<printFieldProperty
name="ti_ordine_stampa"
parameterPosition="9"
Expand Down
Expand Up @@ -78,6 +78,10 @@
<tr>
<td><% bp.getController().writeFormLabel(out,"printGae"); %></td>
<td><% bp.getController().writeFormInput(out,"printGae"); %></td>
<% if (Boolean.TRUE.equals(((Stampa_situazione_sintetica_x_progettoBulk)bp.getModel()).getPrintGae())) { %>
<td><% bp.getController().writeFormLabel(out,"printSoloGaeAttive"); %></td>
<td><% bp.getController().writeFormInput(out,"printSoloGaeAttive"); %></td>
<% } %>
</tr>
<tr>
<td><% bp.getController().writeFormLabel(out,"printVoce"); %></td>
Expand Down

0 comments on commit b9bfd5c

Please sign in to comment.