diff --git a/liferay-plugins-sdk-6.2/build.malde.properties b/liferay-plugins-sdk-6.2/build.malde.properties new file mode 100644 index 00000000..a6b76a55 --- /dev/null +++ b/liferay-plugins-sdk-6.2/build.malde.properties @@ -0,0 +1,14 @@ +# Managed by Liferay IDE (remove this comment to prevent future updates) + +#Managed by Liferay IDE (remove this comment to prevent future updates) +#Tue Apr 04 17:33:21 CEST 2023 +app.server.portal.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps\\ROOT +app.server.parent.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6 +app.server.lib.global.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\lib\\ext +app.server.deploy.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps +app.server.type = tomcat +app.server.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62 +app.server.tomcat.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62 +app.server.tomcat.deploy.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps +app.server.tomcat.portal.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\webapps\\ROOT +app.server.tomcat.lib.global.dir = C:\\liferay-sviluppo\\sicilia\\pae\\liferay-portal-6.2-ce-ga6\\tomcat-7.0.62\\lib\\ext diff --git a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar index 49347f2e..84db7712 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar index 72d73b32..15a2e3b2 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath index cc87ab46..2e93f56a 100644 --- a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath +++ b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath index cc87ab46..2e93f56a 100644 --- a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath +++ b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.classpath b/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.classpath index f35eca18..52904722 100644 --- a/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.classpath +++ b/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.classpath @@ -5,5 +5,10 @@ + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar index 2dcd1e0a..f3b98974 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath index df4ad34a..1e60d5e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.classpath @@ -1,21 +1,17 @@ - - - - - + + + - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project index 8d02860f..57802a4f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.project @@ -32,6 +32,7 @@ org.eclipse.wst.common.project.facet.core.nature org.eclipse.jdt.core.javanature org.eclipse.wst.jsdt.core.jsNature + org.apache.ivyde.eclipse.ivynature diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component index a5e9e559..84aea89d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/.settings/org.eclipse.wst.common.component @@ -2,9 +2,6 @@ - - uses - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 7c491a75..fdad23ea 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar index d4ce9274..84db7712 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar index b1935856..15a2e3b2 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java index 9b3f2729..5023e244 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/AdvancedOperationPortlet.java @@ -2,6 +2,8 @@ package it.nextmind.liferay.portos.advanced.operation.portlet; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.Validator; @@ -12,14 +14,11 @@ import com.liferay.portal.util.PortalUtil; import com.liferay.util.bridges.mvc.MVCPortlet; import it.nextmind.liferay.portos.advanced.operation.util.AdvancedOperationUtil; -import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import java.util.Date; import java.util.List; import javax.portlet.ActionRequest; @@ -44,23 +43,6 @@ public class AdvancedOperationPortlet extends MVCPortlet { } - public void fixNormLavoriInProprio(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ - - Privati.checkIfUserIsCompanyAdmin(actionRequest); - - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", -1L); - boolean normLavoriInProprioFlag = ParamUtil.getBoolean(actionRequest, "normLavoriInProprioFlag"); - - List dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); - for(DettPratica dettPratica : dettPraticaList){ - if(dettPratica.getNormLavoriInProprio() == normLavoriInProprioFlag){ - dettPratica.setNormLavoriInProprio(!normLavoriInProprioFlag); - dettPratica.setModifiedDate(new Date()); - DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); - } - } - } - public void fixStatusPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception{ Privati.checkIfUserIsCompanyAdmin(actionRequest); @@ -141,5 +123,6 @@ public class AdvancedOperationPortlet extends MVCPortlet { public void correggiBug(ActionRequest actionRequest, ActionResponse actionResponse) { } - + + private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationUtil.class); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java index fd403502..4c6e13c6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java @@ -1,17 +1,26 @@ package it.nextmind.liferay.portos.advanced.operation.util; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; +import com.liferay.portal.model.WorkflowInstanceLink; +import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; +import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import java.util.ArrayList; import java.util.List; @@ -37,7 +46,7 @@ public class AdvancedOperationUtil { return new TupleIntPratica(ip, ex); } static void handleIntPraticaErr(Exception ex) { - log.error(ex,ex); + _log.error(ex,ex); } static TupleDocPraticaList findByIntPraticaList(long intPraticaId) { @@ -52,7 +61,7 @@ public class AdvancedOperationUtil { return new TupleDocPraticaList(dpl, ex); } static void handleDocPraticaListErr(Exception ex) { - log.error(ex,ex); + _log.error(ex,ex); } static List getDettPraticaList(long intPraticaId){ @@ -61,12 +70,11 @@ public class AdvancedOperationUtil { try { dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); } catch (SystemException e) { - log.error(e,e); + _log.error(e,e); } return dettPraticaList; } - static final Log log = LogFactoryUtil.getLog(AdvancedOperationUtil.class); } static class TupleIntPratica { IntPratica rs; Exception er; @@ -99,12 +107,24 @@ public class AdvancedOperationUtil { return !P_.getDettPraticaList(intPraticaId).isEmpty(); } - public static boolean getNormLavoriInProprioFlag(long intPraticaId){ - List dettPraticaList = P_.getDettPraticaList(intPraticaId); - if(!dettPraticaList.isEmpty()){ - return dettPraticaList.get(0).getNormLavoriInProprio(); +// public static boolean getNormLavoriInProprioFlag(long intPraticaId){ +// List dettPraticaList = P_.getDettPraticaList(intPraticaId); +// if(!dettPraticaList.isEmpty()){ +// return dettPraticaList.get(0).getNormLavoriInProprio(); +// } +// return false; +// } + + private static List _getDettPraticaList(long intPraticaId){ + List dettPraticaList = new ArrayList(); + + try { + dettPraticaList = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); + } catch (SystemException e) { + _log.error(e,e); } - return false; + + return dettPraticaList; } public static String getLavoriInEconomiaBtnLabel(boolean normLavoriInProprioFlag){ @@ -118,4 +138,52 @@ public class AdvancedOperationUtil { return false; } + public static boolean isNotWorkflowManuallyStarted(IntPratica intPratica){ + switch (intPratica.getStatoPratica()) { + case StatoPraticaConstants.VIDIMATA : + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return true; + default: + return false; + } + } + + public static List getListaTask(IntPratica intPratica) { + if(Validator.isNull(intPratica)){ + return null; + } + try { + ControlloPratica controlloPratica = null; + List controlloPraticaList = + ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPratica.getIntPraticaId(), intPratica.getStatus()); + if(controlloPraticaList.size() > 1){ + for(ControlloPratica cp : controlloPraticaList){ + if(Validator.isNull(controlloPratica) || cp.getCreateDate().after(controlloPratica.getCreateDate())) { + controlloPratica = cp; + } + } + } else if(controlloPraticaList.size() == 1){ + controlloPratica = controlloPraticaList.get(0); + } else { + return null; + } + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( + controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); + List listaTask = null; + if (workflowInstanceLink == null) { + return null; + } else { + return listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, + workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + } catch (SystemException | PortalException e){ + _log.error(e,e); + return null; + } + } + + private static final Log _log = LogFactoryUtil.getLog(AdvancedOperationUtil.class); + } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css index e69de29b..9615c910 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/css/main.css @@ -0,0 +1,8 @@ +.title-text{ + font-weight: bold; +} + + +#impersonaSoggettiBtn{ + cursor: pointer; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp index 2a6794a1..9d8358aa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp @@ -1,3 +1,20 @@ +<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> +<%@page import="com.liferay.portal.model.User"%> +<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> +<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> +<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> +<%@page import="javax.portlet.PortletMode"%> +<%@page import="com.liferay.portal.model.GroupConstants"%> +<%@page import="com.liferay.portal.model.Group"%> +<%@page import="com.liferay.portal.util.PortletKeys"%> +<%@page import="javax.portlet.PortletRequest"%> +<%@page import="javax.portlet.PortletURL"%> +<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> +<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%> +<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> +<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%> +<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="com.liferay.portal.kernel.util.DateFormatFactoryUtil"%> <%@page import="java.util.Date"%> <%@page import="com.liferay.portal.util.PortalUtil"%> @@ -28,7 +45,6 @@ -

Problemi pratica

@@ -65,192 +81,368 @@ <% if(Validator.isNotNull(intPratica)){ %> - - - - - - -

- Pratica: <%= intPraticaId %> - - -

-
-
- - -

Numero Progetto: <%= intPratica.getNumeroProgetto() %>

-
- -

Username: <%= intPratica.getUserName() %>

-
- -

Tipo Pratica: <%= intPratica.getTipoPratica() %>

-
- -

ID Territorio: <%= intPratica.getTerritorioId() %>

-
-
- - -

Tipo Procedura: <%= intPratica.getTipoProcedura() %>

-
- -

Stato Pratica: <%= intPratica.getStatoPratica() %>

-
- -

Validata: <%= intPratica.getValidata() %>

-
- -

Esito Controllo: <%= intPratica.getEsitoControllo() %>

-
-
- - -

Status: <%= intPratica.getStatus() %>

-
-
- - <% if(AdvancedOperationUtil.hasDettPratica(intPraticaId)){ - boolean normLavoriInProprioFlag = AdvancedOperationUtil.getNormLavoriInProprioFlag(intPraticaId); - %> - - - - - - - <% - String functionLavori = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixLavoriInEconomia','Sei sicuro di voler cambiare i flag LAVORI IN ECONOMIA di questa pratica?')"; - %> - - - - - <% } %> - - <% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %> - - - - - - <% - String functionStatus = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixStatusPratica','Sei sicuro di voler modificare lo status di questa pratica?')"; - %> - - - - - - <% } %> - - <% if(AdvancedOperationUtil.isPraticaAnnullata(intPratica)){ %> - - - - - - <% - String functionRipristinaVidimata = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaVidimata','Sei sicuro di voler ripristinare questa pratica come VIDIMATA?')"; - %> - - - - - - - - - - - <% - String functionRipristinaConforme = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaConforme','Sei sicuro di voler ripristinare questa pratica come AUTORIZZATA/CONFORME?')"; - %> - - - - - - <% } %> - + + + + +

+ Pratica: <%= intPraticaId %> +

+
- -

Problemi documenti

- -

Gestione documenti con IntPratica inestistente

- <% - List docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId); - %> -

Documenti Totali: <%= docPraticaList.size() %>

- <% - List docPraticaOrfaniList = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId); - if(!docPraticaOrfaniList.isEmpty()){ - %> - - - - - -

Documenti orfani di DettPratica: <%= docPraticaOrfaniList.size() %>

+ +
+ + + +

Numero Progetto: <%= intPratica.getNumeroProgetto() %>

+
+ +

Username: <%= intPratica.getUserName() %>

+
+ +

Tipo Pratica: <%= intPratica.getTipoPratica() %>

+
+ +

ID Territorio: <%= intPratica.getTerritorioId() %>

+
+
+ + +

Tipo Procedura: <%= intPratica.getTipoProcedura() %>

+
+ +

Stato Pratica: <%= intPratica.getStatoPratica() %>

+
+ +

Validata: <%= intPratica.getValidata() %>

+
+ +

Esito Controllo: <%= intPratica.getEsitoControllo() %>

+
+
+ + +

Status: <%= intPratica.getStatus() %>

+
+
+ + +
+ <% if(AdvancedOperationUtil.isStatoPraticaIN(intPratica)){ %> + + + + + + <% + String functionStatus = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"fixStatusPratica','Sei sicuro di voler modificare lo status di questa pratica?')"; + %> + + + + + + <% } %> - <% - String functionEliminaDoc = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"deleteDocPratica','Sei sicuro di voler eliminare tutti i documenti?')"; - %> - - + <% if(AdvancedOperationUtil.isPraticaAnnullata(intPratica)){ %> + + + + + + <% + String functionRipristinaVidimata = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaVidimata','Sei sicuro di voler ripristinare questa pratica come VIDIMATA?')"; + %> + + + + + + + + + + + <% + String functionRipristinaConforme = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"ripristinaPraticaConforme','Sei sicuro di voler ripristinare questa pratica come AUTORIZZATA/CONFORME?')"; + %> + + + + + + <% } %> +
+
+
+
+
+ + + + + + + <% + String functionReindex = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"reindexPratica','Sei sicuro di voler reindicizzare questa pratica?')"; + %> + + name="reindexPraticaBtn" + onClick='<%= functionReindex %>' + value="Reindicizza Pratica" + > - - - - <% - } - %> + + + +
+
+ + +
+ + +
+

Impersona titolare:

+
+ + +
+
+ <% if(SoggettoLocalServiceUtil.countByIntPratica(intPraticaId) > 1){ %> + +
+
+

Impersona soggetti:

+
+ + +
+
+ +
+ + + + + + + <%= soggetto.getFullTipologiaSoggetto() %> + + + <%= soggetto.getDescrizioneCompleta() %> + + + <% + DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(soggetto.getDettPraticaId()); + if (adding != null) { + out.print(adding.getFullDescription()); + } + %> + + + + + + + + +
+
+ <% } %> +
+
+
+ <% + List listaTask = AdvancedOperationUtil.getListaTask(intPratica); + if(Validator.isNotNull(listaTask) && !listaTask.isEmpty()){ + %> + + +
+
+

Gestisci ultima attivitą:

+
+ <% + Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); + long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true); + PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS, + controlPanelPlid, PortletRequest.RENDER_PHASE); + workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task"); + workflowTaskURL.setParameter("workflowTaskId", String.valueOf(listaTask.get(0).getWorkflowTaskId())); + workflowTaskURL.setPortletMode(PortletMode.VIEW); + workflowTaskURL.setWindowState(LiferayWindowState.POP_UP); + %> +
+ +
+
+
+ <% + if(intPratica.getStatusByUserId() != 0L ){ + User tecnico = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); + if (Validator.isNotNull(tecnico)) { + + %> + +
+ + +
+

Impersona Istruttore:

+
+ + +
+
+ <% + } + } + %> +
+ <% + } + %> +
+
+ +
+ + <% + List docPraticaList = DocPraticaLocalServiceUtil.findByIntPratica(intPraticaId); + %> +

Documenti Totali: <%= docPraticaList.size() %>

+ <% + List docPraticaOrfaniList = AdvancedOperationUtil.getDocPraticaOrfani(intPraticaId); + if(!docPraticaOrfaniList.isEmpty()){ + %> + + + + + +

Documenti orfani di DettPratica: <%= docPraticaOrfaniList.size() %>

+ + +

DlFileEntryId

+
+ +

docPraticaId

+
+ +

dettPraticaId

+
+ +

FileName

+
+
+ + <% + for(DocPratica docPratica : docPraticaOrfaniList){ + if(Validator.isNotNull(docPratica)){ + %> + + +

<%= docPratica.getDlFileEntryId() %>

+
+ +

<%= docPratica.getDocPraticaId() %>

+
+ +

<%= docPratica.getClassPk() %>

+
+ +

<%= docPratica.getFileName() %>

+
+
+ <% + } + } + %> + <% + String functionEliminaDoc = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"deleteDocPratica','Sei sicuro di voler eliminare tutti i documenti?')"; + %> + + + + + + +
+
+
+ <% + } + %> +
<% } %> @@ -268,6 +460,18 @@ +<% if(Validator.isNotNull(intPratica)){ %> + A.one('#impersonaSoggettiBtn').on('click', function(){ + var soggettoDiv = A.one('#sc-soggetti-da-impersonare'); + if(soggettoDiv.hasClass('hide')){ + soggettoDiv.show(); + } else { + soggettoDiv.hide(); + } + + }); +<% } %> + A.one('#intPraticaId').on('valuechange', function(e){ if(e.newVal <= 0 ){ A.one('#numeroProgetto').attr('disabled', false); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath index eb2a23ce..ec042ff0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath @@ -2,9 +2,11 @@ - + + + - + @@ -12,11 +14,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-company-configuration-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component index 6cba4c13..63870e17 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,9 @@ + + uses + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-jbpm-log-task-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-kaleo-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-maintenance-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-mapit-plugin-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/.classpath index 1be364fa..2fa8cc53 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/.classpath @@ -1,16 +1,6 @@ - - - - - - - - - - @@ -23,5 +13,15 @@ + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.classpath index df4ad34a..e9f54ee1 100644 --- a/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath index 88e342cf..5c696ba3 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath +++ b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath index 88e342cf..5c696ba3 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath +++ b/liferay-plugins-sdk-6.2/themes/portos-private-theme/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath index 88e342cf..5c696ba3 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath +++ b/liferay-plugins-sdk-6.2/themes/portos-public-theme/.classpath @@ -1,9 +1,11 @@ - + + + - + @@ -11,11 +13,9 @@ - - - + - + diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath index 08bf06f4..8190e020 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath @@ -2,22 +2,22 @@ - - - - - + - + + + + + diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml index c71dbf00..79341bdc 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -2,8 +2,8 @@ - +