Skip to content

Commit

Permalink
Corretta anomalia nel caso di missione non da GEMIS
Browse files Browse the repository at this point in the history
  • Loading branch information
gifracr committed Feb 23, 2017
1 parent 44c0ac9 commit 62197fc
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2677,15 +2677,18 @@ public void scaricaAllegato(ActionContext actioncontext) throws IOException, Ser
}

public String getNomeAllegatoDettaglio() throws ApplicationException{
Document document = recuperoDocumentoGiustificativoDettaglio();
if (document != null){
return document.getName();
Missione_dettaglioBulk dettaglio = (Missione_dettaglioBulk)getSpesaController().getModel();
if (dettaglio.isMissioneFromGemis()){
Document document = recuperoDocumentoGiustificativoDettaglio();
if (document != null){
return document.getName();
}
}
return "";
}
private Document recuperoDocumentoGiustificativoDettaglio() throws ApplicationException {
Missione_dettaglioBulk dettaglio = (Missione_dettaglioBulk)getSpesaController().getModel();
if (dettaglio != null){
if (dettaglio != null && dettaglio.isMissioneFromGemis()){
if (dettaglio.getDs_giustificativo() != null){
Folder node = (Folder)missioniCMISService.getNodeByNodeRef(dettaglio.getDs_giustificativo());
if (node != null){
Expand Down

0 comments on commit 62197fc

Please sign in to comment.