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. 212
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp
  6. 349
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp
  7. 128
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp
  8. 66
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp
  9. 247
      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.LinkedHashMap;
import java.util.Map;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
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.NON_AUTORIZZATA, "conf.geniocivile.avviso.template.id.non_autorizzata");
put(StatoPraticaConstants.INTEGRAZIONE, "conf.geniocivile.avviso.template.id.integrazione");
// put(StatoPraticaConstants.VIDIMATA,
// "label.admingeniocivile.avviso.tipoDocumento.vidimata");
put(StatoPraticaConstants.PREAVVISO_CONTRARIO,
"conf.geniocivile.avviso.template.id.preavvisocontrario");
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-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_P1 = 1) Autorizzazione per interventi su Beni Culturali mobili
tipo_procedura_P2 = 2) Autorizzazione per interventi su Beni Culturali immobili
tipo_procedura_P3 = 3) Verifica preventiva dell’interesse archeologico
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_P5 = 5) Autorizzazione per "Settori Speciali"
tipo_procedura_P6 = 6) Autorizzazione paesaggistica
tipo_procedura_P7 = 7) Autorizzazione paesaggistica per interventi di lieve entità
tipo_procedura_P8 = 8) Accertamento di compatibilità paesaggistica
tipo_procedura_P9 = 9) Condono Edilizio
tipo_procedura_P10 = 10) Certificazione di sussistenza vincoli
tipo_procedura_P0 = 1) Autorizzazione per interventi su Beni Culturali (D.Lgs. 42/2004 artt. 21, 31, 48, 49, 50)
tipo_procedura_P1 = 1.1) Interventi su Beni Culturali mobili
tipo_procedura_P2 = 1.2) Interventi su Beni Culturali immobili
tipo_procedura_P3 = 2) Verifica preventiva dell’interesse archeologico (D.Lgs. 25/2016, art. 25)
tipo_procedura_P4 = 3) Autorizzazione per interventi di edilizia su Beni Culturali (D.Lgs. 42/2004 artt. 21, 22)
tipo_procedura_P5 = 4) Autorizzazione paesaggistica per interventi e/o opere di grande impegno territoriale (D.Lgs. 42/2004 art. 146)
tipo_procedura_P6 = 5) Autorizzazione paesaggistica per opere il cui impatto è valutato mediante documentazione semplificata (D.Lgs. 42/2004 art. 146)
tipo_procedura_P7 = 6) Autorizzazione paesaggistica per interventi di lieve entità (L.R. 5/2019 artt. 3, 5)
tipo_procedura_P8 = 7) Accertamento di compatibilità paesaggistica (D.Lgs. 42/2004 art. 146, 167)
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 = 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
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.
*/
private static final Log _log = LogFactoryUtil.getLog(AvvisoLocalServiceImpl.class.getName());
private static final Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class);
@Override
@ -175,7 +173,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
break;
case TipoSoggettoUtil.PROGETTISTA:
if (Validator.isNull(ambitoProfessione)
|| ambitoProfessione.equalsIgnoreCase("ambitoProf-architettonico")
|| ambitoProfessione.equalsIgnoreCase("architettonico")
|| ambitoProfessione.equalsIgnoreCase("ambitoProf-altro")) {
file = "progettista_architettonico";
} 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.number=2906
build.date=1615278830398
build.number=2912
build.date=1615307426711
build.auto.upgrade=true
##

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

@ -6,144 +6,125 @@
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@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 dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
long intPraticaId = ParamUtil.getLong(request, "intPraticaId");
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
long territorioGroupId = territorio.getGroupId();
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) %>">
<c:if test="<%= user.getUserId() == intPratica.getUserId() || IntPraticaPermission.contains(permissionChecker,
territorioGroupId, ActionKeys.AVVISI_MANUALI) %>">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 fascicolo-allegato-manuale-tab">
<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="intPraticaId" value="<%=String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId) %>"/>
<liferay-portlet:param name="backURL" value="<%=currentURL %>"/>
<div class="col-sm-12 fascicolo-allegato-manuale-tab">
<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="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
<liferay-portlet:param name="dettPraticaId" value="<%= String.valueOf(dettPraticaId) %>" />
<liferay-portlet:param name="backURL" value="<%= currentURL %>"/>
</liferay-portlet:renderURL>
<div class="text-right">
<liferay-portlet:resourceURL var="downloadAllURL" id="downloadAll">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />
</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">
<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>
<c:if test="<%= AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId) > 0 %>">
<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>
</c:if>
</liferay-ui:icon-menu>
</div>
</div>
</div>
<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
results="<%=AllegatoManualeLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null) %>"
total="<%=AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId)%>"
>
results="<%= AllegatoManualeLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null) %>"
total="<%=AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId)%>">
</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;
if(Validator.isNotNull(allegatoManuale.getFileEntryId())){
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId());
title = fileEntry.getTitle();
}
String title = StringPool.BLANK;
if (Validator.isNotNull(allegatoManuale.getFileEntryId())) {
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId());
title = fileEntry.getTitle();
}
%>
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Data" value="<%= dateFormatDateTime.format(allegatoManuale.getCreateDate()) %>" />
<liferay-ui:search-container-column-text cssClass="text-nowrap" name="Data"
value="<%= dateFormatDateTime.format(allegatoManuale.getCreateDate()) %>" />
<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 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())){
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId());
if (Validator.isNotNull(allegatoManuale.getFileEntryId())) {
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId());
%>
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<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="redirect" value='<%= currentURL+"#_1_WAR_portosboportlet_tab=_1_WAR_portosboportlet_page_allegati_manuali" %>'/>
</liferay-portlet:renderURL>
<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"/>
</li>
<%
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true");
%>
<li title="Scarica" id="tooltip-info">
<liferay-ui:icon message="Download" id='<%=renderResponse.getNamespace()+"download_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-download" url="<%=downloadUrl%>"/>
</li>
<%
Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId());
%>
<c:if test="<%= Validator.isNotNull(avviso) && Validator.isNotNull(avviso.getFileEntryIdInvio()) %>">
<li title="Elimina" id="tooltip-info">
<liferay-portlet:actionURL var="deleteUrl" name="deleteAllegatoManuale">
<liferay-portlet:param name="allegatoManualeId" value="<%=String.valueOf(allegatoManuale.getAllegatoManualeId())%>" />
</liferay-portlet:actionURL>
<liferay-ui:icon message="delete"
id='<%="delete_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-trash" url="javascript:void(0)"/>
<aui:script use="aui-base,aui-io-request">
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<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="redirect" value='<%= currentURL+"#_1_WAR_portosboportlet_tab=_1_WAR_portosboportlet_page_allegati_manuali" %>'/>
</liferay-portlet:renderURL>
<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"/>
</li>
<%
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true");
%>
<li title="Scarica" id="tooltip-info">
<liferay-ui:icon message="Download" id='<%=renderResponse.getNamespace()+"download_"+allegatoManuale.getAllegatoManualeId() %>' iconCssClass="fa fa-download" url="<%=downloadUrl%>"/>
</li>
<%
Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId());
%>
<c:if test="<%= Validator.isNotNull(avviso) && Validator.isNotNull(avviso.getFileEntryIdInvio()) %>">
<li title="Elimina" id="tooltip-info">
<liferay-portlet:actionURL var="deleteUrl" name="deleteAllegatoManuale">
<liferay-portlet:param name="allegatoManualeId" value="<%=String.valueOf(allegatoManuale.getAllegatoManualeId())%>" />
</liferay-portlet:actionURL>
<liferay-ui:icon message="delete" 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(
'click',
function(event) {
event.preventDefault();
A.io.request(
'<%=deleteUrl%>',
{
on: {
failure: function() {
alert('impossibile rimuovere il documento!');
},
success: function(event, id, obj) {
window.parent.Liferay.fire('allegati_manuali-open');
Liferay.Portlet.refresh("#p_p_id<portlet:namespace/>");
}
'click',
function(event) {
event.preventDefault();
A.io.request(
'<%=deleteUrl%>',
{
on: {
failure: function() {
alert('impossibile rimuovere il documento!');
},
success: function(event, id, obj) {
window.parent.Liferay.fire('allegati_manuali-open');
Liferay.Portlet.refresh("#p_p_id<portlet:namespace/>");
}
}
);
}
);
}
);
}
);
</aui:script>
</li>
</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:param name="classPk" value="<%= String.valueOf(allegatoManuale.getAllegatoManualeId()) %>"></liferay-util:param>
<liferay-util:param name="className" value="<%= AllegatoManuale.class.getName() %>"></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 name="message" value="Download"></liferay-util:param>
</liferay-util:include>
<%
@ -151,35 +132,28 @@
%>
</liferay-ui:icon-menu>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
<aui:script use="aui-base">
Liferay.fire('allegati_manuali-ready');
</aui:script>
<script type="text/javascript">
<script>
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
});
}
);
</script>
</c:if>
<c:if test="<%= user.getUserId() != intPratica.getUserId() && !IntPraticaPermission.contains(permissionChecker, territorioGroupId, ActionKeys.AVVISI_MANUALI) %>">

349
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 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.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.io.Serializable"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.LinkedHashMap"%>
<%@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>
<%@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" /></h2>
<%
String comingFrom = ParamUtil.getString(request,"comingFrom",
GetterUtil.getString(
PortalUtil.getOriginalServletRequest(request).getParameter("page_allegati"),
"page_allegati")
);
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
if(dettPratica==null){
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
if(dettPraticaId==0){
dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId"));
}
dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
String comingFrom = ParamUtil.getString(request, "comingFrom", GetterUtil.getString(
PortalUtil.getOriginalServletRequest(request).getParameter("page_allegati"), "page_allegati"));
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData");
HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request);
if (dettPratica == null) {
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId");
if (dettPraticaId == 0) {
dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("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:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" />
<liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
<liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" />
</liferay-portlet:resourceURL>
<div class="container_btn_all_allegati padding_bottom">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<span class="tooltip-info" title="Download Allegati">
<aui:button id='<%=renderResponse.getNamespace()+"download_all"%>'
icon="fa fa-download" cssClass="btn btn-primary btn-action"
href="<%= downloadAllURL %>"
/>
</span>
</liferay-ui:icon-menu>
</div>
<liferay-portlet:resourceURL var="downloadAllURL" id="downloadAllDocPratica">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPratica.getIntPraticaId()) %>" />
<liferay-portlet:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
<liferay-portlet:param name="comingFrom" value="<%= comingFrom %>" />
</liferay-portlet:resourceURL>
<div class="container_btn_all_allegati padding_bottom">
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar">
<span class="tooltip-info" title="Download Allegati">
<aui:button id='<%= renderResponse.getNamespace() + "download_all" %>' icon="fa fa-download"
cssClass="btn btn-primary btn-action" href="<%= downloadAllURL %>" />
</span>
</liferay-ui:icon-menu>
</div>
<%
List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda();
for(String codiceDoc:tipologiaAllegati){
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(), codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<String> tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda();
for (String codiceDoc : tipologiaAllegati) {
List<DocPratica> docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(),
codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS);
%>
<div class="panel-group allegato-group">
<div class="panel panel-default">
<div class="panel-heading">
<a class="collapse_a" data-toggle="collapse" href="#collapse<%=tipologiaAllegati.indexOf(codiceDoc)%>">
<h4 class="panel-title allegato-group__title">
<liferay-ui:message key='<%="label-documenti-tipologia-"+codiceDoc %>'/>
</h4>
<span class='num_allegati <%= docPraticas.size()>0 ? "green" : "red" %>'><%=docPraticas.size()%></span>
</a>
</div>
<div id="collapse<%=tipologiaAllegati.indexOf(codiceDoc)%>" class="panel-collapse collapse lfr-search-container">
<%
if(!docPraticas.isEmpty()){
<div class="panel-group allegato-group">
<div class="panel panel-default">
<div class="panel-heading">
<a class="collapse_a" data-toggle="collapse" href="#collapse<%= tipologiaAllegati.indexOf(codiceDoc) %>">
<h4 class="panel-title allegato-group__title">
<liferay-ui:message key='<%= "label-documenti-tipologia-" + codiceDoc %>'/>
</h4>
<span class='num_allegati <%= docPraticas.size() > 0 ? "green" : "red" %>'><%= docPraticas.size() %></span>
</a>
</div>
<div id="collapse<%= tipologiaAllegati.indexOf(codiceDoc) %>" class="panel-collapse collapse lfr-search-container">
<%
if (!docPraticas.isEmpty()) {
%>
<table class="table table-striped allegati-tipologia-table" id="<portlet:namespace/>allegati-table-<%= codiceDoc %>">
<thead class="table-columns allegato-group__head">
<tr>
<thead class="table-columns allegato-group__head">
<tr>
<th>STATO</th>
<th>ALLEGATO</th>
<th>FIRME</th>
<th>AGGIUNTO DA</th>
<th>INVALIDATO DA</th>
<th class="text-center">AZIONI</th>
</tr>
</tr>
</thead>
<tbody class="allegato-group__body">
<%
for(DocPratica docPratica:docPraticas){
for (DocPratica docPratica : docPraticas) {
long docPraticaId = docPratica.getDocPraticaId();
%>
<tr>
<td class="text-center">
<span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ? "txt-green" : "txt-red" %>' style="color:red;"></span>
</td>
<td>
<%= docPratica.getFileName() %>
</td>
<td class="text-center">
<%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
StringBuilder title = new StringBuilder();
if(firme.numeroFirme()>0){
List<String> cfCheck = new ArrayList<String>();
if(!firme.getFirmeDigitali().isEmpty()){
title.append("Firma sul file:<ul>");
for(FirmeDetail firma: firme.getFirmeDigitali()){
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario());
if (soggetti.size() > 0 ){
title.append("<li>"+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"</li>");
<td class="text-center">
<span class='fa fa-circle <%= docPratica.getDettPraticaIdRimozione() == 0 ? "txt-green" :
"txt-red" %>' style="color:red;"></span>
</td>
<td>
<%= docPratica.getFileName() %>
</td>
<td class="text-center">
<%
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
StringBuilder title = new StringBuilder();
if (firme.numeroFirme() > 0) {
List<String> cfCheck = new ArrayList<String>();
if (!firme.getFirmeDigitali().isEmpty()) {
title.append("Firma sul file:<ul>");
for (FirmeDetail firma : firme.getFirmeDigitali()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(
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());
cfCheck.add(firma.getCfFirmatario().trim());
if(Validator.isNotNull(firma.getDtFirma())){
title.append(" del "+dateFormatDate.format(firma.getDtFirma()));
}
title.append("</li>");
}
title.append("</ul>");
}
if(!firme.getFirmeApplicativo().isEmpty()){
title.append("Firme da applicativo:<ul>");
for(FirmeDetail firma: firme.getFirmeApplicativo()){
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario());
title.append("<li>").append(firma.getCfFirmatario());
cfCheck.add(firma.getCfFirmatario().trim());
if (Validator.isNotNull(firma.getDtFirma())) {
title.append(" del ").append(dateFormatDate.format(firma.getDtFirma()));
}
title.append("</li>");
}
title.append("</ul>");
}
if (!firme.getFirmeApplicativo().isEmpty()) {
title.append("Firme da applicativo:<ul>");
for (FirmeDetail firma : firme.getFirmeApplicativo()) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(
docPratica.getIntPraticaId(), firma.getCfFirmatario());
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());
if(Validator.isNotNull(firma.getDtFirma())){
title.append(" del "+dateFormatDate.format(firma.getDtFirma()));
}
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>
<%
title.append("</li>");
}
title.append("</ul>");
}
}
if (firme.numeroFirme() > 0) {
%>
</td>
<td>
<%
String description = StringPool.BLANK;
<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>
<%
}
%>
</td>
<td>
<%
String description = StringPool.BLANK;
if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk());
if(adding!=null){
//description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ;
description = adding.getFullDescription();
}
}else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk());
if(adding!=null){
description = adding.getFullDescription() ;
}
}else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk());
if(adding!=null){
description = adding.getFullDescription() ;
}
}
if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){
DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk());
if(adding!=null){
//description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ;
description = adding.getFullDescription();
}
}else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){
FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk());
if(adding!=null){
description = adding.getFullDescription() ;
}
}else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){
Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk());
if(adding!=null){
description = adding.getFullDescription() ;
}
}
out.print(description);
%>
</td>
<td>
<%
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione());
if(removing != null){
%>
<%= removing.getFullDescription() %>
<%
}
%>
</td>
<td class="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId())%>">
out.print(description);
%>
</td>
<td>
<%
//Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati
DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione());
if(removing != null){
%>
<%= removing.getFullDescription() %>
<%
}
%>
</td>
<td class="text-center text-nowrap">
<c:if test="<%= Validator.isNotNull(docPratica.getDlFileEntryId())%>">
<liferay-portlet:renderURL var="previewURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="fileEntryId" value="<%= String.valueOf(docPratica.getDlFileEntryId()) %>" />
<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='<%="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()) %>">
<%
String classPk = String.valueOf(docPratica.getDocPraticaId());
String className = DocPratica.class.getName();
%>
%>
<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="className" value="<%= className %>"></liferay-util:param>
<liferay-util:param name="message" value="Download"></liferay-util:param>
</liferay-util:include>
</c:if>
</td>
</tr>
</td>
</tr>
<%
}
%>
@ -231,19 +206,17 @@
<%
}
%>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.allegati-tipologia-table .tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
<script>
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate({
trigger: '.allegati-tipologia-table .tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
});
}
);
</script>

128
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 import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
@ -7,102 +8,99 @@
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@ include file="/html/fascicolo/init.jsp" %>
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%=application %>"/>
<%@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_asseverazioni"></liferay-ui:message></h2>
<%
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
long dettPraticaId = dettPratica.getDettPraticaId();
IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica");
long intPraticaId = intPratica.getIntPraticaId();
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione", "asseverazioneId", "asc");
DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
long dettPraticaId = dettPratica.getDettPraticaId();
IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica");
long intPraticaId = intPratica.getIntPraticaId();
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione",
"asseverazioneId", "asc");
%>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 fascicolo-avvisi-tab">
<liferay-ui:search-container
emptyResultsMessage="no-entries-were-found"
orderByType="desc" orderByCol="asseverazioneId"
>
<liferay-ui:search-container emptyResultsMessage="no-entries-were-found" orderByType="desc"
orderByCol="asseverazioneId">
<liferay-ui:search-container-results
results="<%= AsseverazioneServiceUtil.findByIntPratica_InEsito(intPraticaId,new String[]{AsseverazioniUtil.STATO_ESEGUITA}, QueryUtil.ALL_POS, QueryUtil.ALL_POS, orderByComparator) %>"
total="<%= total = AsseverazioneServiceUtil.countByIntPratica_InEsito(intPraticaId,new String[]{AsseverazioniUtil.STATO_ESEGUITA}) %>"
>
results="<%= AsseverazioneServiceUtil.findByIntPratica_InEsito(intPraticaId,
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-row
className="it.tref.liferay.portos.bo.model.Asseverazione"
modelVar="asseverazione"
>
<liferay-ui:search-container-row className="it.tref.liferay.portos.bo.model.Asseverazione"
modelVar="asseverazione">
<liferay-ui:search-container-column-text name="persona" >
<%
if(SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale())==0){
out.print("<div class ='alert alert-danger'> Non esistono soggetti nella pratica abbinato al codice fiscale </div>");
}else{
if(UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), asseverazione.getCodiceFiscale())==null){
out.print("<div class='alert alert-warn'> Non esiste nessun utente di portale abbinato al codice fiscale</div>");
}
List<Soggetto> soggetti = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale());
if(!soggetti.isEmpty()){
out.print("<div>"+soggetti.get(0).getDescrizioneCompleta()+"</div>");
}
if (SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(intPraticaId,
asseverazione.getCodiceFiscale()) == 0) {
if (intPratica.getUserName().equalsIgnoreCase(asseverazione.getCodiceFiscale())) {
User titolare = UserLocalServiceUtil.getUser(intPratica.getUserId());
out.print(titolare.getFirstName() + StringPool.SPACE + titolare.getLastName());
} else {
out.print("<div class='alert alert-danger'>Nella pratica non esistono soggetti abbinati al codice fiscale</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 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 name="Pratica" >
<%
DettPratica rif = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId());
out.print(rif.getFullDescription());
DettPratica rif = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId());
out.print(rif.getFullDescription());
%>
</liferay-ui:search-container-column-text>
<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 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());
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true");
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(asseverazione.getFileEntryId());
String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(),
themeDisplay, "&download=true");
%>
<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>
</c:if>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="<%= false %>" />
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</div>
</div>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
<script>
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
});
}
);
</script>

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

247
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="org.apache.commons.lang.StringEscapeUtils"%>
<%@include file="/html/fascicolo/init.jsp"%>
<%
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId());
%>
<liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>'
collapsible="<%= true %>" extended="<%= false %>"
persistState="<%= true %>">
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"
persistState="true">
<div class="container-fluid" style="padding: 15px;">
<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" />
</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" />
</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:option value="-1">Seleziona il tipo di pratica</aui:option>
<aui:option value="01">
@ -44,12 +40,11 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
<aui:option value="03">
<liferay-ui:message key="sanatoria" />
</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:select>
</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:option value="-1">Stato Pratica</aui:option>
<aui:option value="<%= StatoPraticaConstants.ANNULLATA %>">
@ -101,106 +96,93 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div>
</div>
<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" />
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="col-xs-12 col-md-4">
<aui:input type="text" name="soggettiInterconnessi"
label="Soggetti Interconnessi" />
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<%--ADT BUG BO ID = 8 SEZIONE ATTIVITà --%>
<c:if test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>">
<aui:select name="istruttore" label="Tecnico Istruttore">
<aui:option value="-1">Tutti</aui:option>
<%
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for(Organization org : organizationList){
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore");
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) {
if(tecniciIstruttori.isEmpty()){
tecniciIstruttori.add(userGroupRole);
} else {
boolean isPresent = false;
for(UserGroupRole tecnico : tecniciIstruttori){
if(tecnico.getUserId() == userGroupRole.getUserId()){
isPresent = true;
break;
}
}
if(!isPresent){
tecniciIstruttori.add(userGroupRole);
}
}}}
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>();
for(UserGroupRole tecnico : tecniciIstruttori){
IstruttoreBean istruttore = new IstruttoreBean();
istruttore.setIdIstruttore(tecnico.getUserId());
istruttore.setDenominazione(tecnico.getUser().getFullName());
tecniciIstruttoriSorted.add(istruttore);
}
Collections.sort(tecniciIstruttoriSorted);
for(IstruttoreBean istruttore : tecniciIstruttoriSorted){
%>
<aui:option value="<%=istruttore.getIdIstruttore() %>"><%=istruttore.getDenominazione() %></aui:option>
<div class="col-xs-12 col-md-4">
<%-- ADT BUG BO ID = 8 SEZIONE ATTIVITÀ --%>
<c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<aui:select name="istruttore" label="Tecnico Istruttore">
<aui:option value="-1">Tutti</aui:option>
<%
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>();
for(Organization org : organizationList) {
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore");
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(
org.getGroupId(), role.getRoleId());
for (UserGroupRole userGroupRole : istruttori) {
if (tecniciIstruttori.isEmpty()) {
tecniciIstruttori.add(userGroupRole);
} else {
boolean isPresent = false;
for(UserGroupRole tecnico : tecniciIstruttori) {
if (tecnico.getUserId() == userGroupRole.getUserId()) {
isPresent = true;
break;
}
}
if(!isPresent){
tecniciIstruttori.add(userGroupRole);
}
}
}
}
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>();
for (UserGroupRole tecnico : tecniciIstruttori) {
IstruttoreBean istruttore = new IstruttoreBean();
istruttore.setIdIstruttore(tecnico.getUserId());
istruttore.setDenominazione(tecnico.getUser().getFullName());
tecniciIstruttoriSorted.add(istruttore);
}
Collections.sort(tecniciIstruttoriSorted);
for (IstruttoreBean istruttore : tecniciIstruttoriSorted) {
%>
<aui:option value="<%= istruttore.getIdIstruttore() %>"><%= istruttore.getDenominazione() %></aui:option>
<%
}
%>
}
%>
</aui:select>
</c:if>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<aui:field-wrapper label="Data richiesta da"
inlineField="<%= true %>">
<liferay-util:include page="/html/common/input_date_time.jsp"
servletContext="<%= application %>">
<div class="col-xs-12 col-md-4">
<aui:field-wrapper label="Data richiesta da" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaInizio" />
</liferay-util:include>
</aui:field-wrapper>
<aui:field-wrapper label="a" inlineField="<%= true %>">
<liferay-util:include page="/html/common/input_date_time.jsp"
servletContext="<%= application %>">
<aui:field-wrapper label="a" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaFine" />
</liferay-util:include>
</aui:field-wrapper>
</div>
<div
class="col-sm-12 col-md-3 add-new-project__ufficio">
<c:if
test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>">
<div class="col-sm-12 col-md-3 add-new-project__ufficio">
<c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<aui:select name="ufficio" label="Ufficio">
<aui:option value="-1">Tutte</aui:option>
<%
for(Organization org : organizationList){
if(org.getParentOrganizationId()!= 0){
%>
<aui:option value="<%=org.getGroupId() %>"><%=org.getName() %></aui:option>
for (Organization org : organizationList) {
if (org.getParentOrganizationId() != 0) {
%>
<aui:option value="<%= org.getGroupId() %>"><%= org.getName() %></aui:option>
<%
}
}
%>
}
}
%>
</aui:select>
</c:if>
</div>
<div class="col-sm-12 col-md-3 add-new-project__comune">
<%
String comuneSelect = ParamUtil.getString(renderRequest, "comune");
%>
<aui:select name="comune" label="Comune">
</aui:select>
<%
String comuneSelect = ParamUtil.getString(renderRequest, "comune");
%>
<aui:select name="comune" label="Comune" />
</div>
<div class="col-sm-12 col-md-2">
<aui:select name="tipoProcedura" label="tipo-procedura">
@ -212,7 +194,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div>
</div>
<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:option value="-1">Tutte</aui:option>
<aui:option value="Assegnazione">Assegnazione</aui:option>
@ -226,80 +208,71 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani
</div>
</div>
<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="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:option value="taskName">Nome Task</aui:option>
<aui:option selected="true" value="numeroProgetto">Numero Progetto</aui:option>
<aui:option value="protocollo">Protocollo</aui:option>
<aui:option value="createDate">Data Invio</aui:option>
<aui:option value="tipoPratica">Tipo Pratica</aui:option>
</aui:select>
</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:option selected="true" value="dec">Dec</aui:option>
<aui:option value="asc">Asc</aui:option>
</aui:select>
</div>
</div>
</div>
</div>
<aui:button type="submit" value="search" />
</div>
</liferay-ui:panel>
<%--ADT BUG BO ID = 1 SEZIONE ATTIVITà --%>
<%-- ADT BUG BO ID = 1 SEZIONE ATTIVITÀ --%>
<liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" />
<aui:script use="aui-io-request">
$(".add-new-project__ufficio select").change(function(){
var comuni = '';
var val = $(this).val();
$(".add-new-project__comune select").empty();
A.io.request(
'<%= getComuniURL %>',
{
data: {
<portlet:namespace />ufficioId: val
},dataType: 'json',
on: {
success: function() {
$(".add-new-project__comune select").empty();
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
var response = this.get('responseData');
<% String csParam = ParamUtil.getString(renderRequest, "comune");
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));
if(cs != 'null'){
if(response[index].comuneId == cs){
checkIfExists = true;
}
}
}
if(checkIfExists){
$(".add-new-project__comune select").val(cs);
$(".add-new-project__ufficio select").change(function() {
var comuni = '';
var val = $(this).val();
$(".add-new-project__comune select").empty();
A.io.request(
'<%= getComuniURL %>',
{
data: {
<portlet:namespace />ufficioId: val
},
dataType: 'json',
on: {
success: function() {
$(".add-new-project__comune select").empty();
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
var response = this.get('responseData');
<%
String csParam = ParamUtil.getString(renderRequest, "comune");
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));
if (cs != 'null') {
if(response[index].comuneId == cs){
checkIfExists = true;
}
}
}
if (checkIfExists) {
$(".add-new-project__comune select").val(cs);
}
}
);
}).trigger("change");
}
}
);
}).trigger("change");
</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 import="it.tref.liferay.portos.bo.util.WorkflowConstants"%>
<%@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.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%>
<%@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.WorkflowInstanceLink"%>
<%@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="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%>
<%@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="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.service.permission.PortletPermissionUtil"%>
<%@ include file="/html/gestioneattivita/init.jsp" %>
<%@page import="javax.portlet.PortletRequest"%>
<%@ 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
.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);
IntPratica intPratica = (IntPratica) row.getObject();
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);
}
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;
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">
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-open-pratica") %>' class="tooltip-info">
<liferay-ui:icon iconCssClass="fa fa-folder-open"
linkCssClass="btn btn-action"
target="_blank"
message=""
url="<%=FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" />
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-open-pratica") %>' class="tooltip-info">
<liferay-ui:icon iconCssClass="fa fa-folder-open" linkCssClass="btn btn-action" target="_blank" message=""
url="<%= FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" />
</div>
<c:if test="<%= !listaTask.isEmpty() %>">
<%
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 test="<%= !listaTask.isEmpty() %>">
<%
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>
</c:if>
</liferay-ui:icon-menu>
<script type="text/javascript">
YUI().use(
'aui-tooltip',
function(Y) {
new Y.TooltipDelegate(
{
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
}
);
}
);
<script>
YUI().use(
'aui-tooltip',
function (Y) {
new Y.TooltipDelegate({
trigger: '.tooltip-info',
position: 'top',
cssClass: 'tooltip-help',
html: true,
opacity: 1
});
}
);
</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 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.service.OrganizationLocalServiceUtil"%>
<%@include file="/html/fascicolo/init.jsp" %>
<liferay-portlet:resourceURL id="exportCVS" var="exportCVS" >
<liferay-portlet:param name="numeroProgetto" value='<%=ParamUtil.getString(request, "numeroProgetto") %>'/>
<liferay-portlet:param name="tipoPratica" value='<%=ParamUtil.getString(request, "tipoPratica") %>'/>
<liferay-portlet:param name="statoPratica" value='<%=ParamUtil.getString(request, "statoPratica") %>'/>
<liferay-portlet:param name="committente" value='<%=ParamUtil.getString(request, "committente") %>'/>
<liferay-portlet:param name="soggettiInterconnessi" value='<%=ParamUtil.getString(request, "soggettiInterconnessi") %>'/>
<liferay-portlet:param name="direttoreLavori" value='<%=ParamUtil.getString(request, "direttoreLavori") %>'/>
<liferay-portlet:param name="dataRichiestaInizio" value='<%=ParamUtil.getString(request, "dataRichiestaInizio") %>'/>
<liferay-portlet:param name="dataRichiestaFine" value='<%=ParamUtil.getString(request, "dataRichiestaFine") %>'/>
<liferay-portlet:param name="ufficio" value='<%=ParamUtil.getString(request, "ufficio") %>'/>
<liferay-portlet:param name="ordinaPer" value='<%=ParamUtil.getString(request, "ordinaPer") %>'/>
<liferay-portlet:param name="ordinaTipo" value='<%=ParamUtil.getString(request, "ordinaTipo") %>'/>
<liferay-portlet:param name="comune" value='<%=ParamUtil.getString(request, "comune") %>'/>
<liferay-portlet:param name="praticaAperta" value='<%=ParamUtil.getString(request, "praticaAperta") %>'/>
<liferay-portlet:param name="interventoTutti" value='<%=ParamUtil.getString(request, "interventoTutti") %>'/>
<liferay-portlet:param name="interventoNuovaCostruzione" value='<%=ParamUtil.getString(request, "interventoNuovaCostruzione") %>'/>
<liferay-portlet:param name="interventoAdeguamentoSismico" value='<%=ParamUtil.getString(request, "interventoAdeguamentoSismico") %>'/>
<liferay-portlet:param name="interventoMiglioramentoSismico" value='<%=ParamUtil.getString(request, "interventoMiglioramentoSismico") %>'/>
<liferay-portlet:param name="interventoRiparazioneInterventoLocale" value='<%=ParamUtil.getString(request, "interventoRiparazioneInterventoLocale") %>'/>
<%@include file="/html/fascicolo/init.jsp"%>
<liferay-portlet:resourceURL id="exportCVS" var="exportCVS">
<liferay-portlet:param name="numeroProgetto" value='<%= ParamUtil.getString(request, "numeroProgetto") %>'/>
<liferay-portlet:param name="tipoPratica" value='<%= ParamUtil.getString(request, "tipoPratica") %>'/>
<liferay-portlet:param name="statoPratica" value='<%= ParamUtil.getString(request, "statoPratica") %>'/>
<liferay-portlet:param name="committente" value='<%= ParamUtil.getString(request, "committente") %>'/>
<liferay-portlet:param name="soggettiInterconnessi" value='<%= ParamUtil.getString(request, "soggettiInterconnessi") %>'/>
<liferay-portlet:param name="direttoreLavori" value='<%= ParamUtil.getString(request, "direttoreLavori") %>'/>
<liferay-portlet:param name="dataRichiestaInizio" value='<%= ParamUtil.getString(request, "dataRichiestaInizio") %>'/>
<liferay-portlet:param name="dataRichiestaFine" value='<%= ParamUtil.getString(request, "dataRichiestaFine") %>'/>
<liferay-portlet:param name="ufficio" value='<%= ParamUtil.getString(request, "ufficio") %>'/>
<liferay-portlet:param name="ordinaPer" value='<%= ParamUtil.getString(request, "ordinaPer") %>'/>
<liferay-portlet:param name="ordinaTipo" value='<%= ParamUtil.getString(request, "ordinaTipo") %>'/>
<liferay-portlet:param name="comune" value='<%= ParamUtil.getString(request, "comune") %>'/>
<liferay-portlet:param name="praticaAperta" value='<%= ParamUtil.getString(request, "praticaAperta") %>'/>
<liferay-portlet:param name="interventoTutti" value='<%= ParamUtil.getString(request, "interventoTutti") %>'/>
<liferay-portlet:param name="interventoNuovaCostruzione" value='<%= ParamUtil.getString(request, "interventoNuovaCostruzione") %>'/>
<liferay-portlet:param name="interventoAdeguamentoSismico" value='<%= ParamUtil.getString(request, "interventoAdeguamentoSismico") %>'/>
<liferay-portlet:param name="interventoMiglioramentoSismico" value='<%= ParamUtil.getString(request, "interventoMiglioramentoSismico") %>'/>
<liferay-portlet:param name="interventoRiparazioneInterventoLocale" value='<%= ParamUtil.getString(request, "interventoRiparazioneInterventoLocale") %>'/>
</liferay-portlet:resourceURL>
<%
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId());
%>
<liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>'
collapsible="<%= true %>" extended="<%= false %>" persistState="<%= true %>">
<div class="container-fluid" style="padding: 15px;">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<aui:input type="text" name="numeroProgetto" label="Numero Progetto"/>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<aui:select name="tipoPratica" label="Tipo Pratica">
<aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<aui:option value="01"><liferay-ui:message key="deposito"/></aui:option>
<aui:option value="02"><liferay-ui:message key="autorizzazione"/></aui:option>
<aui:option value="03"><liferay-ui:message key="sanatoria"/></aui:option>
</aui:select>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<aui:select name="statoPratica" label="Stato Pratica">
<aui:option value="-1">Stato Pratica</aui:option>
<aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"><liferay-ui:message key="annullata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.COLLAUDO %>"><liferay-ui:message key="collaudo"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.CONFORME %>"><liferay-ui:message key="conforme"/></aui:option>
<aui:option value="sospesa"><liferay-ui:message key="sospesa"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.FINE_LAVORI %>"><liferay-ui:message key="fine lavori"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.COLLAUDO_PARZIALE %>"><liferay-ui:message key="collaudo parziale"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.FINE_LAVORI_PARZIALE %>"><liferay-ui:message key="fine lavori parziali"/></aui:option>
<aui:option value="VA"><liferay-ui:message key="variata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.NON_CONFORME %>"><liferay-ui:message key="nonConforme"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.INTEGRAZIONE %>"><liferay-ui:message key="integrazione in corso"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.RIFIUTATA %>"><liferay-ui:message key="rifiutata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.SORTEGGIATA %>"><liferay-ui:message key="sorteggiata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>"><liferay-ui:message key="sottoposta a parere"/></aui:option>
</aui:select>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<aui:input type="text" name="committente" label="Committente"/>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<aui:input type="text" name="direttoreLavori" label="Direttore Lavori"/>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi"/>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 add-new-project__ufficio">
<c:if test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>">
<aui:select name="ufficio" label="Ufficio">
<aui:option value="-1">Tutte</aui:option>
<%
for(Organization org : organizationList){
%>
<aui:option value="<%=org.getGroupId() %>"><%=org.getName() %></aui:option>
<%
}
%>
</aui:select>
</c:if>
</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");
%>
<aui:select name="comune" label="Comune">
</aui:select>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<aui:field-wrapper label="Data assegnazione pratica da" inlineField="<%= true %>">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaInizio" />
</liferay-util:include>
</aui:field-wrapper>
<aui:field-wrapper label="a" inlineField="<%= true %>">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaFine" />
</liferay-util:include>
</aui:field-wrapper>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<aui:column>
<span style="font-weight: bold;">Pratica Aperta : </span>
<aui:input checked="true" inlineField="true" type="radio" name="praticaAperta" value="tutte" label="Tutte"/>
<aui:input inlineField="true" type="radio" name="praticaAperta" value="aperta" label="Si"/>
<aui:input inlineField="true" type="radio" name="praticaAperta" value="chiusa" label="No"/>
</aui:column>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<aui:column>
<span style="font-weight: bold;">Tipologia Intervento : </span>
<aui:input checked="true" inlineField="true" type="checkbox" name="interventoTutti" label="Tutti"/>
<aui:input inlineField="true" type="checkbox" name="interventoNuovaCostruzione" label="Nuova Costruzione"/>
<aui:input inlineField="true" type="checkbox" name="interventoAdeguamentoSismico" label="Adeguamento Sismico"/>
<aui:input inlineField="true" type="checkbox" name="interventoMiglioramentoSismico" label="Miglioramento Sismico"/>
<aui:input inlineField="true" type="checkbox" name="interventoRiparazioneInterventoLocale" label="Riparazione Intervento Locale"/>
</aui:column>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<aui:select name="ordinaPer" label="Ordina Per">
<aui:option value="taskName">Nome Task</aui:option>
<aui:option value="numeroProgetto">Numero Progetto</aui:option>
<aui:option selected="true" value="createDate">Data Invio</aui:option>
<aui:option value="tipoPratica">Tipo Pratica</aui:option>
</aui:select>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<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" />
<liferay-ui:panel title="filters" defaultState="closed"
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false"
persistState="true">
<div class="container-fluid" style="padding: 15px;">
<div class="row">
<div class="col-xs-12 col-md-3">
<aui:input type="text" name="numeroProgetto" label="Numero Progetto"/>
</div>
<div class="col-xs-12 col-md-3">
<aui:select name="tipoPratica" label="Tipo Pratica">
<aui:option value="-1">Seleziona il tipo di pratica</aui:option>
<aui:option value="01"><liferay-ui:message key="deposito"/></aui:option>
<aui:option value="02"><liferay-ui:message key="autorizzazione"/></aui:option>
<aui:option value="03"><liferay-ui:message key="sanatoria"/></aui:option>
</aui:select>
</div>
<div class="col-xs-12 col-md-3">
<aui:select name="statoPratica" label="Stato Pratica">
<aui:option value="-1">Stato Pratica</aui:option>
<aui:option value="<%= StatoPraticaConstants.ANNULLATA %>"><liferay-ui:message key="annullata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.COLLAUDO %>"><liferay-ui:message key="collaudo"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.CONFORME %>"><liferay-ui:message key="conforme"/></aui:option>
<aui:option value="sospesa"><liferay-ui:message key="sospesa"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.FINE_LAVORI %>"><liferay-ui:message key="fine lavori"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.COLLAUDO_PARZIALE %>"><liferay-ui:message key="collaudo parziale"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.FINE_LAVORI_PARZIALE %>"><liferay-ui:message key="fine lavori parziali"/></aui:option>
<aui:option value="VA"><liferay-ui:message key="variata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.NON_CONFORME %>"><liferay-ui:message key="nonConforme"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.INTEGRAZIONE %>"><liferay-ui:message key="integrazione in corso"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.RIFIUTATA %>"><liferay-ui:message key="rifiutata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.SORTEGGIATA %>"><liferay-ui:message key="sorteggiata"/></aui:option>
<aui:option value="<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE %>"><liferay-ui:message key="sottoposta a parere"/></aui:option>
</aui:select>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<aui:input type="text" name="committente" label="Committente"/>
</div>
<div class="col-xs-12 col-md-4">
<aui:input type="text" name="direttoreLavori" label="Direttore Lavori"/>
</div>
<div class="col-xs-12 col-md-4">
<aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi"/>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-2 add-new-project__ufficio">
<c:if test="<%= organizationList != null && organizationList.size() > 1 %>">
<aui:select name="ufficio" label="Ufficio">
<aui:option value="-1">Tutte</aui:option>
<%
for (Organization org : organizationList) {
%>
<aui:option value="<%= org.getGroupId() %>"><%= org.getName() %></aui:option>
<%
}
%>
</aui:select>
</c:if>
</div>
<div class="col-xs-12 col-md-2 add-new-project__comune">
<%
String comuneSelect = ParamUtil.getString(renderRequest, "comune");
%>
<aui:select name="comune" label="Comune" />
</div>
<div class="col-xs-12 col-md-4">
<aui:field-wrapper label="Data assegnazione pratica da" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaInizio" />
</liferay-util:include>
</aui:field-wrapper>
<aui:field-wrapper label="a" inlineField="true">
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>">
<liferay-util:param name="field" value="dataRichiestaFine" />
</liferay-util:include>
</aui:field-wrapper>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-12">
<aui:column>
<span style="font-weight: bold;">Pratica Aperta : </span>
<aui:input checked="true" inlineField="true" type="radio" name="praticaAperta" value="tutte" label="Tutte"/>
<aui:input inlineField="true" type="radio" name="praticaAperta" value="aperta" label="Si"/>
<aui:input inlineField="true" type="radio" name="praticaAperta" value="chiusa" label="No"/>
</aui:column>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-12">
<aui:column>
<span style="font-weight: bold;">Tipologia Intervento : </span>
<aui:input checked="true" inlineField="true" type="checkbox" name="interventoTutti" label="Tutti"/>
<aui:input inlineField="true" type="checkbox" name="interventoNuovaCostruzione" label="Nuova Costruzione"/>
<aui:input inlineField="true" type="checkbox" name="interventoAdeguamentoSismico" label="Adeguamento Sismico"/>
<aui:input inlineField="true" type="checkbox" name="interventoMiglioramentoSismico" label="Miglioramento Sismico"/>
<aui:input inlineField="true" type="checkbox" name="interventoRiparazioneInterventoLocale" label="Riparazione Intervento Locale"/>
</aui:column>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<div class="row">
<div class="col-xs-12 col-md-6">
<aui:select name="ordinaPer" label="Ordina Per">
<aui:option value="taskName">Nome Task</aui:option>
<aui:option value="numeroProgetto">Numero Progetto</aui:option>
<aui:option selected="true" value="createDate">Data Invio</aui:option>
<aui:option value="tipoPratica">Tipo Pratica</aui:option>
</aui:select>
</div>
<div class="col-xs-12 col-md-6">
<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>
</liferay-ui:panel>
</div>
</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 --%>
<liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" />
<aui:script use="aui-io-request">
$(".add-new-project__ufficio select").change(function(){
var comuni = '';
var val = $(this).val();
$(".add-new-project__comune select").empty();
A.io.request(
'<%= getComuniURL %>',
{
data: {
<portlet:namespace />ufficioId: val
},dataType: 'json',
on: {
success: function() {
$(".add-new-project__comune select").empty();
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
var response = this.get('responseData');
<% String csParam = ParamUtil.getString(renderRequest, "comune");
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));
if(cs != 'null'){
if(response[index].comuneId == cs){
checkIfExists = true;
}
}
}
if(checkIfExists){
$(".add-new-project__comune select").val(cs);
}
$(".add-new-project__ufficio select").change(function() {
var comuni = '';
var val = $(this).val();
$(".add-new-project__comune select").empty();
A.io.request('<%= getComuniURL %>', {
data: {
<portlet:namespace />ufficioId: val
},
dataType: 'json',
on: {
success: function() {
$(".add-new-project__comune select").empty();
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti'));
var response = this.get('responseData');
<%
String csParam = ParamUtil.getString(renderRequest, "comune");
String cs = "null";
if (csParam != null && !csParam.equals(StringPool.BLANK)) {
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));
if (cs != 'null') {
if (response[index].comuneId == cs) {
checkIfExists = true;
}
}
}
);
}).trigger("change");
if (checkIfExists) {
$(".add-new-project__comune select").val(cs);
}
}
}
});
}).trigger("change");
</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 import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@include file="/html/gestionefirme/init.jsp" %>
<%@include file="/html/gestionefirme/init.jsp"%>
<%
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("tabs1", tabs1 );
String[] tabs = StringUtil.split(tabNames);
%>
<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" >
<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"/>
<!-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme -->
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL">
<liferay-portlet:param name="tabs1" value="<%= tabs1 %>" />
</liferay-portlet:resourceURL>
<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 %>"/>
<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" />
<%-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --%>
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL">
<liferay-portlet:param name="tabs1" value="<%= tabs1 %>" />
</liferay-portlet:resourceURL>
<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>
<br/>
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[0]) %>'>
<c:if test='<%= tabs1.equals(tabs[0]) %>'>
<jsp:include page='/html/gestionefirme/avvisi_da_firmare.jsp'/>
</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'/>
</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' />
</c:if>
</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="col-xs-12 add-new-project__procedura">
<aui:field-wrapper label="">
<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_P0" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P0 %>" type="radio" value="<%= Constants.PROCEDURA_P0 %>" showRequiredLabel="true" disabled="true">
<aui:validator name="required"></aui:validator>
</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_P3" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P3 %>" type="radio" value="<%= Constants.PROCEDURA_P3 %>" 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_P5" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P5 %>" type="radio" value="<%= Constants.PROCEDURA_P5 %>" 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_P7" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P7 %>" type="radio" value="<%= Constants.PROCEDURA_P7 %>" 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_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: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_P2" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P2 %>" type="radio" value="<%= Constants.PROCEDURA_P2 %>" 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_P4" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P4 %>" type="radio" value="<%= Constants.PROCEDURA_P4 %>" 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_P6" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P6 %>" type="radio" value="<%= Constants.PROCEDURA_P6 %>" 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_P8" name="tipoProcedura" id="<%= \"tipo_procedura_\" + Constants.PROCEDURA_P8 %>" type="radio" value="<%= Constants.PROCEDURA_P8 %>" 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>
</div>
</div>

Caricamento…
Annulla
Salva