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. 218
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp
  6. 351
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp
  7. 130
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp
  8. 68
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp
  9. 249
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/advanced_search.jsp
  10. 149
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/action_button.jsp
  11. 380
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp
  12. 45
      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
## ##

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

@ -6,180 +6,154 @@
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> <%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@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");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
long territorioGroupId = territorio.getGroupId();
%>
<c:if test="<%= user.getUserId() == intPratica.getUserId() || IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.AVVISI_MANUALI) %>">
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
long territorioGroupId = territorio.getGroupId();
%>
<c:if test="<%= user.getUserId() == intPratica.getUserId() || IntPraticaPermission.contains(permissionChecker,
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())) {
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId());
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());
%> %>
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(allegatoManuale.getFileEntryId()) %>" /> <liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(allegatoManuale.getFileEntryId()) %>" />
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" />
<liferay-portlet:param name="redirect" value='<%= currentURL+"#_1_WAR_portosboportlet_tab=_1_WAR_portosboportlet_page_allegati_manuali" %>'/> <liferay-portlet:param name="redirect" value='<%= currentURL+"#_1_WAR_portosboportlet_tab=_1_WAR_portosboportlet_page_allegati_manuali" %>'/>
</liferay-portlet:renderURL> </liferay-portlet:renderURL>
<li title="Visualizza" id="tooltip-info"> <li title="Visualizza" id="tooltip-info">
<liferay-ui:icon id='<%=renderResponse.getNamespace()+"open_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/> <liferay-ui:icon id='<%=renderResponse.getNamespace()+"open_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/>
</li> </li>
<% <%
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true");
%> %>
<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()); %>
%> <c:if test="<%= Validator.isNotNull(avviso) && Validator.isNotNull(avviso.getFileEntryIdInvio()) %>">
<c:if test="<%= Validator.isNotNull(avviso) && Validator.isNotNull(avviso.getFileEntryIdInvio()) %>"> <li title="Elimina" id="tooltip-info">
<li title="Elimina" id="tooltip-info"> <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() %>'
iconCssClass="fa fa-trash" url="javascript:void(0)"/>
<liferay-ui:icon message="delete" <aui:script use="aui-base,aui-io-request">
id='<%="delete_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-trash" url="javascript:void(0)"/>
<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',
function(event) { function(event) {
event.preventDefault(); event.preventDefault();
A.io.request( A.io.request(
'<%=deleteUrl%>', '<%=deleteUrl%>',
{ {
on: { on: {
failure: function() { failure: function() {
alert('impossibile rimuovere il documento!'); alert('impossibile rimuovere il documento!');
}, },
success: function(event, id, obj) { success: function(event, id, obj) {
window.parent.Liferay.fire('allegati_manuali-open'); window.parent.Liferay.fire('allegati_manuali-open');
Liferay.Portlet.refresh("#p_p_id<portlet:namespace/>"); Liferay.Portlet.refresh("#p_p_id<portlet:namespace/>");
}
} }
} }
); }
} );
); }
</aui:script> );
</aui:script>
</li> </li>
</c:if> </c:if>
<% <%
} 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>
<% <%
} }
%> %>
</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) %>">

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

@ -1,201 +1,176 @@
<%@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"%> <%@include file="/html/fascicolo/init.jsp"%>
<%@page import="javax.portlet.PortletURL"%> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%= application %>" />
<%@page import="java.util.LinkedHashMap"%> <h2 class="fasciolo_page_title"><liferay-ui:message key="page_allegati" /></h2>
<%@page import="java.util.Map.Entry"%>
<%@ include file="/html/fascicolo/init.jsp" %>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%=application %>"/>
<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"), DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
"page_allegati") HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
); if (dettPratica == null) {
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); if (dettPraticaId == 0) {
if(dettPratica==null){ dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId"));
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
if(dettPraticaId==0){
dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId"));
}
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
}
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">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar">
<div class="container_btn_all_allegati padding_bottom"> <span class="tooltip-info" title="Download Allegati">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > <aui:button id='<%= renderResponse.getNamespace() + "download_all" %>' icon="fa fa-download"
<span class="tooltip-info" title="Download Allegati"> cssClass="btn btn-primary btn-action" href="<%= downloadAllURL %>" />
<aui:button id='<%=renderResponse.getNamespace()+"download_all"%>' </span>
icon="fa fa-download" cssClass="btn btn-primary btn-action" </liferay-ui:icon-menu>
href="<%= downloadAllURL %>" </div>
/>
</span>
</liferay-ui:icon-menu>
</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"> <a class="collapse_a" data-toggle="collapse" href="#collapse<%= tipologiaAllegati.indexOf(codiceDoc) %>">
<a class="collapse_a" data-toggle="collapse" href="#collapse<%=tipologiaAllegati.indexOf(codiceDoc)%>"> <h4 class="panel-title allegato-group__title">
<h4 class="panel-title allegato-group__title"> <liferay-ui:message key='<%= "label-documenti-tipologia-" + codiceDoc %>'/>
<liferay-ui:message key='<%="label-documenti-tipologia-"+codiceDoc %>'/> </h4>
</h4> <span class='num_allegati <%= docPraticas.size() > 0 ? "green" : "red" %>'><%= docPraticas.size() %></span>
<span class='num_allegati <%= docPraticas.size()>0 ? "green" : "red" %>'><%=docPraticas.size()%></span> </a>
</a> </div>
</div> <div id="collapse<%= tipologiaAllegati.indexOf(codiceDoc) %>" class="panel-collapse collapse lfr-search-container">
<div id="collapse<%=tipologiaAllegati.indexOf(codiceDoc)%>" class="panel-collapse collapse lfr-search-container"> <%
<% if (!docPraticas.isEmpty()) {
if(!docPraticas.isEmpty()){
%> %>
<table class="table table-striped allegati-tipologia-table" id="<portlet:namespace/>allegati-table-<%= codiceDoc %>"> <table class="table table-striped allegati-tipologia-table" id="<portlet:namespace/>allegati-table-<%= codiceDoc %>">
<thead class="table-columns allegato-group__head"> <thead class="table-columns allegato-group__head">
<tr> <tr>
<th>STATO</th> <th>STATO</th>
<th>ALLEGATO</th> <th>ALLEGATO</th>
<th>FIRME</th> <th>FIRME</th>
<th>AGGIUNTO DA</th> <th>AGGIUNTO DA</th>
<th>INVALIDATO DA</th> <th>INVALIDATO DA</th>
<th class="text-center">AZIONI</th> <th class="text-center">AZIONI</th>
</tr> </tr>
</thead> </thead>
<tbody class="allegato-group__body"> <tbody class="allegato-group__body">
<% <%
for(DocPratica docPratica:docPraticas){ for (DocPratica docPratica : docPraticas) {
long docPraticaId = docPratica.getDocPraticaId(); long docPraticaId = docPratica.getDocPraticaId();
%> %>
<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" :
</td> "txt-red" %>' style="color:red;"></span>
<td> </td>
<%= docPratica.getFileName() %> <td>
</td> <%= docPratica.getFileName() %>
<td class="text-center"> </td>
<% <td class="text-center">
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); <%
StringBuilder title = new StringBuilder(); FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
if(firme.numeroFirme()>0){ StringBuilder title = new StringBuilder();
List<String> cfCheck = new ArrayList<String>(); if (firme.numeroFirme() > 0) {
if(!firme.getFirmeDigitali().isEmpty()){ List<String> cfCheck = new ArrayList<String>();
title.append("Firma sul file:<ul>"); if (!firme.getFirmeDigitali().isEmpty()) {
for(FirmeDetail firma: firme.getFirmeDigitali()){ title.append("Firma sul file:<ul>");
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); for (FirmeDetail firma : firme.getFirmeDigitali()) {
if (soggetti.size() > 0 ){ List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>"); docPratica.getIntPraticaId(), firma.getCfFirmatario());
if (soggetti.size() > 0) {
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>");
} }
title.append("</ul>"); title.append("</ul>");
} }
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>").append(firma.getCfFirmatario());
if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del ").append(dateFormatDate.format(firma.getDtFirma()));
} }
title.append("<li>"+firma.getCfFirmatario()); title.append("</li>");
if(Validator.isNotNull(firma.getDtFirma())){ }
title.append(" del "+dateFormatDate.format(firma.getDtFirma())); title.append("</ul>");
}
title.append("</li>");
}
title.append("</ul>");
}
}
if(firme.numeroFirme()>0){
%>
<span class="fa fa-check icon-asseverazioni tooltip-info" title="<%=title.toString() %>" style="color:green">
<sub style="font-weight: bold"><%=firme.numeroFirme() %></sub>
</span>
<%
}else{
%>
<span class="fa fa-close icon-asseverazioni tooltip-info" title="Non ci sono firme sul file" style="color:red"></span>
<%
} }
}
if (firme.numeroFirme() > 0) {
%> %>
</td> <span class="fa fa-check icon-asseverazioni tooltip-info" title="<%= title.toString() %>"
<td> style="color:green">
<% <sub style="font-weight: bold"><%= firme.numeroFirme() %></sub>
String description = StringPool.BLANK; </span>
<%
} else {
%>
<span class="fa fa-close icon-asseverazioni tooltip-info" title="Non ci sono firme sul file" style="color:red"></span>
<%
}
%>
</td>
<td>
<%
String description = StringPool.BLANK;
if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){ if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk());
if(adding!=null){ if(adding!=null){
//description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ; //description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ;
description = adding.getFullDescription(); description = adding.getFullDescription();
} }
}else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){ }else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk());
if(adding!=null){ if(adding!=null){
description = adding.getFullDescription() ; description = adding.getFullDescription() ;
} }
}else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){ }else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk());
if(adding!=null){ if(adding!=null){
description = adding.getFullDescription() ; description = adding.getFullDescription() ;
} }
} }
out.print(description); out.print(description);
%> %>
</td> </td>
<td> <td>
<% <%
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati //Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione());
if(removing != null){ if(removing != null){
%> %>
<%= removing.getFullDescription() %> <%= removing.getFullDescription() %>
<% <%
} }
%> %>
</td> </td>
<td class="text-center text-nowrap"> <td class="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId())%>"> <c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId())%>">
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" /> <liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" />
<liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" /> <liferay-portlet:param name="mvcPath" value="/html/common/preview_file_entry.jsp" />
@ -203,20 +178,20 @@
<liferay-ui:icon id='<%="open_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/> <liferay-ui:icon id='<%="open_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza" url="<%=previewURL%>" useDialog="true"/>
<liferay-ui:icon id='<%="download_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>" /> <liferay-ui:icon id='<%="download_"+docPraticaId %>' linkCssClass="btn btn-action" iconCssClass="fa fa-download" message="Download" url="<%=docPratica.getDownloadUrl(themeDisplay)%>" />
</c:if> </c:if>
<c:if test="<%= Validator.isNull(docPratica.getDlFileEntryId()) && Validator.isNotNull(docPratica.getOldDlFileEntryId()) %>"> <c:if test="<%= Validator.isNull(docPratica.getDlFileEntryId()) && Validator.isNotNull(docPratica.getOldDlFileEntryId()) %>">
<% <%
String classPk = String.valueOf(docPratica.getDocPraticaId()); String classPk = String.valueOf(docPratica.getDocPraticaId());
String className = DocPratica.class.getName(); String className = DocPratica.class.getName();
%> %>
<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="<%= classPk %>"></liferay-util:param> <liferay-util:param name="classPk" value="<%= classPk %>"></liferay-util:param>
<liferay-util:param name="className" value="<%= className %>"></liferay-util:param> <liferay-util:param name="className" value="<%= className %>"></liferay-util:param>
<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>
</c:if> </c:if>
</td> </td>
</tr> </tr>
<% <%
} }
%> %>
@ -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>

130
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,102 +8,99 @@
<%@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>
<% <%
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
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) {
}else{ if (intPratica.getUserName().equalsIgnoreCase(asseverazione.getCodiceFiscale())) {
if(UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), asseverazione.getCodiceFiscale())==null){ User titolare = UserLocalServiceUtil.getUser(intPratica.getUserId());
out.print("<div class='alert alert-warn'> Non esiste nessun utente di portale abbinato al codice fiscale</div>"); out.print(titolare.getFirstName() + StringPool.SPACE + titolare.getLastName());
} } else {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale()); out.print("<div class='alert alert-danger'>Nella pratica non esistono soggetti abbinati al codice fiscale</div>");
if(!soggetti.isEmpty()){
out.print("<div>"+soggetti.get(0).getDescrizioneCompleta()+"</div>");
}
} }
} 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()) {
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" >
<% <%
DettPratica rif = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); DettPratica rif = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId());
out.print(rif.getFullDescription()); out.print(rif.getFullDescription());
%> %>
</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>

68
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",
String[] pageIntegrazioni = new String[] { "page_in_dettagli","page_in_allegati","page_in_soggetti"}; "page_storico_titolari", "page_versioning" };
String[] pageVarianti = new String[] { "page_va_dettagli","page_va_allegati","page_va_soggetti"}; String[] pageIntegrazioni = new String[] { "page_in_dettagli", "page_in_allegati", "page_in_soggetti" };
String[] pageFineLavori = new String[] { "page_fl_dati","page_fl_allegati","page_fl_pagamenti"}; String[] pageVarianti = new String[] { "page_va_dettagli", "page_va_allegati", "page_va_soggetti" };
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[][] categorySections = { pageRiepilogo, pageIntegrazioni, pageVarianti, pageComunicazioni };
String[] _CATEGORY_NAMES = { "cat_riepilogo","cat_integrazioni","cat_varianti","cat_fine_lavori","cat_collaudi","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()));////TODO utilizzare getLastdByIntPraticaAndTipoPratica request.setAttribute("bean.dettPratica.lastData", dettPraticaLastData);
*/
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[] _CATEGORY_NAMES = { "cat_riepilogo","cat_integrazioni","cat_varianti","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()));
%> %>
<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%>" />

249
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,106 +96,93 @@ 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){ if (tecnico.getUserId() == userGroupRole.getUserId()) {
if(tecnico.getUserId() == userGroupRole.getUserId()){ isPresent = true;
isPresent = true; break;
break; }
} }
} if(!isPresent){
if(!isPresent){ tecniciIstruttori.add(userGroupRole);
tecniciIstruttori.add(userGroupRole); }
} }
}}} }
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); }
for(UserGroupRole tecnico : tecniciIstruttori){ List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>();
IstruttoreBean istruttore = new IstruttoreBean(); for (UserGroupRole tecnico : tecniciIstruttori) {
istruttore.setIdIstruttore(tecnico.getUserId()); IstruttoreBean istruttore = new IstruttoreBean();
istruttore.setDenominazione(tecnico.getUser().getFullName()); istruttore.setIdIstruttore(tecnico.getUserId());
tecniciIstruttoriSorted.add(istruttore); istruttore.setDenominazione(tecnico.getUser().getFullName());
} tecniciIstruttoriSorted.add(istruttore);
Collections.sort(tecniciIstruttoriSorted); }
for(IstruttoreBean istruttore : tecniciIstruttoriSorted){ Collections.sort(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>
<% <%
} }
} }
%> %>
</aui:select> </aui:select>
</c:if> </c:if>
</div> </div>
<div class="col-sm-12 col-md-3 add-new-project__comune"> <div class="col-sm-12 col-md-3 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-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,80 +208,71 @@ 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(
'<%= getComuniURL %>',
A.io.request( {
'<%= getComuniURL %>', data: {
{ <portlet:namespace />ufficioId: val
data: { },
<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 checkIfExists = false;
var cs = <%= cs %>; for (index in response) {
var checkIfExists = false; $(".add-new-project__comune select").append($('<option>').val(response[index].comuneId).text(response[index].descLong));
for( index in response ){ if (cs != 'null') {
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId).text(response[index].descLong)); if(response[index].comuneId == cs){
if(cs != 'null'){ checkIfExists = true;
if(response[index].comuneId == cs){
checkIfExists = true;
}
}
}
if(checkIfExists){
$(".add-new-project__comune select").val(cs);
} }
} }
} }
if (checkIfExists) {
$(".add-new-project__comune select").val(cs);
}
} }
); }
}).trigger("change"); }
);
}).trigger("change");
</aui:script>
</aui:script>

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

@ -1,109 +1,74 @@
<%@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"%> <%@ include file="/html/gestioneattivita/init.jsp"%>
<%@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" %>
<% <%
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer");
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
SearchContainer searchContainer = (SearchContainer) request IntPratica intPratica = (IntPratica) row.getObject();
.getAttribute("liferay-ui:search:searchContainer");
ResultRow row = (ResultRow) request
.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
IntPratica intPratica = (IntPratica) row.getObject();
List<ControlloPratica> controlliPratica = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId());
ControlloPratica controlloPratica = null;
if(controlliPratica.size() > 0)
controlloPratica = controlliPratica.get(controlliPratica.size()-1);
Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL);
long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true);
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink(
controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),controlloPratica.getPrimaryKey());
List<WorkflowTask> listaTask = null; List<ControlloPratica> controlliPratica = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId());
if (workflowInstanceLink == null) { ControlloPratica controlloPratica = null;
listaTask = new ArrayList<WorkflowTask>(); if (controlliPratica.size() > 0 ) {
} else { controlloPratica = controlliPratica.get(controlliPratica.size() - 1);
listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, }
workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL);
} long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true);
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink(
controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),
controlloPratica.getPrimaryKey());
List<WorkflowTask> listaTask = null;
if (workflowInstanceLink == null) {
listaTask = new ArrayList<WorkflowTask>();
} else {
listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), 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" url="<%= FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" />
target="_blank" </div>
message="" <c:if test="<%= !listaTask.isEmpty() %>">
url="<%=FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" /> <%
PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid,
PortletRequest.RENDER_PHASE);
workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task");
workflowTaskURL.setParameter("workflowTaskId",String.valueOf(listaTask.get(0).getWorkflowTaskId()));
workflowTaskURL.setPortletMode(PortletMode.VIEW);
workflowTaskURL.setWindowState(LiferayWindowState.POP_UP);
%>
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info">
<liferay-ui:icon useDialog="true" iconCssClass="fa fa-list-ol" linkCssClass="btn btn-action" message=""
url='<%= workflowTaskURL.toString() + "&controlPanelCategory=my" %>' />
</div> </div>
<c:if test="<%= !listaTask.isEmpty() %>"> </c:if>
<%
PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid, PortletRequest.RENDER_PHASE);
workflowTaskURL.setParameter("struts_action",
"/my_workflow_tasks/edit_workflow_task");
workflowTaskURL.setParameter("workflowTaskId",String.valueOf(listaTask.get(0).getWorkflowTaskId()));
workflowTaskURL.setPortletMode(PortletMode.VIEW);
workflowTaskURL.setWindowState(LiferayWindowState.POP_UP);
%>
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info">
<liferay-ui:icon useDialog="true"
iconCssClass="fa fa-list-ol"
linkCssClass="btn btn-action"
message=""
url='<%=workflowTaskURL.toString()+"&controlPanelCategory=my" %>' />
</div>
</c:if>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
<script>
YUI().use(
<script type="text/javascript"> 'aui-tooltip',
YUI().use( function (Y) {
'aui-tooltip', new Y.TooltipDelegate({
function(Y) { trigger: '.tooltip-info',
new Y.TooltipDelegate( position: 'top',
{ cssClass: 'tooltip-help',
trigger: '.tooltip-info', html: true,
position: 'top', opacity: 1
cssClass: 'tooltip-help', });
html: true, }
opacity: 1 );
}
);
}
);
</script> </script>

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

@ -1,216 +1,196 @@
<%@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") %>'/> <liferay-portlet:param name="statoPratica" value='<%= ParamUtil.getString(request, "statoPratica") %>'/>
<liferay-portlet:param name="statoPratica" value='<%=ParamUtil.getString(request, "statoPratica") %>'/> <liferay-portlet:param name="committente" value='<%= ParamUtil.getString(request, "committente") %>'/>
<liferay-portlet:param name="committente" value='<%=ParamUtil.getString(request, "committente") %>'/> <liferay-portlet:param name="soggettiInterconnessi" value='<%= ParamUtil.getString(request, "soggettiInterconnessi") %>'/>
<liferay-portlet:param name="soggettiInterconnessi" value='<%=ParamUtil.getString(request, "soggettiInterconnessi") %>'/> <liferay-portlet:param name="direttoreLavori" value='<%= ParamUtil.getString(request, "direttoreLavori") %>'/>
<liferay-portlet:param name="direttoreLavori" value='<%=ParamUtil.getString(request, "direttoreLavori") %>'/> <liferay-portlet:param name="dataRichiestaInizio" value='<%= ParamUtil.getString(request, "dataRichiestaInizio") %>'/>
<liferay-portlet:param name="dataRichiestaInizio" value='<%=ParamUtil.getString(request, "dataRichiestaInizio") %>'/> <liferay-portlet:param name="dataRichiestaFine" value='<%= ParamUtil.getString(request, "dataRichiestaFine") %>'/>
<liferay-portlet:param name="dataRichiestaFine" value='<%=ParamUtil.getString(request, "dataRichiestaFine") %>'/> <liferay-portlet:param name="ufficio" value='<%= ParamUtil.getString(request, "ufficio") %>'/>
<liferay-portlet:param name="ufficio" value='<%=ParamUtil.getString(request, "ufficio") %>'/> <liferay-portlet:param name="ordinaPer" value='<%= ParamUtil.getString(request, "ordinaPer") %>'/>
<liferay-portlet:param name="ordinaPer" value='<%=ParamUtil.getString(request, "ordinaPer") %>'/> <liferay-portlet:param name="ordinaTipo" value='<%= ParamUtil.getString(request, "ordinaTipo") %>'/>
<liferay-portlet:param name="ordinaTipo" value='<%=ParamUtil.getString(request, "ordinaTipo") %>'/> <liferay-portlet:param name="comune" value='<%= ParamUtil.getString(request, "comune") %>'/>
<liferay-portlet:param name="comune" value='<%=ParamUtil.getString(request, "comune") %>'/> <liferay-portlet:param name="praticaAperta" value='<%= ParamUtil.getString(request, "praticaAperta") %>'/>
<liferay-portlet:param name="praticaAperta" value='<%=ParamUtil.getString(request, "praticaAperta") %>'/> <liferay-portlet:param name="interventoTutti" value='<%= ParamUtil.getString(request, "interventoTutti") %>'/>
<liferay-portlet:param name="interventoTutti" value='<%=ParamUtil.getString(request, "interventoTutti") %>'/> <liferay-portlet:param name="interventoNuovaCostruzione" value='<%= ParamUtil.getString(request, "interventoNuovaCostruzione") %>'/>
<liferay-portlet:param name="interventoNuovaCostruzione" value='<%=ParamUtil.getString(request, "interventoNuovaCostruzione") %>'/> <liferay-portlet:param name="interventoAdeguamentoSismico" value='<%= ParamUtil.getString(request, "interventoAdeguamentoSismico") %>'/>
<liferay-portlet:param name="interventoAdeguamentoSismico" value='<%=ParamUtil.getString(request, "interventoAdeguamentoSismico") %>'/> <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" %>' collapsible="true" extended="false"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' persistState="true">
collapsible="<%= true %>" extended="<%= false %>" persistState="<%= true %>"> <div class="container-fluid" style="padding: 15px;">
<div class="row">
<div class="container-fluid" style="padding: 15px;"> <div class="col-xs-12 col-md-3">
<div class="row"> <aui:input type="text" name="numeroProgetto" label="Numero Progetto"/>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> </div>
<aui:input type="text" name="numeroProgetto" label="Numero Progetto"/> <div class="col-xs-12 col-md-3">
</div> <aui:select name="tipoPratica" label="Tipo Pratica">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<aui:select name="tipoPratica" label="Tipo Pratica"> <aui:option value="01"><liferay-ui:message key="deposito"/></aui:option>
<aui:option value="-1">Seleziona il tipo di pratica</aui:option> <aui:option value="02"><liferay-ui:message key="autorizzazione"/></aui:option>
<aui:option value="01"><liferay-ui:message key="deposito"/></aui:option> <aui:option value="03"><liferay-ui:message key="sanatoria"/></aui:option>
<aui:option value="02"><liferay-ui:message key="autorizzazione"/></aui:option> </aui:select>
<aui:option value="03"><liferay-ui:message key="sanatoria"/></aui:option> </div>
</aui:select> <div class="col-xs-12 col-md-3">
</div> <aui:select name="statoPratica" label="Stato Pratica">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <aui:option value="-1">Stato Pratica</aui:option>
<aui:select name="statoPratica" label="Stato Pratica"> <aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"><liferay-ui:message key="annullata"/></aui:option>
<aui:option value="-1">Stato Pratica</aui:option> <aui:option value="<%= StatoPraticaConstants.COLLAUDO %>"><liferay-ui:message key="collaudo"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"><liferay-ui:message key="annullata"/></aui:option> <aui:option value="<%= StatoPraticaConstants.CONFORME %>"><liferay-ui:message key="conforme"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.COLLAUDO %>"><liferay-ui:message key="collaudo"/></aui:option> <aui:option value="sospesa"><liferay-ui:message key="sospesa"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.CONFORME %>"><liferay-ui:message key="conforme"/></aui:option> <aui:option value="<%= StatoPraticaConstants.FINE_LAVORI %>"><liferay-ui:message key="fine lavori"/></aui:option>
<aui:option value="sospesa"><liferay-ui:message key="sospesa"/></aui:option> <aui:option value="<%= StatoPraticaConstants.COLLAUDO_PARZIALE %>"><liferay-ui:message key="collaudo parziale"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.FINE_LAVORI %>"><liferay-ui:message key="fine lavori"/></aui:option> <aui:option value="<%= StatoPraticaConstants.FINE_LAVORI_PARZIALE %>"><liferay-ui:message key="fine lavori parziali"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.COLLAUDO_PARZIALE %>"><liferay-ui:message key="collaudo parziale"/></aui:option> <aui:option value="VA"><liferay-ui:message key="variata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.FINE_LAVORI_PARZIALE %>"><liferay-ui:message key="fine lavori parziali"/></aui:option> <aui:option value="<%= StatoPraticaConstants.NON_CONFORME %>"><liferay-ui:message key="nonConforme"/></aui:option>
<aui:option value="VA"><liferay-ui:message key="variata"/></aui:option> <aui:option value="<%= StatoPraticaConstants.INTEGRAZIONE %>"><liferay-ui:message key="integrazione in corso"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.NON_CONFORME %>"><liferay-ui:message key="nonConforme"/></aui:option> <aui:option value="<%= StatoPraticaConstants.RIFIUTATA %>"><liferay-ui:message key="rifiutata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.INTEGRAZIONE %>"><liferay-ui:message key="integrazione in corso"/></aui:option> <aui:option value="<%= StatoPraticaConstants.SORTEGGIATA %>"><liferay-ui:message key="sorteggiata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.RIFIUTATA %>"><liferay-ui:message key="rifiutata"/></aui:option> <aui:option value="<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>"><liferay-ui:message key="sottoposta a parere"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.SORTEGGIATA %>"><liferay-ui:message key="sorteggiata"/></aui:option> </aui:select>
<aui:option value="<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>"><liferay-ui:message key="sottoposta a parere"/></aui:option> </div>
</aui:select> </div>
</div> <div class="row">
</div> <div class="col-xs-12 col-md-4">
<div class="row"> <aui:input type="text" name="committente" label="Committente"/>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> </div>
<aui:input type="text" name="committente" label="Committente"/> <div class="col-xs-12 col-md-4">
</div> <aui:input type="text" name="direttoreLavori" label="Direttore Lavori"/>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> </div>
<aui:input type="text" name="direttoreLavori" label="Direttore Lavori"/> <div class="col-xs-12 col-md-4">
</div> <aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi"/>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> </div>
<aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi"/> </div>
</div> <div class="row">
</div> <div class="col-xs-12 col-md-2 add-new-project__ufficio">
<div class="row"> <c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 add-new-project__ufficio"> <aui:select name="ufficio" label="Ufficio">
<c:if test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>"> <aui:option value="-1">Tutte</aui:option>
<aui:select name="ufficio" label="Ufficio"> <%
<aui:option value="-1">Tutte</aui:option> for (Organization org : organizationList) {
<% %>
for(Organization org : organizationList){ <aui:option value="<%= org.getGroupId() %>"><%= org.getName() %></aui:option>
%> <%
<aui:option value="<%=org.getGroupId() %>"><%=org.getName() %></aui:option> }
<% %>
} </aui:select>
%> </c:if>
</aui:select> </div>
</c:if> <div class="col-xs-12 col-md-2 add-new-project__comune">
</div> <%
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 add-new-project__comune"> String comuneSelect = ParamUtil.getString(renderRequest, "comune");
<% %>
String comuneSelect = ParamUtil.getString(renderRequest, "comune"); <aui:select name="comune" label="Comune" />
%> </div>
<aui:select name="comune" label="Comune"> <div class="col-xs-12 col-md-4">
</aui:select> <aui:field-wrapper label="Data assegnazione pratica da" inlineField="true">
</div> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <liferay-util:param name="field" value="dataRichiestaInizio" />
<aui:field-wrapper label="Data assegnazione pratica da" inlineField="<%= true %>"> </liferay-util:include>
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> </aui:field-wrapper>
<liferay-util:param name="field" value="dataRichiestaInizio" /> <aui:field-wrapper label="a" inlineField="true">
</liferay-util:include> <liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
</aui:field-wrapper> <liferay-util:param name="field" value="dataRichiestaFine" />
<aui:field-wrapper label="a" inlineField="<%= true %>"> </liferay-util:include>
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> </aui:field-wrapper>
<liferay-util:param name="field" value="dataRichiestaFine" /> </div>
</liferay-util:include> </div>
</aui:field-wrapper> <div class="row">
</div> <div class="col-xs-12 col-md-12">
</div> <aui:column>
<div class="row"> <span style="font-weight: bold;">Pratica Aperta : </span>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <aui:input checked="true" inlineField="true" type="radio" name="praticaAperta" value="tutte" label="Tutte"/>
<aui:column> <aui:input inlineField="true" type="radio" name="praticaAperta" value="aperta" label="Si"/>
<span style="font-weight: bold;">Pratica Aperta : </span> <aui:input inlineField="true" type="radio" name="praticaAperta" value="chiusa" label="No"/>
<aui:input checked="true" inlineField="true" type="radio" name="praticaAperta" value="tutte" label="Tutte"/> </aui:column>
<aui:input inlineField="true" type="radio" name="praticaAperta" value="aperta" label="Si"/> </div>
<aui:input inlineField="true" type="radio" name="praticaAperta" value="chiusa" label="No"/> </div>
</aui:column> <div class="row">
</div> <div class="col-xs-12 col-md-12">
</div> <aui:column>
<div class="row"> <span style="font-weight: bold;">Tipologia Intervento : </span>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <aui:input checked="true" inlineField="true" type="checkbox" name="interventoTutti" label="Tutti"/>
<aui:column> <aui:input inlineField="true" type="checkbox" name="interventoNuovaCostruzione" label="Nuova Costruzione"/>
<span style="font-weight: bold;">Tipologia Intervento : </span> <aui:input inlineField="true" type="checkbox" name="interventoAdeguamentoSismico" label="Adeguamento Sismico"/>
<aui:input checked="true" inlineField="true" type="checkbox" name="interventoTutti" label="Tutti"/> <aui:input inlineField="true" type="checkbox" name="interventoMiglioramentoSismico" label="Miglioramento Sismico"/>
<aui:input inlineField="true" type="checkbox" name="interventoNuovaCostruzione" label="Nuova Costruzione"/> <aui:input inlineField="true" type="checkbox" name="interventoRiparazioneInterventoLocale" label="Riparazione Intervento Locale"/>
<aui:input inlineField="true" type="checkbox" name="interventoAdeguamentoSismico" label="Adeguamento Sismico"/> </aui:column>
<aui:input inlineField="true" type="checkbox" name="interventoMiglioramentoSismico" label="Miglioramento Sismico"/> </div>
<aui:input inlineField="true" type="checkbox" name="interventoRiparazioneInterventoLocale" label="Riparazione Intervento Locale"/> </div>
</aui:column> <div class="row">
</div> <div class="col-xs-12 col-md-4">
</div> <div class="row">
<div class="row"> <div class="col-xs-12 col-md-6">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <aui:select name="ordinaPer" label="Ordina Per">
<div class="row"> <aui:option value="taskName">Nome Task</aui:option>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <aui:option value="numeroProgetto">Numero Progetto</aui:option>
<aui:select name="ordinaPer" label="Ordina Per"> <aui:option selected="true" value="createDate">Data Invio</aui:option>
<aui:option value="taskName">Nome Task</aui:option> <aui:option value="tipoPratica">Tipo Pratica</aui:option>
<aui:option value="numeroProgetto">Numero Progetto</aui:option> </aui:select>
<aui:option selected="true" value="createDate">Data Invio</aui:option> </div>
<aui:option value="tipoPratica">Tipo Pratica</aui:option> <div class="col-xs-12 col-md-6">
<aui:select name="ordinaTipo" label="Tipo Ordine">
</aui:select> <aui:option selected="true" value="asc">Asc</aui:option>
</div> <aui:option value="dec">Dec</aui:option>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> </aui:select>
<aui:select name="ordinaTipo" label="Tipo Ordine">
<aui:option selected="true" value="asc">Asc</aui:option>
<aui:option value="dec">Dec</aui:option>
</aui:select>
</div>
</div>
</div>
</div>
<aui:button type="submit" value="search" />
<aui:button type="button" href="<%=exportCVS.toString() %>" value="export" />
</div> </div>
</div>
</liferay-ui:panel> </div>
</div>
<aui:button type="submit" value="search" />
<aui:button type="button" href="<%= exportCVS.toString() %>" value="export" />
</div>
</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 %>', {
data: {
A.io.request( <portlet:namespace />ufficioId: val
'<%= getComuniURL %>', },
{ dataType: 'json',
data: { on: {
<portlet:namespace />ufficioId: val success: function() {
},dataType: 'json', $(".add-new-project__comune select").empty();
on: { $(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
success: function() { var response = this.get('responseData');
$(".add-new-project__comune select").empty(); <%
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); String csParam = ParamUtil.getString(renderRequest, "comune");
var response = this.get('responseData'); String cs = "null";
if (csParam != null && !csParam.equals(StringPool.BLANK)) {
<% String csParam = ParamUtil.getString(renderRequest, "comune"); cs = csParam;
String cs = "null"; }
if(csParam != null && !csParam.equals("")){ %>
cs = csParam; var cs = <%= cs %>;
} var checkIfExists = false;
%> for (index in response) {
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId).text(response[index].descLong));
var cs = <%= cs %>; if (cs != 'null') {
var checkIfExists = false; if (response[index].comuneId == cs) {
for( index in response ){ checkIfExists = true;
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId).text(response[index].descLong));
if(cs != 'null'){
if(response[index].comuneId == cs){
checkIfExists = true;
}
}
}
if(checkIfExists){
$(".add-new-project__comune select").val(cs);
}
} }
} }
} }
); if (checkIfExists) {
}).trigger("change"); $(".add-new-project__comune select").val(cs);
}
}
}
});
}).trigger("change");
</aui:script> </aui:script>

45
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 --%>
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL">
<!-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --> <liferay-portlet:param name="tabs1" value="<%= tabs1 %>" />
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL"> </liferay-portlet:resourceURL>
<liferay-portlet:param name="tabs1" value="<%= tabs1 %>" /> <aui:button value="Esporta" id='<%= renderResponse.getNamespace() + "esporta" %>' icon="fa fa-floppy-o" type="button"
</liferay-portlet:resourceURL> cssClass="btn btn-primary btn-action pull-left margin_10_0" href="<%= exportScadenzePraticheURL %>"/>
<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 %>"/>
</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