diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 12a7f8ac..1d0b0b1a 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ 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 f0a402be..4456f4f3 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 @@ -325,6 +325,10 @@ public interface IntPraticaLocalService extends BaseLocalService, java.util.Date dataInizioLavori, java.util.Date dataFineLavori) throws com.liferay.portal.kernel.exception.SystemException; + public java.util.List filtraPraticheAutorizzate( + java.util.Date dataInizioLavori, java.util.Date dataFineLavori) + throws com.liferay.portal.kernel.exception.SystemException; + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.Map getTipiProcedure(); 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 7000e609..704fcdae 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 @@ -143,267 +143,273 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { "java.util.Date", "java.util.Date" }; - _methodName25 = "getTipiProcedure"; + _methodName25 = "filtraPraticheAutorizzate"; - _methodParameterTypes25 = new String[] { }; + _methodParameterTypes25 = new String[] { + "java.util.Date", "java.util.Date" + }; - _methodName26 = "getVecchieProcedure"; + _methodName26 = "getTipiProcedure"; _methodParameterTypes26 = new String[] { }; - _methodName27 = "addIntPratica"; + _methodName27 = "getVecchieProcedure"; + + _methodParameterTypes27 = new String[] { }; + + _methodName28 = "addIntPratica"; - _methodParameterTypes27 = new String[] { + _methodParameterTypes28 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName28 = "addIntPratica"; + _methodName29 = "addIntPratica"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes29 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName29 = "findByStatoPratica"; + _methodName30 = "findByStatoPratica"; - _methodParameterTypes29 = new String[] { "java.lang.String" }; + _methodParameterTypes30 = new String[] { "java.lang.String" }; - _methodName30 = "findByStatoPratica"; + _methodName31 = "findByStatoPratica"; - _methodParameterTypes30 = new String[] { "java.lang.String", "int", "int" }; + _methodParameterTypes31 = new String[] { "java.lang.String", "int", "int" }; - _methodName31 = "deleteIntPratica"; + _methodName32 = "deleteIntPratica"; - _methodParameterTypes31 = new String[] { + _methodParameterTypes32 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName32 = "cloneIntPratica"; + _methodName33 = "cloneIntPratica"; - _methodParameterTypes32 = new String[] { + _methodParameterTypes33 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName33 = "updateDelegati"; + _methodName34 = "updateDelegati"; - _methodParameterTypes33 = new String[] { + _methodParameterTypes34 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName34 = "findFascicoliNotProgetto"; - - _methodParameterTypes34 = new String[] { "int", "int" }; + _methodName35 = "findFascicoliNotProgetto"; - _methodName35 = "countFascicoliNotProgetto"; + _methodParameterTypes35 = new String[] { "int", "int" }; - _methodParameterTypes35 = new String[] { }; + _methodName36 = "countFascicoliNotProgetto"; - _methodName36 = "countByPosizione"; + _methodParameterTypes36 = new String[] { }; - _methodParameterTypes36 = new String[] { "double", "double", "int" }; - - _methodName37 = "findByPosizione"; + _methodName37 = "countByPosizione"; _methodParameterTypes37 = new String[] { "double", "double", "int" }; _methodName38 = "findByPosizione"; - _methodParameterTypes38 = new String[] { + _methodParameterTypes38 = new String[] { "double", "double", "int" }; + + _methodName39 = "findByPosizione"; + + _methodParameterTypes39 = new String[] { "double", "double", "int", "int", "int" }; - _methodName39 = "addNumeroProgetto"; + _methodName40 = "addNumeroProgetto"; - _methodParameterTypes39 = new String[] { "long" }; + _methodParameterTypes40 = new String[] { "long" }; - _methodName40 = "sospendiPratica"; + _methodName41 = "sospendiPratica"; - _methodParameterTypes40 = new String[] { "long", "boolean" }; + _methodParameterTypes41 = new String[] { "long", "boolean" }; - _methodName41 = "cambiaTitolare"; + _methodName42 = "cambiaTitolare"; - _methodParameterTypes41 = new String[] { + _methodParameterTypes42 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName42 = "updateStatoPratica"; - - _methodParameterTypes42 = new String[] { "long", "java.lang.String" }; + _methodName43 = "updateStatoPratica"; - _methodName43 = "findByC_UserId"; + _methodParameterTypes43 = new String[] { "long", "java.lang.String" }; - _methodParameterTypes43 = new String[] { "long", "long", "int", "int" }; + _methodName44 = "findByC_UserId"; - _methodName44 = "countByC_UserId"; + _methodParameterTypes44 = new String[] { "long", "long", "int", "int" }; - _methodParameterTypes44 = new String[] { "long", "long" }; + _methodName45 = "countByC_UserId"; - _methodName45 = "updateStatus"; + _methodParameterTypes45 = new String[] { "long", "long" }; - _methodParameterTypes45 = new String[] { "long", "int" }; + _methodName46 = "updateStatus"; - _methodName46 = "findByCompanyIdSoggettoProgetti"; + _methodParameterTypes46 = new String[] { "long", "int" }; - _methodParameterTypes46 = new String[] { "long", "long" }; - - _methodName47 = "countByCompanyIdSoggettoProgetti"; + _methodName47 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes47 = new String[] { "long", "long" }; - _methodName48 = "findByCompanyIdSoggettoArchivio"; + _methodName48 = "countByCompanyIdSoggettoProgetti"; _methodParameterTypes48 = new String[] { "long", "long" }; - _methodName49 = "countByCompanyIdSoggettoArchivio"; + _methodName49 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes49 = new String[] { "long", "long" }; - _methodName50 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName50 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes50 = new String[] { "long", "long" }; + + _methodName51 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes50 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes51 = new String[] { "long", "long", "int", "int" }; - _methodName51 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName52 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes51 = new String[] { "long", "long" }; + _methodParameterTypes52 = new String[] { "long", "long" }; - _methodName52 = "findByCanAddFineLavori"; + _methodName53 = "findByCanAddFineLavori"; - _methodParameterTypes52 = new String[] { + _methodParameterTypes53 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName53 = "countByCanAddFineLavori"; + _methodName54 = "countByCanAddFineLavori"; - _methodParameterTypes53 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes54 = new String[] { "long", "java.lang.String" }; - _methodName54 = "findByCanAddCollaudo"; + _methodName55 = "findByCanAddCollaudo"; - _methodParameterTypes54 = new String[] { + _methodParameterTypes55 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName55 = "countByCanAddCollaudo"; + _methodName56 = "countByCanAddCollaudo"; - _methodParameterTypes55 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes56 = new String[] { "long", "java.lang.String" }; - _methodName56 = "search"; + _methodName57 = "search"; - _methodParameterTypes56 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes57 = new String[] { "java.util.List", "int", "int" }; - _methodName57 = "countSearch"; + _methodName58 = "countSearch"; - _methodParameterTypes57 = new String[] { "java.util.List" }; + _methodParameterTypes58 = new String[] { "java.util.List" }; - _methodName58 = "searchWithIntPraticaId"; + _methodName59 = "searchWithIntPraticaId"; - _methodParameterTypes58 = new String[] { + _methodParameterTypes59 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName59 = "allegaFileAnnullamento"; + _methodName60 = "allegaFileAnnullamento"; - _methodParameterTypes59 = new String[] { + _methodParameterTypes60 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName60 = "generateFileAnnullamento"; + _methodName61 = "generateFileAnnullamento"; - _methodParameterTypes60 = new String[] { + _methodParameterTypes61 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName61 = "deleteFileAnnullamento"; + _methodName62 = "deleteFileAnnullamento"; - _methodParameterTypes61 = new String[] { "long" }; + _methodParameterTypes62 = new String[] { "long" }; - _methodName62 = "completeAnnullamento"; + _methodName63 = "completeAnnullamento"; - _methodParameterTypes62 = new String[] { "long" }; + _methodParameterTypes63 = new String[] { "long" }; - _methodName63 = "cambiaIstruttore"; + _methodName64 = "cambiaIstruttore"; - _methodParameterTypes63 = new String[] { "long", "long", "long" }; + _methodParameterTypes64 = new String[] { "long", "long", "long" }; - _methodName64 = "countCaricoLavoroCF"; + _methodName65 = "countCaricoLavoroCF"; - _methodParameterTypes64 = new String[] { + _methodParameterTypes65 = new String[] { "long", "java.lang.String", "java.lang.Long[][]" }; - _methodName65 = "countCaricoLavoroIstruttore"; + _methodName66 = "countCaricoLavoroIstruttore"; - _methodParameterTypes65 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes66 = new String[] { "long", "java.lang.String" }; - _methodName66 = "generateReportPratica"; + _methodName67 = "generateReportPratica"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes67 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName67 = "updateModifiedDate"; + _methodName68 = "updateModifiedDate"; - _methodParameterTypes67 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes68 = new String[] { "long", "java.util.Date" }; - _methodName68 = "reIndexFascicolo"; + _methodName69 = "reIndexFascicolo"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes69 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName69 = "reIndexFasciolo"; - - _methodParameterTypes69 = new String[] { "java.lang.String", "long" }; - _methodName70 = "reIndexFasciolo"; - _methodParameterTypes70 = new String[] { "long", "long" }; + _methodParameterTypes70 = new String[] { "java.lang.String", "long" }; - _methodName71 = "findByNumeroProgetto"; + _methodName71 = "reIndexFasciolo"; - _methodParameterTypes71 = new String[] { "java.lang.String" }; + _methodParameterTypes71 = new String[] { "long", "long" }; - _methodName72 = "findByTerritorioId"; + _methodName72 = "findByNumeroProgetto"; - _methodParameterTypes72 = new String[] { "long" }; + _methodParameterTypes72 = new String[] { "java.lang.String" }; - _methodName73 = "getOrganizationByIntPraticaId"; + _methodName73 = "findByTerritorioId"; _methodParameterTypes73 = new String[] { "long" }; - _methodName74 = "hasRichiestaIntegrazioneAttiva"; + _methodName74 = "getOrganizationByIntPraticaId"; _methodParameterTypes74 = new String[] { "long" }; - _methodName75 = "invioMailNotifica"; + _methodName75 = "hasRichiestaIntegrazioneAttiva"; + + _methodParameterTypes75 = new String[] { "long" }; - _methodParameterTypes75 = new String[] { + _methodName76 = "invioMailNotifica"; + + _methodParameterTypes76 = new String[] { "long", "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]", "java.lang.String[][]", "java.lang.String", "com.liferay.portal.kernel.json.JSONObject", "java.util.List", "com.liferay.portal.service.ServiceContext" }; - _methodName76 = "searchAltriProgetti"; + _methodName77 = "searchAltriProgetti"; - _methodParameterTypes76 = new String[] { + _methodParameterTypes77 = new String[] { "javax.servlet.http.HttpServletRequest", "com.liferay.portal.model.User", "int", "int" }; - _methodName77 = "searchArchivioProgetti"; + _methodName78 = "searchArchivioProgetti"; - _methodParameterTypes77 = new String[] { + _methodParameterTypes78 = new String[] { "javax.servlet.http.HttpServletRequest", "com.liferay.portal.model.User", "int", "int" }; - _methodName78 = "searchMieiProgetti"; + _methodName79 = "searchMieiProgetti"; - _methodParameterTypes78 = new String[] { + _methodParameterTypes79 = new String[] { "javax.servlet.http.HttpServletRequest", "com.liferay.portal.model.User", "int", "int" }; @@ -1178,16 +1184,27 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { } @Override - public java.util.Map getTipiProcedure() { + public java.util.List filtraPraticheAutorizzate( + java.util.Date dataInizioLavori, java.util.Date dataFineLavori) + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, new Object[] { }); + _methodParameterTypes25, + new Object[] { + ClpSerializer.translateInput(dataInizioLavori), + + ClpSerializer.translateInput(dataFineLavori) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(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; } @@ -1197,11 +1214,11 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { } } - return (java.util.Map)ClpSerializer.translateOutput(returnObj); + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public java.util.Map getVecchieProcedure() { + public java.util.Map getTipiProcedure() { Object returnObj = null; try { @@ -1223,6 +1240,29 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.Map)ClpSerializer.translateOutput(returnObj); } + @Override + public java.util.Map getVecchieProcedure() { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.Map)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, @@ -1232,8 +1272,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { territorioId, @@ -1277,8 +1317,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { userId, @@ -1333,8 +1373,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { ClpSerializer.translateInput(statoPratica) }); } catch (Throwable t) { @@ -1363,8 +1403,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { ClpSerializer.translateInput(statoPratica), @@ -1400,8 +1440,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1440,8 +1480,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { intPraticaId, @@ -1481,8 +1521,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { intPraticaId, @@ -1524,8 +1564,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1552,8 +1592,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1580,8 +1620,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, new Object[] { lat, lng, raggio }); + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { lat, lng, raggio }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1609,8 +1649,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, new Object[] { lat, lng, raggio }); + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { lat, lng, raggio }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1638,8 +1678,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { lat, lng, raggio, start, end }); } catch (Throwable t) { @@ -1669,8 +1709,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1703,8 +1743,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1739,8 +1779,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { intPraticaId, @@ -1780,8 +1820,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId, @@ -1818,8 +1858,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1847,8 +1887,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1874,8 +1914,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1906,8 +1946,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1940,8 +1980,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) { @@ -1975,8 +2015,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2009,8 +2049,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2044,8 +2084,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2079,8 +2119,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2114,8 +2154,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { companyId, @@ -2157,8 +2197,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { companyId, @@ -2196,8 +2236,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { companyId, @@ -2239,8 +2279,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { companyId, @@ -2277,8 +2317,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2312,8 +2352,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2342,8 +2382,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2384,8 +2424,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, + returnObj = _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { intPraticaId, @@ -2435,8 +2475,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + returnObj = _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId, @@ -2475,8 +2515,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2505,8 +2545,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2535,8 +2575,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2568,8 +2608,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { ispettoreId, @@ -2608,8 +2648,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { ispettoreId, @@ -2643,8 +2683,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2682,8 +2722,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { intPraticaId, @@ -2717,8 +2757,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica pratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { ClpSerializer.translateInput(pratica), companyId }); } catch (Throwable t) { @@ -2738,8 +2778,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(_methodName69, - _methodParameterTypes69, + _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -2768,8 +2808,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -2800,8 +2840,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -2830,8 +2870,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2860,8 +2900,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2891,8 +2931,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2920,8 +2960,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[] { dettPraticaId, @@ -2972,8 +3012,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { ClpSerializer.translateInput(request), @@ -3006,8 +3046,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { ClpSerializer.translateInput(request), @@ -3040,8 +3080,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { ClpSerializer.translateInput(request), @@ -3224,4 +3264,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes77; private String _methodName78; private String[] _methodParameterTypes78; + private String _methodName79; + private String[] _methodParameterTypes79; } \ 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 8b26bb98..2b4f28f8 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 @@ -355,6 +355,13 @@ public class IntPraticaLocalServiceUtil { .filtraPraticheIntegrazioni(dataInizioLavori, dataFineLavori); } + public static java.util.List filtraPraticheAutorizzate( + java.util.Date dataInizioLavori, java.util.Date dataFineLavori) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .filtraPraticheAutorizzate(dataInizioLavori, dataFineLavori); + } + public static java.util.Map getTipiProcedure() { return getService().getTipiProcedure(); } 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 7f51f9ac..5b6c4ab8 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 @@ -378,6 +378,14 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, dataFineLavori); } + @Override + public java.util.List filtraPraticheAutorizzate( + java.util.Date dataInizioLavori, java.util.Date dataFineLavori) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPraticaLocalService.filtraPraticheAutorizzate(dataInizioLavori, + dataFineLavori); + } + @Override public java.util.Map getTipiProcedure() { return _intPraticaLocalService.getTipiProcedure(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java index 81035e80..49138396 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java @@ -33,4 +33,8 @@ public interface IntPraticaFinder { public java.util.List filtraPraticheIntegrazioni( java.util.Date dataInizioLavori, java.util.Date dataFineLavori) throws com.liferay.portal.kernel.exception.SystemException; + + public java.util.List filtraPraticheAutorizzate( + java.util.Date dataInizioLavori, java.util.Date dataFineLavori) + throws com.liferay.portal.kernel.exception.SystemException; } \ 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/persistence/IntPraticaFinderUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java index 912c7da2..f580f358 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java @@ -47,6 +47,13 @@ public class IntPraticaFinderUtil { .filtraPraticheIntegrazioni(dataInizioLavori, dataFineLavori); } + public static java.util.List filtraPraticheAutorizzate( + java.util.Date dataInizioLavori, java.util.Date dataFineLavori) + throws com.liferay.portal.kernel.exception.SystemException { + return getFinder() + .filtraPraticheAutorizzate(dataInizioLavori, dataFineLavori); + } + public static IntPraticaFinder getFinder() { if (_finder == null) { _finder = (IntPraticaFinder)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml index a139ce96..3fc7c130 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml @@ -16,12 +16,13 @@ and fine.completata = true order by int.createdate; ]]> - - + ? - and pbi.dtpratica < ? + where + pbi.dtpratica > ? + and pbi.dtpratica < ? group by tipoprocedura, statopratica order by tipoprocedura, statopratica; ]]> @@ -39,4 +40,16 @@ group by tipoprocedura order by tipoprocedura; ]]> + + ? + and pbi.statusdate < ? + and statopratica in ('AU', 'AN') + group by tipoprocedura, statopratica + order by tipoprocedura, statopratica; + ]]> + \ 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/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 df11b449..96b7605c 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 @@ -142,277 +142,283 @@ public class IntPraticaLocalServiceClpInvoker { "java.util.Date", "java.util.Date" }; - _methodName178 = "getTipiProcedure"; + _methodName178 = "filtraPraticheAutorizzate"; - _methodParameterTypes178 = new String[] { }; + _methodParameterTypes178 = new String[] { + "java.util.Date", "java.util.Date" + }; - _methodName179 = "getVecchieProcedure"; + _methodName179 = "getTipiProcedure"; _methodParameterTypes179 = new String[] { }; - _methodName180 = "addIntPratica"; + _methodName180 = "getVecchieProcedure"; + + _methodParameterTypes180 = new String[] { }; + + _methodName181 = "addIntPratica"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName181 = "addIntPratica"; + _methodName182 = "addIntPratica"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName182 = "findByStatoPratica"; + _methodName183 = "findByStatoPratica"; - _methodParameterTypes182 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName183 = "findByStatoPratica"; + _methodName184 = "findByStatoPratica"; - _methodParameterTypes183 = new String[] { "java.lang.String", "int", "int" }; + _methodParameterTypes184 = new String[] { "java.lang.String", "int", "int" }; - _methodName184 = "deleteIntPratica"; + _methodName185 = "deleteIntPratica"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes185 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName185 = "deleteIntPratica"; + _methodName186 = "deleteIntPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes186 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName186 = "cloneIntPratica"; + _methodName187 = "cloneIntPratica"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes187 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "updateDelegati"; + _methodName189 = "updateDelegati"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes189 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName189 = "fetchIntPratica"; - - _methodParameterTypes189 = new String[] { "long" }; + _methodName190 = "fetchIntPratica"; - _methodName190 = "findFascicoliNotProgetto"; + _methodParameterTypes190 = new String[] { "long" }; - _methodParameterTypes190 = new String[] { "int", "int" }; + _methodName191 = "findFascicoliNotProgetto"; - _methodName191 = "countFascicoliNotProgetto"; + _methodParameterTypes191 = new String[] { "int", "int" }; - _methodParameterTypes191 = new String[] { }; + _methodName192 = "countFascicoliNotProgetto"; - _methodName193 = "countByPosizione"; + _methodParameterTypes192 = new String[] { }; - _methodParameterTypes193 = new String[] { "double", "double", "int" }; - - _methodName194 = "findByPosizione"; + _methodName194 = "countByPosizione"; _methodParameterTypes194 = new String[] { "double", "double", "int" }; _methodName195 = "findByPosizione"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes195 = new String[] { "double", "double", "int" }; + + _methodName196 = "findByPosizione"; + + _methodParameterTypes196 = new String[] { "double", "double", "int", "int", "int" }; - _methodName197 = "addNumeroProgetto"; + _methodName198 = "addNumeroProgetto"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName198 = "sospendiPratica"; + _methodName199 = "sospendiPratica"; - _methodParameterTypes198 = new String[] { "long", "boolean" }; + _methodParameterTypes199 = new String[] { "long", "boolean" }; - _methodName199 = "cambiaTitolare"; + _methodName200 = "cambiaTitolare"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes200 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName200 = "updateStatoPratica"; - - _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - - _methodName201 = "findByC_UserId"; + _methodName201 = "updateStatoPratica"; - _methodParameterTypes201 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; - _methodName202 = "countByC_UserId"; + _methodName202 = "findByC_UserId"; - _methodParameterTypes202 = new String[] { "long", "long" }; + _methodParameterTypes202 = new String[] { "long", "long", "int", "int" }; - _methodName203 = "updateStatus"; + _methodName203 = "countByC_UserId"; - _methodParameterTypes203 = new String[] { "long", "int" }; + _methodParameterTypes203 = new String[] { "long", "long" }; - _methodName204 = "findByCompanyIdSoggettoProgetti"; + _methodName204 = "updateStatus"; - _methodParameterTypes204 = new String[] { "long", "long" }; + _methodParameterTypes204 = new String[] { "long", "int" }; - _methodName205 = "countByCompanyIdSoggettoProgetti"; + _methodName205 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes205 = new String[] { "long", "long" }; - _methodName207 = "findByCompanyIdSoggettoArchivio"; + _methodName206 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes207 = new String[] { "long", "long" }; + _methodParameterTypes206 = new String[] { "long", "long" }; - _methodName208 = "countByCompanyIdSoggettoArchivio"; + _methodName208 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes208 = new String[] { "long", "long" }; - _methodName210 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName209 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes210 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes209 = new String[] { "long", "long" }; - _methodName211 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName211 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes211 = new String[] { "long", "long" }; + _methodParameterTypes211 = new String[] { "long", "long", "int", "int" }; - _methodName213 = "findByCanAddFineLavori"; + _methodName212 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes212 = new String[] { "long", "long" }; + + _methodName214 = "findByCanAddFineLavori"; + + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName214 = "countByCanAddFineLavori"; + _methodName215 = "countByCanAddFineLavori"; - _methodParameterTypes214 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String" }; - _methodName216 = "findByCanAddCollaudo"; + _methodName217 = "findByCanAddCollaudo"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes217 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName217 = "countByCanAddCollaudo"; + _methodName218 = "countByCanAddCollaudo"; - _methodParameterTypes217 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes218 = new String[] { "long", "java.lang.String" }; - _methodName218 = "search"; + _methodName219 = "search"; - _methodParameterTypes218 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes219 = new String[] { "java.util.List", "int", "int" }; - _methodName219 = "countSearch"; + _methodName220 = "countSearch"; - _methodParameterTypes219 = new String[] { "java.util.List" }; + _methodParameterTypes220 = new String[] { "java.util.List" }; - _methodName220 = "searchWithIntPraticaId"; + _methodName221 = "searchWithIntPraticaId"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes221 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName221 = "allegaFileAnnullamento"; + _methodName222 = "allegaFileAnnullamento"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes222 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName222 = "generateFileAnnullamento"; + _methodName223 = "generateFileAnnullamento"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes223 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName223 = "deleteFileAnnullamento"; + _methodName224 = "deleteFileAnnullamento"; - _methodParameterTypes223 = new String[] { "long" }; + _methodParameterTypes224 = new String[] { "long" }; - _methodName224 = "completeAnnullamento"; + _methodName225 = "completeAnnullamento"; - _methodParameterTypes224 = new String[] { "long" }; + _methodParameterTypes225 = new String[] { "long" }; - _methodName225 = "cambiaIstruttore"; + _methodName226 = "cambiaIstruttore"; - _methodParameterTypes225 = new String[] { "long", "long", "long" }; + _methodParameterTypes226 = new String[] { "long", "long", "long" }; - _methodName226 = "countCaricoLavoroCF"; + _methodName227 = "countCaricoLavoroCF"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes227 = new String[] { "long", "java.lang.String", "java.lang.Long[][]" }; - _methodName227 = "countCaricoLavoroIstruttore"; + _methodName228 = "countCaricoLavoroIstruttore"; - _methodParameterTypes227 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes228 = new String[] { "long", "java.lang.String" }; - _methodName228 = "generateReportPratica"; + _methodName229 = "generateReportPratica"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes229 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName229 = "updateModifiedDate"; + _methodName230 = "updateModifiedDate"; - _methodParameterTypes229 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes230 = new String[] { "long", "java.util.Date" }; - _methodName230 = "reIndexFascicolo"; + _methodName231 = "reIndexFascicolo"; - _methodParameterTypes230 = new String[] { + _methodParameterTypes231 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName231 = "reIndexFasciolo"; - - _methodParameterTypes231 = new String[] { "java.lang.String", "long" }; - _methodName232 = "reIndexFasciolo"; - _methodParameterTypes232 = new String[] { "long", "long" }; + _methodParameterTypes232 = new String[] { "java.lang.String", "long" }; - _methodName233 = "findByNumeroProgetto"; + _methodName233 = "reIndexFasciolo"; - _methodParameterTypes233 = new String[] { "java.lang.String" }; + _methodParameterTypes233 = new String[] { "long", "long" }; - _methodName234 = "findByTerritorioId"; + _methodName234 = "findByNumeroProgetto"; - _methodParameterTypes234 = new String[] { "long" }; + _methodParameterTypes234 = new String[] { "java.lang.String" }; - _methodName235 = "getOrganizationByIntPraticaId"; + _methodName235 = "findByTerritorioId"; _methodParameterTypes235 = new String[] { "long" }; - _methodName236 = "hasRichiestaIntegrazioneAttiva"; + _methodName236 = "getOrganizationByIntPraticaId"; _methodParameterTypes236 = new String[] { "long" }; - _methodName237 = "invioMailNotifica"; + _methodName237 = "hasRichiestaIntegrazioneAttiva"; + + _methodParameterTypes237 = new String[] { "long" }; - _methodParameterTypes237 = new String[] { + _methodName238 = "invioMailNotifica"; + + _methodParameterTypes238 = new String[] { "long", "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]", "java.lang.String[][]", "java.lang.String", "com.liferay.portal.kernel.json.JSONObject", "java.util.List", "com.liferay.portal.service.ServiceContext" }; - _methodName238 = "searchAltriProgetti"; + _methodName239 = "searchAltriProgetti"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes239 = new String[] { "javax.servlet.http.HttpServletRequest", "com.liferay.portal.model.User", "int", "int" }; - _methodName239 = "searchArchivioProgetti"; + _methodName240 = "searchArchivioProgetti"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes240 = new String[] { "javax.servlet.http.HttpServletRequest", "com.liferay.portal.model.User", "int", "int" }; - _methodName240 = "searchMieiProgetti"; + _methodName241 = "searchMieiProgetti"; - _methodParameterTypes240 = new String[] { + _methodParameterTypes241 = new String[] { "javax.servlet.http.HttpServletRequest", "com.liferay.portal.model.User", "int", "int" }; @@ -557,23 +563,29 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName178.equals(name) && Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { - return IntPraticaLocalServiceUtil.getTipiProcedure(); + return IntPraticaLocalServiceUtil.filtraPraticheAutorizzate((java.util.Date)arguments[0], + (java.util.Date)arguments[1]); } if (_methodName179.equals(name) && Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { - return IntPraticaLocalServiceUtil.getVecchieProcedure(); + return IntPraticaLocalServiceUtil.getTipiProcedure(); } if (_methodName180.equals(name) && Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + return IntPraticaLocalServiceUtil.getVecchieProcedure(); + } + + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -585,74 +597,74 @@ public class IntPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return IntPraticaLocalServiceUtil.findByStatoPratica((java.lang.String)arguments[0]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return IntPraticaLocalServiceUtil.findByStatoPratica((java.lang.String)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return IntPraticaLocalServiceUtil.countByPosizione(((Double)arguments[0]).doubleValue(), ((Double)arguments[1]).doubleValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return IntPraticaLocalServiceUtil.findByPosizione(((Double)arguments[0]).doubleValue(), ((Double)arguments[1]).doubleValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return IntPraticaLocalServiceUtil.findByPosizione(((Double)arguments[0]).doubleValue(), ((Double)arguments[1]).doubleValue(), ((Integer)arguments[2]).intValue(), @@ -660,168 +672,168 @@ public class IntPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((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.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, 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 (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -829,41 +841,33 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { - return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.Long[])arguments[2]); - } - if (_methodName227.equals(name) && Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { - return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1]); + return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.Long[])arguments[2]); } if (_methodName228.equals(name) && Arrays.deepEquals(_methodParameterTypes228, 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]); } if (_methodName229.equals(name) && Arrays.deepEquals(_methodParameterTypes229, 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 (_methodName230.equals(name) && Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], - ((Long)arguments[1]).longValue()); - - return null; + return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), + (java.util.Date)arguments[1]); } if (_methodName231.equals(name) && Arrays.deepEquals(_methodParameterTypes231, 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; @@ -871,7 +875,7 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName232.equals(name) && Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), + IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -879,26 +883,34 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName233.equals(name) && Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); + IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), + ((Long)arguments[1]).longValue()); + + return null; } if (_methodName234.equals(name) && Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } if (_methodName235.equals(name) && Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { - return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } if (_methodName236.equals(name) && Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { - return IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue()); } if (_methodName237.equals(name) && Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + return IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(((Long)arguments[0]).longValue()); + } + + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { IntPraticaLocalServiceUtil.invioMailNotifica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -913,24 +925,24 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return IntPraticaLocalServiceUtil.searchAltriProgetti((javax.servlet.http.HttpServletRequest)arguments[0], (com.liferay.portal.model.User)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return IntPraticaLocalServiceUtil.searchArchivioProgetti((javax.servlet.http.HttpServletRequest)arguments[0], (com.liferay.portal.model.User)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return IntPraticaLocalServiceUtil.searchMieiProgetti((javax.servlet.http.HttpServletRequest)arguments[0], (com.liferay.portal.model.User)arguments[1], ((Integer)arguments[2]).intValue(), @@ -1006,22 +1018,22 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes185; private String _methodName186; private String[] _methodParameterTypes186; - private String _methodName188; - private String[] _methodParameterTypes188; + private String _methodName187; + private String[] _methodParameterTypes187; private String _methodName189; private String[] _methodParameterTypes189; private String _methodName190; private String[] _methodParameterTypes190; private String _methodName191; private String[] _methodParameterTypes191; - private String _methodName193; - private String[] _methodParameterTypes193; + private String _methodName192; + private String[] _methodParameterTypes192; private String _methodName194; private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; - private String _methodName197; - private String[] _methodParameterTypes197; + private String _methodName196; + private String[] _methodParameterTypes196; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; @@ -1038,20 +1050,20 @@ public class IntPraticaLocalServiceClpInvoker { 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 _methodName210; - private String[] _methodParameterTypes210; + private String _methodName209; + private String[] _methodParameterTypes209; private String _methodName211; private String[] _methodParameterTypes211; - private String _methodName213; - private String[] _methodParameterTypes213; + private String _methodName212; + private String[] _methodParameterTypes212; private String _methodName214; private String[] _methodParameterTypes214; - private String _methodName216; - private String[] _methodParameterTypes216; + private String _methodName215; + private String[] _methodParameterTypes215; private String _methodName217; private String[] _methodParameterTypes217; private String _methodName218; @@ -1100,4 +1112,6 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes239; private String _methodName240; private String[] _methodParameterTypes240; + private String _methodName241; + private String[] _methodParameterTypes241; } \ 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/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 a1b270ae..8af375d8 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 @@ -138,7 +138,9 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { public List filtraPraticheIntegrazioni(Date dataInizioLavori, Date dataFineLavori) throws SystemException { return IntPraticaFinderUtil.filtraPraticheIntegrazioni(dataInizioLavori, dataFineLavori); } - + public List filtraPraticheAutorizzate(Date dataInizioLavori, Date dataFineLavori) throws SystemException { + return IntPraticaFinderUtil.filtraPraticheAutorizzate(dataInizioLavori, dataFineLavori); + } @Override public Map getTipiProcedure() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java index cb9d2c7e..fdd9be5b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java @@ -74,6 +74,9 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl implem } private final String FILTRA_PRATICHE_STATO = "IntPratica.reportPraticaStato"; private final String FILTRA_PRATICHE_INTEGRAZIONI = "IntPratica.reportPraticaIntegrazioni"; + private final String FILTRA_PRATICHE_AUTORIZZAZIONI = "IntPratica.reportPraticaAutorizzazioni"; + + public List filtraPraticheStato(Date dataInizioLavori, Date dataFineLavori) throws SystemException { Session session = null; @@ -121,4 +124,29 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl implem } } } + + public List filtraPraticheAutorizzate(Date dataInizioLavori, Date dataFineLavori) + throws SystemException { + _log.error("filtra praticha autorizzate--------------------------------"+dataFineLavori+dataInizioLavori); + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(FILTRA_PRATICHE_AUTORIZZAZIONI); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dataInizioLavori); + qPos.add(dataFineLavori); + @SuppressWarnings("unchecked") + List l = query.list(); + return l; + } catch (ORMException e) { + _log.error("Errore", e); + throw new RuntimeException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index f9294e27..a261ab1c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=3641 - build.date=1679922693282 + build.number=3647 + build.date=1680095876126 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/commons-csv.jar b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/commons-csv.jar new file mode 100644 index 00000000..e9eb0bd3 Binary files /dev/null and b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/commons-csv.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 12a7f8ac..1d0b0b1a 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-display.xml b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-display.xml index aa14a378..5a1077ba 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-display.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-display.xml @@ -2,7 +2,9 @@ - - + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-portlet.xml index 53db4eac..0a3c29a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -3,11 +3,12 @@ - portos-reportistica + 1 /icon.png configuration + 1.8 /css/main.css /js/main.js portos-reportistica-portlet diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/portlet.xml index 647b42d4..061bfef8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/portlet.xml @@ -2,9 +2,9 @@ - portos-reportistica + 1 Portos Reportistica - com.liferay.util.bridges.mvc.MVCPortlet + reportistica.Reportistica view-template /html/view.jsp @@ -12,6 +12,7 @@ 0 text/html + view content.Language diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/content/Language.properties index 5f0b676c..e769b635 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/content/Language.properties @@ -5,5 +5,88 @@ titolo_pagina_reportistica=Dashboard di Reportistica titolo_campi_filtro=Range date di filtro: titolo_tabella_risultati_stato=Filtra Pratiche per Stato titolo_tabella_risultati_integrazioni=Filtra Pratiche per Integrazioni +titolo_tabella_risultati_autorizzazioni=Filtra Pratiche Autorizzate e non Autorizzate +titolo_period=nel periodo titolo_risultati_aggregati_stato=Report Stati -titolo_risultati_aggregati_integrazioni=Report Integrazioni \ No newline at end of file +titolo_risultati_aggregati_integrazioni=Report Integrazioni +titolo_risultati_aggregati_autorizzazioni=Report Autorizzazioni +pulsante_scarica_report_1=CSV Stati +pulsante_scarica_report_2=CSV Integraioni +pulsante_scarica_report_3=CSV Autorizzazioni +stringa_csv_vuoto_stato=CSV stati vuoto +stringa_csv_vuoto_integrazioni=CSV integrazioni vuoto +stringa_csv_vuoto_autorizzazioni=CSV autorizzazioni vuoto + +label_procedura_P0 = 1 +tipo_procedura_P0 = Autorizzazione per interventi su Beni Culturali (D.Lgs. 42/2004 art. 21, 31, 48, 49, 50) +label_procedura_P1 = 1.1 +tipo_procedura_P1 = Interventi su Beni Culturali mobili +label_procedura_P2 = 1.2 +tipo_procedura_P2 = Interventi su Beni Culturali immobili +label_procedura_P3 = 2 +tipo_procedura_P3 = Verifica preventiva dell’interesse archeologico (D.Lgs. 25/2016, art. 25) +label_procedura_P4 = 3 +tipo_procedura_P4 = Autorizzazione per interventi di edilizia su Beni Culturali (D.Lgs. 42/2004 artt. 21, 22) +label_procedura_P5 = 4 +tipo_procedura_P5 = Autorizzazione paesaggistica per interventi e/o opere di grande impegno territoriale (D.Lgs. 42/2004 art. 146) +label_procedura_P6 = 5 +tipo_procedura_P6 = Autorizzazione paesaggistica per opere il cui impatto è valutato mediante documentazione semplificata (D.Lgs. 42/2004 art. 146) +label_procedura_P7 = 6 +tipo_procedura_P7 = Autorizzazione paesaggistica per interventi di lieve entità (L.R. 5/2019 artt. 3, 5) +label_procedura_P8 = 7 +tipo_procedura_P8 = Accertamento di compatibilità paesaggistica (D.Lgs. 42/2004 art. 146, 167) +label_procedura_P9 = 8 +tipo_procedura_P9 = Accertamento di compatibilità paesaggistica per Sanatorie Edilizie (L. 47/1985 e L.R. 37/1985 – L. 724/1994 – L. 326/2003 e L.R. 15/2004) +label_procedura_P10 = 9 +tipo_procedura_P10 = Certificazione di sussistenza vincoli + +label_procedura_Q1 = 1 +tipo_procedura_Q1 = Autorizzazione per interventi su Beni Culturali mobili, apparati decorativi, organi a canne +label_procedura_Q2 = 2 +tipo_procedura_Q2 = Autorizzazione per interventi su Beni Culturali immobili +label_procedura_Q3 = 3 +tipo_procedura_Q3 = Verifica preventiva dell’interesse archeologico +label_procedura_Q4 = 4 +tipo_procedura_Q4 = Autorizzazione prevista dagli strumenti urbanistici per interventi in aree e immobili non assoggettati a tutela ai sensi del D.Lgs. 42/2004 +label_procedura_Q5 = 5 +tipo_procedura_Q5 = Autorizzazione per "Settori Speciali" +label_procedura_Q6 = 6 +tipo_procedura_Q6 = Autorizzazione paesaggistica +label_procedura_Q7 = 7 +tipo_procedura_Q7 = Autorizzazione paesaggistica per interventi di lieve entità +label_procedura_Q8 = 8 +tipo_procedura_Q8 = Accertamento di compatibilità paesaggistica +label_procedura_Q9 = 9 +tipo_procedura_Q9 = Accertamento di compatibilità paesaggistica per istanze di Condono Edilizio +label_procedura_Q10 = 10 +tipo_procedura_Q10 = Certificazione di sussistenza vincoli + +stato-pratica-AL = Annullata +stato-pratica-AU = Autorizzata +stato-pratica-AV = Attestazione vincoli +stato-pratica-CL = Collaudo +stato-pratica-CP = Collaudo parziale +stato-pratica-CO = Conforme +stato-pratica-FL = Fine lavori +stato-pratica-FP = Fine lavori parziale +stato-pratica-IN = Richiesta integrazione +stato-pratica-SI = Integrazione accettata +stato-pratica-AN = Non autorizzata +stato-pratica-NC = Non conforme +stato-pratica-NP = Non si rilascia parere (conclusione procedimento) +stato-pratica-PC = Preavviso di parere contrario +stato-pratica-RI = Rifiutata +stato-pratica-SP = Sottoposta a parere +stato-pratica-VA = Variata +stato-pratica-VI = Vidimata + +stato-pratica-AI = Richiesto annullamento +stato-pratica-AU = Autorizzazione +stato-pratica-CI = Cambio istruttore +stato-pratica-AN = Autorizzazione negata +stato-pratica-VS = Variazione soggetti + +stato-pratica-V1 = Apertura VIArch +stato-pratica-V2 = Chiusura VIArch +stato-pratica-DS = Decreto sanzione +stato-pratica-PS = Perizia sanzione \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/reportistica/Reportistica.java b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/reportistica/Reportistica.java new file mode 100644 index 00000000..407c3cf2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/reportistica/Reportistica.java @@ -0,0 +1,135 @@ +package reportistica; + +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.language.LanguageUtil; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.portlet.PortletResponseUtil; +import com.liferay.portal.kernel.util.ContentTypes; +import com.liferay.portal.kernel.util.DateFormatFactoryUtil; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.util.bridges.mvc.MVCPortlet; + +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; + +import java.io.IOException; +import java.io.StringWriter; +import java.math.BigInteger; +import java.util.Date; +import java.util.List; + +import javax.portlet.PortletException; +import javax.portlet.ResourceRequest; +import javax.portlet.ResourceResponse; + +import org.apache.commons.csv.CSVFormat; +import org.apache.commons.csv.CSVPrinter; + +public class Reportistica extends MVCPortlet { + private Log _log = LogFactoryUtil.getLog(Reportistica.class); + + @Override + public void serveResource(ResourceRequest req, ResourceResponse rep) throws IOException, + PortletException { + String idAzione = req.getResourceID(); + _log.error("id azione ------------------------"+idAzione+" ------------------------"); + Date dataInizioLavori = ParamUtil.getDate(req, "dataInizioInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd")); + Date dataFineLavori = ParamUtil.getDate(req, "dataFineInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd")); + String contentType = ContentTypes.APPLICATION_TEXT; + _log.error("data inizio ------------------------"+dataInizioLavori+" ------------------------"); + _log.error("data finela ------------------------"+dataFineLavori +" ------------------------"); + + if ("azioneScarica1".equals(idAzione)) { + + String fileName = "report-stati1.csv"; + + try( + StringWriter sw = new StringWriter(); + CSVPrinter csvPrinter = new CSVPrinter(sw, CSVFormat.DEFAULT. + withHeader("TipoProcedura", "StatoPratica", "QuantePratiche") + ); + ){ + List i = IntPraticaLocalServiceUtil.filtraPraticheStato(dataInizioLavori, dataFineLavori); + + for(Object[] record : i){ + _log.error("records record ------------------------"+record +" ------------------------"); + + String tipoprocedura = (String)record[0]; + tipoprocedura+= ":"+LanguageUtil.get(req.getLocale(), "tipo_procedura_"+tipoprocedura); + String statopratica = (String)record[1]; + statopratica+= ":"+LanguageUtil.get(req.getLocale(), "stato-pratica-"+statopratica); + BigInteger countStati = (BigInteger)record[2]; + csvPrinter.printRecord(tipoprocedura, statopratica, countStati); + } + csvPrinter.flush(); + PortletResponseUtil.sendFile(req, rep, + fileName, sw.toString().getBytes(), contentType); + return; + } catch (SystemException e) { + e.printStackTrace(); + return; + } + } + if ("azioneScarica2".equals(idAzione)) { + + String fileName = "report-integra2.csv"; + + try( + StringWriter sw = new StringWriter(); + CSVPrinter csvPrinter = new CSVPrinter(sw, CSVFormat.DEFAULT. + withHeader("TipoProcedura", "QuantePratiche") + ); + ){ + + List j = IntPraticaLocalServiceUtil.filtraPraticheIntegrazioni(dataInizioLavori, dataFineLavori); + + for(Object[] record : j){ + String tipoprocedura = (String)record[0]; + tipoprocedura+= ":"+LanguageUtil.get(req.getLocale(), "tipo_procedura_"+tipoprocedura); + BigInteger countIntegrazioni = (BigInteger)record[1]; + csvPrinter.printRecord(tipoprocedura, countIntegrazioni); + } + csvPrinter.flush(); + PortletResponseUtil.sendFile(req, rep, + fileName, sw.toString().getBytes(), contentType); + return; + } catch (SystemException e) { + e.printStackTrace(); + return; + } + } + if ("azioneScarica3".equals(idAzione)) { + + String fileName = "report-autori3.csv"; + + try( + StringWriter sw = new StringWriter(); + CSVPrinter csvPrinter = new CSVPrinter(sw, CSVFormat.DEFAULT. + withHeader("TipoProcedura", "StatoPratica", "QuantePratiche") + ); + ){ + List i = IntPraticaLocalServiceUtil.filtraPraticheStato(dataInizioLavori, dataFineLavori); + + for(Object[] record : i){ + _log.error("records record ------------------------"+record +" ------------------------"); + + String tipoprocedura = (String)record[0]; + tipoprocedura+= ":"+LanguageUtil.get(req.getLocale(), "tipo_procedura_"+tipoprocedura); + String statopratica = (String)record[1]; + statopratica+= ":"+LanguageUtil.get(req.getLocale(), "stato-pratica-"+statopratica); + BigInteger countStati = (BigInteger)record[2]; + csvPrinter.printRecord(tipoprocedura, statopratica, countStati); + } + csvPrinter.flush(); + PortletResponseUtil.sendFile(req, rep, + fileName, sw.toString().getBytes(), contentType); + return; + } catch (SystemException e) { + e.printStackTrace(); + return; + } + } + + super.serveResource(req, rep); + } +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/view.jsp index a9d5bb2f..ce689fe6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/view.jsp @@ -1,3 +1,4 @@ +<%@page import="reportistica.Reportistica"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> <%@page import="java.util.TreeMap"%> <%@page import="java.util.SortedMap"%> @@ -23,18 +24,6 @@ <% Date dataInizioLavori = ParamUtil.getDate(request, "dataInizioInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd")); Date dataFineLavori = ParamUtil.getDate(request, "dataFineInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd")); - List i = IntPraticaLocalServiceUtil.filtraPraticheStato(dataInizioLavori, dataFineLavori); - List j = IntPraticaLocalServiceUtil.filtraPraticheIntegrazioni(dataInizioLavori, dataFineLavori); - Map stati; - Map integrazioni; - stati = new TreeMap(); - integrazioni = new TreeMap(); - for(int p=1;p<=10;p++){ - stati.put("P"+p, BigInteger.valueOf(0)); - stati.put("Q"+p, BigInteger.valueOf(0)); - integrazioni.put("Q"+p, BigInteger.valueOf(0)); - integrazioni.put("Q"+p, BigInteger.valueOf(0)); - } %>

@@ -49,10 +38,8 @@ - - - + + @@ -88,36 +75,65 @@ -
- + <% + Map stati = new TreeMap(); + Map integrazioni = new TreeMap(); + Map autorizzazioni = new TreeMap(); + + for(int p=1;p<=10;p++){ stati.put("P"+p, BigInteger.valueOf(0)); stati.put("Q"+p, BigInteger.valueOf(0)); integrazioni.put("P"+p, BigInteger.valueOf(0)); integrazioni.put("Q"+p, BigInteger.valueOf(0)); + autorizzazioni.put("P"+p, BigInteger.valueOf(0)); + autorizzazioni.put("Q"+p, BigInteger.valueOf(0)); } + + List i = IntPraticaLocalServiceUtil.filtraPraticheStato(dataInizioLavori, dataFineLavori); + List j = IntPraticaLocalServiceUtil.filtraPraticheIntegrazioni(dataInizioLavori, dataFineLavori); + List k = IntPraticaLocalServiceUtil.filtraPraticheAutorizzate(dataInizioLavori, dataFineLavori); %> -

<%= LanguageUtil.get(pageContext, "titolo_tabella_risultati_stato") %> -

- <% if(Validator.isNotNull(i)&&!i.isEmpty()){ - - for(Object[] firsti : i){ - String tipoprocedura = (String)firsti[0]; - String statopratica = (String)firsti[1]; - BigInteger countStati = (BigInteger)firsti[2]; - BigInteger rigaCountMappa = stati.get(tipoprocedura); - if(Validator.isNotNull(countStati)&&Validator.isNotNull(rigaCountMappa)) - stati.put(tipoprocedura, countStati.add(rigaCountMappa)); - %> - - <% if(Validator.isNotNull(firsti)){%> - <%=tipoprocedura %> - <%=statopratica %> - <%=countStati %> +
+ +

<%= LanguageUtil.get(pageContext, "titolo_tabella_risultati_stato") %> <%= LanguageUtil.get(pageContext, "titolo_period") %> +

+ <% if(Validator.isNotNull(i)&&!i.isEmpty()){ + for(Object[] record : i){ + String tipoprocedura = (String)record[0]; + String statopratica = (String)record[1]; + BigInteger countStati = (BigInteger)record[2]; + BigInteger rigaCountMappa = stati.get(tipoprocedura); + if(Validator.isNotNull(countStati)&&Validator.isNotNull(rigaCountMappa)) + stati.put(tipoprocedura, countStati.add(rigaCountMappa)); + %> + + <% if(null!=record){%> + <%=tipoprocedura %> + <%=statopratica %> + <%=countStati %> + <%}%> + <%}%> -
- <%}}%> + + + + + + + + + + + <%}else{ + %>

<%=LanguageUtil.get(pageContext, "stringa_csv_vuoto_stato") %>

+ <%} %> +

<%= LanguageUtil.get(pageContext, "titolo_risultati_aggregati_stato") %>

@@ -126,29 +142,92 @@
-

<%= LanguageUtil.get(pageContext, "titolo_tabella_risultati_integrazioni") %> -

- <% if(Validator.isNotNull(j)&&!j.isEmpty()){ - - for(Object[] firsti : j){ - String tipoprocedura = (String)firsti[0]; - BigInteger countIntegrazioni = (BigInteger)firsti[1]; - BigInteger rigaCountMappa = integrazioni.get(tipoprocedura); - if(Validator.isNotNull(countIntegrazioni)&&Validator.isNotNull(rigaCountMappa)) - integrazioni.put(tipoprocedura, countIntegrazioni.add(rigaCountMappa)); - %> - - <% if(Validator.isNotNull(firsti)){%> - <%=tipoprocedura %> - <%=countIntegrazioni %> +

<%= LanguageUtil.get(pageContext, "titolo_tabella_risultati_integrazioni") %> <%= LanguageUtil.get(pageContext, "titolo_period") %> +

+ <% if(Validator.isNotNull(j)&&!j.isEmpty()){ + + for(Object[] record : j){ + String tipoprocedura = (String)record[0]; + BigInteger countIntegrazioni = (BigInteger)record[1]; + + BigInteger rigaCountMappa = integrazioni.get(tipoprocedura); + if(Validator.isNotNull(countIntegrazioni)&&Validator.isNotNull(rigaCountMappa)) + integrazioni.put(tipoprocedura, countIntegrazioni.add(rigaCountMappa)); + %> + + <% if(null!=record){%> + <%=tipoprocedura %> + <%=countIntegrazioni %> + <%}%> + <%}%> + + + + + + + + + + + <%}else{ + %>

<%=LanguageUtil.get(pageContext, "stringa_csv_vuoto_integrazioni") %>

<%}%> + +

+ <%= LanguageUtil.get(pageContext, "titolo_risultati_aggregati_integrazioni") %> +

+

+ <%= integrazioni.toString() %> +

- <%}}%> +
+ + +

<%= LanguageUtil.get(pageContext, "titolo_tabella_risultati_autorizzazioni") %> <%= LanguageUtil.get(pageContext, "titolo_period") %> +

+ <% if(Validator.isNotNull(k)&&!k.isEmpty()){ + + for(Object[] record : k){ + String tipoprocedura = (String)record[0]; + String statopratica = (String)record[1]; + BigInteger countAutori = (BigInteger)record[2]; + BigInteger rigaCountMappa = autorizzazioni.get(tipoprocedura); + if(Validator.isNotNull(countAutori)&&Validator.isNotNull(rigaCountMappa)) + autorizzazioni.put(tipoprocedura, countAutori.add(rigaCountMappa)); + %> + + <% if(null!=record){%> + <%=tipoprocedura %> + <%=statopratica %> + <%=countAutori %> + <%}%> + + <%}%> + + + + + + + + + + <%}else{ + %>

<%=LanguageUtil.get(pageContext, "stringa_csv_vuoto_autorizzazioni") %>

<%}%> -

<%= LanguageUtil.get(pageContext, "titolo_risultati_aggregati_integrazioni") %> +

<%= LanguageUtil.get(pageContext, "titolo_risultati_aggregati_autorizzazioni") %>

-

<%=integrazioni.toString()%>

- +

<%=autorizzazioni.toString()%>

-
\ No newline at end of file +
+