|
|
@ -186,12 +186,12 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
boolean normArt3com4, boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, |
|
|
|
boolean normArt3com4, boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, |
|
|
|
boolean normLTC01, boolean suap, boolean normSismaBonus, String clRischioPreInt, |
|
|
|
boolean normLTC01, boolean suap, boolean normSismaBonus, String clRischioPreInt, |
|
|
|
String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, |
|
|
|
String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, |
|
|
|
ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, String paesaggioLocale, |
|
|
|
ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, |
|
|
|
String livelloDiTutela, String vincoli, String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, Boolean tcManutOrdStraord, |
|
|
|
String paesaggioLocale, String livelloDiTutela, String vincoli, |
|
|
|
|
|
|
|
String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, Boolean tcManutOrdStraord, |
|
|
|
Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, |
|
|
|
Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, |
|
|
|
boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, |
|
|
|
boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean tcViarch, |
|
|
|
boolean tcViarch, boolean tcOperaA25) |
|
|
|
boolean tcOperaA25) throws PortalException, SystemException { |
|
|
|
throws PortalException, SystemException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DettPratica dettPratica = null; |
|
|
|
DettPratica dettPratica = null; |
|
|
|
if (oldDettPraticaId == 0) { |
|
|
|
if (oldDettPraticaId == 0) { |
|
|
@ -231,8 +231,8 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
tcAdeguamentoSismico, tcMiglioramentoSismico, tcRiparazioneInterventoLocale, |
|
|
|
tcAdeguamentoSismico, tcMiglioramentoSismico, tcRiparazioneInterventoLocale, |
|
|
|
normLavoriInProprio, normEsenteBollo, normEsenteSpese, normDpr01Dep, |
|
|
|
normLavoriInProprio, normEsenteBollo, normEsenteSpese, normDpr01Dep, |
|
|
|
normDpr02Dep, normDpr01Aut, normDpr02Aut, normArt3com3, normArt3com4, |
|
|
|
normDpr02Dep, normDpr01Aut, normDpr02Aut, normArt3com3, normArt3com4, |
|
|
|
serviceContext, bozza, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, |
|
|
|
serviceContext, bozza, noCollaudo, tcNuovaCostruzionePertinenza, |
|
|
|
tcViarch, tcOperaA25); |
|
|
|
tcInterventoOpereEscavazione, tcViarch, tcOperaA25); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
@ -277,10 +277,10 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, |
|
|
|
normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, |
|
|
|
normArt3com4, normOrd01, normDm04, normDm05, normCI01, normLTC01, suap, |
|
|
|
normArt3com4, normOrd01, normDm04, normDm05, normCI01, normLTC01, suap, |
|
|
|
normSismaBonus, clRischioPreInt, clRischioPostInt, intervFinPub, |
|
|
|
normSismaBonus, clRischioPreInt, clRischioPostInt, intervFinPub, |
|
|
|
intervFinPubDesc, serviceContext, bozza, paesaggioLocale, |
|
|
|
intervFinPubDesc, serviceContext, bozza, paesaggioLocale, livelloDiTutela, |
|
|
|
livelloDiTutela, vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, |
|
|
|
vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, |
|
|
|
tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, |
|
|
|
tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, |
|
|
|
tcViarch, tcOperaA25); |
|
|
|
tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -354,23 +354,20 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, normDm03, normDm2018, |
|
|
|
normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, normDm03, normDm2018, |
|
|
|
normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, normDm04, |
|
|
|
normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, normDm04, |
|
|
|
normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, |
|
|
|
normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, |
|
|
|
intervFinPub, intervFinPubDesc, serviceContext, bozza, paesaggioLocale, |
|
|
|
intervFinPub, intervFinPubDesc, serviceContext, bozza, paesaggioLocale, livelloDiTutela, |
|
|
|
livelloDiTutela, vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, |
|
|
|
vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, |
|
|
|
tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, |
|
|
|
tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, |
|
|
|
tcViarch, tcOperaA25); |
|
|
|
tcInterventoOpereEscavazione, tcViarch, tcOperaA25); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return dettPratica; |
|
|
|
return dettPratica; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public DettPratica fetchDettPratica(long dettPraticaId) throws SystemException { |
|
|
|
public DettPratica fetchDettPratica(long dettPraticaId) throws SystemException { |
|
|
|
|
|
|
|
|
|
|
|
// TODO permessi
|
|
|
|
|
|
|
|
return dettPraticaLocalService.fetchDettPratica(dettPraticaId); |
|
|
|
return dettPraticaLocalService.fetchDettPratica(dettPraticaId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public DettPratica getLastCompletedByIntPratica(long intPraticaId) throws SystemException { |
|
|
|
public DettPratica getLastCompletedByIntPratica(long intPraticaId) throws SystemException { |
|
|
|
|
|
|
|
|
|
|
|
return dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
return dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -440,14 +437,15 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
return dettPraticaLocalService.updateCheckPagamenti(dettPraticaId, normEsenteSpese, normEsenteBollo); |
|
|
|
return dettPraticaLocalService.updateCheckPagamenti(dettPraticaId, normEsenteSpese, normEsenteBollo); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException,SystemException, PortalException { |
|
|
|
public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, |
|
|
|
|
|
|
|
PortalException { |
|
|
|
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); |
|
|
|
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); |
|
|
|
DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), ActionKeys.ADD_ENTRY); |
|
|
|
DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), ActionKeys.ADD_ENTRY); |
|
|
|
return dettPraticaLocalService.updateEsito(dettPraticaId, stato); |
|
|
|
return dettPraticaLocalService.updateEsito(dettPraticaId, stato); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException,SystemException, |
|
|
|
public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException, |
|
|
|
PortalException { |
|
|
|
SystemException, PortalException { |
|
|
|
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); |
|
|
|
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); |
|
|
|
DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), ActionKeys.ADD_ENTRY); |
|
|
|
DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), ActionKeys.ADD_ENTRY); |
|
|
|
return dettPraticaLocalService.updateEsitoIntegrazione(dettPraticaId, stato); |
|
|
|
return dettPraticaLocalService.updateEsitoIntegrazione(dettPraticaId, stato); |
|
|
@ -477,8 +475,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
return dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); |
|
|
|
return dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getNumeroDiVersioni(long intPraticaId, long companyId) throws IOException, PortalException, |
|
|
|
public int getNumeroDiVersioni(long intPraticaId, long companyId) throws Exception { |
|
|
|
SystemException { |
|
|
|
|
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
String shapshotsCountURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|
String shapshotsCountURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, false); |
|
|
|
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, false); |
|
|
@ -488,8 +485,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
return dettPraticaLocalService.getNumeroDiVersioni(shapshotsCountURL); |
|
|
|
return dettPraticaLocalService.getNumeroDiVersioni(shapshotsCountURL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getJsonVersion(long intPraticaId, long companyId, int version) throws PortalException, |
|
|
|
public String getJsonVersion(long intPraticaId, long companyId, int version) throws Exception { |
|
|
|
SystemException, IOException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
String shapshotsURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|
String shapshotsURL = (String) company.getExpandoBridge().getAttribute( |
|
|
@ -501,8 +497,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String callForChanges(long intPraticaId, long companyId, int version) throws IOException, |
|
|
|
public String callForChanges(long intPraticaId, long companyId, int version) throws Exception { |
|
|
|
PortalException, SystemException { |
|
|
|
|
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
String changesURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|
String changesURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES, false); |
|
|
|
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES, false); |
|
|
@ -532,8 +527,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void sendToVersioning(long dettPraticaId, long companyId) throws PortalException, SystemException, |
|
|
|
public void sendToVersioning(long dettPraticaId, long companyId) throws Exception { |
|
|
|
NoSuchFieldException, SecurityException, IOException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
Company company = CompanyLocalServiceUtil.getCompany(companyId); |
|
|
|
String commitURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|
String commitURL = (String) company.getExpandoBridge().getAttribute( |
|
|
|