|
|
|
@ -32,7 +32,6 @@
|
|
|
|
|
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> |
|
|
|
|
<%@page import="com.liferay.portal.service.permission.PortletPermissionUtil"%> |
|
|
|
|
<%@ include file="/html/gestioneattivita/init.jsp" %> |
|
|
|
|
|
|
|
|
|
<% |
|
|
|
|
|
|
|
|
|
SearchContainer searchContainer = (SearchContainer) request |
|
|
|
@ -61,7 +60,6 @@
|
|
|
|
|
workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); |
|
|
|
|
String randomId = StringUtil.randomId(); |
|
|
|
|
|
|
|
|
|
long lastDettPraticaId = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()).getDettPraticaId(); |
|
|
|
@ -107,50 +105,24 @@
|
|
|
|
|
</div> |
|
|
|
|
</c:if> |
|
|
|
|
<c:if test="<%=WorkflowConstants.STATUS_PENDING == controlloPratica.getStatus()%>"> |
|
|
|
|
<c:if test="<%=listaTask.size()>0%>"> |
|
|
|
|
<c:if test="<%= IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.ASSEGNA_AL_RUOLO) %>"> |
|
|
|
|
<c:if test="<%=Validator.isNotNull(listaTask.get(0).getAssigneeUserId()) && listaTask.get(0).getAssigneeUserId()!=-1%>"> |
|
|
|
|
<liferay-portlet:actionURL name="riassegnaAlRuolo" var="riassegnaAlRuoloUrl"> |
|
|
|
|
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPratica.getIntPraticaId()) %>"></liferay-util:param> |
|
|
|
|
<liferay-util:param name="workflowTaskId" value="<%=String.valueOf(listaTask.get(0).getWorkflowTaskId())%>" /> |
|
|
|
|
<liferay-util:param name="controlloPraticaId" value="<%=String.valueOf(controlloPratica.getControlloPraticaId())%>" /> |
|
|
|
|
<liferay-util:param name="redirect" value="<%=currentURL%>" /> |
|
|
|
|
</liferay-portlet:actionURL> |
|
|
|
|
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-riassegna-al-ruolo") %>' class="tooltip-info"> |
|
|
|
|
<liferay-ui:icon iconCssClass="fa fa-users" |
|
|
|
|
linkCssClass="btn btn-action" |
|
|
|
|
message="" |
|
|
|
|
url="<%=riassegnaAlRuoloUrl %>" /> |
|
|
|
|
</div> |
|
|
|
|
</c:if> |
|
|
|
|
</c:if> |
|
|
|
|
<% |
|
|
|
|
boolean assegnazionePossibile = false; |
|
|
|
|
for(WorkflowTaskAssignee workflowTaskAssignee: listaTask.get(0).getWorkflowTaskAssignees()){ |
|
|
|
|
if(workflowTaskAssignee.getAssigneeClassName().equalsIgnoreCase(Role.class.getName()) |
|
|
|
|
&& UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), controlloPratica.getGroupId(), workflowTaskAssignee.getAssigneeClassPK(), true)){ |
|
|
|
|
assegnazionePossibile = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
%> |
|
|
|
|
<%-- <c:if tst="<%= !listaTask.get(0).getName().equalsIgnoreCase(WorkflowConstants.WORKFLOW_TASKNAME_ESITO) %>"> |
|
|
|
|
<c:if test="<%=listaTask.get(0).getAssigneeUserId()!=user.getUserId() |
|
|
|
|
&& assegnazionePossibile %>"> |
|
|
|
|
<liferay-portlet:actionURL name="assegnamiTask" var="assegnamiTaskUrl"> |
|
|
|
|
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPratica.getIntPraticaId()) %>"></liferay-util:param> |
|
|
|
|
<liferay-util:param name="workflowTaskId" value="<%=String.valueOf(listaTask.get(0).getWorkflowTaskId())%>" /> |
|
|
|
|
<liferay-util:param name="controlloPraticaId" value="<%=String.valueOf(controlloPratica.getControlloPraticaId())%>" /> |
|
|
|
|
<liferay-util:param name="redirect" value="<%=currentURL%>" /> |
|
|
|
|
</liferay-portlet:actionURL> |
|
|
|
|
|
|
|
|
|
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-assegna-a-me") %>' class="tooltip-info"> |
|
|
|
|
<liferay-ui:icon iconCssClass="fa fa-user-plus" |
|
|
|
|
linkCssClass="btn btn-action" |
|
|
|
|
message="" |
|
|
|
|
url="<%= assegnamiTaskUrl %>" /> |
|
|
|
|
</div> |
|
|
|
|
</c:if> |
|
|
|
|
</c:if> --%> |
|
|
|
|
<c:if test="<%= (listaTask.size() > 0) |
|
|
|
|
&& IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.ASSEGNA_AL_RUOLO) |
|
|
|
|
&& Validator.isNotNull(listaTask.get(0).getAssigneeUserId()) |
|
|
|
|
&& (listaTask.get(0).getAssigneeUserId() != -1) |
|
|
|
|
&& (listaTask.get(0).getName().equals(\"Assegnazione\") |
|
|
|
|
|| listaTask.get(0).getName().equals(\"Approvazione\")) %>"> |
|
|
|
|
<liferay-portlet:actionURL name="riassegnaAlRuolo" var="riassegnaAlRuoloUrl"> |
|
|
|
|
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPratica.getIntPraticaId()) %>"></liferay-util:param> |
|
|
|
|
<liferay-util:param name="workflowTaskId" value="<%=String.valueOf(listaTask.get(0).getWorkflowTaskId())%>" /> |
|
|
|
|
<liferay-util:param name="controlloPraticaId" value="<%=String.valueOf(controlloPratica.getControlloPraticaId())%>" /> |
|
|
|
|
<liferay-util:param name="redirect" value="<%=currentURL%>" /> |
|
|
|
|
</liferay-portlet:actionURL> |
|
|
|
|
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-riassegna-al-ruolo") %>' class="tooltip-info"> |
|
|
|
|
<liferay-ui:icon iconCssClass="fa fa-users" |
|
|
|
|
linkCssClass="btn btn-action" |
|
|
|
|
message="" |
|
|
|
|
url="<%=riassegnaAlRuoloUrl %>" /> |
|
|
|
|
</div> |
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
|
|
<c:if test="<%= IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.CAMBIO_ISTRUTTORE) %>"> |
|
|
|
|