Sfoglia il codice sorgente

Vidimazione integrazioni

master
Salvatore La Manna 4 anni fa
parent
commit
900a2b9863
  1. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java
  2. 32
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  3. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  4. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  5. 76
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp
  6. 83
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp
  7. 80
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp
  8. 54
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp
  9. 95
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/advanced_search.jsp
  10. 75
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/action_button.jsp
  11. 74
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp
  12. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/view.jsp
  13. 22
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

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

@ -11,6 +11,7 @@ import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
@ -107,6 +108,8 @@ public class AvvisoUtil {
put(StatoPraticaConstants.AUTORIZZATA, "conf.geniocivile.avviso.template.id.autorizzata"); put(StatoPraticaConstants.AUTORIZZATA, "conf.geniocivile.avviso.template.id.autorizzata");
put(StatoPraticaConstants.NON_AUTORIZZATA, "conf.geniocivile.avviso.template.id.non_autorizzata"); put(StatoPraticaConstants.NON_AUTORIZZATA, "conf.geniocivile.avviso.template.id.non_autorizzata");
put(StatoPraticaConstants.INTEGRAZIONE, "conf.geniocivile.avviso.template.id.integrazione"); put(StatoPraticaConstants.INTEGRAZIONE, "conf.geniocivile.avviso.template.id.integrazione");
// put(StatoPraticaConstants.VIDIMATA,
// "label.admingeniocivile.avviso.tipoDocumento.vidimata");
put(StatoPraticaConstants.PREAVVISO_CONTRARIO, put(StatoPraticaConstants.PREAVVISO_CONTRARIO,
"conf.geniocivile.avviso.template.id.preavvisocontrario"); "conf.geniocivile.avviso.template.id.preavvisocontrario");
put(StatoPraticaConstants.NO_PARERE, "conf.geniocivile.avviso.template.id.noparere"); put(StatoPraticaConstants.NO_PARERE, "conf.geniocivile.avviso.template.id.noparere");

32
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -1270,17 +1270,27 @@ tipo-procedura-b = B - Interventi di “minore rilevanza” D.D.G. 344/20 all.
tipo-procedura-b1 = B1 - Interventi di “minore rilevanza” zone 1-2 ed interventi in abitati da consolidare, art.61 (zone 3-4) tipo-procedura-b1 = B1 - Interventi di “minore rilevanza” zone 1-2 ed interventi in abitati da consolidare, art.61 (zone 3-4)
tipo-procedura-c = C - Interventi “privi di rilevanza“ D.D.G. 344/20 all. A - lett. C tipo-procedura-c = C - Interventi “privi di rilevanza“ D.D.G. 344/20 all. A - lett. C
#tipo_procedura_P0 = 1) Autorizzazione per interventi su Beni Culturali (D.Lgs. 42/2004 artt. 21, 31, 48, 49, 50) tipo_procedura_P0 = 1) Autorizzazione per interventi su Beni Culturali (D.Lgs. 42/2004 artt. 21, 31, 48, 49, 50)
tipo_procedura_P1 = 1) Autorizzazione per interventi su Beni Culturali mobili tipo_procedura_P1 = 1.1) Interventi su Beni Culturali mobili
tipo_procedura_P2 = 2) Autorizzazione per interventi su Beni Culturali immobili tipo_procedura_P2 = 1.2) Interventi su Beni Culturali immobili
tipo_procedura_P3 = 3) Verifica preventiva dell’interesse archeologico tipo_procedura_P3 = 2) Verifica preventiva dell’interesse archeologico (D.Lgs. 25/2016, art. 25)
tipo_procedura_P4 = 4) Autorizzazione prevista dagli strumenti urbanistici per interventi in aree e immobili non assoggettati a tutela ai sensi del D.Lgs. 42/2004 (c.d. centri storici) tipo_procedura_P4 = 3) Autorizzazione per interventi di edilizia su Beni Culturali (D.Lgs. 42/2004 artt. 21, 22)
tipo_procedura_P5 = 5) Autorizzazione per "Settori Speciali" tipo_procedura_P5 = 4) Autorizzazione paesaggistica per interventi e/o opere di grande impegno territoriale (D.Lgs. 42/2004 art. 146)
tipo_procedura_P6 = 6) Autorizzazione paesaggistica tipo_procedura_P6 = 5) Autorizzazione paesaggistica per opere il cui impatto è valutato mediante documentazione semplificata (D.Lgs. 42/2004 art. 146)
tipo_procedura_P7 = 7) Autorizzazione paesaggistica per interventi di lieve entità tipo_procedura_P7 = 6) Autorizzazione paesaggistica per interventi di lieve entità (L.R. 5/2019 artt. 3, 5)
tipo_procedura_P8 = 8) Accertamento di compatibilità paesaggistica tipo_procedura_P8 = 7) Accertamento di compatibilità paesaggistica (D.Lgs. 42/2004 art. 146, 167)
tipo_procedura_P9 = 9) Condono Edilizio tipo_procedura_P9 = 8) Accertamento di compatibilità paesaggistica per Sanatorie Edilizie (L. 47/1985 e L.R. 37/1985 – L. 724/1994 – L. 326/2003 e L.R. 15/2004)
tipo_procedura_P10 = 10) Certificazione di sussistenza vincoli tipo_procedura_P10 = 9) Certificazione di sussistenza vincoli
#tipo_procedura_p11 = 1) Autorizzazione per interventi su Beni Culturali mobili
#tipo_procedura_P12 = 2) Autorizzazione per interventi su Beni Culturali immobili
#tipo_procedura_P13 = 3) Verifica preventiva dell’interesse archeologico
#tipo_procedura_P14 = 4) Autorizzazione prevista dagli strumenti urbanistici per interventi in aree e immobili non assoggettati a tutela ai sensi del D.Lgs. 42/2004 (c.d. centri storici)
#tipo_procedura_P15 = 5) Autorizzazione per "Settori Speciali"
#tipo_procedura_P16 = 6) Autorizzazione paesaggistica
#tipo_procedura_P17 = 7) Autorizzazione paesaggistica per interventi di lieve entità
#tipo_procedura_P18 = 8) Accertamento di compatibilità paesaggistica
#tipo_procedura_P19 = 9) Condono Edilizio
sanatoria-edilizia = Sanatoria edilizia sanatoria-edilizia = Sanatoria edilizia
intervento-voce-b = L.R. 5/2019, art. 3, allegato B: intervento alla voce B intervento-voce-b = L.R. 5/2019, art. 3, allegato B: intervento alla voce B

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java

@ -97,8 +97,6 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
* to access the asseverazione local service. * to access the asseverazione local service.
*/ */
private static final Log _log = LogFactoryUtil.getLog(AvvisoLocalServiceImpl.class.getName());
private static final Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class); private static final Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class);
@Override @Override
@ -175,7 +173,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
break; break;
case TipoSoggettoUtil.PROGETTISTA: case TipoSoggettoUtil.PROGETTISTA:
if (Validator.isNull(ambitoProfessione) if (Validator.isNull(ambitoProfessione)
|| ambitoProfessione.equalsIgnoreCase("ambitoProf-architettonico") || ambitoProfessione.equalsIgnoreCase("architettonico")
|| ambitoProfessione.equalsIgnoreCase("ambitoProf-altro")) { || ambitoProfessione.equalsIgnoreCase("ambitoProf-altro")) {
file = "progettista_architettonico"; file = "progettista_architettonico";
} else { } else {

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=2906 build.number=2912
build.date=1615278830398 build.date=1615307426711
build.auto.upgrade=true build.auto.upgrade=true
## ##

76
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp

@ -7,7 +7,6 @@
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@include file="/html/allegati_manuali/init.jsp"%> <%@include file="/html/allegati_manuali/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");
@ -16,59 +15,45 @@
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
long territorioGroupId = territorio.getGroupId(); long territorioGroupId = territorio.getGroupId();
%> %>
<c:if test="<%= user.getUserId() == intPratica.getUserId() || IntPraticaPermission.contains(permissionChecker,
<c:if test="<%= user.getUserId() == intPratica.getUserId() || IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.AVVISI_MANUALI) %>"> territorioGroupId, ActionKeys.AVVISI_MANUALI) %>">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12 fascicolo-allegato-manuale-tab"> <div class="col-sm-12 fascicolo-allegato-manuale-tab">
<liferay-portlet:renderURL var="addAllegatoManuale" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="addAllegatoManuale" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="mvcPath" value="/html/allegati_manuali/edit_allegato_manuale.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/allegati_manuali/edit_allegato_manuale.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>
<div class="text-right"> <div class="text-right">
<liferay-portlet:resourceURL var="downloadAllURL" id="downloadAll"> <liferay-portlet:resourceURL var="downloadAllURL" id="downloadAll">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true"
cssClass="inline_toolbar">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<span class="tooltip-info" title="Aggiungi Allegato Manuale"> <span class="tooltip-info" title="Aggiungi Allegato Manuale">
<aui:button useDialog="true" id='<%=renderResponse.getNamespace()+"add-allegato-manuale"%>' icon="fa fa-plus" href="<%=addAllegatoManuale%>" cssClass="btn btn-primary btn-action"/> <aui:button useDialog="true" id='<%= renderResponse.getNamespace() + "add-allegato-manuale" %>'
icon="fa fa-plus" href="<%=addAllegatoManuale%>" cssClass="btn btn-primary btn-action" />
</span> </span>
<c:if test="<%= AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId) > 0 %>"> <c:if test="<%= AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId) > 0 %>">
<span class="tooltip-info" title="Download"> <span class="tooltip-info" title="Download">
<aui:button useDialog="true" id='<%=renderResponse.getNamespace()+"download_all"%>' icon="fa fa-download" href="<%=downloadAllURL%>" cssClass="btn btn-primary btn-action"/> <aui:button useDialog="true" id='<%= renderResponse.getNamespace() + "download_all" %>'
icon="fa fa-download" href="<%=downloadAllURL%>" cssClass="btn btn-primary btn-action" />
</span> </span>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" orderByType="asc" orderByCol="createDate">
<liferay-ui:search-container
emptyResultsMessage="no-entries-were-found"
orderByType="asc" orderByCol="createDate"
>
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%=AllegatoManualeLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>" results="<%= AllegatoManualeLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS,
total="<%=AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId)%>" QueryUtil.ALL_POS, null) %>"
> total="<%=AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId)%>">
</liferay-ui:search-container-results> </liferay-ui:search-container-results>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.AllegatoManuale" modelVar="allegatoManuale">
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.AllegatoManuale"
modelVar="allegatoManuale"
>
<% <%
String title = StringPool.BLANK; String title = StringPool.BLANK;
if (Validator.isNotNull(allegatoManuale.getFileEntryId())) { if (Validator.isNotNull(allegatoManuale.getFileEntryId())) {
@ -76,14 +61,12 @@
title = fileEntry.getTitle(); title = fileEntry.getTitle();
} }
%> %>
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Data"
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Data" value="<%= dateFormatDateTime.format(allegatoManuale.getCreateDate()) %>" /> value="<%= dateFormatDateTime.format(allegatoManuale.getCreateDate()) %>" />
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="File" value="<%= title %>" /> <liferay-ui:search-container-column-text cssClass="text-nowrap" name="File" value="<%= title %>" />
<liferay-ui:search-container-column-text property="descrizione" cssClass="text-nowrap" name="Descrizione"/> <liferay-ui:search-container-column-text property="descrizione" cssClass="text-nowrap" name="Descrizione"/>
<liferay-ui:search-container-column-text name="actions" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="actions" cssClass="text-nowrap">
<liferay-ui:icon-menu icon="" showExpanded="false" showWhenSingleIcon="false">
<liferay-ui:icon-menu icon="" showExpanded="<%=false %>" showWhenSingleIcon="<%=false%>">
<% <%
if (Validator.isNotNull(allegatoManuale.getFileEntryId())) { if (Validator.isNotNull(allegatoManuale.getFileEntryId())) {
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId());
@ -102,7 +85,6 @@
<li title="Scarica" id="tooltip-info"> <li title="Scarica" id="tooltip-info">
<liferay-ui:icon message="Download" id='<%=renderResponse.getNamespace()+"download_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-download" url="<%=downloadUrl%>"/> <liferay-ui:icon message="Download" id='<%=renderResponse.getNamespace()+"download_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-download" url="<%=downloadUrl%>"/>
</li> </li>
<% <%
Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId()); Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId());
%> %>
@ -111,9 +93,8 @@
<liferay-portlet:actionURL var="deleteUrl" name="deleteAllegatoManuale"> <liferay-portlet:actionURL var="deleteUrl" name="deleteAllegatoManuale">
<liferay-portlet:param name="allegatoManualeId" value="<%=String.valueOf(allegatoManuale.getAllegatoManualeId())%>" /> <liferay-portlet:param name="allegatoManualeId" value="<%=String.valueOf(allegatoManuale.getAllegatoManualeId())%>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<liferay-ui:icon message="delete" id='<%= "delete_" + allegatoManuale.getAllegatoManualeId() %>'
<liferay-ui:icon message="delete" iconCssClass="fa fa-trash" url="javascript:void(0)"/>
id='<%="delete_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-trash" url="javascript:void(0)"/>
<aui:script use="aui-base,aui-io-request"> <aui:script use="aui-base,aui-io-request">
A.one('<%="#"+renderResponse.getNamespace()+"delete_"+allegatoManuale.getAllegatoManualeId() %>').on( A.one('<%="#"+renderResponse.getNamespace()+"delete_"+allegatoManuale.getAllegatoManualeId() %>').on(
'click', 'click',
@ -142,8 +123,8 @@
} else if (Validator.isNull(allegatoManuale.getFileEntryId()) && Validator.isNotNull(allegatoManuale.getOldFileEntryId())) { } else if (Validator.isNull(allegatoManuale.getFileEntryId()) && Validator.isNotNull(allegatoManuale.getOldFileEntryId())) {
%> %>
<liferay-util:include page="/html/common/import_window.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/common/import_window.jsp" servletContext="<%= application %>" >
<liferay-util:param name="classPk" value="<%= String.valueOf(allegatoManuale.getAllegatoManualeId()) %>"></liferay-util:param> <liferay-util:param name="classPk" value="<%= String.valueOf(allegatoManuale.getAllegatoManualeId()) %>" />
<liferay-util:param name="className" value="<%= AllegatoManuale.class.getName() %>"></liferay-util:param> <liferay-util:param name="className" value="<%= AllegatoManuale.class.getName() %>" />
<liferay-util:param name="message" value="Download"></liferay-util:param> <liferay-util:param name="message" value="Download"></liferay-util:param>
</liferay-util:include> </liferay-util:include>
<% <%
@ -151,35 +132,28 @@
%> %>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</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>
<aui:script use="aui-base"> <aui:script use="aui-base">
Liferay.fire('allegati_manuali-ready'); Liferay.fire('allegati_manuali-ready');
</aui:script> </aui:script>
<script>
<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>
</c:if> </c:if>
<c:if test="<%= user.getUserId() != intPratica.getUserId() && !IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.AVVISI_MANUALI) %>"> <c:if test="<%= user.getUserId() != intPratica.getUserId() && !IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.AVVISI_MANUALI) %>">

83
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp

@ -1,41 +1,14 @@
<%@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.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil"%>
<%@page import="java.text.DateFormat"%>
<%@page import="javax.swing.text.html.parser.DocumentParser"%>
<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Comparator"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> <%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="java.io.Serializable"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.LinkedHashMap"%>
<%@page import="java.util.Map.Entry"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" /> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" />
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati" /></h2>
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati"></liferay-ui:message></h2>
<% <%
String comingFrom = ParamUtil.getString(request,"comingFrom", String comingFrom = ParamUtil.getString(request, "comingFrom", GetterUtil.getString(
GetterUtil.getString( PortalUtil.getOriginalServletRequest(request).getParameter("page_allegati"), "page_allegati"));
PortalUtil.getOriginalServletRequest(request).getParameter("page_allegati"),
"page_allegati")
);
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
if (dettPratica == null) { if (dettPratica == null) {
@ -47,29 +20,25 @@
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
%> %>
<liferay-portlet:resourceURL var="downloadAllURL" id="downloadAllDocPratica"> <liferay-portlet:resourceURL var="downloadAllURL" id="downloadAllDocPratica">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" />
<liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" /> <liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
<liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" /> <liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<div class="container_btn_all_allegati padding_bottom"> <div class="container_btn_all_allegati padding_bottom">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar"> <liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar">
<span class="tooltip-info" title="Download Allegati"> <span class="tooltip-info" title="Download Allegati">
<aui:button id='<%=renderResponse.getNamespace()+"download_all"%>' <aui:button id='<%= renderResponse.getNamespace() + "download_all" %>' icon="fa fa-download"
icon="fa fa-download" cssClass="btn btn-primary btn-action" cssClass="btn btn-primary btn-action" href="<%= downloadAllURL %>" />
href="<%= downloadAllURL %>"
/>
</span> </span>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</div> </div>
<% <%
List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda();
for (String codiceDoc : tipologiaAllegati) { for (String codiceDoc : tipologiaAllegati) {
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(), codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(),
codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
%> %>
<div class="panel-group allegato-group"> <div class="panel-group allegato-group">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -102,7 +71,8 @@
%> %>
<tr> <tr>
<td class="text-center"> <td class="text-center">
<span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ? "txt-green" : "txt-red" %>' style="color:red;"></span> <span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ? "txt-green" :
"txt-red" %>' style="color:red;"></span>
</td> </td>
<td> <td>
<%= docPratica.getFileName() %> <%= docPratica.getFileName() %>
@ -116,14 +86,16 @@
if (!firme.getFirmeDigitali().isEmpty()) { if (!firme.getFirmeDigitali().isEmpty()) {
title.append("Firma sul file:<ul>"); title.append("Firma sul file:<ul>");
for (FirmeDetail firma : firme.getFirmeDigitali()) { for (FirmeDetail firma : firme.getFirmeDigitali()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(
docPratica.getIntPraticaId(), firma.getCfFirmatario());
if (soggetti.size() > 0) { if (soggetti.size() > 0) {
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); title.append("<li>").append(soggetti.get(0).getNome()).append(StringPool.SPACE)
.append(soggetti.get(0).getCognome()).append("</li>");
} }
title.append("<li>"+firma.getCfFirmatario()); title.append("<li>").append(firma.getCfFirmatario());
cfCheck.add(firma.getCfFirmatario().trim()); cfCheck.add(firma.getCfFirmatario().trim());
if (Validator.isNotNull(firma.getDtFirma())) { if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); title.append(" del ").append(dateFormatDate.format(firma.getDtFirma()));
} }
title.append("</li>"); title.append("</li>");
} }
@ -132,13 +104,15 @@
if (!firme.getFirmeApplicativo().isEmpty()) { if (!firme.getFirmeApplicativo().isEmpty()) {
title.append("Firme da applicativo:<ul>"); title.append("Firme da applicativo:<ul>");
for (FirmeDetail firma : firme.getFirmeApplicativo()) { for (FirmeDetail firma : firme.getFirmeApplicativo()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(
docPratica.getIntPraticaId(), firma.getCfFirmatario());
if (soggetti.size() > 0 ){ if (soggetti.size() > 0 ){
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); title.append("<li>").append(soggetti.get(0).getNome()).append(StringPool.SPACE)
.append(soggetti.get(0).getCognome()).append("</li>");
} }
title.append("<li>"+firma.getCfFirmatario()); title.append("<li>").append(firma.getCfFirmatario());
if (Validator.isNotNull(firma.getDtFirma())) { if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); title.append(" del ").append(dateFormatDate.format(firma.getDtFirma()));
} }
title.append("</li>"); title.append("</li>");
} }
@ -147,7 +121,8 @@
} }
if (firme.numeroFirme() > 0) { if (firme.numeroFirme() > 0) {
%> %>
<span class="fa fa-check icon-asseverazioni tooltip-info" title="<%=title.toString() %>" style="color:green"> <span class="fa fa-check icon-asseverazioni tooltip-info" title="<%= title.toString() %>"
style="color:green">
<sub style="font-weight: bold"><%= firme.numeroFirme() %></sub> <sub style="font-weight: bold"><%= firme.numeroFirme() %></sub>
</span> </span>
<% <%
@ -231,19 +206,17 @@
<% <%
} }
%> %>
<script type="text/javascript"> <script>
YUI().use( YUI().use(
'aui-tooltip', 'aui-tooltip',
function(Y) { function(Y) {
new Y.TooltipDelegate( new Y.TooltipDelegate({
{
trigger: '.allegati-tipologia-table .tooltip-info', trigger: '.allegati-tipologia-table .tooltip-info',
position: 'top', position: 'top',
cssClass: 'tooltip-help', cssClass: 'tooltip-help',
html: true, html: true,
opacity: 1 opacity: 1
} });
);
} }
); );
</script> </script>

80
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp

@ -1,3 +1,4 @@
<%@page import="com.liferay.portal.model.User"%>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
@ -7,7 +8,6 @@
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" /> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" />
<h2 class="fasciolo_page_title"><liferay-ui:message key="page_asseverazioni"></liferay-ui:message></h2> <h2 class="fasciolo_page_title"><liferay-ui:message key="page_asseverazioni"></liferay-ui:message></h2>
@ -16,49 +16,48 @@
long dettPraticaId = dettPratica.getDettPraticaId(); long dettPraticaId = dettPratica.getDettPraticaId();
IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica");
long intPraticaId = intPratica.getIntPraticaId(); long intPraticaId = intPratica.getIntPraticaId();
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione",
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione", "asseverazioneId", "asc"); "asseverazioneId", "asc");
%> %>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12 fascicolo-avvisi-tab"> <div class="col-sm-12 col-md-12 fascicolo-avvisi-tab">
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" orderByType="desc"
<liferay-ui:search-container orderByCol="asseverazioneId">
emptyResultsMessage="no-entries-were-found"
orderByType="desc" orderByCol="asseverazioneId"
>
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%= AsseverazioneServiceUtil.findByIntPratica_InEsito(intPraticaId,new String[]{AsseverazioniUtil.STATO_ESEGUITA}, QueryUtil.ALL_POS, QueryUtil.ALL_POS, orderByComparator) %>" results="<%= AsseverazioneServiceUtil.findByIntPratica_InEsito(intPraticaId,
total="<%= total = AsseverazioneServiceUtil.countByIntPratica_InEsito(intPraticaId,new String[]{AsseverazioniUtil.STATO_ESEGUITA}) %>" new String[]{AsseverazioniUtil.STATO_ESEGUITA}, QueryUtil.ALL_POS,
> QueryUtil.ALL_POS, orderByComparator) %>"
total="<%= AsseverazioneServiceUtil.countByIntPratica_InEsito(intPraticaId,
new String[]{AsseverazioniUtil.STATO_ESEGUITA}) %>">
</liferay-ui:search-container-results> </liferay-ui:search-container-results>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Asseverazione"
<liferay-ui:search-container-row modelVar="asseverazione">
className="it.tref.liferay.portos.bo.model.Asseverazione"
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,
out.print("<div class ='alert alert-danger'> Non esistono soggetti nella pratica abbinato al codice fiscale </div>"); asseverazione.getCodiceFiscale()) == 0) {
if (intPratica.getUserName().equalsIgnoreCase(asseverazione.getCodiceFiscale())) {
User titolare = UserLocalServiceUtil.getUser(intPratica.getUserId());
out.print(titolare.getFirstName() + StringPool.SPACE + titolare.getLastName());
} else { } else {
if(UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), asseverazione.getCodiceFiscale())==null){ out.print("<div class='alert alert-danger'>Nella pratica non esistono soggetti abbinati 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.getValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale()); } else {
if (UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(),
asseverazione.getCodiceFiscale()) == null) {
out.print("<div class='alert alert-warn'>Non esistono utenti di portale abbinati al codice fiscale</div>");
}
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(
intPraticaId, asseverazione.getCodiceFiscale());
if (!soggetti.isEmpty()) { if (!soggetti.isEmpty()) {
out.print("<div>"+soggetti.get(0).getDescrizioneCompleta()+"</div>"); out.print("<div>"+soggetti.get(0).getDescrizioneCompleta()+"</div>");
} }
} }
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="tipologia" > <liferay-ui:search-container-column-text name="tipologia" >
<liferay-ui:message key='<%="label-asseverazione-tipologia-"+asseverazione.getTipologia() %>'></liferay-ui:message> <liferay-ui:message key='<%= "label-asseverazione-tipologia-" + asseverazione.getTipologia() %>' />
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Pratica" > <liferay-ui:search-container-column-text name="Pratica" >
<% <%
@ -67,42 +66,41 @@
%> %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<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:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="File" cssClass="text-center"> <liferay-ui:search-container-column-text name="File" cssClass="text-center">
<c:if test="<%=AsseverazioniUtil.STATO_ESEGUITA.equalsIgnoreCase(asseverazione.getEsito()) && Validator.isNotNull(asseverazione.getFileEntryId())%>"> <c:if test="<%= AsseverazioniUtil.STATO_ESEGUITA.equalsIgnoreCase(asseverazione.getEsito())
&& Validator.isNotNull(asseverazione.getFileEntryId()) %>">
<% <%
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(asseverazione.getFileEntryId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(asseverazione.getFileEntryId());
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(),
themeDisplay, "&download=true");
%> %>
<span class="tooltip-info" title="Download"> <span class="tooltip-info" title="Download">
<liferay-ui:icon id='<%=renderResponse.getNamespace()+"download_base_"+asseverazione.getAsseverazioneId() %>' linkCssClass="btn btn-primary btn-action" iconCssClass="fa fa-download" url="<%=downloadUrl%>"/> <liferay-ui:icon id='<%= renderResponse.getNamespace() + "download_base_" +
asseverazione.getAsseverazioneId() %>'
linkCssClass="btn btn-primary btn-action" iconCssClass="fa fa-download"
url="<%= downloadUrl %>"/>
</span> </span>
</c:if> </c:if>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
</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>
<script type="text/javascript"> <script>
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>

54
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp

@ -1,68 +1,36 @@
<%@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.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@ include file="/html/fascicolo/init.jsp" %> <%@ include file="/html/fascicolo/init.jsp" %>
<% <%
/* String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica",
String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; "page_soggetti", "page_allegati", "page_asseverazioni", "page_pagamenti", "page_andamento", "page_avvisi",
"page_storico_titolari", "page_versioning" };
String[] pageIntegrazioni = new String[] { "page_in_dettagli", "page_in_allegati", "page_in_soggetti" }; String[] pageIntegrazioni = new String[] { "page_in_dettagli", "page_in_allegati", "page_in_soggetti" };
String[] pageVarianti = new String[] { "page_va_dettagli", "page_va_allegati", "page_va_soggetti" }; String[] pageVarianti = new String[] { "page_va_dettagli", "page_va_allegati", "page_va_soggetti" };
String[] pageFineLavori = new String[] { "page_fl_dati","page_fl_allegati","page_fl_pagamenti"};
String[] pageCollaudi = new String[] { "page_co_dati","page_co_allegati","page_co_pagamenti"};
String[] pageComunicazioni = new String[] { "page_bo_fe", "page_doc_aggiuntiva", "page_allegati_manuali" }; String[] pageComunicazioni = new String[] { "page_bo_fe", "page_doc_aggiuntiva", "page_allegati_manuali" };
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { if (intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) {
pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_allegati_annullamento","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica",
"page_soggetti", "page_allegati", "page_allegati_annullamento", "page_asseverazioni", "page_pagamenti",
} "page_andamento", "page_avvisi", "page_storico_titolari", "page_versioning" };
String[][] categorySections = { pageRiepilogo,pageIntegrazioni,pageVarianti,pageFineLavori,pageCollaudi,pageComunicazioni};
String[] _CATEGORY_NAMES = { "cat_riepilogo","cat_integrazioni","cat_varianti","cat_fine_lavori","cat_collaudi","cat_comunicazioni"};
DettPratica dettPraticaLast = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId());
DettPratica dettPraticaLastData = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId());
request.setAttribute("bean.intPratica", intPratica);
request.setAttribute("bean.dettPratica.last", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()));
request.setAttribute("bean.dettPratica.lastData", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()));////TODO utilizzare getLastdByIntPraticaAndTipoPratica
*/
String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"};
String[] pageIntegrazioni = new String[] { "page_in_dettagli","page_in_allegati","page_in_soggetti"};
String[] pageVarianti = new String[] { "page_va_dettagli","page_va_allegati","page_va_soggetti"};
String[] pageComunicazioni = new String[] { "page_bo_fe","page_doc_aggiuntiva","page_allegati_manuali"};
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if(intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)){
pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_allegati_annullamento","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"};
} }
String[][] categorySections = { pageRiepilogo, pageIntegrazioni, pageVarianti, pageComunicazioni }; String[][] categorySections = { pageRiepilogo, pageIntegrazioni, pageVarianti, pageComunicazioni };
String[] _CATEGORY_NAMES = { "cat_riepilogo", "cat_integrazioni", "cat_varianti", "cat_comunicazioni" }; String[] _CATEGORY_NAMES = { "cat_riepilogo", "cat_integrazioni", "cat_varianti", "cat_comunicazioni" };
DettPratica dettPraticaLast = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); DettPratica dettPraticaLast = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId());
DettPratica dettPraticaLastData = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); DettPratica dettPraticaLastData = dettPraticaLast;
request.setAttribute("bean.intPratica", intPratica); request.setAttribute("bean.intPratica", intPratica);
request.setAttribute("bean.dettPratica.last", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId())); request.setAttribute("bean.dettPratica.last", dettPraticaLast);
request.setAttribute("bean.dettPratica.lastData", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId())); request.setAttribute("bean.dettPratica.lastData", dettPraticaLastData);
%> %>
<liferay-util:buffer var="htmlBottom"> <liferay-util:buffer var="htmlBottom">
<%@ include file="/html/fascicolo/html_bottom.jspf" %> <%@ include file="/html/fascicolo/html_bottom.jspf" %>
</liferay-util:buffer> </liferay-util:buffer>
<liferay-util:buffer var="htmlTop"> <liferay-util:buffer var="htmlTop">
<%@ include file="/html/fascicolo/html_top.jspf" %> <%@ include file="/html/fascicolo/html_top.jspf" %>
</liferay-util:buffer> </liferay-util:buffer>
<liferay-ui:form-navigator categoryNames="<%= _CATEGORY_NAMES %>" categorySections="<%= categorySections %>" formName="fm"
<liferay-ui:form-navigator jspPath="/html/fascicolo/navigator/" htmlBottom="<%= htmlBottom %>" showButtons="false" htmlTop="<%= htmlTop %>" />
categoryNames="<%= _CATEGORY_NAMES %>"
categorySections="<%= categorySections %>"
formName="fm"
jspPath="/html/fascicolo/navigator/"
htmlBottom="<%=htmlBottom%>"
showButtons="<%=false %>"
htmlTop="<%=htmlTop%>" />

95
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/advanced_search.jsp

@ -14,25 +14,21 @@
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@page import="org.apache.commons.lang.StringEscapeUtils"%> <%@page import="org.apache.commons.lang.StringEscapeUtils"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<% <%
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId());
%> %>
<liferay-ui:panel title="filters" defaultState="closed" <liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"
collapsible="<%= true %>" extended="<%= false %>" persistState="true">
persistState="<%= true %>">
<div class="container-fluid" style="padding: 15px;"> <div class="container-fluid" style="padding: 15px;">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:input type="text" name="numeroProgetto" label="Numero Progetto" /> <aui:input type="text" name="numeroProgetto" label="Numero Progetto" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:input type="text" name="protocollo" label="Protocollo" /> <aui:input type="text" name="protocollo" label="Protocollo" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:select name="tipoPratica" label="Tipo Pratica"> <aui:select name="tipoPratica" label="Tipo Pratica">
<aui:option value="-1">Seleziona il tipo di pratica</aui:option> <aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<aui:option value="01"> <aui:option value="01">
@ -44,12 +40,11 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
<aui:option value="03"> <aui:option value="03">
<liferay-ui:message key="sanatoria" /> <liferay-ui:message key="sanatoria" />
</aui:option> </aui:option>
<%-- ADT - BUG-11 Aggiunta filtro ricerca --%>
<!-- ADT - BUG-11 Aggiunta filtro ricerca -->
<aui:option value="sorteggio"><liferay-ui:message key="sorteggiata"/></aui:option> <aui:option value="sorteggio"><liferay-ui:message key="sorteggiata"/></aui:option>
</aui:select> </aui:select>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:select name="statoPratica" label="Stato Pratica"> <aui:select name="statoPratica" label="Stato Pratica">
<aui:option value="-1">Stato Pratica</aui:option> <aui:option value="-1">Stato Pratica</aui:option>
<aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"> <aui:option value="<%= StatoPraticaConstants.ANNULLATA %>">
@ -101,28 +96,27 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:input type="text" name="committente" label="Committente" /> <aui:input type="text" name="committente" label="Committente" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:input type="text" name="soggettiInterconnessi" <aui:input type="text" name="soggettiInterconnessi"
label="Soggetti Interconnessi" /> label="Soggetti Interconnessi" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<%--ADT BUG BO ID = 8 SEZIONE ATTIVITà --%> <%-- ADT BUG BO ID = 8 SEZIONE ATTIVITÀ --%>
<c:if test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>"> <c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<aui:select name="istruttore" label="Tecnico Istruttore"> <aui:select name="istruttore" label="Tecnico Istruttore">
<aui:option value="-1">Tutti</aui:option> <aui:option value="-1">Tutti</aui:option>
<% <%
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for(Organization org : organizationList) { for(Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore");
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(org.getGroupId(), role.getRoleId()); List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) { for (UserGroupRole userGroupRole : istruttori) {
if (tecniciIstruttori.isEmpty()) { if (tecniciIstruttori.isEmpty()) {
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);
} else { } else {
boolean isPresent = false; boolean isPresent = false;
for(UserGroupRole tecnico : tecniciIstruttori) { for(UserGroupRole tecnico : tecniciIstruttori) {
@ -134,7 +128,9 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
if(!isPresent){ if(!isPresent){
tecniciIstruttori.add(userGroupRole); tecniciIstruttori.add(userGroupRole);
} }
}}} }
}
}
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>();
for (UserGroupRole tecnico : tecniciIstruttori) { for (UserGroupRole tecnico : tecniciIstruttori) {
IstruttoreBean istruttore = new IstruttoreBean(); IstruttoreBean istruttore = new IstruttoreBean();
@ -144,48 +140,35 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
} }
Collections.sort(tecniciIstruttoriSorted); Collections.sort(tecniciIstruttoriSorted);
for (IstruttoreBean istruttore : tecniciIstruttoriSorted) { for (IstruttoreBean istruttore : tecniciIstruttoriSorted) {
%> %>
<aui:option value="<%= istruttore.getIdIstruttore() %>"><%= istruttore.getDenominazione() %></aui:option> <aui:option value="<%= istruttore.getIdIstruttore() %>"><%= istruttore.getDenominazione() %></aui:option>
<% <%
} }
%> %>
</aui:select> </aui:select>
</c:if> </c:if>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:field-wrapper label="Data richiesta da" <aui:field-wrapper label="Data richiesta da" inlineField="true">
inlineField="<%= true %>"> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:include page="/html/common/input_date_time.jsp"
servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaInizio" /> <liferay-util:param name="field" value="dataRichiestaInizio" />
</liferay-util:include> </liferay-util:include>
</aui:field-wrapper> </aui:field-wrapper>
<aui:field-wrapper label="a" inlineField="<%= true %>"> <aui:field-wrapper label="a" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaFine" /> <liferay-util:param name="field" value="dataRichiestaFine" />
</liferay-util:include> </liferay-util:include>
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
<div <div class="col-sm-12 col-md-3 add-new-project__ufficio">
class="col-sm-12 col-md-3 add-new-project__ufficio"> <c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<c:if
test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>">
<aui:select name="ufficio" label="Ufficio"> <aui:select name="ufficio" label="Ufficio">
<aui:option value="-1">Tutte</aui:option> <aui:option value="-1">Tutte</aui:option>
<% <%
for (Organization org : organizationList) { for (Organization org : organizationList) {
if (org.getParentOrganizationId() != 0) { if (org.getParentOrganizationId() != 0) {
%> %>
<aui:option value="<%= org.getGroupId() %>"><%= org.getName() %></aui:option> <aui:option value="<%= org.getGroupId() %>"><%= org.getName() %></aui:option>
<% <%
@ -199,8 +182,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
<% <%
String comuneSelect = ParamUtil.getString(renderRequest, "comune"); String comuneSelect = ParamUtil.getString(renderRequest, "comune");
%> %>
<aui:select name="comune" label="Comune"> <aui:select name="comune" label="Comune" />
</aui:select>
</div> </div>
<div class="col-sm-12 col-md-2"> <div class="col-sm-12 col-md-2">
<aui:select name="tipoProcedura" label="tipo-procedura"> <aui:select name="tipoProcedura" label="tipo-procedura">
@ -212,7 +194,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:select name="tipoAttivita" label="Tipo Attività"> <aui:select name="tipoAttivita" label="Tipo Attività">
<aui:option value="-1">Tutte</aui:option> <aui:option value="-1">Tutte</aui:option>
<aui:option value="Assegnazione">Assegnazione</aui:option> <aui:option value="Assegnazione">Assegnazione</aui:option>
@ -226,61 +208,55 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:select name="ordinaPer" label="Ordina Per"> <aui:select name="ordinaPer" label="Ordina Per">
<aui:option value="taskName">Nome Task</aui:option> <aui:option value="taskName">Nome Task</aui:option>
<aui:option selected="true" value="numeroProgetto">Numero Progetto</aui:option> <aui:option selected="true" value="numeroProgetto">Numero Progetto</aui:option>
<aui:option value="protocollo">Protocollo</aui:option> <aui:option value="protocollo">Protocollo</aui:option>
<aui:option value="createDate">Data Invio</aui:option> <aui:option value="createDate">Data Invio</aui:option>
<aui:option value="tipoPratica">Tipo Pratica</aui:option> <aui:option value="tipoPratica">Tipo Pratica</aui:option>
</aui:select> </aui:select>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:select name="ordinaTipo" label="Tipo Ordine"> <aui:select name="ordinaTipo" label="Tipo Ordine">
<aui:option selected="true" value="dec">Dec</aui:option> <aui:option selected="true" value="dec">Dec</aui:option>
<aui:option value="asc">Asc</aui:option> <aui:option value="asc">Asc</aui:option>
</aui:select> </aui:select>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<aui:button type="submit" value="search" /> <aui:button type="submit" value="search" />
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
<%--ADT BUG BO ID = 1 SEZIONE ATTIVITà --%> <%-- ADT BUG BO ID = 1 SEZIONE ATTIVITÀ --%>
<liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" /> <liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" />
<aui:script use="aui-io-request"> <aui:script use="aui-io-request">
$(".add-new-project__ufficio select").change(function() { $(".add-new-project__ufficio select").change(function() {
var comuni = ''; var comuni = '';
var val = $(this).val(); var val = $(this).val();
$(".add-new-project__comune select").empty(); $(".add-new-project__comune select").empty();
A.io.request( A.io.request(
'<%= getComuniURL %>', '<%= getComuniURL %>',
{ {
data: { data: {
<portlet:namespace />ufficioId: val <portlet:namespace />ufficioId: val
},dataType: 'json', },
dataType: 'json',
on: { on: {
success: function() { success: function() {
$(".add-new-project__comune select").empty(); $(".add-new-project__comune select").empty();
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); $(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
var response = this.get('responseData'); var response = this.get('responseData');
<%
<% String csParam = ParamUtil.getString(renderRequest, "comune"); String csParam = ParamUtil.getString(renderRequest, "comune");
String cs = "null"; String cs = "null";
if (csParam != null && !csParam.equals("")) { if (csParam != null && !csParam.equals("")) {
cs = csParam; cs = csParam;
} }
%> %>
var cs = <%= cs %>; var cs = <%= cs %>;
var checkIfExists = false; var checkIfExists = false;
for (index in response) { for (index in response) {
@ -299,7 +275,4 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
} }
); );
}).trigger("change"); }).trigger("change");
</aui:script> </aui:script>

75
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/action_button.jsp

@ -1,57 +1,35 @@
<%@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.util.WorkflowConstants"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%>
<%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%>
<%@page import="com.liferay.portal.model.Role"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskAssignee"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%>
<%@page import="com.liferay.portal.service.persistence.WorkflowInstanceLinkUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowDefinitionManagerUtil"%>
<%@page import="javax.portlet.PortletRequest"%>
<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.GroupConstants"%> <%@page import="com.liferay.portal.model.GroupConstants"%>
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%>
<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%>
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> <%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%> <%@page import="javax.portlet.PortletRequest"%>
<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.service.permission.PortletPermissionUtil"%>
<%@ include file="/html/gestioneattivita/init.jsp"%> <%@ include file="/html/gestioneattivita/init.jsp"%>
<% <%
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer");
SearchContainer searchContainer = (SearchContainer) request ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
.getAttribute("liferay-ui:search:searchContainer");
ResultRow row = (ResultRow) request
.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
IntPratica intPratica = (IntPratica) row.getObject(); IntPratica intPratica = (IntPratica) row.getObject();
List<ControlloPratica> controlliPratica = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); List<ControlloPratica> controlliPratica = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId());
ControlloPratica controlloPratica = null; ControlloPratica controlloPratica = null;
if(controlliPratica.size() > 0) if (controlliPratica.size() > 0 ) {
controlloPratica = controlliPratica.get(controlliPratica.size() - 1); controlloPratica = controlliPratica.get(controlliPratica.size() - 1);
}
Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL);
long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true); long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true);
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink(
controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),controlloPratica.getPrimaryKey()); controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),
controlloPratica.getPrimaryKey());
List<WorkflowTask> listaTask = null; List<WorkflowTask> listaTask = null;
if (workflowInstanceLink == null) { if (workflowInstanceLink == null) {
listaTask = new ArrayList<WorkflowTask>(); listaTask = new ArrayList<WorkflowTask>();
@ -59,51 +37,38 @@
listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null,
workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} }
%> %>
<liferay-ui:icon-menu icon="" showWhenSingleIcon="false" showExpanded="true" cssClass="menu_button_activity"> <liferay-ui:icon-menu icon="" showWhenSingleIcon="false" showExpanded="true" cssClass="menu_button_activity">
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-open-pratica") %>' class="tooltip-info"> <div title='<%= LanguageUtil.get(pageContext,"workflow-action-open-pratica") %>' class="tooltip-info">
<liferay-ui:icon iconCssClass="fa fa-folder-open" <liferay-ui:icon iconCssClass="fa fa-folder-open" linkCssClass="btn btn-action" target="_blank" message=""
linkCssClass="btn btn-action"
target="_blank"
message=""
url="<%= FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" /> url="<%= FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" />
</div> </div>
<c:if test="<%= !listaTask.isEmpty() %>"> <c:if test="<%= !listaTask.isEmpty() %>">
<% <%
PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid, PortletRequest.RENDER_PHASE); PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid,
workflowTaskURL.setParameter("struts_action", PortletRequest.RENDER_PHASE);
"/my_workflow_tasks/edit_workflow_task"); workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task");
workflowTaskURL.setParameter("workflowTaskId",String.valueOf(listaTask.get(0).getWorkflowTaskId())); workflowTaskURL.setParameter("workflowTaskId",String.valueOf(listaTask.get(0).getWorkflowTaskId()));
workflowTaskURL.setPortletMode(PortletMode.VIEW); workflowTaskURL.setPortletMode(PortletMode.VIEW);
workflowTaskURL.setWindowState(LiferayWindowState.POP_UP); workflowTaskURL.setWindowState(LiferayWindowState.POP_UP);
%> %>
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info"> <div title='<%= LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info">
<liferay-ui:icon useDialog="true" <liferay-ui:icon useDialog="true" iconCssClass="fa fa-list-ol" linkCssClass="btn btn-action" message=""
iconCssClass="fa fa-list-ol"
linkCssClass="btn btn-action"
message=""
url='<%= workflowTaskURL.toString() + "&controlPanelCategory=my" %>' /> url='<%= workflowTaskURL.toString() + "&controlPanelCategory=my" %>' />
</div> </div>
</c:if> </c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
<script>
<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>

74
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp

@ -1,12 +1,8 @@
<%@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.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Comparator"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.model.Organization"%> <%@page import="com.liferay.portal.model.Organization"%>
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<liferay-portlet:resourceURL id="exportCVS" var="exportCVS"> <liferay-portlet:resourceURL id="exportCVS" var="exportCVS">
<liferay-portlet:param name="numeroProgetto" value='<%= ParamUtil.getString(request, "numeroProgetto") %>'/> <liferay-portlet:param name="numeroProgetto" value='<%= ParamUtil.getString(request, "numeroProgetto") %>'/>
<liferay-portlet:param name="tipoPratica" value='<%= ParamUtil.getString(request, "tipoPratica") %>'/> <liferay-portlet:param name="tipoPratica" value='<%= ParamUtil.getString(request, "tipoPratica") %>'/>
@ -27,21 +23,18 @@
<liferay-portlet:param name="interventoMiglioramentoSismico" value='<%= ParamUtil.getString(request, "interventoMiglioramentoSismico") %>'/> <liferay-portlet:param name="interventoMiglioramentoSismico" value='<%= ParamUtil.getString(request, "interventoMiglioramentoSismico") %>'/>
<liferay-portlet:param name="interventoRiparazioneInterventoLocale" value='<%= ParamUtil.getString(request, "interventoRiparazioneInterventoLocale") %>'/> <liferay-portlet:param name="interventoRiparazioneInterventoLocale" value='<%= ParamUtil.getString(request, "interventoRiparazioneInterventoLocale") %>'/>
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<% <%
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId());
%> %>
<liferay-ui:panel title="filters" defaultState="closed" <liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"
collapsible="<%= true %>" extended="<%= false %>" persistState="<%= true %>"> persistState="true">
<div class="container-fluid" style="padding: 15px;"> <div class="container-fluid" style="padding: 15px;">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:input type="text" name="numeroProgetto" label="Numero Progetto"/> <aui:input type="text" name="numeroProgetto" label="Numero Progetto"/>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:select name="tipoPratica" label="Tipo Pratica"> <aui:select name="tipoPratica" label="Tipo Pratica">
<aui:option value="-1">Seleziona il tipo di pratica</aui:option> <aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<aui:option value="01"><liferay-ui:message key="deposito"/></aui:option> <aui:option value="01"><liferay-ui:message key="deposito"/></aui:option>
@ -49,7 +42,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
<aui:option value="03"><liferay-ui:message key="sanatoria"/></aui:option> <aui:option value="03"><liferay-ui:message key="sanatoria"/></aui:option>
</aui:select> </aui:select>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<aui:select name="statoPratica" label="Stato Pratica"> <aui:select name="statoPratica" label="Stato Pratica">
<aui:option value="-1">Stato Pratica</aui:option> <aui:option value="-1">Stato Pratica</aui:option>
<aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"><liferay-ui:message key="annullata"/></aui:option> <aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"><liferay-ui:message key="annullata"/></aui:option>
@ -69,19 +62,19 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:input type="text" name="committente" label="Committente"/> <aui:input type="text" name="committente" label="Committente"/>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:input type="text" name="direttoreLavori" label="Direttore Lavori"/> <aui:input type="text" name="direttoreLavori" label="Direttore Lavori"/>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi"/> <aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi"/>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 add-new-project__ufficio"> <div class="col-xs-12 col-md-2 add-new-project__ufficio">
<c:if test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>"> <c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<aui:select name="ufficio" label="Ufficio"> <aui:select name="ufficio" label="Ufficio">
<aui:option value="-1">Tutte</aui:option> <aui:option value="-1">Tutte</aui:option>
<% <%
@ -94,20 +87,19 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</aui:select> </aui:select>
</c:if> </c:if>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 add-new-project__comune"> <div class="col-xs-12 col-md-2 add-new-project__comune">
<% <%
String comuneSelect = ParamUtil.getString(renderRequest, "comune"); String comuneSelect = ParamUtil.getString(renderRequest, "comune");
%> %>
<aui:select name="comune" label="Comune"> <aui:select name="comune" label="Comune" />
</aui:select>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:field-wrapper label="Data assegnazione pratica da" inlineField="<%= true %>"> <aui:field-wrapper label="Data assegnazione pratica da" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaInizio" /> <liferay-util:param name="field" value="dataRichiestaInizio" />
</liferay-util:include> </liferay-util:include>
</aui:field-wrapper> </aui:field-wrapper>
<aui:field-wrapper label="a" inlineField="<%= true %>"> <aui:field-wrapper label="a" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaFine" /> <liferay-util:param name="field" value="dataRichiestaFine" />
</liferay-util:include> </liferay-util:include>
@ -115,7 +107,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<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-md-12">
<aui:column> <aui:column>
<span style="font-weight: bold;">Pratica Aperta : </span> <span style="font-weight: bold;">Pratica Aperta : </span>
<aui:input checked="true" inlineField="true" type="radio" name="praticaAperta" value="tutte" label="Tutte"/> <aui:input checked="true" inlineField="true" type="radio" name="praticaAperta" value="tutte" label="Tutte"/>
@ -125,7 +117,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<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-md-12">
<aui:column> <aui:column>
<span style="font-weight: bold;">Tipologia Intervento : </span> <span style="font-weight: bold;">Tipologia Intervento : </span>
<aui:input checked="true" inlineField="true" type="checkbox" name="interventoTutti" label="Tutti"/> <aui:input checked="true" inlineField="true" type="checkbox" name="interventoTutti" label="Tutti"/>
@ -137,18 +129,17 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:select name="ordinaPer" label="Ordina Per"> <aui:select name="ordinaPer" label="Ordina Per">
<aui:option value="taskName">Nome Task</aui:option> <aui:option value="taskName">Nome Task</aui:option>
<aui:option value="numeroProgetto">Numero Progetto</aui:option> <aui:option value="numeroProgetto">Numero Progetto</aui:option>
<aui:option selected="true" value="createDate">Data Invio</aui:option> <aui:option selected="true" value="createDate">Data Invio</aui:option>
<aui:option value="tipoPratica">Tipo Pratica</aui:option> <aui:option value="tipoPratica">Tipo Pratica</aui:option>
</aui:select> </aui:select>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:select name="ordinaTipo" label="Tipo Ordine"> <aui:select name="ordinaTipo" label="Tipo Ordine">
<aui:option selected="true" value="asc">Asc</aui:option> <aui:option selected="true" value="asc">Asc</aui:option>
<aui:option value="dec">Dec</aui:option> <aui:option value="dec">Dec</aui:option>
@ -157,41 +148,34 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div> </div>
</div> </div>
</div> </div>
<aui:button type="submit" value="search" /> <aui:button type="submit" value="search" />
<aui:button type="button" href="<%= exportCVS.toString() %>" value="export" /> <aui:button type="button" href="<%= exportCVS.toString() %>" value="export" />
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
<%-- ADT BUG-ID=16 Sezione Pratiche Assegnate --%> <%-- ADT BUG-ID=16 Sezione Pratiche Assegnate --%>
<liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" /> <liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" />
<aui:script use="aui-io-request"> <aui:script use="aui-io-request">
$(".add-new-project__ufficio select").change(function() { $(".add-new-project__ufficio select").change(function() {
var comuni = ''; var comuni = '';
var val = $(this).val(); var val = $(this).val();
$(".add-new-project__comune select").empty(); $(".add-new-project__comune select").empty();
A.io.request('<%= getComuniURL %>', {
A.io.request(
'<%= getComuniURL %>',
{
data: { data: {
<portlet:namespace />ufficioId: val <portlet:namespace />ufficioId: val
},dataType: 'json', },
dataType: 'json',
on: { on: {
success: function() { success: function() {
$(".add-new-project__comune select").empty(); $(".add-new-project__comune select").empty();
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); $(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
var response = this.get('responseData'); var response = this.get('responseData');
<%
<% String csParam = ParamUtil.getString(renderRequest, "comune"); String csParam = ParamUtil.getString(renderRequest, "comune");
String cs = "null"; String cs = "null";
if(csParam != null && !csParam.equals("")){ if (csParam != null && !csParam.equals(StringPool.BLANK)) {
cs = csParam; cs = csParam;
} }
%> %>
var cs = <%= cs %>; var cs = <%= cs %>;
var checkIfExists = false; var checkIfExists = false;
for (index in response) { for (index in response) {
@ -207,10 +191,6 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
} }
} }
} }
} });
);
}).trigger("change"); }).trigger("change");
</aui:script> </aui:script>

29
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/view.jsp

@ -1,50 +1,33 @@
<%@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.util.StringUtil"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="javax.portlet.PortletURL"%> <%@page import="javax.portlet.PortletURL"%>
<%@include file="/html/gestionefirme/init.jsp"%> <%@include file="/html/gestionefirme/init.jsp"%>
<% <%
PortletURL portletURL = renderResponse.createRenderURL(); PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("tabs1", tabs1 ); portletURL.setParameter("tabs1", tabs1 );
String[] tabs = StringUtil.split(tabNames);
%> %>
<div id="<portlet:namespace/>avvisiContainerId" class="container-fluid"> <div id="<portlet:namespace/>avvisiContainerId" class="container-fluid">
<liferay-ui:tabs names="<%= tabNames %>" url="<%= portletURL.toString() %>" />
<liferay-ui:tabs
names="<%= tabNames %>"
url="<%= portletURL.toString() %>"
/>
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<aui:button value="Aggiorna" id='<%= renderResponse.getNamespace() + "aggiorna" %>' icon="fa fa-refresh" type="button" <aui:button value="Aggiorna" id='<%= renderResponse.getNamespace() + "aggiorna" %>' icon="fa fa-refresh" type="button"
onclick="javascript:location.reload()" cssClass="btn btn-primary btn-action pull-right margin_10_0" /> onclick="javascript:location.reload()" cssClass="btn btn-primary btn-action pull-right margin_10_0" />
<%-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --%>
<!-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme -->
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL"> <liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL">
<liferay-portlet:param name="tabs1" value="<%= tabs1 %>" /> <liferay-portlet:param name="tabs1" value="<%= tabs1 %>" />
</liferay-portlet:resourceURL> </liferay-portlet:resourceURL>
<aui:button value="Esporta" id='<%= renderResponse.getNamespace() + "esporta" %>' icon="fa fa-floppy-o" type="button" <aui:button value="Esporta" id='<%= renderResponse.getNamespace() + "esporta" %>' icon="fa fa-floppy-o" type="button"
cssClass="btn btn-primary btn-action pull-left margin_10_0" href="<%= exportScadenzePraticheURL %>"/> cssClass="btn btn-primary btn-action pull-left margin_10_0" href="<%= exportScadenzePraticheURL %>"/>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
<br/> <br/>
<c:if test='<%= tabs1.equals(tabs[0]) %>'>
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[0]) %>'>
<jsp:include page='/html/gestionefirme/avvisi_da_firmare.jsp'/> <jsp:include page='/html/gestionefirme/avvisi_da_firmare.jsp'/>
</c:if> </c:if>
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[1]) %>'> <c:if test='<%= tabs1.equals(tabs[1]) %>'>
<jsp:include page='/html/gestionefirme/avvisi_da_firmare_altri.jsp'/> <jsp:include page='/html/gestionefirme/avvisi_da_firmare_altri.jsp'/>
</c:if> </c:if>
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[2]) %>'> <c:if test='<%= tabs1.equals(tabs[2]) %>'>
<jsp:include page='/html/gestionefirme/avvisi_firme.jsp' /> <jsp:include page='/html/gestionefirme/avvisi_firme.jsp' />
</c:if> </c:if>
</div> </div>

22
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

@ -23,19 +23,19 @@
<div class="row add-new-project__row"> <div class="row add-new-project__row">
<div class="col-xs-12 add-new-project__procedura"> <div class="col-xs-12 add-new-project__procedura">
<aui:field-wrapper label=""> <aui:field-wrapper label="">
<aui:input label="tipo_procedura_P0" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P0 %>" type="radio" value="<%= Constants.PROCEDURA_P0 %>" showRequiredLabel="true" disabled="true">
<aui:input label="tipo_procedura_P1" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P1 %>" type="radio" value="<%= Constants.PROCEDURA_P1 %>" showRequiredLabel="true" disabled="<%=true%>" >
<aui:validator name="required"></aui:validator> <aui:validator name="required"></aui:validator>
</aui:input> </aui:input>
<aui:input label="tipo_procedura_P2" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P2 %>" type="radio" value="<%= Constants.PROCEDURA_P2 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P1" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P1 %>" type="radio" value="<%= Constants.PROCEDURA_P1 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P3" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P3 %>" type="radio" value="<%= Constants.PROCEDURA_P3 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P2" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P2 %>" type="radio" value="<%= Constants.PROCEDURA_P2 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P4" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P4 %>" type="radio" value="<%= Constants.PROCEDURA_P4 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P3" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P3 %>" type="radio" value="<%= Constants.PROCEDURA_P3 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P5" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P5 %>" type="radio" value="<%= Constants.PROCEDURA_P5 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P4" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P4 %>" type="radio" value="<%= Constants.PROCEDURA_P4 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P6" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P6 %>" type="radio" value="<%= Constants.PROCEDURA_P6 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P5" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P5 %>" type="radio" value="<%= Constants.PROCEDURA_P5 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P7" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P7 %>" type="radio" value="<%= Constants.PROCEDURA_P7 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P6" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P6 %>" type="radio" value="<%= Constants.PROCEDURA_P6 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P8" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P8 %>" type="radio" value="<%= Constants.PROCEDURA_P8 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P7" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P7 %>" type="radio" value="<%= Constants.PROCEDURA_P7 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P9" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P9 %>" type="radio" value="<%= Constants.PROCEDURA_P9 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P8" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P8 %>" type="radio" value="<%= Constants.PROCEDURA_P8 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P10" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P10 %>" type="radio" value="<%= Constants.PROCEDURA_P10 %>" showRequiredLabel="true" disabled="<%=true%>" /> <aui:input label="tipo_procedura_P9" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P9 %>" type="radio" value="<%= Constants.PROCEDURA_P9 %>" showRequiredLabel="true" disabled="true" />
<aui:input label="tipo_procedura_P10" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P10 %>" type="radio" value="<%= Constants.PROCEDURA_P10 %>" showRequiredLabel="true" disabled="true" />
</aui:field-wrapper> </aui:field-wrapper>
</div> </div>
</div> </div>

Caricamento…
Annulla
Salva