diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java index dcba1c08..f59fa701 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java @@ -341,6 +341,14 @@ public interface IntPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java index 8fcb7d8b..7e5267fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java @@ -146,308 +146,315 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodName26 = "addIntPratica"; _methodParameterTypes26 = new String[] { - "long", "java.lang.String", + "long", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName27 = "addIntPratica"; _methodParameterTypes27 = new String[] { + "long", "java.lang.String", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName28 = "addIntPratica"; + + _methodParameterTypes28 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName28 = "deleteIntPratica"; + _methodName29 = "deleteIntPratica"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes29 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName29 = "cloneIntPratica"; + _methodName30 = "cloneIntPratica"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes30 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName30 = "updateDelegati"; + _methodName31 = "updateDelegati"; - _methodParameterTypes30 = new String[] { + _methodParameterTypes31 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName31 = "findFascicoliNotProgetto"; + _methodName32 = "findFascicoliNotProgetto"; - _methodParameterTypes31 = new String[] { "int", "int" }; + _methodParameterTypes32 = new String[] { "int", "int" }; - _methodName32 = "countFascicoliNotProgetto"; + _methodName33 = "countFascicoliNotProgetto"; - _methodParameterTypes32 = new String[] { }; + _methodParameterTypes33 = new String[] { }; - _methodName33 = "addNumeroProgetto"; + _methodName34 = "addNumeroProgetto"; - _methodParameterTypes33 = new String[] { "long" }; + _methodParameterTypes34 = new String[] { "long" }; - _methodName34 = "sospendiPratica"; + _methodName35 = "sospendiPratica"; - _methodParameterTypes34 = new String[] { "long", "boolean" }; + _methodParameterTypes35 = new String[] { "long", "boolean" }; - _methodName35 = "cambiaTitolare"; + _methodName36 = "cambiaTitolare"; - _methodParameterTypes35 = new String[] { + _methodParameterTypes36 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName36 = "updateStatoPratica"; + _methodName37 = "updateStatoPratica"; - _methodParameterTypes36 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes37 = new String[] { "long", "java.lang.String" }; - _methodName37 = "updateIntPraticaSorteggio"; + _methodName38 = "updateIntPraticaSorteggio"; - _methodParameterTypes37 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes38 = new String[] { "long", "java.util.Date" }; - _methodName38 = "updateIntPraticaSorteggio"; + _methodName39 = "updateIntPraticaSorteggio"; - _methodParameterTypes38 = new String[] { + _methodParameterTypes39 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName39 = "findByC_UserId"; + _methodName40 = "findByC_UserId"; - _methodParameterTypes39 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes40 = new String[] { "long", "long", "int", "int" }; - _methodName40 = "countByC_UserId"; + _methodName41 = "countByC_UserId"; - _methodParameterTypes40 = new String[] { "long", "long" }; + _methodParameterTypes41 = new String[] { "long", "long" }; - _methodName41 = "updateStatus"; + _methodName42 = "updateStatus"; - _methodParameterTypes41 = new String[] { "long", "int" }; + _methodParameterTypes42 = new String[] { "long", "int" }; - _methodName42 = "findByCompanyIdSoggettoProgetti"; - - _methodParameterTypes42 = new String[] { "long", "long" }; - - _methodName43 = "countByCompanyIdSoggettoProgetti"; + _methodName43 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes43 = new String[] { "long", "long" }; - _methodName44 = "findByCompanyIdSoggettoArchivio"; + _methodName44 = "countByCompanyIdSoggettoProgetti"; _methodParameterTypes44 = new String[] { "long", "long" }; - _methodName45 = "countByCompanyIdSoggettoArchivio"; + _methodName45 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes45 = new String[] { "long", "long" }; - _methodName46 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName46 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes46 = new String[] { "long", "long" }; + + _methodName47 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes46 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes47 = new String[] { "long", "long", "int", "int" }; - _methodName47 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName48 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes47 = new String[] { "long", "long" }; + _methodParameterTypes48 = new String[] { "long", "long" }; - _methodName48 = "findByCanAddFineLavori"; + _methodName49 = "findByCanAddFineLavori"; - _methodParameterTypes48 = new String[] { + _methodParameterTypes49 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName49 = "countByCanAddFineLavori"; + _methodName50 = "countByCanAddFineLavori"; - _methodParameterTypes49 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes50 = new String[] { "long", "java.lang.String" }; - _methodName50 = "findByCanAddCollaudo"; + _methodName51 = "findByCanAddCollaudo"; - _methodParameterTypes50 = new String[] { + _methodParameterTypes51 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName51 = "countByCanAddCollaudo"; + _methodName52 = "countByCanAddCollaudo"; - _methodParameterTypes51 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; - _methodName52 = "search"; + _methodName53 = "search"; - _methodParameterTypes52 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes53 = new String[] { "java.util.List", "int", "int" }; - _methodName53 = "countSearch"; + _methodName54 = "countSearch"; - _methodParameterTypes53 = new String[] { "java.util.List" }; + _methodParameterTypes54 = new String[] { "java.util.List" }; - _methodName54 = "searchWithIntPraticaId"; + _methodName55 = "searchWithIntPraticaId"; - _methodParameterTypes54 = new String[] { + _methodParameterTypes55 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName55 = "countSearchWithIntPraticaId"; + _methodName56 = "countSearchWithIntPraticaId"; - _methodParameterTypes55 = new String[] { "java.util.List", "long" }; + _methodParameterTypes56 = new String[] { "java.util.List", "long" }; - _methodName56 = "allegaFileAnnullamento"; + _methodName57 = "allegaFileAnnullamento"; - _methodParameterTypes56 = new String[] { + _methodParameterTypes57 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName57 = "generateFileAnnullamento"; + _methodName58 = "generateFileAnnullamento"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes58 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName58 = "deleteFileAnnullamento"; + _methodName59 = "deleteFileAnnullamento"; - _methodParameterTypes58 = new String[] { "long" }; + _methodParameterTypes59 = new String[] { "long" }; - _methodName59 = "completeAnnullamento"; + _methodName60 = "completeAnnullamento"; - _methodParameterTypes59 = new String[] { "long" }; + _methodParameterTypes60 = new String[] { "long" }; - _methodName60 = "cambiaIstruttore"; + _methodName61 = "cambiaIstruttore"; - _methodParameterTypes60 = new String[] { "long", "long", "long" }; + _methodParameterTypes61 = new String[] { "long", "long", "long" }; - _methodName61 = "countCaricoLavoroCF"; + _methodName62 = "countCaricoLavoroCF"; - _methodParameterTypes61 = new String[] { + _methodParameterTypes62 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName62 = "countCaricoLavoroIstruttore"; + _methodName63 = "countCaricoLavoroIstruttore"; - _methodParameterTypes62 = new String[] { + _methodParameterTypes63 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName63 = "generateReportPratica"; + _methodName64 = "generateReportPratica"; - _methodParameterTypes63 = new String[] { + _methodParameterTypes64 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName64 = "updateModifiedDate"; + _methodName65 = "updateModifiedDate"; - _methodParameterTypes64 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes65 = new String[] { "long", "java.util.Date" }; - _methodName65 = "countAutorizzazione"; + _methodName66 = "countAutorizzazione"; - _methodParameterTypes65 = new String[] { + _methodParameterTypes66 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName66 = "countSanatorie"; + _methodName67 = "countSanatorie"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes67 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName67 = "countOpereMinoreImportanza"; + _methodName68 = "countOpereMinoreImportanza"; - _methodParameterTypes67 = new String[] { + _methodParameterTypes68 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName68 = "countDeposito"; + _methodName69 = "countDeposito"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes69 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName69 = "countVidimate"; + _methodName70 = "countVidimate"; - _methodParameterTypes69 = new String[] { + _methodParameterTypes70 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName70 = "countControllo"; + _methodName71 = "countControllo"; - _methodParameterTypes70 = new String[] { + _methodParameterTypes71 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName71 = "findIntPraticaNotExist"; + _methodName72 = "findIntPraticaNotExist"; - _methodParameterTypes71 = new String[] { }; + _methodParameterTypes72 = new String[] { }; - _methodName72 = "riparaWorkflow"; + _methodName73 = "riparaWorkflow"; - _methodParameterTypes72 = new String[] { }; + _methodParameterTypes73 = new String[] { }; - _methodName73 = "reIndexFascicolo"; + _methodName74 = "reIndexFascicolo"; - _methodParameterTypes73 = new String[] { + _methodParameterTypes74 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName74 = "reIndexFasciolo"; - - _methodParameterTypes74 = new String[] { "java.lang.String", "long" }; - _methodName75 = "reIndexFasciolo"; - _methodParameterTypes75 = new String[] { "long", "long" }; + _methodParameterTypes75 = new String[] { "java.lang.String", "long" }; - _methodName76 = "trovaDoppioni"; + _methodName76 = "reIndexFasciolo"; - _methodParameterTypes76 = new String[] { }; + _methodParameterTypes76 = new String[] { "long", "long" }; - _methodName77 = "findByNumeroProgetto"; + _methodName77 = "trovaDoppioni"; - _methodParameterTypes77 = new String[] { "java.lang.String" }; + _methodParameterTypes77 = new String[] { }; - _methodName78 = "findByTerritorioId"; + _methodName78 = "findByNumeroProgetto"; - _methodParameterTypes78 = new String[] { "long" }; + _methodParameterTypes78 = new String[] { "java.lang.String" }; - _methodName79 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName79 = "findByTerritorioId"; - _methodParameterTypes79 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes79 = new String[] { "long" }; - _methodName80 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName80 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes80 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName81 = "reportPraticheVidimate"; + _methodName81 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes81 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName82 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName82 = "reportPraticheVidimate"; _methodParameterTypes82 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName83 = "countIngressiAutorizzazioni"; + _methodName83 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes83 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName84 = "countIngressiDepositi"; + _methodName84 = "countIngressiAutorizzazioni"; _methodParameterTypes84 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName85 = "countIngressiCO"; + _methodName85 = "countIngressiDepositi"; _methodParameterTypes85 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName86 = "countIngressiCO"; + + _methodParameterTypes86 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } @Override @@ -1254,6 +1261,7 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1267,6 +1275,50 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { ClpSerializer.translateInput(tipoProcedura), + isOspedaliera, + + ClpSerializer.translateInput(serviceContext) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, + new Object[] { + territorioId, + + ClpSerializer.translateInput(tipoProcedura), + ClpSerializer.translateInput(serviceContext) }); } @@ -1306,8 +1358,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { userId, @@ -1365,8 +1417,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1405,8 +1457,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { intPraticaId, @@ -1446,8 +1498,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { intPraticaId, @@ -1489,8 +1541,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1517,8 +1569,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1547,8 +1599,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1581,8 +1633,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1617,8 +1669,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, @@ -1658,8 +1710,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -1696,8 +1748,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId, @@ -1731,8 +1783,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, @@ -1767,8 +1819,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1796,8 +1848,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1823,8 +1875,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1855,8 +1907,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1889,8 +1941,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1924,8 +1976,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1958,8 +2010,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1993,8 +2045,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2028,8 +2080,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2063,8 +2115,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, @@ -2106,8 +2158,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { companyId, @@ -2145,8 +2197,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { companyId, @@ -2188,8 +2240,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { companyId, @@ -2226,8 +2278,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2261,8 +2313,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2291,8 +2343,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2329,8 +2381,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2367,8 +2419,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { intPraticaId, @@ -2418,8 +2470,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId, @@ -2458,8 +2510,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2488,8 +2540,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2518,8 +2570,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2552,8 +2604,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { ispettoreId, @@ -2594,8 +2646,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ispettoreId, @@ -2631,8 +2683,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2670,8 +2722,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { intPraticaId, @@ -2708,8 +2760,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2744,8 +2796,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2780,8 +2832,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2816,8 +2868,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2854,8 +2906,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2895,8 +2947,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2934,8 +2986,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2962,8 +3014,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2988,8 +3040,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, + _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { ClpSerializer.translateInput(intPratica), companyId }); } catch (Throwable t) { @@ -3009,8 +3061,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId) throws com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, + _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3039,8 +3091,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, + _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3070,8 +3122,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3099,8 +3151,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3129,8 +3181,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3159,8 +3211,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3197,8 +3249,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3234,8 +3286,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3272,8 +3324,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3308,8 +3360,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3344,8 +3396,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3380,8 +3432,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3580,4 +3632,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes84; private String _methodName85; private String[] _methodParameterTypes85; + private String _methodName86; + private String[] _methodParameterTypes86; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java index f4d400b7..cbfeabab 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java @@ -371,6 +371,17 @@ public class IntPraticaLocalServiceUtil { return getService().findSorteggiabili(companyId, dtSorteggio); } + public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .addIntPratica(territorioId, tipoProcedura, isOspedaliera, + serviceContext); + } + public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, com.liferay.portal.service.ServiceContext serviceContext) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java index eb9ec52a..b0c1b718 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java @@ -395,6 +395,17 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, return _intPraticaLocalService.findSorteggiabili(companyId, dtSorteggio); } + @Override + public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( + long territorioId, java.lang.String tipoProcedura, + boolean isOspedaliera, + com.liferay.portal.service.ServiceContext serviceContext) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPraticaLocalService.addIntPratica(territorioId, + tipoProcedura, isOspedaliera, serviceContext); + } + @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java new file mode 100644 index 00000000..2b29c751 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataExportActionableDynamicQuery.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package it.tref.liferay.portos.bo.service.persistence; + +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.lar.ExportImportHelperUtil; +import com.liferay.portal.kernel.lar.ManifestSummary; +import com.liferay.portal.kernel.lar.PortletDataContext; +import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil; +import com.liferay.portal.kernel.lar.StagedModelType; +import com.liferay.portal.util.PortalUtil; + +import it.tref.liferay.portos.bo.model.PraticaAttenzionata; + +/** + * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. + * @generated + */ +public class PraticaAttenzionataExportActionableDynamicQuery + extends PraticaAttenzionataActionableDynamicQuery { + public PraticaAttenzionataExportActionableDynamicQuery( + PortletDataContext portletDataContext) throws SystemException { + _portletDataContext = portletDataContext; + + setCompanyId(_portletDataContext.getCompanyId()); + + setGroupId(_portletDataContext.getScopeGroupId()); + } + + @Override + public long performCount() throws PortalException, SystemException { + ManifestSummary manifestSummary = _portletDataContext.getManifestSummary(); + + StagedModelType stagedModelType = getStagedModelType(); + + long modelAdditionCount = super.performCount(); + + manifestSummary.addModelAdditionCount(stagedModelType.toString(), + modelAdditionCount); + + long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext, + stagedModelType); + + manifestSummary.addModelDeletionCount(stagedModelType.toString(), + modelDeletionCount); + + return modelAdditionCount; + } + + @Override + protected void addCriteria(DynamicQuery dynamicQuery) { + _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate"); + } + + protected StagedModelType getStagedModelType() { + return new StagedModelType(PortalUtil.getClassNameId( + PraticaAttenzionata.class.getName())); + } + + @Override + @SuppressWarnings("unused") + protected void performAction(Object object) + throws PortalException, SystemException { + PraticaAttenzionata stagedModel = (PraticaAttenzionata)object; + + StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, + stagedModel); + } + + private PortletDataContext _portletDataContext; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java index b5d52818..2861c353 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java @@ -32,7 +32,8 @@ public class AvvisoUtil { public final static String FINE_LAVORI_AVVISO_FINE_LAVORI = "FL2"; /* Pratiche Ospedaliere */ - public static final String PRATICA_OSPEDALIERA = "PO"; + public static final String PRATICA_OSPEDALIERA_DEPOSITO = "PO_DEPO"; + public static final String PRATICA_OSPEDALIERA_CONFORMITA = "PO_CONF"; @SuppressWarnings("serial") private final static Map allTipoAvviso = new LinkedHashMap(2) { @@ -63,7 +64,8 @@ public class AvvisoUtil { put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore"); put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.avvisoInizioLavori"); put(FINE_LAVORI_AVVISO_FINE_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.avvisoFineLavori"); - put(PRATICA_OSPEDALIERA, "label.admingeniocivile.avviso.tipoDocumento.praticaOspedaliera"); + put(PRATICA_OSPEDALIERA_DEPOSITO, "label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.deposito"); + put(PRATICA_OSPEDALIERA_CONFORMITA, "label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.conformita"); } }; @@ -89,7 +91,8 @@ public class AvvisoUtil { put("DOM", "conf.geniocivile.avviso.folder.id.domanda_pdf"); put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "conf.geniocivile.avviso.folder.id.finelavori.FL1"); put(FINE_LAVORI_AVVISO_FINE_LAVORI, "conf.geniocivile.avviso.folder.id.finelavori.FL2"); - put(PRATICA_OSPEDALIERA, "conf.geniocivile.avviso.folder.id.praticaospedaliera"); + put(PRATICA_OSPEDALIERA_DEPOSITO, "conf.geniocivile.avviso.folder.id.praticaospedaliera.deposito"); + put(PRATICA_OSPEDALIERA_CONFORMITA, "conf.geniocivile.avviso.folder.id.praticaospedaliera.conformita"); } }; @@ -129,7 +132,8 @@ public class AvvisoUtil { put(FINE_LAVORI_AVVISO_INIZIO_LAVORI, "conf.geniocivile.avviso.template.id.finelavori.FL1"); put(FINE_LAVORI_AVVISO_FINE_LAVORI, "conf.geniocivile.avviso.template.id.finelavori.FL2"); - put(PRATICA_OSPEDALIERA, "conf.geniocivile.avviso.template.id.praticaospedaliera"); + put(PRATICA_OSPEDALIERA_DEPOSITO, "conf.geniocivile.avviso.template.id.praticaospedaliera.deposito"); + put(PRATICA_OSPEDALIERA_CONFORMITA, "conf.geniocivile.avviso.template.id.praticaospedaliera.conformita"); } }; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties index fcf20718..159a3f0c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties @@ -152,6 +152,8 @@ conf.geniocivile.avviso.folder.id.manuale = Cartella Avvisi Manuali conf.geniocivile.avviso.folder.id.doc_annullamento = Cartella File Annullamento Fascicolo conf.geniocivile.avviso.folder.id.doc_pagamento = Cartella File Allegati MDB conf.geniocivile.avviso.folder.id.domanda_pdf = Cartella Template Domanda +conf.geniocivile.avviso.folder.id.praticaospedaliera.deposito = Cartella Deposito Pratica Ospedaliera +conf.geniocivile.avviso.folder.id.praticaospedaliera.conformita = Cartella Conformità Pratica Ospedaliera #Configurazione Templates conf.geniocivile.template.folder.id = Cartella Template @@ -186,7 +188,8 @@ conf.geniocivile.avviso.template.id.deposito.PS = Template Avvisio avvio di proc conf.geniocivile.avviso.template.id.deposito.S = Template Avviso di sorteggio conf.geniocivile.avviso.template.id.finelavori.FL1 = Template Avviso di Inizio Lavori conf.geniocivile.avviso.template.id.finelavori.FL2 = Template Avviso di Fine Lavori -conf.geniocivile.avviso.template.id.praticaospedaliera = Template Avviso Pratica Ospedaliera +conf.geniocivile.avviso.template.id.praticaospedaliera.deposito = Template Deposito Pratica Ospedaliera +conf.geniocivile.avviso.template.id.praticaospedaliera.conformita = Template Conformità  Pratica Ospedaliera #Configurazione Allegati conf.geniocivile.attachment.folder.id = Folder Allegati diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties index 8fdedc2d..370e4e16 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties @@ -1060,6 +1060,9 @@ label.admingeniocivile.statopratica.approvazione = Approvazione label.admingeniocivile.statopratica.finelavorianomalia = Anomalia Fine Lavori label.admingeniocivile.statopratica.variante = Variante label.admingeniocivile.statopratica.sospesa = Sospesa +label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.deposito = Avviso di deposito Pratica Ospedaliera +label.admingeniocivile.avviso.tipoDocumento.praticaospedaliera.conformita = Avviso di conformità Pratica Ospedaliera + label.firma-doc = Dichiaro di aver preso visione del documento, e di sottoscriverne il contenuto ai sensi del D.Lgs. 82/2005 label.cambio-soggetti-ok = Cambio Soggetti #{0} completato con successo diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java index 4d0d8f03..3e082fa2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java @@ -265,19 +265,23 @@ public class SchedulerPratiche implements MessageListener { String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); long controlloPraticaId = 0L; + _log.debug("creaAvvisoVidimazione: Pratica.isPraticaOspedaliera() ? " + IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()); +// if(IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){ +// _log.debug("creaAvvisoVidimazione: Pratica is Ospedaliera - Creating PRATICA_OSPEDALIERA_DEPOSITO"); +// tipoDocumento = AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO; +// propertiesTemplateType = AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO; +// propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); +// fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); +// if(Validator.isNull(AvvisoLocalServiceUtil.getAvvisoPraticaOspedaliera(intPraticaId))){ +// AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, +// dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, +// className, controlloPraticaId, serviceContext); +// } +// return; +// } + _log.debug("creaAvvisoVidimazione: tipoDocumento -> "+tipoDocumento); AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, className, controlloPraticaId, serviceContext); - if(IntPraticaLocalServiceUtil.getIntPratica(intPraticaId).isPraticaOspedaliera()){ - tipoDocumento = AvvisoUtil.PRATICA_OSPEDALIERA; - propertiesTemplateType = AvvisoUtil.PRATICA_OSPEDALIERA; - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); - fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); - if(Validator.isNull(AvvisoLocalServiceUtil.getAvvisoPraticaOspedaliera(intPraticaId))){ - AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, - dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, - className, controlloPraticaId, serviceContext); - } - } } private IntPratica assegnaNumeroProgetto(IntPratica intPratica) throws PortalException, SystemException { @@ -307,6 +311,7 @@ public class SchedulerPratiche implements MessageListener { if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(tipoIntegrazione)) { // avviso pilotato per integrazioni String stato = StatoPraticaConstants.INTEGRAZIONE_ACCETTATA; + _log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | stato -> "+stato); AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L); @@ -318,6 +323,7 @@ public class SchedulerPratiche implements MessageListener { } else { stato = intPratica.getStatoPratica(); } + _log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | stato -> "+stato); AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L); @@ -327,6 +333,7 @@ public class SchedulerPratiche implements MessageListener { propertiesTemplateType); long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( serviceContext.getCompanyId(), propertiesTemplate); + _log.debug("gestionePratica: Integrazione -> "+tipoIntegrazione+" | propertiesTemplate -> "+propertiesTemplate); AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, fileEntryIdTemplate, dettPratica.getDettPraticaId(), DettPratica.class.getName(), 0L, serviceContext); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java index 04bcb0c8..1bb785ee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java @@ -145,318 +145,325 @@ public class IntPraticaLocalServiceClpInvoker { _methodName196 = "addIntPratica"; _methodParameterTypes196 = new String[] { - "long", "java.lang.String", + "long", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName197 = "addIntPratica"; _methodParameterTypes197 = new String[] { + "long", "java.lang.String", + "com.liferay.portal.service.ServiceContext" + }; + + _methodName198 = "addIntPratica"; + + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName198 = "deleteIntPratica"; + _methodName199 = "deleteIntPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes199 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName199 = "deleteIntPratica"; + _methodName200 = "deleteIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes200 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName200 = "cloneIntPratica"; + _methodName201 = "cloneIntPratica"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes201 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "updateDelegati"; + _methodName203 = "updateDelegati"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes203 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName203 = "fetchIntPratica"; + _methodName204 = "fetchIntPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName204 = "findFascicoliNotProgetto"; + _methodName205 = "findFascicoliNotProgetto"; - _methodParameterTypes204 = new String[] { "int", "int" }; + _methodParameterTypes205 = new String[] { "int", "int" }; - _methodName205 = "countFascicoliNotProgetto"; + _methodName206 = "countFascicoliNotProgetto"; - _methodParameterTypes205 = new String[] { }; + _methodParameterTypes206 = new String[] { }; - _methodName207 = "addNumeroProgetto"; + _methodName208 = "addNumeroProgetto"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName208 = "sospendiPratica"; + _methodName209 = "sospendiPratica"; - _methodParameterTypes208 = new String[] { "long", "boolean" }; + _methodParameterTypes209 = new String[] { "long", "boolean" }; - _methodName209 = "cambiaTitolare"; + _methodName210 = "cambiaTitolare"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes210 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName210 = "updateStatoPratica"; + _methodName211 = "updateStatoPratica"; - _methodParameterTypes210 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; - _methodName211 = "updateIntPraticaSorteggio"; + _methodName212 = "updateIntPraticaSorteggio"; - _methodParameterTypes211 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes212 = new String[] { "long", "java.util.Date" }; - _methodName212 = "updateIntPraticaSorteggio"; + _methodName213 = "updateIntPraticaSorteggio"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes213 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName213 = "findByC_UserId"; - - _methodParameterTypes213 = new String[] { "long", "long", "int", "int" }; + _methodName214 = "findByC_UserId"; - _methodName214 = "countByC_UserId"; + _methodParameterTypes214 = new String[] { "long", "long", "int", "int" }; - _methodParameterTypes214 = new String[] { "long", "long" }; + _methodName215 = "countByC_UserId"; - _methodName215 = "updateStatus"; + _methodParameterTypes215 = new String[] { "long", "long" }; - _methodParameterTypes215 = new String[] { "long", "int" }; + _methodName216 = "updateStatus"; - _methodName216 = "findByCompanyIdSoggettoProgetti"; + _methodParameterTypes216 = new String[] { "long", "int" }; - _methodParameterTypes216 = new String[] { "long", "long" }; - - _methodName217 = "countByCompanyIdSoggettoProgetti"; + _methodName217 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes217 = new String[] { "long", "long" }; - _methodName219 = "findByCompanyIdSoggettoArchivio"; + _methodName218 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes219 = new String[] { "long", "long" }; + _methodParameterTypes218 = new String[] { "long", "long" }; - _methodName220 = "countByCompanyIdSoggettoArchivio"; + _methodName220 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes220 = new String[] { "long", "long" }; - _methodName222 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName221 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes221 = new String[] { "long", "long" }; + + _methodName223 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes222 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes223 = new String[] { "long", "long", "int", "int" }; - _methodName223 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName224 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes223 = new String[] { "long", "long" }; + _methodParameterTypes224 = new String[] { "long", "long" }; - _methodName225 = "findByCanAddFineLavori"; + _methodName226 = "findByCanAddFineLavori"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes226 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName226 = "countByCanAddFineLavori"; + _methodName227 = "countByCanAddFineLavori"; - _methodParameterTypes226 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes227 = new String[] { "long", "java.lang.String" }; - _methodName228 = "findByCanAddCollaudo"; + _methodName229 = "findByCanAddCollaudo"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes229 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName229 = "countByCanAddCollaudo"; + _methodName230 = "countByCanAddCollaudo"; - _methodParameterTypes229 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; - _methodName230 = "search"; + _methodName231 = "search"; - _methodParameterTypes230 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes231 = new String[] { "java.util.List", "int", "int" }; - _methodName231 = "countSearch"; + _methodName232 = "countSearch"; - _methodParameterTypes231 = new String[] { "java.util.List" }; + _methodParameterTypes232 = new String[] { "java.util.List" }; - _methodName232 = "searchWithIntPraticaId"; + _methodName233 = "searchWithIntPraticaId"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes233 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName233 = "countSearchWithIntPraticaId"; + _methodName234 = "countSearchWithIntPraticaId"; - _methodParameterTypes233 = new String[] { "java.util.List", "long" }; + _methodParameterTypes234 = new String[] { "java.util.List", "long" }; - _methodName234 = "allegaFileAnnullamento"; + _methodName235 = "allegaFileAnnullamento"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes235 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName235 = "generateFileAnnullamento"; + _methodName236 = "generateFileAnnullamento"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes236 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName236 = "deleteFileAnnullamento"; + _methodName237 = "deleteFileAnnullamento"; - _methodParameterTypes236 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName237 = "completeAnnullamento"; + _methodName238 = "completeAnnullamento"; - _methodParameterTypes237 = new String[] { "long" }; + _methodParameterTypes238 = new String[] { "long" }; - _methodName238 = "cambiaIstruttore"; + _methodName239 = "cambiaIstruttore"; - _methodParameterTypes238 = new String[] { "long", "long", "long" }; + _methodParameterTypes239 = new String[] { "long", "long", "long" }; - _methodName239 = "countCaricoLavoroCF"; + _methodName240 = "countCaricoLavoroCF"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes240 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName240 = "countCaricoLavoroIstruttore"; + _methodName241 = "countCaricoLavoroIstruttore"; - _methodParameterTypes240 = new String[] { + _methodParameterTypes241 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName241 = "generateReportPratica"; + _methodName242 = "generateReportPratica"; - _methodParameterTypes241 = new String[] { + _methodParameterTypes242 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName242 = "updateModifiedDate"; + _methodName243 = "updateModifiedDate"; - _methodParameterTypes242 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes243 = new String[] { "long", "java.util.Date" }; - _methodName243 = "countAutorizzazione"; + _methodName244 = "countAutorizzazione"; - _methodParameterTypes243 = new String[] { + _methodParameterTypes244 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName244 = "countSanatorie"; + _methodName245 = "countSanatorie"; - _methodParameterTypes244 = new String[] { + _methodParameterTypes245 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName245 = "countOpereMinoreImportanza"; + _methodName246 = "countOpereMinoreImportanza"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes246 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName246 = "countDeposito"; + _methodName247 = "countDeposito"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes247 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName247 = "countVidimate"; + _methodName248 = "countVidimate"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes248 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName248 = "countControllo"; + _methodName249 = "countControllo"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes249 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName249 = "findIntPraticaNotExist"; + _methodName250 = "findIntPraticaNotExist"; - _methodParameterTypes249 = new String[] { }; + _methodParameterTypes250 = new String[] { }; - _methodName250 = "riparaWorkflow"; + _methodName251 = "riparaWorkflow"; - _methodParameterTypes250 = new String[] { }; + _methodParameterTypes251 = new String[] { }; - _methodName251 = "reIndexFascicolo"; + _methodName252 = "reIndexFascicolo"; - _methodParameterTypes251 = new String[] { + _methodParameterTypes252 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName252 = "reIndexFasciolo"; - - _methodParameterTypes252 = new String[] { "java.lang.String", "long" }; - _methodName253 = "reIndexFasciolo"; - _methodParameterTypes253 = new String[] { "long", "long" }; + _methodParameterTypes253 = new String[] { "java.lang.String", "long" }; - _methodName254 = "trovaDoppioni"; + _methodName254 = "reIndexFasciolo"; - _methodParameterTypes254 = new String[] { }; + _methodParameterTypes254 = new String[] { "long", "long" }; - _methodName255 = "findByNumeroProgetto"; + _methodName255 = "trovaDoppioni"; - _methodParameterTypes255 = new String[] { "java.lang.String" }; + _methodParameterTypes255 = new String[] { }; - _methodName256 = "findByTerritorioId"; + _methodName256 = "findByNumeroProgetto"; - _methodParameterTypes256 = new String[] { "long" }; + _methodParameterTypes256 = new String[] { "java.lang.String" }; - _methodName257 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName257 = "findByTerritorioId"; - _methodParameterTypes257 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes257 = new String[] { "long" }; - _methodName258 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName258 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes258 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName259 = "reportPraticheVidimate"; + _methodName259 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes259 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName260 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName260 = "reportPraticheVidimate"; _methodParameterTypes260 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName261 = "countIngressiAutorizzazioni"; + _methodName261 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes261 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName262 = "countIngressiDepositi"; + _methodName262 = "countIngressiAutorizzazioni"; _methodParameterTypes262 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName263 = "countIngressiCO"; + _methodName263 = "countIngressiDepositi"; _methodParameterTypes263 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName264 = "countIngressiCO"; + + _methodParameterTypes264 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -605,11 +612,19 @@ public class IntPraticaLocalServiceClpInvoker { Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], - (com.liferay.portal.service.ServiceContext)arguments[2]); + ((Boolean)arguments[2]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[3]); } if (_methodName197.equals(name) && Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], + (com.liferay.portal.service.ServiceContext)arguments[2]); + } + + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -621,226 +636,226 @@ public class IntPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -848,67 +863,59 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { - return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); - } - if (_methodName241.equals(name) && Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { - return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], - ((Long)arguments[1]).longValue()); + return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); } if (_methodName242.equals(name) && Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); + return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + ((Long)arguments[1]).longValue()); } if (_methodName243.equals(name) && Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { - return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), + (java.util.Date)arguments[1]); } if (_methodName244.equals(name) && Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { - return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName245.equals(name) && Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { - return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName246.equals(name) && Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { - return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - ((Boolean)arguments[3]).booleanValue()); + return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName247.equals(name) && Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { - return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3], - ((Boolean)arguments[4]).booleanValue()); + ((Boolean)arguments[3]).booleanValue()); } if (_methodName248.equals(name) && Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { - return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); @@ -916,25 +923,25 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName249.equals(name) && Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3], + ((Boolean)arguments[4]).booleanValue()); } if (_methodName250.equals(name) && Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { - return IntPraticaLocalServiceUtil.riparaWorkflow(); + return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); } if (_methodName251.equals(name) && Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], - ((Long)arguments[1]).longValue()); - - return null; + return IntPraticaLocalServiceUtil.riparaWorkflow(); } if (_methodName252.equals(name) && Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], + IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -942,7 +949,7 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName253.equals(name) && Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), + IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -950,59 +957,67 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName254.equals(name) && Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); + IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), + ((Long)arguments[1]).longValue()); + + return null; } if (_methodName255.equals(name) && Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); + return IntPraticaLocalServiceUtil.trovaDoppioni(); } if (_methodName256.equals(name) && Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } if (_methodName257.equals(name) && Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3]); + return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } if (_methodName258.equals(name) && Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3]); } if (_methodName259.equals(name) && Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3]); + return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName260.equals(name) && Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3]); } if (_methodName261.equals(name) && Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { - return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName262.equals(name) && Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { - return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName263.equals(name) && Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + } + + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } @@ -1070,16 +1085,16 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; - private String _methodName202; - private String[] _methodParameterTypes202; + private String _methodName201; + private String[] _methodParameterTypes201; private String _methodName203; private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; private String _methodName205; private String[] _methodParameterTypes205; - private String _methodName207; - private String[] _methodParameterTypes207; + private String _methodName206; + private String[] _methodParameterTypes206; private String _methodName208; private String[] _methodParameterTypes208; private String _methodName209; @@ -1100,20 +1115,20 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; - private String _methodName219; - private String[] _methodParameterTypes219; + private String _methodName218; + private String[] _methodParameterTypes218; private String _methodName220; private String[] _methodParameterTypes220; - private String _methodName222; - private String[] _methodParameterTypes222; + private String _methodName221; + private String[] _methodParameterTypes221; private String _methodName223; private String[] _methodParameterTypes223; - private String _methodName225; - private String[] _methodParameterTypes225; + private String _methodName224; + private String[] _methodParameterTypes224; private String _methodName226; private String[] _methodParameterTypes226; - private String _methodName228; - private String[] _methodParameterTypes228; + private String _methodName227; + private String[] _methodParameterTypes227; private String _methodName229; private String[] _methodParameterTypes229; private String _methodName230; @@ -1184,4 +1199,6 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes262; private String _methodName263; private String[] _methodParameterTypes263; + private String _methodName264; + private String[] _methodParameterTypes264; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java index fe4ef877..702d9590 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java @@ -115,6 +115,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { if (Validator.isNull(tipoProcedura) || tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_A) || Validator.isNull(sorteggio)) { propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); + } else if (intPratica.isPraticaOspedaliera()){ + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO); } else { propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DPPS"); } @@ -122,13 +124,23 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { case StatoPraticaConstants.VIDIMATA: if (null == tipoProcedura) tipoProcedura = Constants.PROCEDURA_A; - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DP" + tipoProcedura); + if(intPratica.isPraticaOspedaliera()){ + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO); + } else { + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get("DP" + tipoProcedura); + } break; default: - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); +// if(StatoPraticaConstants.AUTORIZZATA.equals(statoPratica) && intPratica.isPraticaOspedaliera()){ +// propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA); +// } else { + propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); +// } } long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), propertiesTemplate); + _log.debug("Creating avviso: propertiesTemplate -> "+propertiesTemplate + +" | statoPratica -> "+statoPratica+" | className -> "+className); return addAvviso(intPratica.getIntPraticaId(), StringPool.BLANK, new Date(), tipoAvviso, statoPratica, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext); @@ -149,9 +161,14 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { && !dettPratica.getVarianteSostanziale() && !stato.equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE); } String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, intPratica); + if(intPratica.isPraticaOspedaliera()){ + statoPraticaCode = AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA; + } String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode); long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), propertiesTemplate); + _log.debug("Creating avviso: propertiesTemplate -> "+propertiesTemplate + +" | statoPraticaCode -> "+statoPraticaCode+" | className -> "+className); return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, serviceContext); } @@ -1291,7 +1308,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in( - new String[] { AvvisoUtil.PRATICA_OSPEDALIERA })); + new String[] { AvvisoUtil.PRATICA_OSPEDALIERA_CONFORMITA, AvvisoUtil.PRATICA_OSPEDALIERA_DEPOSITO })); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index c06f83ca..4ac9c746 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -231,7 +231,19 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } return ret; } + + @Override + @Indexable(type = IndexableType.REINDEX) + public IntPratica addIntPratica(long territorioId, String tipoProcedura, boolean isOspedaliera, + ServiceContext serviceContext) throws SystemException, PortalException { + if(isOspedaliera){ + tipoProcedura = Constants.PROCEDURA_H; + } + + return addIntPratica(territorioId, tipoProcedura, serviceContext); + } + @Override @Indexable(type = IndexableType.REINDEX) public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) @@ -398,7 +410,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { IntPratica intPraticaToClone = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPraticaCloned = addIntPratica(intPraticaToClone.getTerritorioId(), - intPraticaToClone.getTipoProcedura(), serviceContext); + intPraticaToClone.getTipoProcedura(), intPraticaCloned.isPraticaOspedaliera(), serviceContext); intPraticaCloned = cloneData(intPraticaCloned, intPraticaToClone); DettPratica dettPraticaToClone = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPraticaCloned = dettPraticaLocalService.addDettPraticaClonedToIntPratica( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 188cb9e4..d11688cb 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar index 20883a9c..6e60096d 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar index 5302f897..e79e6878 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-report-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java index cd254514..b6397b9a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java @@ -722,8 +722,47 @@ public class FascicoloFePortlet extends MVCPortlet { } } + public void salvaFirstStepFineLavori(ActionRequest request, ActionResponse response) throws Exception { + long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); + boolean parziale = ParamUtil.getBoolean(request, "tipoFineLavori"); + Date dataFineLavori = ParamUtil.getDate(request, "dataFineLavori", + DateFormatFactoryUtil.getDate(request.getLocale()), null); + long userId = PortalUtil.getUserId(request); + + try { + FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); + if (!fineLavori.isCompletata() && Validator.isNotNull(dataFineLavori)) { + fineLavori.setParziale(parziale); + fineLavori.setDataFineLavori(dataFineLavori); + FineLavoriServiceUtil.updateFineLavori(fineLavori); + } + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "fineLavoriId"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "fineLavoriId", + String.valueOf(fineLavoriId)); + response.sendRedirect(successURL); + } + } + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fine-lavori.jsp"); + response.setRenderParameter("fineLavoriId", String.valueOf(fineLavoriId)); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fine-lavori.jsp"); + response.setRenderParameter("fineLavoriId", String.valueOf(fineLavoriId)); + throw e; + } + } + public void salvaInizioLavori(ActionRequest request, ActionResponse response) throws IOException, PortalException, - SystemException { + SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", @@ -776,9 +815,6 @@ public class FascicoloFePortlet extends MVCPortlet { long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); boolean bozza = ParamUtil.getBoolean(request, "bozza"); - boolean parziale = ParamUtil.getBoolean(request, "tipoFineLavori"); - Date dataFineLavori = ParamUtil.getDate(request, "dataFineLavori", - DateFormatFactoryUtil.getDate(request.getLocale()), null); String codiceFiscaleDelegato = ParamUtil.getString(request, "direttoreLavori"); boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); @@ -790,6 +826,9 @@ public class FascicoloFePortlet extends MVCPortlet { long userId = PortalUtil.getUserId(request); try { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); + boolean parziale = ParamUtil.getBoolean(request, "tipoFineLavori", fineLavori.getParziale()); + Date dataFineLavori = ParamUtil.getDate(request, "dataFineLavori", + DateFormatFactoryUtil.getDate(request.getLocale()), fineLavori.getDataFineLavori()); if (!fineLavori.isCompletata()) { FineLavoriServiceUtil.updateFineLavori(userId, fineLavori.getFineLavoriId(), fineLavori.getIntPraticaId(), parziale, false, dataFineLavori, codiceFiscaleDelegato, @@ -978,346 +1017,346 @@ public class FascicoloFePortlet extends MVCPortlet { "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( request, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; - boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, - "codiceFiscaleDelegatoCollaudoEnabled"); - String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, - "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; - String codiceRuoloDelegato = ParamUtil.getString(request, "codiceRuoloDelegato"); - boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); - long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); - Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - String note = ParamUtil.getString(request, "note"); - String noteUfficio = ParamUtil.getString(request, "noteUfficio"); - // PAGAMENTI - String codicePagamento = ParamUtil.getString(request, "codicePagamento"); - String causalePagamento = ParamUtil.getString(request, "causalePagamento"); - String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); - String importoBolli = ParamUtil.getString(request, "importoBolli"); - String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); - boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); - int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); - int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); - boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); - int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); - boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); - int pagAltro = ParamUtil.getInteger(request, "pagAltro"); - boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); - String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); - String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); - String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagCalcolatoRiparazioneInterventoLocale"); - String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); - String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); - String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); - String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagEffettivoRiparazioneInterventoLocale"); - String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); - String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); - // SEZIONE DETTAGLI PRINCIPALI - boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); - boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); - String destinazione = ParamUtil.getString(request, "destinazione"); - String ag = ParamUtil.getString(request, "ag"); - String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); - String via = ParamUtil.getString(request, "via"); - String localita = ParamUtil.getString(request, "localita"); - String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); - String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); - String metratura = ParamUtil.getString(request, "metratura"); - boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); - int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); - String numeroCivico = ParamUtil.getString(request, "numeroCivico"); - String dcFoglio = ParamUtil.getString(request, "dcFoglio"); - String dcAllegato = ParamUtil.getString(request, "dcAllegato"); - String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 - + StringPool.PIPE + particella4; - String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); - boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); - boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); - boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); - boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); - boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); - boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); - boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); - boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); - boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); - boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); - boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); - boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); - boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); - boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); - boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); - boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); - String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); - boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); - // Descrizione edificio - String dePiani = ParamUtil.getString(request, "dePiani"); - String deAltezza = ParamUtil.getString(request, "deAltezza"); - String deInterrati = ParamUtil.getString(request, "deInterrati"); - String deSuperficie = ParamUtil.getString(request, "deSuperficie"); - String deCostruzione = ParamUtil.getString(request, "deCostruzione"); - String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); - String deUso = ParamUtil.getString(request, "deUso"); - String dePrivata = ParamUtil.getString(request, "dePrivata"); - String dePubblica = ParamUtil.getString(request, "dePubblica"); - String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); - String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); - boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); - boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); - boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); - boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); - boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); - boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); - boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); - boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); - boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); - boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); - boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); - String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); - String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); - boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); - boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); - boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); - boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); - String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); - String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); - String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); - boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); - boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); - boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); - boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); - boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); - boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); - String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); - boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); - boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); - boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); - boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); - boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); - boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); - String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); - String dccCopertura = ParamUtil.getString(request, "dccCopertura"); - boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); - boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); - boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); - boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); - boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); - boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); - boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); - boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); - String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); - boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); - boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); - boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); - boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); - boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); - String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); - boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); - boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); - boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); - boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); - boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); - boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); - boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, - "dccOpereDiRinforzoTelaiECerchiature"); - boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); - boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); - String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); - // DATI geologici - String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); - String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", - dettPratica.getGeoCategoriaSottosuolo()); - String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", - dettPratica.getGeoCategoriaTopografica()); - String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); - String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", - dettPratica.getGeoPericolositaGeologica()); - String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", - dettPratica.getGeoRischioGeomorfologicoPai()); - String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", - dettPratica.getGeoPericolositaIdraulicaPai()); - String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", - dettPratica.getGeoRischioIdraulicoPai()); - String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", - dettPratica.getGeoPericolositaSismica()); - String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", - dettPratica.getGeoPericolositaIdraulica()); - String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", - dettPratica.getGeoPericolositaGeomorfica()); - String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", - dettPratica.getGeoFattibilitaGeologica()); - String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", - dettPratica.getGeoFattibilitaSismica()); - String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", - dettPratica.getGeoFattibilitaIdraulica()); - String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); - String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); - String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", - dettPratica.getGeoOpereInSotterranea()); - String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", - dettPratica.getGeoPresenzaPrescrizioni()); - String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", - dettPratica.getGeoNotePrescrizioni()); - String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); - String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", - dettPratica.getGeoEvidenzeGeomorfiche()); - String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", - dettPratica.getGeoEvidenzeGeologiche()); - Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); - // normative - boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); - boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); - boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); - boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); - boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); - boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); - boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); - boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); - boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); - boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); - boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); - boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); - boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); - boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); - boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); - boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); - boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); - boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); - boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); - boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); - boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); - boolean suap = ParamUtil.getBoolean(request, "suap"); - boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); - String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); - String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); - boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); - String intervFinPubDesc = ParamUtil.getString(request, "intervFinPubDesc"); - String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); - String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); - String vincoli = ParamUtil.getString(request, "vincoli"); - - long userId = PortalUtil.getUserId(request); - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if(intPratica.isPraticaOspedaliera()){ - destinazione = dettPratica.getDestinazione(); - normEsenteBollo = dettPratica.getNormEsenteBollo(); - normEsenteSpese = dettPratica.getNormEsenteSpese(); - lavoriPubblici = dettPratica.getLavoriPubblici(); - } - try { - DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), - dettPratica.getIntPraticaId(), integrazione, protocollo, tipoIntegrazione, completa, gestita, - codicePagamento, causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, - dataEffettuazione, statusTask, workflowForzato, soggettoSostituitoId, destinazione, ag, - descLongIntervento, via, localita, estremiCatastali, estremiPratCom, variataDa, varianteNumero, - varianteSostanziale, operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, - lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, dataInizioLavoriOpera, - dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, lavoriPubblici, pagamentoId, - lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, - deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, - deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, - dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, - dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, - dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, - dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, - dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, - dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, - dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, - dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, - dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, dccElemNonStrutAltro, - dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, - dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, - dccOpereDiRinforzoRinforziFRP, dccOpereDiRinforzoTelaiECerchiature, - dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, - geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, - geoPericolositaGeologica, geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, - geoRischioIdraulicoPai, geoPericolositaSismica, geoPericolositaIdraulica, - geoPericolositaGeomorfica, geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, - geoOperaRilevante, geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, - geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, - geoDtRelazione, pagNuoveCostruzioni, pagAdeguamentoSismico, pagMiglioramentoSismico, - pagRiparazioneInterventoLocale, pagNuovaCostruzione, pagVarianti, pagAltro, - pagMiglioramentoSismicoSicilia, pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, - pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, - pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, - pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, - noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, - tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, - tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, - normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, - normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, - normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, - livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); - String redirect = ParamUtil.getString(request, "redirect"); - if (Validator.isNull(redirect)) { - String successURL = ParamUtil.getString(request, "successURL"); - if (Validator.isNotNull(successURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", - String.valueOf(!bozza)); - String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", - String.valueOf(verifyArea)); - String fragmentURL = ParamUtil.getString(request, "current_tab"); - if (Validator.isNotNull(fragmentURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", - fragmentURL); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", - "_1_WAR_portosfeportlet_tab=" + fragmentURL); - if (successURL.contains(StringPool.POUND)) { - successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, + "codiceFiscaleDelegatoCollaudoEnabled"); + String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, + "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; + String codiceRuoloDelegato = ParamUtil.getString(request, "codiceRuoloDelegato"); + boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); + long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); + Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + String note = ParamUtil.getString(request, "note"); + String noteUfficio = ParamUtil.getString(request, "noteUfficio"); + // PAGAMENTI + String codicePagamento = ParamUtil.getString(request, "codicePagamento"); + String causalePagamento = ParamUtil.getString(request, "causalePagamento"); + String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); + String importoBolli = ParamUtil.getString(request, "importoBolli"); + String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); + boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); + int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); + int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); + boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); + int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); + boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); + int pagAltro = ParamUtil.getInteger(request, "pagAltro"); + boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); + String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); + String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); + String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagCalcolatoRiparazioneInterventoLocale"); + String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); + String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); + String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); + String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagEffettivoRiparazioneInterventoLocale"); + String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); + String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); + // SEZIONE DETTAGLI PRINCIPALI + boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); + boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); + String destinazione = ParamUtil.getString(request, "destinazione"); + String ag = ParamUtil.getString(request, "ag"); + String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); + String via = ParamUtil.getString(request, "via"); + String localita = ParamUtil.getString(request, "localita"); + String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); + String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); + String metratura = ParamUtil.getString(request, "metratura"); + boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); + int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); + String numeroCivico = ParamUtil.getString(request, "numeroCivico"); + String dcFoglio = ParamUtil.getString(request, "dcFoglio"); + String dcAllegato = ParamUtil.getString(request, "dcAllegato"); + String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + + StringPool.PIPE + particella4; + String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); + boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); + boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); + boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); + boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); + boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); + boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); + boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); + boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); + boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); + boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); + boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); + boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); + boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); + boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); + boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); + boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); + String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); + boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); + // Descrizione edificio + String dePiani = ParamUtil.getString(request, "dePiani"); + String deAltezza = ParamUtil.getString(request, "deAltezza"); + String deInterrati = ParamUtil.getString(request, "deInterrati"); + String deSuperficie = ParamUtil.getString(request, "deSuperficie"); + String deCostruzione = ParamUtil.getString(request, "deCostruzione"); + String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); + String deUso = ParamUtil.getString(request, "deUso"); + String dePrivata = ParamUtil.getString(request, "dePrivata"); + String dePubblica = ParamUtil.getString(request, "dePubblica"); + String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); + String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); + boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); + boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); + boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); + boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); + boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); + boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); + boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); + boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); + boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); + boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); + boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); + String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); + String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); + boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); + boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); + boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); + boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); + String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); + String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); + String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); + boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); + boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); + boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); + boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); + boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); + boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); + String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); + boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); + boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); + boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); + boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); + boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); + boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); + String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); + String dccCopertura = ParamUtil.getString(request, "dccCopertura"); + boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); + boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); + boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); + boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); + boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); + boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); + boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); + boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); + String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); + boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); + boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); + boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); + boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); + boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); + String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); + boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); + boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); + boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); + boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); + boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); + boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); + boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, + "dccOpereDiRinforzoTelaiECerchiature"); + boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); + boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); + String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); + // DATI geologici + String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); + String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", + dettPratica.getGeoCategoriaSottosuolo()); + String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", + dettPratica.getGeoCategoriaTopografica()); + String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); + String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", + dettPratica.getGeoPericolositaGeologica()); + String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", + dettPratica.getGeoRischioGeomorfologicoPai()); + String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", + dettPratica.getGeoPericolositaIdraulicaPai()); + String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", + dettPratica.getGeoRischioIdraulicoPai()); + String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", + dettPratica.getGeoPericolositaSismica()); + String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", + dettPratica.getGeoPericolositaIdraulica()); + String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", + dettPratica.getGeoPericolositaGeomorfica()); + String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", + dettPratica.getGeoFattibilitaGeologica()); + String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", + dettPratica.getGeoFattibilitaSismica()); + String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", + dettPratica.getGeoFattibilitaIdraulica()); + String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); + String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); + String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", + dettPratica.getGeoOpereInSotterranea()); + String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", + dettPratica.getGeoPresenzaPrescrizioni()); + String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", + dettPratica.getGeoNotePrescrizioni()); + String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); + String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", + dettPratica.getGeoEvidenzeGeomorfiche()); + String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", + dettPratica.getGeoEvidenzeGeologiche()); + Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); + // normative + boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); + boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); + boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); + boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); + boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); + boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); + boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); + boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); + boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); + boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); + boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); + boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); + boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); + boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); + boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); + boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); + boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); + boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); + boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); + boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); + boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); + boolean suap = ParamUtil.getBoolean(request, "suap"); + boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); + String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); + String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); + boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); + String intervFinPubDesc = ParamUtil.getString(request, "intervFinPubDesc"); + String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); + String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); + String vincoli = ParamUtil.getString(request, "vincoli"); + + long userId = PortalUtil.getUserId(request); + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); + if(intPratica.isPraticaOspedaliera()){ + destinazione = dettPratica.getDestinazione(); + normEsenteBollo = dettPratica.getNormEsenteBollo(); + normEsenteSpese = dettPratica.getNormEsenteSpese(); + lavoriPubblici = dettPratica.getLavoriPubblici(); + } + try { + DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), + dettPratica.getIntPraticaId(), integrazione, protocollo, tipoIntegrazione, completa, gestita, + codicePagamento, causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, + dataEffettuazione, statusTask, workflowForzato, soggettoSostituitoId, destinazione, ag, + descLongIntervento, via, localita, estremiCatastali, estremiPratCom, variataDa, varianteNumero, + varianteSostanziale, operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, + lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, dataInizioLavoriOpera, + dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, lavoriPubblici, pagamentoId, + lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, + deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, + deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, + deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, + deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, + dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, + dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, + dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, + dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, + dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, + dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, + dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, + dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, + dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, + dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, + dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, dccElemNonStrutAltro, + dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, + dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, + dccOpereDiRinforzoRinforziFRP, dccOpereDiRinforzoTelaiECerchiature, + dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, + geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, + geoPericolositaGeologica, geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, + geoRischioIdraulicoPai, geoPericolositaSismica, geoPericolositaIdraulica, + geoPericolositaGeomorfica, geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, + geoOperaRilevante, geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, + geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, + geoDtRelazione, pagNuoveCostruzioni, pagAdeguamentoSismico, pagMiglioramentoSismico, + pagRiparazioneInterventoLocale, pagNuovaCostruzione, pagVarianti, pagAltro, + pagMiglioramentoSismicoSicilia, pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, + pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, + pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, + pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, + noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, + tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, + tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, + tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, + normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, + normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, + normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, + intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, + livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", + String.valueOf(!bozza)); + String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", + String.valueOf(verifyArea)); + String fragmentURL = ParamUtil.getString(request, "current_tab"); + if (Validator.isNotNull(fragmentURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", + fragmentURL); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", + "_1_WAR_portosfeportlet_tab=" + fragmentURL); + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + } + successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; + } + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "saveAndVerify"); + if ("saveAndVerify".equalsIgnoreCase(cmd)) + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "saveAndVerify", true); + response.sendRedirect(successURL); + } else { + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); + response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); + response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); + response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); } - successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; } - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "saveAndVerify"); - if ("saveAndVerify".equalsIgnoreCase(cmd)) - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "saveAndVerify", true); - response.sendRedirect(successURL); - } else { + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); - response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); - response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); - response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + throw new PortalException(e); } - } - } catch (PortalException e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; - } catch (Exception e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw new PortalException(e); - } } private String getNotNullString(ActionRequest request, String param, String currentValue) { @@ -1349,361 +1388,361 @@ public class FascicoloFePortlet extends MVCPortlet { "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( request, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; - boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, - "codiceFiscaleDelegatoCollaudoEnabled"); - String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, - "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; - boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); - long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); - Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", - DateFormatFactoryUtil.getDate(request.getLocale())); - String note = ParamUtil.getString(request, "note"); - String noteUfficio = ParamUtil.getString(request, "noteUfficio"); - // PAGAMENTI - String codicePagamento = ParamUtil.getString(request, "codicePagamento"); - String causalePagamento = ParamUtil.getString(request, "causalePagamento"); - String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); - String importoBolli = ParamUtil.getString(request, "importoBolli"); - String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); - boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); - int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); - int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); - boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); - int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); - boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); - int pagAltro = ParamUtil.getInteger(request, "pagAltro"); - boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); - String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); - String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); - String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagCalcolatoRiparazioneInterventoLocale"); - String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); - String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); - String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); - String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, - "pagEffettivoRiparazioneInterventoLocale"); - String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); - String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); - // SEZIONE DETTAGLI PRINCIPALI - DettPratica dettCheck = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); - boolean disabledCollaudoStatico = false; - if (dettCheck != null) { - disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettCheck.getIntPraticaId()); - } - boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); - if (disabledCollaudoStatico) { - collaudoStatico = dettCheck.getCollaudoStatico(); - } - boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); - String destinazione = ParamUtil.getString(request, "destinazione"); - String ag = ParamUtil.getString(request, "ag"); - String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); - String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); - String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); - String metratura = ParamUtil.getString(request, "metratura"); - boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); - int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); - String numeroCivico = ParamUtil.getString(request, "numeroCivico"); - String dcFoglio = ParamUtil.getString(request, "dcFoglio"); - String dcAllegato = ParamUtil.getString(request, "dcAllegato"); - String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( - Pattern.quote(StringPool.PIPE), StringPool.SPACE); - String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 - + StringPool.PIPE + particella4; - String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); - boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); - boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); - boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); - boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); - boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); - boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); - boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); - boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); - boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); - boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); - boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); - boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); - boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); - boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); - boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); - boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); - String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); - boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); - // Descrizione edificio - String dePiani = ParamUtil.getString(request, "dePiani"); - String deAltezza = ParamUtil.getString(request, "deAltezza"); - String deInterrati = ParamUtil.getString(request, "deInterrati"); - String deSuperficie = ParamUtil.getString(request, "deSuperficie"); - String deCostruzione = ParamUtil.getString(request, "deCostruzione"); - String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); - String deUso = ParamUtil.getString(request, "deUso"); - String dePrivata = ParamUtil.getString(request, "dePrivata"); - String dePubblica = ParamUtil.getString(request, "dePubblica"); - String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); - String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); - boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); - boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); - boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); - boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); - boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); - boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); - boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); - boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); - boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); - boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); - boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); - String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); - String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); - boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); - boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); - boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); - boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); - String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); - String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); - String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); - boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); - boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); - boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); - boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); - boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); - boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); - String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); - boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); - boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); - boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); - boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); - boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); - boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); - String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); - String dccCopertura = ParamUtil.getString(request, "dccCopertura"); - boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); - boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); - boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); - boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); - boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); - boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); - boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); - boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); - String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); - boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); - boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); - boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); - boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); - boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); - String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); - boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); - boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); - boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); - boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); - boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); - boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); - boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, - "dccOpereDiRinforzoTelaiECerchiature"); - boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); - boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); - String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); - // DATI geologici - String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); - String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", - dettPratica.getGeoCategoriaSottosuolo()); - String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", - dettPratica.getGeoCategoriaTopografica()); - String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); - String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", - dettPratica.getGeoPericolositaGeologica()); - String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", - dettPratica.getGeoRischioGeomorfologicoPai()); - String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", - dettPratica.getGeoPericolositaIdraulicaPai()); - String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", - dettPratica.getGeoRischioIdraulicoPai()); - String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", - dettPratica.getGeoPericolositaSismica()); - String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", - dettPratica.getGeoPericolositaIdraulica()); - String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", - dettPratica.getGeoPericolositaGeomorfica()); - String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", - dettPratica.getGeoFattibilitaGeologica()); - String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", - dettPratica.getGeoFattibilitaSismica()); - String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", - dettPratica.getGeoFattibilitaIdraulica()); - String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); - String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); - String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", - dettPratica.getGeoOpereInSotterranea()); - String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", - dettPratica.getGeoPresenzaPrescrizioni()); - String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", - dettPratica.getGeoNotePrescrizioni()); - String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); - String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", - dettPratica.getGeoEvidenzeGeomorfiche()); - String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", - dettPratica.getGeoEvidenzeGeologiche()); - Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); - // normative - boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); - boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); - boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); - boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); - boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); - boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); - boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); - boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); - boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); - boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); - boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); - boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); - boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); - boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); - boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); - boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); - boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); - boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); - boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); - boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); - boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); - boolean suap = ParamUtil.getBoolean(request, "suap"); - boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); - String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); - String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); - boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); - String intervFinPubDesc = intervFinPub ? ParamUtil.getString(request, "intervFinPubDesc") : StringPool.BLANK; - - String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); - String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); - String vincoli = ParamUtil.getString(request, "vincoli"); - - long userId = PortalUtil.getUserId(request); - String via = dettPratica.getVia(); - String localita = dettPratica.getLocalita(); - if (!ParamUtil.getString(request, "via").equals(StringPool.BLANK)) { - via = ParamUtil.getString(request, "via"); - } - if (!ParamUtil.getString(request, "localita").equals(StringPool.BLANK)) { - localita = ParamUtil.getString(request, "localita"); - } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if(intPratica.isPraticaOspedaliera()){ - destinazione = dettPratica.getDestinazione(); - normEsenteBollo = dettPratica.getNormEsenteBollo(); - normEsenteSpese = dettPratica.getNormEsenteSpese(); - lavoriPubblici = dettPratica.getLavoriPubblici(); - } - try { - DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), - dettPratica.getIntPraticaId(), dettPratica.getIntegrazione(), protocollo, tipoIntegrazione, - dettPratica.getCompleta(), dettPratica.getGestita(), codicePagamento, causalePagamento, - mezzoPagamento, importoBolli, importoSpeseIstruttoria, dataEffettuazione, - dettPratica.getStatusTask(), dettPratica.getWorkflowForzato(), - dettPratica.getSoggettoSostituitoId(), destinazione, ag, descLongIntervento, via, localita, - estremiCatastali, estremiPratCom, dettPratica.getVariataDa(), dettPratica.getVarianteNumero(), - varianteSostanziale, dettPratica.getOperaConforme(), collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, - dettPratica.getCodiceRuoloDelegato(), lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, - dataInizioLavoriOpera, dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, - lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, - dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, - deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, - dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, - dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, - dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, dccStruttureEleMistoMuratura, - dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, dccStruttureEleAltro, - dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, - dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, - dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, - dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, dccCoperturaPannelli, - dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, dccCoperturaAltroDesrizione, - dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, - dccElemNonStrutLegno, dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, - dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, - dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, - dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine, geoCategoriaSottosuolo, - geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, - geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, geoPericolositaSismica, - geoPericolositaIdraulica, geoPericolositaGeomorfica, geoFattibilitaGeologica, - geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante, geoOpereDiSostegno, - geoOpereInSotterranea, geoPresenzaPrescrizioni, geoNotePrescrizioni, geoNoteIndagini, - geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, geoDtRelazione, pagNuoveCostruzioni, - pagAdeguamentoSismico, pagMiglioramentoSismico, pagRiparazioneInterventoLocale, - pagNuovaCostruzione, pagVarianti, pagAltro, pagMiglioramentoSismicoSicilia, - pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, - pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, - pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, - pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, - noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, - tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, - tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, - normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, - normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, - normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, - livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); - String redirect = ParamUtil.getString(request, "redirect"); - if (Validator.isNull(redirect)) { - String successURL = ParamUtil.getString(request, "successURL"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "isNewVariante"); - if (Validator.isNotNull(successURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", - String.valueOf(!bozza)); - String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", - String.valueOf(verifyArea)); - String fragmentURL = ParamUtil.getString(request, "current_tab"); - if (Validator.isNotNull(fragmentURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", - fragmentURL); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", - "_1_WAR_portosfeportlet_tab=" + fragmentURL); - - if (successURL.contains(StringPool.POUND)) { - successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, + "codiceFiscaleDelegatoCollaudoEnabled"); + String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, + "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; + boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(request, "inizioLavoriContestualeOpera"); + long pagamentoId = ParamUtil.getLong(request, "pagamentoId"); + Date dataEffettuazione = ParamUtil.getDate(request, "dataEffettuazione", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioLavoriOpera = ParamUtil.getDate(request, "dataInizioLavoriOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataInizioEsecuzioneOpera = ParamUtil.getDate(request, "dataInizioEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + Date dataFineEsecuzioneOpera = ParamUtil.getDate(request, "dataFineEsecuzioneOpera", + DateFormatFactoryUtil.getDate(request.getLocale())); + String note = ParamUtil.getString(request, "note"); + String noteUfficio = ParamUtil.getString(request, "noteUfficio"); + // PAGAMENTI + String codicePagamento = ParamUtil.getString(request, "codicePagamento"); + String causalePagamento = ParamUtil.getString(request, "causalePagamento"); + String mezzoPagamento = ParamUtil.getString(request, "mezzoPagamento"); + String importoBolli = ParamUtil.getString(request, "importoBolli"); + String importoSpeseIstruttoria = ParamUtil.getString(request, "importoSpeseIstruttoria"); + boolean pagNuoveCostruzioni = ParamUtil.getBoolean(request, "pagNuoveCostruzioni"); + int pagAdeguamentoSismico = ParamUtil.getInteger(request, "pagAdeguamentoSismico"); + int pagMiglioramentoSismico = ParamUtil.getInteger(request, "pagMiglioramentoSismico"); + boolean pagRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "pagRiparazioneInterventoLocale"); + int pagNuovaCostruzione = ParamUtil.getInteger(request, "pagNuovaCostruzione"); + boolean pagVarianti = ParamUtil.getBoolean(request, "pagVarianti"); + int pagAltro = ParamUtil.getInteger(request, "pagAltro"); + boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(request, "pagMiglioramentoSismicoSicilia"); + String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(request, "pagCalcolatoAdeguamentoSismico"); + String pagCalcolatoMiglioramentoSismico = ParamUtil.getString(request, "pagCalcolatoMiglioramentoSismico"); + String pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagCalcolatoRiparazioneInterventoLocale"); + String pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(request, "pagCalcolatoOperaNonQuantificabile"); + String pagEffettivoAdeguamentoSismico = ParamUtil.getString(request, "pagEffettivoAdeguamentoSismico"); + String pagEffettivoMiglioramentoSismico = ParamUtil.getString(request, "pagEffettivoMiglioramentoSismico"); + String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(request, + "pagEffettivoRiparazioneInterventoLocale"); + String pagEffettivoOperaNonQuantificabile = ParamUtil.getString(request, "pagEffettivoOperaNonQuantificabile"); + String pagNoteUtente = ParamUtil.getString(request, "pagNoteUtente"); + // SEZIONE DETTAGLI PRINCIPALI + DettPratica dettCheck = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); + boolean disabledCollaudoStatico = false; + if (dettCheck != null) { + disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettCheck.getIntPraticaId()); + } + boolean collaudoStatico = ParamUtil.getBoolean(request, "collaudoStatico"); + if (disabledCollaudoStatico) { + collaudoStatico = dettCheck.getCollaudoStatico(); + } + boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(request, "lavoriInEconomiaCommittente"); + String destinazione = ParamUtil.getString(request, "destinazione"); + String ag = ParamUtil.getString(request, "ag"); + String descLongIntervento = ParamUtil.getString(request, "descLongIntervento"); + String estremiCatastali = ParamUtil.getString(request, "estremiCatastali"); + String estremiPratCom = ParamUtil.getString(request, "estremiPratCom"); + String metratura = ParamUtil.getString(request, "metratura"); + boolean lavoriPubblici = ParamUtil.getBoolean(request, "lavoriPubblici"); + int lavoriPubbliciPercentuale = ParamUtil.getInteger(request, "lavoriPubbliciPercentuale"); + String numeroCivico = ParamUtil.getString(request, "numeroCivico"); + String dcFoglio = ParamUtil.getString(request, "dcFoglio"); + String dcAllegato = ParamUtil.getString(request, "dcAllegato"); + String particella1 = ParamUtil.getString(request, "particella1", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella2 = ParamUtil.getString(request, "particella2", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella3 = ParamUtil.getString(request, "particella3", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella4 = ParamUtil.getString(request, "particella4", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + + StringPool.PIPE + particella4; + String localizzazioneGeografica = ParamUtil.getString(request, "localizzazioneGeografica"); + boolean tcNuovaCostruzione = ParamUtil.getBoolean(request, "tcNuovaCostruzione"); + boolean tcAdeguamentoSismico = ParamUtil.getBoolean(request, "tcAdeguamentoSismico"); + boolean tcMiglioramentoSismico = ParamUtil.getBoolean(request, "tcMiglioramentoSismico"); + boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(request, "tcRiparazioneInterventoLocale"); + boolean tcNuovaCostruzioneComplessa = ParamUtil.getBoolean(request, "tcNuovaCostruzioneComplessa"); + boolean tcInCA = ParamUtil.getBoolean(request, "tcInCA"); + boolean tcInOpera = ParamUtil.getBoolean(request, "tcInOpera"); + boolean tcPrefabbricato = ParamUtil.getBoolean(request, "tcPrefabbricato"); + boolean tcInAcciaio = ParamUtil.getBoolean(request, "tcInAcciaio"); + boolean tcMista = ParamUtil.getBoolean(request, "tcMista"); + boolean tcInMuratura = ParamUtil.getBoolean(request, "tcInMuratura"); + boolean tcInMuraturaOrdinaria = ParamUtil.getBoolean(request, "tcInMuraturaOrdinaria"); + boolean tcInMuraturaArmata = ParamUtil.getBoolean(request, "tcInMuraturaArmata"); + boolean tcInMuraturaMista = ParamUtil.getBoolean(request, "tcInMuraturaMista"); + boolean tcInLegno = ParamUtil.getBoolean(request, "tcInLegno"); + boolean tcAltro = ParamUtil.getBoolean(request, "tcAltro"); + String tcAltroDescrizione = ParamUtil.getString(request, "tcAltroDescrizione"); + boolean tcConDispositivi = ParamUtil.getBoolean(request, "tcConDispositivi"); + // Descrizione edificio + String dePiani = ParamUtil.getString(request, "dePiani"); + String deAltezza = ParamUtil.getString(request, "deAltezza"); + String deInterrati = ParamUtil.getString(request, "deInterrati"); + String deSuperficie = ParamUtil.getString(request, "deSuperficie"); + String deCostruzione = ParamUtil.getString(request, "deCostruzione"); + String deRistrutturazione = ParamUtil.getString(request, "deRistrutturazione"); + String deUso = ParamUtil.getString(request, "deUso"); + String dePrivata = ParamUtil.getString(request, "dePrivata"); + String dePubblica = ParamUtil.getString(request, "dePubblica"); + String deUtilizzazione = ParamUtil.getString(request, "deUtilizzazione"); + String dePosizioneEdificio = ParamUtil.getString(request, "dePosizioneEdificio"); + boolean deInfStradalePonte = ParamUtil.getBoolean(request, "deInfStradalePonte"); + boolean deInfStradaleStrada = ParamUtil.getBoolean(request, "deInfStradaleStrada"); + boolean deInfStradaleAltro = ParamUtil.getBoolean(request, "deInfStradaleAltro"); + boolean deInfIdraulicaLong = ParamUtil.getBoolean(request, "deInfIdraulicaLong"); + boolean deInfIdraulicaTrasv = ParamUtil.getBoolean(request, "deInfIdraulicaTrasv"); + boolean deInfIdraulicaAltro = ParamUtil.getBoolean(request, "deInfIdraulicaAltro"); + boolean deInfOperaAccStradale = ParamUtil.getBoolean(request, "deInfOperaAccStradale"); + boolean deInfOperaAccIdraulica = ParamUtil.getBoolean(request, "deInfOperaAccIdraulica"); + boolean deInfOperaAccAltro = ParamUtil.getBoolean(request, "deInfOperaAccAltro"); + boolean deInfAltraInfrastruttura = ParamUtil.getBoolean(request, "deInfAltraInfrastruttura"); + boolean deInfAltro = ParamUtil.getBoolean(request, "deInfAltro"); + String deInfAltroDesc = ParamUtil.getString(request, "deInfAltroDesc"); + String dccFondazioni = ParamUtil.getString(request, "dccFondazioni"); + boolean dccStruttureEleMuraturePietrame = ParamUtil.getBoolean(request, "dccStruttureEleMuraturePietrame"); + boolean dccStruttureEleMuratureLaterizio = ParamUtil.getBoolean(request, "dccStruttureEleMuratureLaterizio"); + boolean dccStruttureEleMuratureMisto = ParamUtil.getBoolean(request, "dccStruttureEleMuratureMisto"); + boolean dccStruttureEleMuratureStoriche = ParamUtil.getBoolean(request, "dccStruttureEleMuratureStoriche"); + String dccStruttureEleAcciaio = ParamUtil.getString(request, "dccStruttureEleAcciaio"); + String dccStruttureEleCA = ParamUtil.getString(request, "dccStruttureEleCA"); + String dccStruttureEleLegno = ParamUtil.getString(request, "dccStruttureEleLegno"); + boolean dccStruttureEleMistoCA = ParamUtil.getBoolean(request, "dccStruttureEleMistoCA"); + boolean dccStruttureEleMistoAcciaio = ParamUtil.getBoolean(request, "dccStruttureEleMistoAcciaio"); + boolean dccStruttureEleMistoMuratura = ParamUtil.getBoolean(request, "dccStruttureEleMistoMuratura"); + boolean dccStruttureEleMistoLegno = ParamUtil.getBoolean(request, "dccStruttureEleMistoLegno"); + boolean dccStruttureElePrefabbricato = ParamUtil.getBoolean(request, "dccStruttureElePrefabbricato"); + boolean dccStruttureEleAltro = ParamUtil.getBoolean(request, "dccStruttureEleAltro"); + String dccStruttureEleAltroDescrizione = ParamUtil.getString(request, "dccStruttureEleAltroDescrizione"); + boolean dccOrizzontamentiCAAcciaio = ParamUtil.getBoolean(request, "dccOrizzontamentiCAAcciaio"); + boolean dccOrizzontamentiLegno = ParamUtil.getBoolean(request, "dccOrizzontamentiLegno"); + boolean dccOrizzontamentiLegnoCA = ParamUtil.getBoolean(request, "dccOrizzontamentiLegnoCA"); + boolean dccOrizzontamentiLamieraGrecata = ParamUtil.getBoolean(request, "dccOrizzontamentiLamieraGrecata"); + boolean dccOrizzontamentiVolte = ParamUtil.getBoolean(request, "dccOrizzontamentiVolte"); + boolean dccOrizzontamentiAltro = ParamUtil.getBoolean(request, "dccOrizzontamentiAltro"); + String dccOrizzontamentiAltroDescrizione = ParamUtil.getString(request, "dccOrizzontamentiAltroDescrizione"); + String dccCopertura = ParamUtil.getString(request, "dccCopertura"); + boolean dccCoperturaCAAcciaio = ParamUtil.getBoolean(request, "dccCoperturaCAAcciaio"); + boolean dccCoperturaLegno = ParamUtil.getBoolean(request, "dccCoperturaLegno"); + boolean dccCoperturaLegnoCA = ParamUtil.getBoolean(request, "dccCoperturaLegnoCA"); + boolean dccCoperturaLamieraGrecata = ParamUtil.getBoolean(request, "dccCoperturaLamieraGrecata"); + boolean dccCoperturaPannelli = ParamUtil.getBoolean(request, "dccCoperturaPannelli"); + boolean dccCoperturaPVCTelonati = ParamUtil.getBoolean(request, "dccCoperturaPVCTelonati"); + boolean dccCoperturaLeggere = ParamUtil.getBoolean(request, "dccCoperturaLeggere"); + boolean dccCoperturaAltro = ParamUtil.getBoolean(request, "dccCoperturaAltro"); + String dccCoperturaAltroDesrizione = ParamUtil.getString(request, "dccCoperturaAltroDesrizione"); + boolean dccElemNonStrutLaterizio = ParamUtil.getBoolean(request, "dccElemNonStrutLaterizio"); + boolean dccElemNonStrutCartongesso = ParamUtil.getBoolean(request, "dccElemNonStrutCartongesso"); + boolean dccElemNonStrutCalcestruzzo = ParamUtil.getBoolean(request, "dccElemNonStrutCalcestruzzo"); + boolean dccElemNonStrutLegno = ParamUtil.getBoolean(request, "dccElemNonStrutLegno"); + boolean dccElemNonStrutAltro = ParamUtil.getBoolean(request, "dccElemNonStrutAltro"); + String dccElemNonStrutAltroDescrizione = ParamUtil.getString(request, "dccElemNonStrutAltroDescrizione"); + boolean dccOpereDiRinforzoInsCatene = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCatene"); + boolean dccOpereDiRinforzoInsCordoli = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsCordoli"); + boolean dccOpereDiRinforzoIniArmate = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIniArmate"); + boolean dccOpereDiRinforzoPlaccaggi = ParamUtil.getBoolean(request, "dccOpereDiRinforzoPlaccaggi"); + boolean dccOpereDiRinforzoIrrSolai = ParamUtil.getBoolean(request, "dccOpereDiRinforzoIrrSolai"); + boolean dccOpereDiRinforzoRinforziFRP = ParamUtil.getBoolean(request, "dccOpereDiRinforzoRinforziFRP"); + boolean dccOpereDiRinforzoTelaiECerchiature = ParamUtil.getBoolean(request, + "dccOpereDiRinforzoTelaiECerchiature"); + boolean dccOpereDiRinforzoInsRompitratta = ParamUtil.getBoolean(request, "dccOpereDiRinforzoInsRompitratta"); + boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(request, "dccOpereDiRinforzoAltro"); + String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(request, "dccOpereDiRinforzoAltroDescrizione"); + // DATI geologici + String geoClasseIndagine = getNotNullString(request, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); + String geoCategoriaSottosuolo = getNotNullString(request, "geoCategoriaSottosuolo", + dettPratica.getGeoCategoriaSottosuolo()); + String geoCategoriaTopografica = getNotNullString(request, "geoCategoriaTopografica", + dettPratica.getGeoCategoriaTopografica()); + String geoConsolidamento = getNotNullString(request, "geoConsolidamento", dettPratica.getGeoConsolidamento()); + String geoPericolositaGeologica = getNotNullString(request, "geoPericolositaGeologica", + dettPratica.getGeoPericolositaGeologica()); + String geoRischioGeomorfologicoPai = getNotNullString(request, "geoRischioGeomorfologicoPai", + dettPratica.getGeoRischioGeomorfologicoPai()); + String geoPericolositaIdraulicaPai = getNotNullString(request, "geoPericolositaIdraulicaPai", + dettPratica.getGeoPericolositaIdraulicaPai()); + String geoRischioIdraulicoPai = getNotNullString(request, "geoRischioIdraulicoPai", + dettPratica.getGeoRischioIdraulicoPai()); + String geoPericolositaSismica = getNotNullString(request, "geoPericolositaSismica", + dettPratica.getGeoPericolositaSismica()); + String geoPericolositaIdraulica = getNotNullString(request, "geoPericolositaIdraulica", + dettPratica.getGeoPericolositaIdraulica()); + String geoPericolositaGeomorfica = getNotNullString(request, "geoPericolositaGeomorfica", + dettPratica.getGeoPericolositaGeomorfica()); + String geoFattibilitaGeologica = getNotNullString(request, "geoFattibilitaGeologica", + dettPratica.getGeoFattibilitaGeologica()); + String geoFattibilitaSismica = getNotNullString(request, "geoFattibilitaSismica", + dettPratica.getGeoFattibilitaSismica()); + String geoFattibilitaIdraulica = getNotNullString(request, "geoFattibilitaIdraulica", + dettPratica.getGeoFattibilitaIdraulica()); + String geoOperaRilevante = getNotNullString(request, "geoOperaRilevante", dettPratica.getGeoOperaRilevante()); + String geoOpereDiSostegno = getNotNullString(request, "geoOpereDiSostegno", dettPratica.getGeoOpereDiSostegno()); + String geoOpereInSotterranea = getNotNullString(request, "geoOpereInSotterranea", + dettPratica.getGeoOpereInSotterranea()); + String geoPresenzaPrescrizioni = getNotNullString(request, "geoPresenzaPrescrizioni", + dettPratica.getGeoPresenzaPrescrizioni()); + String geoNotePrescrizioni = getNotNullString(request, "geoNotePrescrizioni", + dettPratica.getGeoNotePrescrizioni()); + String geoNoteIndagini = getNotNullString(request, "geoNoteIndagini", dettPratica.getGeoNoteIndagini()); + String geoEvidenzeGeomorfiche = getNotNullString(request, "geoEvidenzeGeomorfiche", + dettPratica.getGeoEvidenzeGeomorfiche()); + String geoEvidenzeGeologiche = getNotNullString(request, "geoEvidenzeGeologiche", + dettPratica.getGeoEvidenzeGeologiche()); + Date geoDtRelazione = getNotNullDate(request, "geoDtRelazione", dettPratica.getGeoDtRelazione()); + // normative + boolean normLavoriInProprio = ParamUtil.getBoolean(request, "normLavoriInProprio"); + boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); + boolean normEsenteSpese = ParamUtil.getBoolean(request, "normEsenteSpese"); + boolean normDpr01Dep = ParamUtil.getBoolean(request, "normDpr01Dep"); + boolean normDpr02Dep = ParamUtil.getBoolean(request, "normDpr02Dep"); + boolean normDpr01Aut = ParamUtil.getBoolean(request, "normDpr01Aut"); + boolean normDpr02Aut = ParamUtil.getBoolean(request, "normDpr02Aut"); + boolean normDm01 = ParamUtil.getBoolean(request, "normDm01"); + boolean normDm02 = ParamUtil.getBoolean(request, "normDm02"); + boolean normDm03 = ParamUtil.getBoolean(request, "normDm03"); + boolean normDm2018 = ParamUtil.getBoolean(request, "normDm2018"); + boolean normDprg01 = ParamUtil.getBoolean(request, "normDprg01"); + boolean normDprg02 = ParamUtil.getBoolean(request, "normDprg02"); + boolean normAnr = ParamUtil.getBoolean(request, "normAnr"); + boolean normArt3com3 = ParamUtil.getBoolean(request, "normArt3com3"); + boolean normArt3com4 = ParamUtil.getBoolean(request, "normArt3com4"); + boolean normOrd01 = ParamUtil.getBoolean(request, "normOrd01"); + boolean normDm04 = ParamUtil.getBoolean(request, "normDm04"); + boolean normDm05 = ParamUtil.getBoolean(request, "normDm05"); + boolean normCI01 = ParamUtil.getBoolean(request, "normCI01"); + boolean normLTC01 = ParamUtil.getBoolean(request, "normLTC01"); + boolean suap = ParamUtil.getBoolean(request, "suap"); + boolean normSismaBonus = ParamUtil.getBoolean(request, "normSismaBonus"); + String clRischioPreInt = ParamUtil.getString(request, "clRischioPreInt"); + String clRischioPostInt = ParamUtil.getString(request, "clRischioPostInt"); + boolean intervFinPub = ParamUtil.getBoolean(request, "intervFinPub"); + String intervFinPubDesc = intervFinPub ? ParamUtil.getString(request, "intervFinPubDesc") : StringPool.BLANK; + + String contestoPaesaggistico = ParamUtil.getString(request, "contestoPaesaggistico"); + String livelloDiTutela = ParamUtil.getString(request, "livelloDiTutela"); + String vincoli = ParamUtil.getString(request, "vincoli"); + + long userId = PortalUtil.getUserId(request); + String via = dettPratica.getVia(); + String localita = dettPratica.getLocalita(); + if (!ParamUtil.getString(request, "via").equals(StringPool.BLANK)) { + via = ParamUtil.getString(request, "via"); + } + if (!ParamUtil.getString(request, "localita").equals(StringPool.BLANK)) { + localita = ParamUtil.getString(request, "localita"); + } + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); + if(intPratica.isPraticaOspedaliera()){ + destinazione = dettPratica.getDestinazione(); + normEsenteBollo = dettPratica.getNormEsenteBollo(); + normEsenteSpese = dettPratica.getNormEsenteSpese(); + lavoriPubblici = dettPratica.getLavoriPubblici(); + } + try { + DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), + dettPratica.getIntPraticaId(), dettPratica.getIntegrazione(), protocollo, tipoIntegrazione, + dettPratica.getCompleta(), dettPratica.getGestita(), codicePagamento, causalePagamento, + mezzoPagamento, importoBolli, importoSpeseIstruttoria, dataEffettuazione, + dettPratica.getStatusTask(), dettPratica.getWorkflowForzato(), + dettPratica.getSoggettoSostituitoId(), destinazione, ag, descLongIntervento, via, localita, + estremiCatastali, estremiPratCom, dettPratica.getVariataDa(), dettPratica.getVarianteNumero(), + varianteSostanziale, dettPratica.getOperaConforme(), collaudoStatico, + codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + dettPratica.getCodiceRuoloDelegato(), lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, + dataInizioLavoriOpera, dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, + lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, + dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, + deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, + deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, + deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, + deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, + dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, + dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, + dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, dccStruttureEleMistoMuratura, + dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, dccStruttureEleAltro, + dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, + dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, + dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, + dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, dccCoperturaPannelli, + dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, dccCoperturaAltroDesrizione, + dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, + dccElemNonStrutLegno, dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, + dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, + dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, + dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, + dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine, geoCategoriaSottosuolo, + geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, + geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, geoPericolositaSismica, + geoPericolositaIdraulica, geoPericolositaGeomorfica, geoFattibilitaGeologica, + geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante, geoOpereDiSostegno, + geoOpereInSotterranea, geoPresenzaPrescrizioni, geoNotePrescrizioni, geoNoteIndagini, + geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, geoDtRelazione, pagNuoveCostruzioni, + pagAdeguamentoSismico, pagMiglioramentoSismico, pagRiparazioneInterventoLocale, + pagNuovaCostruzione, pagVarianti, pagAltro, pagMiglioramentoSismicoSicilia, + pagCalcolatoAdeguamentoSismico, pagCalcolatoMiglioramentoSismico, + pagCalcolatoRiparazioneInterventoLocale, pagCalcolatoOperaNonQuantificabile, + pagEffettivoAdeguamentoSismico, pagEffettivoMiglioramentoSismico, + pagEffettivoRiparazioneInterventoLocale, pagEffettivoOperaNonQuantificabile, pagNoteUtente, note, + noteUfficio, localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, + tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, + tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, + tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, + normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, + normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, + normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, + intervFinPub, intervFinPubDesc, tcNuovaCostruzioneComplessa, contestoPaesaggistico, + livelloDiTutela, vincoli, serviceContext, bozza, disabledSubmit, geoDisabledSubmit); + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "isNewVariante"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", + String.valueOf(!bozza)); + String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", + String.valueOf(verifyArea)); + String fragmentURL = ParamUtil.getString(request, "current_tab"); + if (Validator.isNotNull(fragmentURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "current_tab"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "current_tab", + fragmentURL); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "historyKey"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "historyKey", + "_1_WAR_portosfeportlet_tab=" + fragmentURL); + + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + } + successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; + } + response.sendRedirect(successURL); + } else { + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); + response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); + response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); + response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); } - successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; } - response.sendRedirect(successURL); - } else { + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); - response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); - response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); - response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + throw new PortalException(e); } - } - } catch (PortalException e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; - } catch (Exception e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw new PortalException(e); - } } private void saveVariazioneSoggetti(long dettPraticaId, ActionRequest request, ActionResponse response) @@ -1717,53 +1756,53 @@ public class FascicoloFePortlet extends MVCPortlet { "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( request, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; - boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, - "codiceFiscaleDelegatoCollaudoEnabled"); - String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, - "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; - long userId = PortalUtil.getUserId(request); - try { - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - - DettPraticaServiceUtil.updateDettPraticaSoggetti(userId, dettPratica.getDettPraticaId(), - dettPratica.getIntPraticaId(), codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, serviceContext); - String redirect = ParamUtil.getString(request, "redirect"); - if (Validator.isNull(redirect)) { - String successURL = ParamUtil.getString(request, "successURL"); - if (Validator.isNotNull(successURL)) { - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); - successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", - String.valueOf(!bozza)); - String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); - successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", - String.valueOf(verifyArea)); - String fragmentURL = "_1_WAR_portosfeportlet_page_soggetti"; - if (successURL.contains(StringPool.POUND)) { - successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(request, + "codiceFiscaleDelegatoCollaudoEnabled"); + String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString(request, + "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; + long userId = PortalUtil.getUserId(request); + try { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); + + DettPraticaServiceUtil.updateDettPraticaSoggetti(userId, dettPratica.getDettPraticaId(), + dettPratica.getIntPraticaId(), codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, + codiceFiscaleDelegatoCollaudo, serviceContext); + String redirect = ParamUtil.getString(request, "redirect"); + if (Validator.isNull(redirect)) { + String successURL = ParamUtil.getString(request, "successURL"); + if (Validator.isNotNull(successURL)) { + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "openVerifyUrl"); + successURL = HttpUtil.removeParameter(successURL, response.getNamespace() + "verifyArea"); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "openVerifyUrl", + String.valueOf(!bozza)); + String verifyArea = ParamUtil.getString(request, "verifyArea", StringPool.BLANK); + successURL = HttpUtil.addParameter(successURL, response.getNamespace() + "verifyArea", + String.valueOf(verifyArea)); + String fragmentURL = "_1_WAR_portosfeportlet_page_soggetti"; + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); + } + successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; + response.sendRedirect(successURL); + } else { + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); + response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); + response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); + response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + } } - successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; - response.sendRedirect(successURL); - } else { + } catch (PortalException e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); + response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + throw e; + } catch (Exception e) { + _log.error(e, e); + PortalUtil.copyRequestParameters(request, response); response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - response.setRenderParameter("backURL", ParamUtil.getString(request, "backURL")); - response.setRenderParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); - response.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); - response.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); + throw new PortalException(e); } - } - } catch (PortalException e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; - } catch (Exception e) { - _log.error(e, e); - PortalUtil.copyRequestParameters(request, response); - response.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw new PortalException(e); - } } public void deleteFascicolo(ActionRequest request, ActionResponse response) throws Exception { @@ -1779,7 +1818,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void richiediAsseverazioni(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); @@ -1791,7 +1830,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void annullaAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long asseverazioneId = ParamUtil.getLong(request, "asseverazioneId"); @@ -1804,7 +1843,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void rimuoviFileAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long asseverazioneId = ParamUtil.getLong(request, "asseverazioneId"); @@ -1816,7 +1855,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void allegatoFileAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request); @@ -1876,7 +1915,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void generaFirmaAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); @@ -1897,7 +1936,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void allegatoFileAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { String dettagliFirme = StringPool.BLANK; try { @@ -1956,7 +1995,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void deleteFileAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { long fileAnnulamentoId = ParamUtil.getLong(request, "docPraticaAnnullamentoId"); if (Validator.isNotNull(fileAnnulamentoId)) { @@ -1965,7 +2004,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void confermaAsseverazione(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long asseverazioneId = ParamUtil.getLong(request, "asseverazioneId"); @@ -1977,7 +2016,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void annullaAsseverazioni(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); @@ -1989,7 +2028,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void updateFormPagamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); boolean normEsenteBollo = ParamUtil.getBoolean(request, "normEsenteBollo"); @@ -2164,7 +2203,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void salvaStampaPratica(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); @@ -2182,7 +2221,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void invioMailAsseverazione(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); @@ -2223,7 +2262,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void allegatoFilePagamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { try { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request); @@ -2259,7 +2298,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeDomandaEsente(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); long fineLavoriId = ParamUtil.getLong(request, "fineLavoriId"); @@ -2276,7 +2315,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeIntegrazione(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); if (Validator.isNotNull(dettPraticaId)) { @@ -2287,7 +2326,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeCambioSoggetti(ActionRequest request, ActionResponse response) throws IOException, - PortalException, SystemException { + PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); if (Validator.isNotNull(dettPraticaId)) { @@ -2298,7 +2337,7 @@ public class FascicoloFePortlet extends MVCPortlet { } public void completeAnnullamento(ActionRequest request, ActionResponse response) throws PortalException, - SystemException { + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(request); long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp index 65c9b938..f010b170 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp @@ -727,11 +727,16 @@ function duplicati(input) {
  • - -
  • -
    + <% + String tcRiparazioneInterventoLocalClass = ""; + if(!isPraticaOspedaliera){ + tcRiparazioneInterventoLocalClass = "hide"; + } + %> +
  • diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component index 9fda3447..7a047eaa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses +