|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.model.Delega"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.model.Delega"%> |
|
|
@ -222,7 +223,8 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr |
|
|
|
<c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>"> |
|
|
|
<c:if test="<%= isProgetti || isAltriProgetti || isDeleghe %>"> |
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId,user.getScreenName()) |
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId,user.getScreenName()) |
|
|
|
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
|| ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
<c:if test="<%= !intPratica.getSospesa() %>"> |
|
|
|
<c:if test="<%= !intPratica.getSospesa() && |
|
|
|
|
|
|
|
!StatoPraticaConstants.SOTTOPOSTA_A_PARERE.equals(intPratica.getStatoPratica()) %>"> |
|
|
|
<div class="separator"></div> |
|
|
|
<div class="separator"></div> |
|
|
|
<% |
|
|
|
<% |
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); |
|
|
@ -240,10 +242,10 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr |
|
|
|
url="<%= addInizioLavoriURL %>" /> |
|
|
|
url="<%= addInizioLavoriURL %>" /> |
|
|
|
</c:when> |
|
|
|
</c:when> |
|
|
|
<c:otherwise> |
|
|
|
<c:otherwise> |
|
|
|
<c:if test="<%= (AzioniPraticheUtil.isAllowedAction(intPraticaId, |
|
|
|
<c:choose> |
|
|
|
AzioniPraticheUtil.ACTION_FL_PARZIALE) |
|
|
|
<c:when test="<%= (AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_FL_PARZIALE) |
|
|
|
|| AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_FL_TOTALE)) |
|
|
|
|| AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_FL_TOTALE)) && |
|
|
|
&& ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
ValidazionePraticaUtil.praticaCanAddFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
<liferay-portlet:renderURL var="editUrl" > |
|
|
|
<liferay-portlet:renderURL var="editUrl" > |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_first-step-fine-lavori.jsp"/> |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_first-step-fine-lavori.jsp"/> |
|
|
|
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> |
|
|
|
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> |
|
|
@ -254,11 +256,35 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr |
|
|
|
</liferay-portlet:actionURL> |
|
|
|
</liferay-portlet:actionURL> |
|
|
|
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori-key" |
|
|
|
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori-key" |
|
|
|
url="<%= addFineLavoriURL %>" /> |
|
|
|
url="<%= addFineLavoriURL %>" /> |
|
|
|
|
|
|
|
</c:when> |
|
|
|
|
|
|
|
<c:otherwise> |
|
|
|
|
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
|
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanAddFineLavoriDate(intPraticaId, user.getScreenName()) %>"> |
|
|
|
|
|
|
|
<liferay-portlet:renderURL var="editUrl" > |
|
|
|
|
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_first-step-fine-lavori.jsp"/> |
|
|
|
|
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> |
|
|
|
|
|
|
|
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> |
|
|
|
|
|
|
|
</liferay-portlet:renderURL> |
|
|
|
|
|
|
|
<liferay-ui:icon iconCssClass="fa fa-plus" message="add-fine-lavori-key" |
|
|
|
|
|
|
|
url="<%= editUrl %>" /> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
<c:if test="<%= !ValidazionePraticaUtil.praticaCanAddFineLavoriDate(intPraticaId, user.getScreenName()) %>"> |
|
|
|
|
|
|
|
<liferay-portlet:renderURL var="editFineLavoriURL" > |
|
|
|
|
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> |
|
|
|
|
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> |
|
|
|
|
|
|
|
<liferay-portlet:param name="backURL" value="<%= redirect %>" /> |
|
|
|
|
|
|
|
</liferay-portlet:renderURL> |
|
|
|
|
|
|
|
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori-key" url="<%= editFineLavoriURL %>" /> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
|
|
|
|
</c:if> |
|
|
|
|
|
|
|
</c:otherwise> |
|
|
|
|
|
|
|
</c:choose> |
|
|
|
</c:otherwise> |
|
|
|
</c:otherwise> |
|
|
|
</c:choose> |
|
|
|
</c:choose> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
<%-- |
|
|
|
|
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanEditFineLavori(intPraticaId, user.getScreenName()) && |
|
|
|
|
|
|
|
!ValidazionePraticaUtil.praticaCanAddFineLavoriDate(intPraticaId, user.getScreenName()) %>"> |
|
|
|
<liferay-portlet:renderURL var="editFineLavoriURL" > |
|
|
|
<liferay-portlet:renderURL var="editFineLavoriURL" > |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> |
|
|
|
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/edit_fine-lavori.jsp"/> |
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> |
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> |
|
|
@ -266,7 +292,6 @@ String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPraticaIdStr |
|
|
|
</liferay-portlet:renderURL> |
|
|
|
</liferay-portlet:renderURL> |
|
|
|
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori-key" url="<%= editFineLavoriURL %>" /> |
|
|
|
<liferay-ui:icon iconCssClass="fa fa-edit" message="edit-fine-lavori-key" url="<%= editFineLavoriURL %>" /> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
<%-- |
|
|
|
|
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
<c:if test="<%= ValidazionePraticaUtil.praticaCanDeleteFineLavori(intPraticaId, user.getScreenName()) %>"> |
|
|
|
<liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL"> |
|
|
|
<liferay-portlet:actionURL name="deleteFineLavori" var="deleteFineLavoriURL"> |
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> |
|
|
|
<liferay-portlet:param name="intPraticaId" value="<%= intPraticaIdString %>" /> |
|
|
|