Salvatore La Manna 4 anni fa
parent
commit
43c7107685
  1. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  2. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.component
  4. 140
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fascicolo.jsp
  5. 19
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/verify_ok.jsp
  6. 41
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_allegati.jsp
  7. 55
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_asseverazioni_riepilogo.jsp
  8. 394
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp
  9. 60
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/dett_pratica.jsp
  10. 11
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/init.jsp
  11. 35
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/view.jsp
  12. 1397
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp
  13. 47
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto_modal.jsp
  14. 17
      liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.project

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java

@ -11,6 +11,7 @@ import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.CollaudoServiceUtil; import it.tref.liferay.portos.bo.service.CollaudoServiceUtil;
import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil;
import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
@ -77,10 +78,12 @@ public class ValidazionePraticaUtil {
} }
public static boolean praticaIsCompleta(long dettPraticaId) throws SystemException, PortalException { public static boolean praticaIsCompleta(long dettPraticaId) throws SystemException, PortalException {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
return isDettagliPrincipaliCompleta(dettPraticaId) && isAnagrafeSoggettiCompleta(dettPraticaId) return isDettagliPrincipaliCompleta(dettPraticaId)
&& isDescrizioneEdificioCompleta(dettPraticaId) && isSezioneGeologicaCompleta(dettPraticaId) && isAnagrafeSoggettiCompleta(dettPraticaId)
&& isSezioneAllegatiCompleta(dettPraticaId); && isDescrizioneEdificioCompleta(dettPraticaId)
&& isSezioneGeologicaCompleta(dettPraticaId)
&& ((dettPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) || isSezioneAllegatiCompleta(dettPraticaId));
} }
public static boolean canEditPratica(long intPraticaId) throws PortalException, SystemException { public static boolean canEditPratica(long intPraticaId) throws PortalException, SystemException {

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2548 build.number=2552
build.date=1611828850885 build.date=1614942025006
build.auto.upgrade=true build.auto.upgrade=true
## ##

4
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/.settings/org.eclipse.wst.common.component

@ -2,10 +2,10 @@
<wb-module deploy-name="portos-fe-portlet"> <wb-module deploy-name="portos-fe-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/> <wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/>
<dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar"> <dependent-module archiveName="hms-taglib-hook-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar">
<dependency-type>uses</dependency-type> <dependency-type>uses</dependency-type>
</dependent-module> </dependent-module>
<dependent-module archiveName="hms-taglib-hook-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/hms-taglib-hook/docroot/WEB-INF/lib/hms-taglib-hook-service.jar"> <dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar">
<dependency-type>uses</dependency-type> <dependency-type>uses</dependency-type>
</dependent-module> </dependent-module>
<property name="context-root" value="portos-fe-portlet"/> <property name="context-root" value="portos-fe-portlet"/>

140
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fascicolo.jsp

@ -1,19 +1,10 @@
<%@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.shared.util.SessionUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> <%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@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.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.ArrayUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.SessionUtil"%>
<%@include file="/html/fascicolofe/init.jsp"%>
<%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String backURL = ParamUtil.getString(request, "backURL"); String backURL = ParamUtil.getString(request, "backURL");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l);
@ -61,7 +52,7 @@ String[] pageDatiDomanda = new String[] {
}; };
if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) { if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) {
pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length-1); pageDatiDomanda = Arrays.copyOf(pageDatiDomanda, pageDatiDomanda.length - 1);
} }
String[][] categorySections = { pageDatiDomanda }; String[][] categorySections = { pageDatiDomanda };
String[] _CATEGORY_NAMES = { "cat_dati_domanda" }; String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
@ -106,84 +97,76 @@ String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
categorySections="<%= categorySections %>" categorySections="<%= categorySections %>"
formName="fmDomande" formName="fmDomande"
jspPath="/html/fascicolofe/navigator/domanda/" jspPath="/html/fascicolofe/navigator/domanda/"
htmlBottom="<%=htmlBottom%>" htmlBottom="<%= htmlBottom %>"
showButtons="<%=false %>" showButtons="false"
htmlTop="<%=htmlTop%>" /> htmlTop="<%= htmlTop %>" />
</aui:form> </aui:form>
<c:if test="<%= openVerifyUrl && intPratica.getUserId() == user.getUserId() %>"> <c:if test="<%= openVerifyUrl && intPratica.getUserId() == user.getUserId() %>">
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<c:if test='<%= "verifyFascicolo".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyFascicolo".equalsIgnoreCase(verifyArea) %>'>
<portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFascicolo', id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Domanda', title: 'Verifica Domanda',
uri: '<%=verifyRenderURL%>' uri: '<%= verifyRenderURL %>'
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
<c:if test='<%= "verifyDeleghe".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyDeleghe".equalsIgnoreCase(verifyArea) %>'>
<liferay-portlet:renderURL var="verifyDelegheRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyDelegheRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>" /> <liferay-portlet:param name="backURL" value="<%= currentURL %>" />
<liferay-portlet:param name="backVisible" value="false" /> <liferay-portlet:param name="backVisible" value="false" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaDeleghe', id: '<portlet:namespace />openVerificaDeleghe',
title: 'Gestione Deleghe', title: 'Gestione Deleghe',
uri: '<%=verifyDelegheRenderURL%>' uri: '<%= verifyDelegheRenderURL %>'
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<portlet:renderURL var="verifyRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <portlet:renderURL var="verifyRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<portlet:param name="mvcPath" value="/html/fascicolofe/verify_cambio_soggetti.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/verify_cambio_soggetti.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</portlet:renderURL> </portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFascicolo', id: '<portlet:namespace />openVerificaFascicolo',
title: 'Verifica Cambio Soggetti', title: 'Verifica Cambio Soggetti',
uri: '<%=verifyRenderURL%>' uri: '<%= verifyRenderURL %>'
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%=openVerifyUrl && DelegheUtil.canDoPayment(user.getUserId(), dettPraticaId) %>"> <c:if test="<%= openVerifyUrl && DelegheUtil.canDoPayment(user.getUserId(), dettPraticaId) %>">
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<c:if test='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'>
<liferay-portlet:renderURL var="verifyPagamentiRenderURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="verifyPagamentiRenderURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>" /> <liferay-portlet:param name="backURL" value="<%= currentURL %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.Util.openWindow( Liferay.Util.openWindow({
{
id: '<portlet:namespace />openVerificaFascicolo', id: '<portlet:namespace />openVerificaFascicolo',
title: 'Gestione Pagamenti', title: 'Gestione Pagamenti',
uri: '<%=verifyPagamentiRenderURL%>' uri: '<%= verifyPagamentiRenderURL %>'
} });
);
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
@ -192,63 +175,62 @@ String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
<liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" /> <liferay-portlet:renderURL var="editEntryURL" copyCurrentRenderParameters="true" />
<% <%
String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_"+PortletKeys.FASCICOLOFE+"_openVerifyUrl"); String refreshURL = HttpUtil.removeParameter(editEntryURL.toString(), "_" + PortletKeys.FASCICOLOFE + "_openVerifyUrl");
%> %>
<aui:script use="aui-base"> <aui:script use="aui-base">
var verifyPopupReady = false; var verifyPopupReady = false;
Liferay.on('popupReady',function(event) { Liferay.on('popupReady',function(event) {
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) { modalWin.after('visibleChange', function(event) {
console.log('VISIBILE CHANGE'); console.log('VISIBILE CHANGE');
Loading.start(); Loading.start();
if(event.prevVal && verifyPopupReady){ if (event.prevVal && verifyPopupReady) {
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
} }
Loading.end(); Loading.end();
}); });
modalWin.after('hide', function(event) { modalWin.after('hide', function(event) {
console.log('HIDE'); console.log('HIDE');
Loading.start(); Loading.start();
if(verifyPopupReady){ if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
} }
Loading.end(); Loading.end();
}); });
modalWin.after('destroy', function(event) { modalWin.after('destroy', function(event) {
console.log('DESTROY'); console.log('DESTROY');
Loading.start(); Loading.start();
if(verifyPopupReady){ if (verifyPopupReady) {
window.location.href = "<%= refreshURL %>" window.location.href = "<%= refreshURL %>"
} }
Loading.end(); Loading.end();
}); });
}); });
Liferay.on('verifyPopup-ready',function(event) { Liferay.on('verifyPopup-ready',function(event) {
verifyPopupReady=true; verifyPopupReady = true;
}); });
</aui:script> </aui:script>
<script type="text/javascript"> <script type="text/javascript">
Liferay.provide(
Liferay.provide(
window, window,
'saveDettPratica', 'saveDettPratica',
function(bozza, cmd, area) { function (bozza, cmd, area) {
Loading.start(); Loading.start();
AUI().one('#<portlet:namespace />bozza').set('value',bozza); AUI().one('#<portlet:namespace />bozza').set('value',bozza);
AUI().one('#<portlet:namespace />cmd').set('value',cmd); AUI().one('#<portlet:namespace />cmd').set('value',cmd);
if(area!=undefined && area!=""){ if (area != undefined && area != "") {
AUI().one('#<portlet:namespace />verifyArea').set('value',area); AUI().one('#<portlet:namespace />verifyArea').set('value',area);
} }
submitForm(document.<portlet:namespace />fmDomande); submitForm(document.<portlet:namespace />fmDomande);
}, },
['aui-base'] ['aui-base']
); );
// ADT BUG FE ID = 14
Liferay.on( Liferay.on(
'portletReady', 'portletReady',
function(event) { function(event) {
$("#isBottomBar").hide(); $("#isBottomBar").hide();
@ -264,33 +246,31 @@ String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
var saveAndVerify = "false"; var saveAndVerify = "false";
for (var property in queryParams) { for (var property in queryParams) {
if (queryParams.hasOwnProperty(property) && if (queryParams.hasOwnProperty(property) && property.toString().endsWith("saveAndVerify")) {
property.toString().endsWith("saveAndVerify")) {
saveAndVerify = queryParams[property]; saveAndVerify = queryParams[property];
} }
} }
if (saveAndVerify === "true") {
if(saveAndVerify === "true"){
//$("[name='bodyVerifyPopUp']").show();
$("#isTopBar").show(); $("#isTopBar").show();
$("#isBottomBar").hide(); $("#isBottomBar").hide();
$('[id*="_portosfeportlet_verificaDiv_"]').show(); $('[id*="_portosfeportlet_verificaDiv_"]').show();
} }
} }
); );
</script> </script>
<aui:script use="aui-base"> <aui:script use="aui-base">
A.one('#<portlet:namespace/>tabsBoundingBox').delegate( A.one('#<portlet:namespace/>tabsBoundingBox').delegate(
'click', 'click',
function(event){ function(event){
var nodeObject = event.currentTarget; var nodeObject = event.currentTarget;
A.one('#<portlet:namespace/>current_tab').set('value', nodeObject.attr('data-sectionid')); A.one('#<portlet:namespace/>current_tab').set('value', nodeObject.attr('data-sectionid'));
}, },
'li.tab'); 'li.tab'
var current_tab = '<%=current_tab%>'; );
if(current_tab!='' && document.location.hash==''){ var current_tab = '<%= current_tab %>';
document.location.hash='_1_WAR_portosfeportlet_tab=<%=current_tab%>'; if (current_tab != '' && document.location.hash == '') {
} document.location.hash = '_1_WAR_portosfeportlet_tab=<%= current_tab %>';
}
</aui:script> </aui:script>
<% SessionUtil.cleanDettPraticaObjects(request, dettPraticaId); %> <% SessionUtil.cleanDettPraticaObjects(request, dettPraticaId); %>

19
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/verify_ok.jsp

@ -2,14 +2,13 @@
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%> <%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@ include file="/html/init.jsp" %> <%@include file="/html/init.jsp" %>
<% <%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
String label = ParamUtil.getString(request, "label"); String label = ParamUtil.getString(request, "label");
String dialogId = renderResponse.getNamespace()+"openVerificaFascicolo"; String dialogId = renderResponse.getNamespace()+"openVerificaFascicolo";
%> %>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@ -21,7 +20,7 @@
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<aui:button-row cssClass="text-center"> <aui:button-row cssClass="text-center">
<aui:button value="Chiudi" cssClass="btn btn-success" onClick='<%=renderResponse.getNamespace()+"closePopup()"%>'></aui:button> <aui:button value="Chiudi" cssClass="btn btn-success" onClick='<%= renderResponse.getNamespace() + "closePopup()" %>'></aui:button>
</aui:button-row> </aui:button-row>
</div> </div>
</div> </div>
@ -31,13 +30,9 @@ Liferay.provide(
window, window,
'<portlet:namespace/>closePopup', '<portlet:namespace/>closePopup',
function() { function() {
Liferay.fire( Liferay.fire(
'closeWindow', 'closeWindow',
{ { id: '<%= dialogId %>' }
id: '<%= dialogId %>'
}
); );
}, },
['aui-base','liferay-util-window'] ['aui-base','liferay-util-window']

41
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_allegati.jsp

@ -6,7 +6,6 @@
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
String comingFrom = ParamUtil.getString(request,"comingFrom", "page_allegati"); String comingFrom = ParamUtil.getString(request,"comingFrom", "page_allegati");
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica");
@ -18,49 +17,51 @@ if (dettPratica == null) {
} }
String tipoIntegrazione = (String)request.getAttribute("bean.tipoIntegrazione"); String tipoIntegrazione = (String)request.getAttribute("bean.tipoIntegrazione");
%> %>
<aui:script use="aui-base"> <aui:script use="aui-base">
var allegatiEdit = false; var allegatiEdit = false;
Liferay.on('popupReady',function(event) {
Liferay.on('popupReady', function(event) {
var modalName = event._event.details[0].windowName; var modalName = event._event.details[0].windowName;
var modalWin = Liferay.Util.Window.getById(modalName); var modalWin = Liferay.Util.Window.getById(modalName);
modalWin.after('visibleChange', function(event) { modalWin.after('visibleChange', function(event) {
if(event.prevVal){ if (event.prevVal) {
if(allegatiEdit){ if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_allegati_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_allegati_");
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_geologica_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_geologica_");
} }
} }
}); });
modalWin.after('hide', function(event) { modalWin.after('hide', function(event) {
if(allegatiEdit){ if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_allegati_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_allegati_");
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_geologica_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_geologica_");
} }
}); });
modalWin.after('destroy', function(event) { modalWin.after('destroy', function(event) {
if(allegatiEdit){ if (allegatiEdit) {
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_allegati_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_allegati_");
Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_geologica_"); Liferay.Portlet.refresh("#p_p_id_<%=PortletKeys.ALLEGATI%>_INSTANCE_page_geologica_");
} }
}); });
}); });
Liferay.on('allegati-<%=comingFrom%>-open',function(event) { Liferay.on('allegati-<%=comingFrom%>-open', function(event) {
allegatiEdit=true; allegatiEdit = true;
}); });
Liferay.on('allegati-<%=comingFrom%>-ready',function(event) { Liferay.on('allegati-<%=comingFrom%>-ready', function(event) {
if(allegatiEdit){ if (allegatiEdit) {
document.location.hash = '_1_WAR_portosfeportlet_tab=_1_WAR_portosfeportlet_<%=comingFrom%>'; document.location.hash = '_1_WAR_portosfeportlet_tab=_1_WAR_portosfeportlet_<%=comingFrom%>';
allegatiEdit=false; allegatiEdit = false;
} }
});
});
</aui:script> </aui:script>
<c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<liferay-portlet:runtime portletName='<%=PortletKeys.ALLEGATI+"_INSTANCE_"+comingFrom %>' queryString='<%="&classPk="+dettPratica.getDettPraticaId()+"&className="+DettPratica.class.getName()+"&comingFrom="+comingFrom+"&disabled=true"%>' ></liferay-portlet:runtime> <liferay-portlet:runtime portletName='<%= PortletKeys.ALLEGATI + "_INSTANCE_" + comingFrom %>'
queryString='<%= "&classPk=" + dettPratica.getDettPraticaId() + "&className="
+ DettPratica.class.getName() + "&comingFrom=" + comingFrom + "&disabled=true" %>' />
</c:if> </c:if>
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<liferay-portlet:runtime portletName='<%=PortletKeys.ALLEGATI+"_INSTANCE_"+comingFrom %>' queryString='<%="&classPk="+dettPratica.getDettPraticaId()+"&className="+DettPratica.class.getName()+"&comingFrom="+comingFrom%>' ></liferay-portlet:runtime> <liferay-portlet:runtime portletName='<%= PortletKeys.ALLEGATI + "_INSTANCE_" + comingFrom %>'
queryString='<%= "&classPk=" + dettPratica.getDettPraticaId() + "&className="
+ DettPratica.class.getName()+"&comingFrom="+comingFrom%>' />
</c:if> </c:if>

55
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_asseverazioni_riepilogo.jsp

@ -21,22 +21,19 @@ boolean hasDelegaCompilazioneDomanda = (Boolean) SessionUtil.getDettPraticaObjec
boolean disabledInput = !hasDelegaCompilazioneDomanda; boolean disabledInput = !hasDelegaCompilazioneDomanda;
Soggetto soggettoDelegato = (Soggetto) SessionUtil.getDettPraticaObject(request, dettPraticaId, "soggettoDelegato"); Soggetto soggettoDelegato = (Soggetto) SessionUtil.getDettPraticaObject(request, dettPraticaId, "soggettoDelegato");
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%=application %>"> <liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>"/>
<liferay-util:param name="disabledInput" value="<%=String.valueOf(disabledInput) %>"/> <c:if test="<%= soggettoDelegato != null %>">
<c:if test="<%= soggettoDelegato!=null%>"> <liferay-util:param name="soggettoId" value="<%= String.valueOf(soggettoDelegato.getSoggettoId()) %>"/>
<liferay-util:param name="soggettoId" value="<%=String.valueOf(soggettoDelegato.getSoggettoId()) %>"/>
</c:if> </c:if>
</liferay-util:include> </liferay-util:include>
<aui:model-context bean="<%=dettPratica %>" model="<%=DettPratica.class %>"></aui:model-context> <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />
<% <%
String orderByCol = ParamUtil.getString(renderRequest, "ORDER_BY_ASSEVERAZIONE_COL", "asseverazioneId"); String orderByCol = ParamUtil.getString(renderRequest, "ORDER_BY_ASSEVERAZIONE_COL", "asseverazioneId");
String orderByType = ParamUtil.getString(renderRequest, "ORDER_BY_ASSEVERAZIONE_TYPE", "asc"); String orderByType = ParamUtil.getString(renderRequest, "ORDER_BY_ASSEVERAZIONE_TYPE", "asc");
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione", "asseverazioneId", "asc".equals(orderByType)); OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione", "asseverazioneId", "asc".equals(orderByType));
DisplayTerms displayTerms = new DisplayTerms(renderRequest);
DisplayTerms displayTerms = new DisplayTerms(renderRequest); %>
%>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
@ -45,9 +42,7 @@ Soggetto soggettoDelegato = (Soggetto) SessionUtil.getDettPraticaObject(request,
<div class="container-fluid container_tab_asseverazioni"> <div class="container-fluid container_tab_asseverazioni">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<liferay-ui:search-container displayTerms="<%= displayTerms %>" emptyResultsMessage="no-entries-were-found" orderByCol="<%=orderByCol %>" orderByType="<%=orderByType %>" orderByColParam="ORDER_BY_ASSEVERAZIONE_COL" orderByTypeParam="ORDER_BY_ASSEVERAZIONE_TYPE">
<liferay-ui:search-container displayTerms="<%=displayTerms %>" emptyResultsMessage="no-entries-were-found" orderByCol="<%=orderByCol %>" orderByType="<%=orderByType %>" orderByColParam="ORDER_BY_ASSEVERAZIONE_COL" orderByTypeParam="ORDER_BY_ASSEVERAZIONE_TYPE">
<liferay-ui:search-container-results> <liferay-ui:search-container-results>
<% <%
// Search by keyfascicolofe works only with the indexer enabled // Search by keyfascicolofe works only with the indexer enabled
@ -55,51 +50,39 @@ Soggetto soggettoDelegato = (Soggetto) SessionUtil.getDettPraticaObject(request,
total = AsseverazioneServiceUtil.countByDettPratica_InEsito(dettPraticaId,new String[]{AsseverazioniUtil.STATO_ASSEGNATA,AsseverazioniUtil.STATO_ESEGUITA}); total = AsseverazioneServiceUtil.countByDettPratica_InEsito(dettPraticaId,new String[]{AsseverazioniUtil.STATO_ASSEGNATA,AsseverazioniUtil.STATO_ESEGUITA});
pageContext.setAttribute("results", results); pageContext.setAttribute("results", results);
pageContext.setAttribute("total", total); pageContext.setAttribute("total", total);
%> %>
</liferay-ui:search-container-results> </liferay-ui:search-container-results>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Asseverazione" keyProperty="asseverazioneId" modelVar="asseverazione"> <liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Asseverazione" keyProperty="asseverazioneId" modelVar="asseverazione">
<liferay-ui:search-container-column-text name="persona" > <liferay-ui:search-container-column-text name="persona" >
<% <%
if(SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale())==0){ if (SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale()) == 0) {
out.print("<div class ='alert alert-danger'> Non esistono soggetti nella pratica abbinato al codice fiscale </div>"); out.print("<div class ='alert alert-danger'> Non esistono soggetti nella pratica abbinato al codice fiscale </div>");
}else{ } else {
if(UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), asseverazione.getCodiceFiscale())==null){ if (UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), asseverazione.getCodiceFiscale()) == null) {
out.print("<div class='alert alert-warn'> Non esiste nessun utente di portale abbinato al codice fiscale</div>"); out.print("<div class='alert alert-warn'> Non esiste nessun utente di portale abbinato al codice fiscale</div>");
} }
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale(), 0l); List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale(), 0l);
if(!soggetti.isEmpty()){ if (!soggetti.isEmpty()) {
out.print("<div>"+soggetti.get(0).getDescrizioneCompleta()+"</div>"); out.print("<div>" + soggetti.get(0).getDescrizioneCompleta() + "</div>");
} }
/* List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale());
for(Soggetto soggetto:soggetti){
out.print("<div>"+soggetto.getDescrizioneCompleta()+" "+LanguageUtil.get(pageContext, "gc-soggetto-"+soggetto.getTipologiaSoggetto())+"</div>");
} */
} }
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="tipologia" orderable="true" > <liferay-ui:search-container-column-text name="tipologia" orderable="true" >
<liferay-ui:message key='<%="label-asseverazione-tipologia-"+asseverazione.getTipologia() %>'></liferay-ui:message> <liferay-ui:message key='<%= "label-asseverazione-tipologia-" + asseverazione.getTipologia() %>'></liferay-ui:message>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-date name="attiva-dal" property="createDate" /> <liferay-ui:search-container-column-date name="attiva-dal" property="createDate" />
<liferay-ui:search-container-column-date name="chiusa-il" property="dtEsito" /> <liferay-ui:search-container-column-date name="chiusa-il" property="dtEsito" />
<liferay-ui:search-container-column-text name="status" > <liferay-ui:search-container-column-text name="status" >
<liferay-ui:message key='<%="label-asseverazione-status-"+asseverazione.getEsito() %>'></liferay-ui:message> <liferay-ui:message key='<%= "label-asseverazione-status-" + asseverazione.getEsito() %>'></liferay-ui:message>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<% <%
request.setAttribute("comingFrom", "riepilogo"); request.setAttribute("comingFrom", "riepilogo");
%> %>
<liferay-ui:search-container-column-jsp path="/html/fascicolofe/asseverazione_actions.jsp" name="actions"/> <liferay-ui:search-container-column-jsp path="/html/fascicolofe/asseverazione_actions.jsp" name="actions"/>
</liferay-ui:search-container-row> </liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" /> <liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container> </liferay-ui:search-container>
</div> </div>
</div> </div>
</div> </div>

394
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp

@ -1,75 +1,64 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%>
<%@page import="com.liferay.portal.kernel.util.UniqueList"%> <%@page import="com.liferay.portal.kernel.util.UniqueList"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="java.util.ArrayList"%>
<%@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.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AsseverazioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.SezioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%>
<%@ include file="/html/fascicolofe/init.jsp" %> <%@ include file="/html/fascicolofe/init.jsp" %>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0L);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if(dettPratica==null){ if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId);
if(dettPratica==null){ if (dettPratica == null) {
dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId);
} }
} }
%> %>
<liferay-portlet:renderURL var="verifyURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:renderURL var="verifyURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:renderURL var="calcolaURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="calcolaURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_calcolo.jsp"/>
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:renderURL var="completedURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="completedURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/completed_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/completed_fascicolo.jsp"/>
<liferay-portlet:param name="classPk" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="className" value="<%=DettPratica.class.getName()%>" /> <liferay-portlet:param name="className" value="<%= DettPratica.class.getName() %>" />
<liferay-portlet:param name="comingFrom" value="domanda" /> <liferay-portlet:param name="comingFrom" value="domanda" />
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<portlet:renderURL var="delegaURL" windowState="<%=LiferayWindowState.POP_UP.toString() %>" > <portlet:renderURL var="delegaURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>" >
<portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/view_fascicolo_delega.jsp" />
<portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> <portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<portlet:param name="backURL" value="<%= currentURL %>" /> <portlet:param name="backURL" value="<%= currentURL %>" />
</portlet:renderURL> </portlet:renderURL>
<portlet:renderURL var="asseverazioneURL"> <portlet:renderURL var="asseverazioneURL">
<portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_asseverazione.jsp" /> <portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo_asseverazione.jsp" />
<portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<portlet:param name="backURL" value="<%= currentURL %>" /> <portlet:param name="backURL" value="<%= currentURL %>" />
</portlet:renderURL> </portlet:renderURL>
@ -79,13 +68,13 @@
<liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL"> <liferay-portlet:actionURL name="completeIntegrazione" var="completeIntegrazioneURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> <liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL"> <liferay-portlet:actionURL name="completeDomandaEsente" var="completeDomandaEsenteURL">
<liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/> <liferay-portlet:param name="mvcPath" value="/html/fascicolofe/verify_fascicolo.jsp"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="redirect" value="<%= completedURL %>" /> <liferay-portlet:param name="redirect" value="<%= completedURL %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
@ -101,11 +90,11 @@
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-refresh" iconCssClass="fa fa-refresh"
message="refresh" message="refresh"
url="<%=verifyURL %>" url="<%= verifyURL %>"
linkCssClass="btn" linkCssClass="btn"
/> />
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?"btn":"btn disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId) ? "btn" : "btn disabled" %>'
iconCssClass="fa fa-users" iconCssClass="fa fa-users"
message="gestione-deleghe-compilazione" message="gestione-deleghe-compilazione"
url="<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?delegaURL:StringPool.DASH %>" url="<%= ValidazionePraticaUtil.delegheCompilazioneIsEnable(dettPraticaId)?delegaURL:StringPool.DASH %>"
@ -113,15 +102,15 @@
<% <%
boolean asseverazioniIsEnabled = ValidazionePraticaUtil.asseverazioniIsEnable(dettPraticaId); boolean asseverazioniIsEnabled = ValidazionePraticaUtil.asseverazioniIsEnable(dettPraticaId);
StringBuilder tooltipAsseverazioni = new StringBuilder(); StringBuilder tooltipAsseverazioni = new StringBuilder();
if(!asseverazioniIsEnabled){ if (!asseverazioniIsEnabled) {
tooltipAsseverazioni.append("<ul>"); tooltipAsseverazioni.append("<ul>");
if(!ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId)){ if (!ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId)) {
tooltipAsseverazioni.append("<li>Domanda incompleta</li>"); tooltipAsseverazioni.append("<li>Domanda incompleta</li>");
} }
if(SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0){ if (SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0) {
tooltipAsseverazioni.append("<li>Nessun soggetto</li>"); tooltipAsseverazioni.append("<li>Nessun soggetto</li>");
} }
if(DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)){ if (DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)) {
tooltipAsseverazioni.append("<li>Deleghe Attive</li>"); tooltipAsseverazioni.append("<li>Deleghe Attive</li>");
} }
tooltipAsseverazioni.append("</ul>"); tooltipAsseverazioni.append("</ul>");
@ -129,10 +118,10 @@
%> %>
<span class="<%= !asseverazioniIsEnabled ? "tooltip-info" : StringPool.BLANK %>" title="<%= tooltipAsseverazioni.toString() %>"> <span class="<%= !asseverazioniIsEnabled ? "tooltip-info" : StringPool.BLANK %>" title="<%= tooltipAsseverazioni.toString() %>">
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%=asseverazioniIsEnabled ? "btn":"btn disabled" %>' linkCssClass='<%= asseverazioniIsEnabled ? "btn" : "btn disabled" %>'
iconCssClass="fa fa-pencil" iconCssClass="fa fa-pencil"
message="gestione-asseverazioni" message="gestione-asseverazioni"
url="<%= asseverazioniIsEnabled?asseverazioneURL:StringPool.DASH %>" url="<%= asseverazioniIsEnabled?asseverazioneURL : StringPool.DASH %>"
/> />
</span> </span>
<c:if test="<%= !dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>"> <c:if test="<%= !dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE) %>">
@ -149,7 +138,7 @@
</c:if> </c:if>
<c:if test="<%= !isEsente %>"> <c:if test="<%= !isEsente %>">
<liferay-ui:icon <liferay-ui:icon
linkCssClass='<%=ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?"btn btn-primary":"btn btn-primary disabled" %>' linkCssClass='<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) ? "btn btn-primary" : "btn btn-primary disabled" %>'
iconCssClass="fa fa-cogs" iconCssClass="fa fa-cogs"
message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>' message='<%= PagamentoLocalServiceUtil.countByClassPk(dettPraticaId)>0 ? LanguageUtil.get(pageContext, "dati-pagamento") : LanguageUtil.get(pageContext, "calcola-importo") %>'
url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>" url="<%= ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId)?calcolaURL:StringPool.DASH %>"
@ -197,7 +186,7 @@
%> %>
<div class="row asseverazioni-title"> <div class="row asseverazioni-title">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"> <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<%=LanguageUtil.get(pageContext, "sezione-"+section) %> <%= LanguageUtil.get(pageContext, "sezione-" + section) %>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-center"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-center">
<% <%
@ -208,27 +197,29 @@
if (!notCompleted.isEmpty()) { if (!notCompleted.isEmpty()) {
tooltipSection.append("<ul class='list-body-modal'>"); tooltipSection.append("<ul class='list-body-modal'>");
for (String incomplete : notCompleted) { for (String incomplete : notCompleted) {
tooltipSection.append("<li class='item-body-modal'>"+LanguageUtil.get(pageContext, incomplete)+"</li>"); tooltipSection.append("<li class='item-body-modal'>")
.append(LanguageUtil.get(pageContext, incomplete))
.append("</li>");
} }
tooltipSection.append("</ul>"); tooltipSection.append("</ul>");
} }
} }
%> %>
<span class='icon-asseverazioni fa <%= isSectionCompleted ? "fa-check txt-green" : "fa-close txt-red"%>'></span> <span class='icon-asseverazioni fa <%= isSectionCompleted ? "fa-check txt-green" : "fa-close txt-red" %>'></span>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-center"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 text-center">
<c:if test="<%= tooltipSection.length() > 0 %>"> <c:if test="<%= tooltipSection.length() > 0 %>">
<button id="<portlet:namespace /><%= section %>_button" class="btn btn-primary">Dettagli</button> <button id="<portlet:namespace /><%= section %>_button" class="btn btn-primary">Dettagli</button>
<div id="<portlet:namespace /><%= section %>_div" class="hide"><%= tooltipSection.toString() %></div> <div id="<portlet:namespace /><%= section %>_div" class="hide"><%= tooltipSection.toString() %></div>
<% <%
String title = "Riepilogo Errori Sezione "+LanguageUtil.get(pageContext, "sezione-"+section); String title = "Riepilogo Errori Sezione " + LanguageUtil.get(pageContext, "sezione-" + section);
String buttonId = section+"_button"; String buttonId = section + "_button";
String contentId = section+"_div"; String contentId = section + "_div";
%> %>
<liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/confirm_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="titolo" value="<%= title%>"></liferay-util:param> <liferay-util:param name="titolo" value="<%= title %>"></liferay-util:param>
<liferay-util:param name="buttonId" value="<%=buttonId%>"></liferay-util:param> <liferay-util:param name="buttonId" value="<%= buttonId %>"></liferay-util:param>
<liferay-util:param name="contentDiv" value="<%=contentId%>"></liferay-util:param> <liferay-util:param name="contentDiv" value="<%= contentId %>"></liferay-util:param>
<liferay-util:param name="width" value="750"></liferay-util:param> <liferay-util:param name="width" value="750"></liferay-util:param>
<liferay-util:param name="externalForm" value="true"></liferay-util:param> <liferay-util:param name="externalForm" value="true"></liferay-util:param>
</liferay-util:include> </liferay-util:include>
@ -256,22 +247,22 @@
</div> </div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 asserazioni-header-title text-center"> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 asserazioni-header-title text-center">
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<%=LanguageUtil.get(pageContext, "gc-soggetto-"+TipoSoggettoUtil.COMMITTENTE) %> <%= LanguageUtil.get(pageContext, "gc-soggetto-" + TipoSoggettoUtil.COMMITTENTE) %>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<%=LanguageUtil.get(pageContext, "gc-soggetto-"+TipoSoggettoUtil.DITTA) %> <%= LanguageUtil.get(pageContext, "gc-soggetto-" + TipoSoggettoUtil.DITTA) %>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<%=LanguageUtil.get(pageContext, "gc-soggetto-"+TipoSoggettoUtil.PROGETTISTA) %> <%= LanguageUtil.get(pageContext, "gc-soggetto-" + TipoSoggettoUtil.PROGETTISTA) %>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<%=LanguageUtil.get(pageContext, "gc-soggetto-"+TipoSoggettoUtil.DIRETTORE_LAVORI) %> <%= LanguageUtil.get(pageContext, "gc-soggetto-" + TipoSoggettoUtil.DIRETTORE_LAVORI) %>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<%=LanguageUtil.get(pageContext, "gc-soggetto-"+TipoSoggettoUtil.GEOLOGO) %> <%= LanguageUtil.get(pageContext, "gc-soggetto-" + TipoSoggettoUtil.GEOLOGO) %>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<%=LanguageUtil.get(pageContext, "gc-soggetto-"+TipoSoggettoUtil.COLLAUDATORE) %> <%= LanguageUtil.get(pageContext, "gc-soggetto-" + TipoSoggettoUtil.COLLAUDATORE) %>
</div> </div>
</div> </div>
</div> </div>
@ -285,9 +276,9 @@
<% <%
String[] esiti_complete = {AsseverazioniUtil.STATO_ESEGUITA}; String[] esiti_complete = {AsseverazioniUtil.STATO_ESEGUITA};
String[] esiti_incomplete = {AsseverazioniUtil.STATO_ASSEGNATA}; String[] esiti_incomplete = {AsseverazioniUtil.STATO_ASSEGNATA};
for(String tipoSoggetto : tipologiaSoggetti){ for (String tipoSoggetto : tipologiaSoggetti) {
String clazz = ""; String clazz = StringPool.BLANK;
String title = ""; String title = StringPool.BLANK;
List<Asseverazione> asseverazioniCompletate = AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_complete , QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); List<Asseverazione> asseverazioniCompletate = AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_complete , QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
List<Asseverazione> asseverazioniMancanti = AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_incomplete , QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); List<Asseverazione> asseverazioniMancanti = AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, esiti_incomplete , QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
@ -295,51 +286,46 @@
boolean isRecommended = AsseverazioniUtil.isAsseverazioneDomandaRecommendedByTipoSoggetto(dettPraticaId, tipoSoggetto); boolean isRecommended = AsseverazioniUtil.isAsseverazioneDomandaRecommendedByTipoSoggetto(dettPraticaId, tipoSoggetto);
StringBuilder content = new StringBuilder(); StringBuilder content = new StringBuilder();
if(isRequired || isRecommended){ if (isRequired || isRecommended) {
clazz+= " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if(isRequired){ if (isRequired) {
if(asseverazioniMancanti.isEmpty() && asseverazioniCompletate.size()>0){ if (asseverazioniMancanti.isEmpty() && asseverazioniCompletate.size() > 0) {
title = "Asseverazioni sufficienti"; title = "Asseverazioni sufficienti";
clazz +="fa-check txt-green"; clazz += "fa-check txt-green";
}else{ } else {
if(asseverazioniCompletate.size()>0){ if (asseverazioniCompletate.size() > 0) {
title = "Asseverazioni mancanti"; title = "Asseverazioni mancanti";
clazz +="fa-check txt-orange"; clazz += "fa-check txt-orange";
}else{ } else {
title = "Asseverazioni mancanti"; title = "Asseverazioni mancanti";
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if (isRecommended) { } else if (isRecommended) {
title = "Asseverazioni consigliate"; title = "Asseverazioni consigliate";
clazz +="fa-circle txt-blue"; clazz += "fa-circle txt-blue";
} }
content.append("<span class=\"") content.append("<span class=\"")
.append(clazz) .append(clazz)
.append(" tooltip-info\" title=\"") .append(" tooltip-info\" title=\"")
.append(title) .append(title)
.append("\">"); .append("\"><sub class=\"txt-bold\">");
content.append("<sub class=\"txt-bold\">") if (asseverazioniCompletate.size() > 0) {
.append(asseverazioniCompletate.size()>0 ? asseverazioniCompletate.size() : StringPool.BLANK) content.append(asseverazioniCompletate.size());
.append("</sub>"); }
content.append("</span>"); content.append("</sub></span>");
} else if (!TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
&& !TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())
} else if( && TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto)
!TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) && && DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(intPraticaId, new String[]{DelegheUtil.TIPO_GEOLOGO}, new String[]{DelegheUtil.STATO_ESEGUITA}) > 0) {
!TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) &&
TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto) &&
DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(intPraticaId, new String[]{DelegheUtil.TIPO_GEOLOGO}, new String[]{DelegheUtil.STATO_ESEGUITA})>0
){
clazz = "icon-asseverazioni fa fa-check txt-green"; clazz = "icon-asseverazioni fa fa-check txt-green";
content.append("<span class=\"").append(clazz).append("\"></span>");
content.append("<span class=\"").append(clazz).append("\">").append("</span>");
} else { } else {
content.append("<span>-</span>"); content.append("<span>-</span>");
} }
%> %>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2">
<%= content.toString() %> <%= content.toString() %>
</div> </div>
<% <%
@ -348,225 +334,204 @@
</div> </div>
</div> </div>
<% <%
for(String codiceDoc:tipologiaAllegati){ for (String codiceDoc:tipologiaAllegati) {
%> %>
<div class="row asseverazioni-title"> <div class="row asseverazioni-title">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<liferay-ui:message key='<%="label-documenti-tipologia-"+codiceDoc %>'/> <liferay-ui:message key='<%= "label-documenti-tipologia-" + codiceDoc %>'/>
</div> </div>
</div> </div>
<% <%
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<DocPratica> docPraticas = DocPraticaLocalServiceUtil
if(docPraticas.isEmpty()){ .getValidTmpByIntPratica_Tipologia(intPraticaId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (docPraticas.isEmpty()) {
%> %>
<div class="row asseverazioni-section"> <div class="row asseverazioni-section">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <div class="col-xs-6">
Nessun allegato presente per la tipologia Nessun allegato presente per la tipologia
</div> </div>
</div> </div>
<% <%
}else{ } else {
for(DocPratica docPratica : docPraticas){ for (DocPratica docPratica : docPraticas) {
%> %>
<div class="row asseverazioni-section"> <div class="row asseverazioni-section">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <div class="col-xs-6">
<i class="fa fa-file-o file-icon" aria-hidden="true"></i><%= docPratica.getDescLong() %> <i class="fa fa-file-o file-icon" aria-hidden="true"></i><%= docPratica.getDescLong() %>
</div> </div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 asserazioni-body-title text-center"> <div class="col-xs-6 asserazioni-body-title text-center">
<% <%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
List<String> signatures = firme.allSignatures(); List<String> signatures = firme.allSignatures();
boolean isEnoughOne = AsseverazioniUtil.isEnoughOne(codiceDoc); boolean isEnoughOne = AsseverazioniUtil.isEnoughOne(codiceDoc);
for(String tipoSoggetto : tipologiaSoggetti){ for (String tipoSoggetto : tipologiaSoggetti) {
String clazz= ""; String clazz= "";
StringBuilder tooltipTitle = new StringBuilder(); StringBuilder tooltipTitle = new StringBuilder();
List<String> signaturesPerSubject = new UniqueList<String>(); List<String> signaturesPerSubject = new UniqueList<String>();
for(String sign : signatures){ for (String sign : signatures) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, sign, docPratica.getClassPk()); .getValidTmpByIntPratica_CodiceFiscale(intPraticaId, sign, docPratica.getClassPk());
for(Soggetto soggetto: soggetti){ for (Soggetto soggetto: soggetti) {
if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)){ if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)){
signaturesPerSubject.add(sign); signaturesPerSubject.add(sign);
} }
} }
} }
if(signaturesPerSubject.size()>0){ if (signaturesPerSubject.size() > 0) {
tooltipTitle.append("Firme:<ul>"); tooltipTitle.append("Firme:<ul>");
for(String firma: signaturesPerSubject){ for (String firma : signaturesPerSubject) {
tooltipTitle.append("<li>"+firma+"</li>"); tooltipTitle.append("<li>").append(firma).append("</li>");
} }
tooltipTitle.append("</ul>"); tooltipTitle.append("</ul>");
} }
if (isEnoughOne) {
if(isEnoughOne){ clazz += " icon-asseverazioni fa ";
clazz+= " icon-asseverazioni fa "; if (signatures.isEmpty()) {
if(signatures.isEmpty()){ clazz += "fa-close txt-red";
clazz +="fa-close txt-red";
} else { } else {
clazz +="fa-check txt-green"; clazz += "fa-check txt-green";
} }
} else if( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A00.equals(codiceDoc)){ } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A00.equals(codiceDoc)) {
if(TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto)){ if (TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto)) {
boolean isValid = false; boolean isValid = false;
if(dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese()){ if (dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese()) {
isValid = true; isValid = true;
} else if(signaturesPerSubject.isEmpty()){ } else if (signaturesPerSubject.isEmpty()) {
isValid = false; isValid = false;
} else { } else {
isValid = true; isValid = true;
} }
clazz += " icon-asseverazioni fa ";
clazz+= " icon-asseverazioni fa "; if (isValid) {
if(isValid){ clazz += "fa-check txt-green";
clazz +="fa-check txt-green";
} else { } else {
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05.equals(codiceDoc) || DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc) ){ } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05.equals(codiceDoc) || DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15.equals(codiceDoc)) {
if(TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) ){ if (TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) ) {
boolean isValid = false; boolean isValid = false;
if(dettPratica.getNormArt3com3()){ if (dettPratica.getNormArt3com3()) {
isValid = true; isValid = true;
} else if(signaturesPerSubject.isEmpty()){ } else if (signaturesPerSubject.isEmpty()) {
isValid = false; isValid = false;
} else { } else {
isValid = true; isValid = true;
} }
clazz += " icon-asseverazioni fa ";
// if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){ if (isValid) {
// isValid = true; clazz += "fa-check txt-green";
// }
clazz+= " icon-asseverazioni fa ";
if(isValid){
clazz +="fa-check txt-green";
} else { } else {
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06.equals(codiceDoc) ){ } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A06.equals(codiceDoc)) {
if(TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) || TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto)){ if (TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto) || (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) && dettPratica.isLavoriPubblici()) || TipoSoggettoUtil.GEOLOGO.equals(tipoSoggetto)) {
boolean isValid = false; boolean isValid = false;
if(dettPratica.getNormArt3com3()){ if (dettPratica.getNormArt3com3()) {
isValid = true; isValid = true;
} else if(tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.isEmpty()){ } else if (tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.isEmpty()) {
isValid = false; isValid = false;
} else if(tipoSoggetto.equals(TipoSoggettoUtil.GEOLOGO)){ } else if (tipoSoggetto.equals(TipoSoggettoUtil.GEOLOGO)) {
boolean progettista = AsseverazioniUtil.signaturesContains(intPraticaId, TipoSoggettoUtil.PROGETTISTA, signatures); boolean progettista = AsseverazioniUtil.signaturesContains(intPraticaId, TipoSoggettoUtil.PROGETTISTA, signatures);
if(progettista || !signaturesPerSubject.isEmpty() ){ if (progettista || !signaturesPerSubject.isEmpty()) {
isValid = true; isValid = true;
} }
} else if(tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA)){ } else if (tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA)) {
boolean geologo = AsseverazioniUtil.signaturesContains(intPraticaId, TipoSoggettoUtil.GEOLOGO, signatures); boolean geologo = AsseverazioniUtil.signaturesContains(intPraticaId, TipoSoggettoUtil.GEOLOGO, signatures);
if(geologo || !signaturesPerSubject.isEmpty() ){ if (geologo || !signaturesPerSubject.isEmpty()) {
isValid = true; isValid = true;
} }
} else { } else {
isValid = true; isValid = true;
} }
clazz += " icon-asseverazioni fa ";
// if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){ if (isValid) {
// isValid = true; clazz += " fa-check txt-green";
// }
clazz+= " icon-asseverazioni fa ";
if(isValid){
clazz +="fa-check txt-green";
} else { } else {
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07.equals(codiceDoc) ){ } else if (DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A07.equals(codiceDoc)) {
if(TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto) || TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto) ){ if (TipoSoggettoUtil.PROGETTISTA.equals(tipoSoggetto) || TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) {
boolean isValid = false; boolean isValid = false;
if(dettPratica.getNormArt3com3()){ if (dettPratica.getNormArt3com3()) {
isValid = true; isValid = true;
} else if(signaturesPerSubject.isEmpty()){ } else if (signaturesPerSubject.isEmpty()) {
isValid = false; isValid = false;
} else { } else {
isValid = true; isValid = true;
} }
if (!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) {
if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){
isValid = true; isValid = true;
} }
clazz += " icon-asseverazioni fa ";
clazz+= " icon-asseverazioni fa "; if (isValid) {
if(isValid){ clazz += "fa-check txt-green";
clazz +="fa-check txt-green";
} else { } else {
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09)) {
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09) ){
boolean isValid = false; boolean isValid = false;
if (tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA) || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) {
if( (tipoSoggetto.equals(TipoSoggettoUtil.PROGETTISTA) || tipoSoggetto.equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) ){ if (dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty()) {
if(dettPratica.getNormArt3com4() || !signaturesPerSubject.isEmpty() ){
isValid = true; isValid = true;
} }
if(!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)){ if (!isValid && dettPratica.isLavoriPubblici() && TipoSoggettoUtil.DIRETTORE_LAVORI.equals(tipoSoggetto)) {
isValid = true; isValid = true;
} }
clazz += " icon-asseverazioni fa ";
clazz+= " icon-asseverazioni fa "; if (isValid) {
if(isValid){ clazz += "fa-check txt-green";
clazz +="fa-check txt-green";
} else { } else {
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} }
} else if (codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) {
} else if( codiceDoc.equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17) ){
boolean isValid = true; boolean isValid = true;
if(signatures.isEmpty()){ if (signatures.isEmpty()) {
boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, dettPratica); boolean isRequired = AsseverazioniUtil.isRequiredTerna(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, dettPratica);
if(isRequired) if (isRequired) {
isValid = false; isValid = false;
} }
}
clazz+= " icon-asseverazioni fa "; clazz += " icon-asseverazioni fa ";
if(isValid){ if (isValid) {
clazz +="fa-check txt-green"; clazz += "fa-check txt-green";
} else { } else {
clazz +="fa-close txt-red"; clazz += "fa-close txt-red";
} }
} else { } else {
boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto);
boolean isRecommended = AsseverazioniUtil.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto); boolean isRecommended = AsseverazioniUtil.isAsseverazioneRecommendedByCodiceDoc(codiceDoc, tipoSoggetto);
boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici(); boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici();
if(tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI) && signaturesPerSubject.size() == 0){ if (tipoSoggetto.equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)
&& signaturesPerSubject.size() == 0) {
isRequired = false; isRequired = false;
} }
if (isRequired || isRecommended) {
if(isRequired || isRecommended){ clazz += " icon-asseverazioni fa ";
clazz+= " icon-asseverazioni fa "; if (isRequired) {
if(isRequired){ if (signaturesPerSubject.size() > 0) {
if(signaturesPerSubject.size()>0){ clazz += "fa-check txt-green";
clazz +="fa-check txt-green"; } else {
}else{ clazz += "fa-close txt-red";
clazz +="fa-close txt-red";
} }
} else if (isRecommended) { } else if (isRecommended) {
clazz +="fa-circle txt-blue"; clazz += "fa-circle txt-blue";
} }
} }
} }
%> %>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<span class='<%=clazz%> <%= !clazz.isEmpty() && tooltipTitle.length() > 0 ? "tooltip-info" : "" %>' title='<%= tooltipTitle.toString() %>'> <span class='<%= clazz %> <%= !clazz.isEmpty() && tooltipTitle.length() > 0 ? "tooltip-info" : StringPool.BLANK %>' title='<%= tooltipTitle.toString() %>'>
<sub class="txt-bold"><%= !clazz.isEmpty() && signaturesPerSubject.size()>0 ? signaturesPerSubject.size() : "" %></sub> <sub class="txt-bold"><%= !clazz.isEmpty() && signaturesPerSubject.size() > 0 ? signaturesPerSubject.size() : StringPool.BLANK %></sub>
</span> </span>
</div> </div>
<% <%
@ -583,22 +548,19 @@
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
YUI().use( YUI().use(
'aui-tooltip', 'aui-tooltip',
function(Y) { function(Y) {
new Y.TooltipDelegate( new Y.TooltipDelegate({
{
trigger: '.tooltip-info', trigger: '.tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1
});
} }
); );
}
);
</script> </script>
<aui:script use="aui-base"> <aui:script use="aui-base">
window.parent.Liferay.fire('verifyPopup-ready'); window.parent.Liferay.fire('verifyPopup-ready');
</aui:script> </aui:script>

60
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/dett_pratica.jsp

@ -1,63 +1,45 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Avviso"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Avviso"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="javax.portlet.ResourceURL"%> <%@page import="javax.portlet.ResourceURL"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@include file="/html/ricercapratiche/init.jsp"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="java.util.Iterator"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@include file="/html/ricercapratiche/init.jsp" %>
<% <%
String uuid = ParamUtil.getString(renderRequest, "uuid"); String uuid = ParamUtil.getString(renderRequest, "uuid");
String numeroProgetto = ParamUtil.getString(renderRequest, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(renderRequest, "numeroProgetto");
long avvisoId = ParamUtil.getLong(renderRequest, "avvisoId"); long avvisoId = ParamUtil.getLong(renderRequest, "avvisoId");
String tabNames = "Tab_Dettagli_Pratica,Tab_Allegati_Pratica"; String tabNames = "Tab_Dettagli_Pratica,Tab_Allegati_Pratica";
String redirect = ParamUtil.getString(renderRequest, "redirect"); String redirect = ParamUtil.getString(renderRequest, "redirect");
String title = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId).getTitle(locale); String title = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId).getTitle(locale);
%> %>
<liferay-ui:header <liferay-ui:header
backURL="<%= redirect %>" backURL="<%= redirect %>"
title='<%=title%>' title='<%= title %>'
/> />
<% <%
Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId); Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId);
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio());
ResourceURL resourceURL = renderResponse.createResourceURL(); ResourceURL resourceURL = renderResponse.createResourceURL();
resourceURL.setResourceID("downloadFile"); resourceURL.setResourceID("downloadFile");
resourceURL.setParameter("fileEntryId", String.valueOf(fileEntry.getFileEntryId())); resourceURL.setParameter("fileEntryId", String.valueOf(fileEntry.getFileEntryId()));
resourceURL.setParameter("version", String.valueOf(fileEntry.getVersion())); resourceURL.setParameter("version", String.valueOf(fileEntry.getVersion()));
resourceURL.setParameter("uuid", uuid); resourceURL.setParameter("uuid", uuid);
resourceURL.setParameter("numeroProgetto", numeroProgetto); resourceURL.setParameter("numeroProgetto", numeroProgetto);
%> %>
<div style="font-weight: bold;"> <div style="font-weight: bold;">
<liferay-ui:message key="label.admingeniocivile.ricercaavvisi.link.avviso" /> <liferay-ui:message key="label.admingeniocivile.ricercaavvisi.link.avviso" />
&nbsp; &nbsp;
<liferay-ui:icon <liferay-ui:icon
image="links" image="links"
target="_blank" target="_blank"
url="<%= resourceURL.toString()%>" url="<%= resourceURL.toString() %>"
/> />
</div> </div>
<c:if test="<%= DettPratica.class.getName().equals(avviso.getClassName()) %>"> <c:if test="<%= DettPratica.class.getName().equals(avviso.getClassName()) %>">
<liferay-util:include page="/html/fascicolofe/view_fascicolo_dettagli.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/view_fascicolo_dettagli.jsp" servletContext="<%= application %>">
<liferay-util:param name="intPraticaId" value="<%= String.valueOf(avviso.getIntPraticaId()) %>"/> <liferay-util:param name="intPraticaId" value="<%= String.valueOf(avviso.getIntPraticaId()) %>"/>

11
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/init.jsp

@ -1,11 +1,10 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %> <%@include file="/html/init.jsp"%>
<% <%
Long dettPraticaId = (Long) request.getAttribute("dettPraticaId"); Long dettPraticaId = (Long) request.getAttribute("dettPraticaId");
boolean workflow = false; boolean workflow = false;
if (Validator.isNull(dettPraticaId)) { if (Validator.isNull(dettPraticaId)) {
workflow = true; workflow = true;
dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
} }
%> %>

35
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/ricercapratiche/view.jsp

@ -1,46 +1,33 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/ricercapratiche/init.jsp"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@include file="/html/ricercapratiche/init.jsp" %>
<portlet:actionURL name="processAvvisi" var="searchURL" > <portlet:actionURL name="processAvvisi" var="searchURL" >
<portlet:param name="backURL" value="<%=currentURL %>"/> <portlet:param name="backURL" value="<%= currentURL %>"/>
<portlet:param name="mvcPath" value="/html/ricercapratiche/dett_pratica.jsp"/> <portlet:param name="mvcPath" value="/html/ricercapratiche/dett_pratica.jsp"/>
</portlet:actionURL> </portlet:actionURL>
<liferay-ui:error key="no-entries-were-found" message="no-entries-were-found" /> <liferay-ui:error key="no-entries-were-found" message="no-entries-were-found" />
<div class="container-fluid"> <div class="container-fluid">
<aui:form action="<%= searchURL %>" method="post" name="fm"> <aui:form action="<%= searchURL %>" method="post" name="fm">
<div class="row"> <div class="row">
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8" > <div class="col-xs-8" >
<aui:input name="uuid" label="ricercapratiche.uuid" <aui:input name="uuid" label="ricercapratiche.uuid" size="40" maxlength="75" />
size="40" maxlength="75" />
</div> </div>
<div class="col-xs-4 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-4 col-sm-3">
<aui:input name="numeroProgetto" label="ricercapratiche.numeroProgetto" <aui:input name="numeroProgetto" label="ricercapratiche.numeroProgetto" size="15" maxlength="75" />
size="15" maxlength="75" />
</div> </div>
<div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" > <div class="col-xs-12 col-sm-1" >
<aui:button type="submit" value="search" /> <aui:button type="submit" value="search" />
</div> </div>
</div> </div>
</aui:form> </aui:form>
</div> </div>
<aui:script use="aui-form-validator"> <aui:script use="aui-form-validator">
new A.FormValidator( new A.FormValidator({
{
boundingBox: document.<portlet:namespace/>fm, boundingBox: document.<portlet:namespace/>fm,
validateOnBlur: false, validateOnBlur: false,
rules: { rules: {
<portlet:namespace/>uuid: { <portlet:namespace/>uuid: { required: true },
required: true <portlet:namespace/>numeroProgetto: { required: true }
},
<portlet:namespace/>numeroProgetto: {
required: true
}
}
} }
); });
</aui:script> </aui:script>

1397
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp

File diff soppresso perché troppo grande Load Diff

47
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto_modal.jsp

@ -2,39 +2,35 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@ include file="/html/soggettipratica/init.jsp" %> <%@ include file="/html/soggettipratica/init.jsp" %>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
long soggettoId = ParamUtil.getLong(renderRequest, "soggettoId"); long soggettoId = ParamUtil.getLong(renderRequest, "soggettoId");
Soggetto soggetto = SoggettoLocalServiceUtil.getSoggetto(soggettoId); Soggetto soggetto = SoggettoLocalServiceUtil.getSoggetto(soggettoId);
%> %>
<liferay-portlet:renderURL var="editSoggettoURL"> <liferay-portlet:renderURL var="editSoggettoURL">
<liferay-portlet:param name="mvcPath" value="/html/soggettipratica/edit_soggetto.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/soggettipratica/edit_soggetto.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId) %>"/> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="soggettoId" value="<%=String.valueOf(soggettoId) %>"/> <liferay-portlet:param name="soggettoId" value="<%= String.valueOf(soggettoId) %>"/>
<liferay-portlet:param name="isEditable" value="false"/> <liferay-portlet:param name="isEditable" value="false"/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:renderURL var="redirectErrorURL"> <liferay-portlet:renderURL var="redirectErrorURL">
<liferay-portlet:param name="mvcPath" value="/html/soggettipratica/edit_soggetto_modal.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/soggettipratica/edit_soggetto_modal.jsp" />
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId) %>"/> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="soggettoId" value="<%=String.valueOf(soggettoId) %>"/> <liferay-portlet:param name="soggettoId" value="<%= String.valueOf(soggettoId) %>"/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<liferay-portlet:actionURL name="updateAllegatoSoggetto" var="updateAllegatoSoggettoURL"> <liferay-portlet:actionURL name="updateAllegatoSoggetto" var="updateAllegatoSoggettoURL">
<liferay-portlet:param name="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId) %>"/> <liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="soggettoId" value="<%=String.valueOf(soggettoId) %>"/> <liferay-portlet:param name="soggettoId" value="<%= String.valueOf(soggettoId) %>"/>
<liferay-portlet:param name="successUrl" value="<%= editSoggettoURL %>"/> <liferay-portlet:param name="successUrl" value="<%= editSoggettoURL %>"/>
<liferay-portlet:param name="errorUrl" value="<%= redirectErrorURL %>"/> <liferay-portlet:param name="errorUrl" value="<%= redirectErrorURL %>"/>
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:error key="error.geniocivilefe.variazione-soggetto.add.file.non.firmato" message="file-non-firmato-da-soggetti-e-persona-interessata" /> <liferay-ui:error key="error.geniocivilefe.variazione-soggetto.add.file.non.firmato" message="file-non-firmato-da-soggetti-e-persona-interessata" />
<liferay-ui:error key="error.geniocivilefe.variazione-soggetto.add.file.non.firmato.committente" message="file-non-firmato-da-titolare-digitale" /> <liferay-ui:error key="error.geniocivilefe.variazione-soggetto.add.file.non.firmato.committente" message="file-non-firmato-da-titolare-digitale" />
@ -42,7 +38,7 @@
<liferay-ui:header cssClass="header_back" title="add-file-variazione-soggetto" backURL="<%= editSoggettoURL %>"></liferay-ui:header> <liferay-ui:header cssClass="header_back" title="add-file-variazione-soggetto" backURL="<%= editSoggettoURL %>"></liferay-ui:header>
<aui:form name="fm" action='<%= updateAllegatoSoggettoURL %>' method="post" enctype="multipart/form-data"> <aui:form name="fm" action='<%= updateAllegatoSoggettoURL %>' method="post" enctype="multipart/form-data">
<aui:model-context bean="<%= soggetto %>" model="<%=Soggetto.class %>" /> <aui:model-context bean="<%= soggetto %>" model="<%= Soggetto.class %>" />
<div class="container-fluid popup-soggetti-modal"> <div class="container-fluid popup-soggetti-modal">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12 col-md-12">
@ -50,7 +46,7 @@
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="allegato-file-modifica" > <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="allegato-file-modifica" >
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-message"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-message">
<liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/help_message.jsp" servletContext="<%= application %>">
<liferay-util:param name="message" value="help_message_allegato_variazione_soggetti"></liferay-util:param> <liferay-util:param name="message" value="help_message_allegato_variazione_soggetti" />
</liferay-util:include> </liferay-util:include>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-file-chooser"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-file-chooser">
@ -59,7 +55,6 @@
showRequiredLabel="<%= !TipoSoggettoUtil.COMMITTENTE.equals(soggetto.getTipologiaSoggetto()) %>"/> showRequiredLabel="<%= !TipoSoggettoUtil.COMMITTENTE.equals(soggetto.getTipologiaSoggetto()) %>"/>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-checkbox-edit-allegato"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-checkbox-edit-allegato">
<!-- ADT BUG ID=27 -->
<aui:input type="checkbox" name="applicaFirma" label="label.firma-doc" value="false" /> <aui:input type="checkbox" name="applicaFirma" label="label.firma-doc" value="false" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-button"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-button">

17
liferay-plugins-sdk-6.2/shared/tref-mapit-shared/.project

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tref-mapit-shared</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Caricamento…
Annulla
Salva