Sfoglia il codice sorgente

Integrazione mappe BBCC

Salvatore La Manna 3 anni fa
parent
commit
97ae806610
  1. 122
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
  2. 107
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/MappeUtil.java
  3. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  4. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  6. 62
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp
  7. 51
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp
  8. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/js/main.js
  9. 51
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/liferay-portlet.xml
  10. 247
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  11. 12
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/main.js
  12. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css
  13. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css.map
  14. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js
  15. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js.map
  16. 3
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java

122
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -87,10 +87,8 @@
</scheduler-entry> </scheduler-entry>
<asset-renderer-factory>it.tref.liferay.portos.bo.asset.ControlloPraticaAssetRendererFactory</asset-renderer-factory> <asset-renderer-factory>it.tref.liferay.portos.bo.asset.ControlloPraticaAssetRendererFactory</asset-renderer-factory>
<workflow-handler>it.tref.liferay.portos.bo.workflow.ControlloPraticaWorkflowHandler</workflow-handler> <workflow-handler>it.tref.liferay.portos.bo.workflow.ControlloPraticaWorkflowHandler</workflow-handler>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>fascicolo-portlet</css-class-wrapper> <css-class-wrapper>fascicolo-portlet</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
@ -100,151 +98,103 @@
configuration configuration
</control-panel-entry-category> </control-panel-entry-category>
<control-panel-entry-weight>1.5</control-panel-entry-weight> <control-panel-entry-weight>1.5</control-panel-entry-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>tabelle-di-sistema-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
tabelle-di-sistema-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>3</portlet-name> <portlet-name>3</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>sorteggio-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
sorteggio-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>4</portlet-name> <portlet-name>4</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<render-weight>0</render-weight> <render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>gestione-firme-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
gestione-firme-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>5</portlet-name> <portlet-name>5</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>doc-aggiuntiva-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
doc-aggiuntiva-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>6</portlet-name> <portlet-name>6</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<render-weight>0</render-weight> <render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>gestione-attivita</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
gestione-attivita
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>7</portlet-name> <portlet-name>7</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>allegati-manuali-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
allegati-manuali-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>8</portlet-name> <portlet-name>8</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<render-weight>0</render-weight> <render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>gestione-attivita-istruttore-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
gestione-attivita-istruttore-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>9</portlet-name> <portlet-name>9</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<css-class-wrapper> <css-class-wrapper>carichi-di-lavoro-portlet</css-class-wrapper>
carichi-di-lavoro-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
<system>true</system> <system>true</system>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>10</portlet-name> <portlet-name>10</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<css-class-wrapper> <css-class-wrapper>tempistiche-portlet</css-class-wrapper>
tempistiche-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>11</portlet-name> <portlet-name>11</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<css-class-wrapper> <css-class-wrapper>generate-protocollo-csv-portlet</css-class-wrapper>
generate-protocollo-csv-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>12</portlet-name> <portlet-name>12</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<control-panel-entry-category> <control-panel-entry-category>configuration</control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-weight>1.6</control-panel-entry-weight> <control-panel-entry-weight>1.6</control-panel-entry-weight>
<css-class-wrapper> <css-class-wrapper>pending-pagamenti-portlet</css-class-wrapper>
pending-pagamenti-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>portos-administration</portlet-name> <portlet-name>portos-administration</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<control-panel-entry-category> <control-panel-entry-category>configuration</control-panel-entry-category>
configuration
</control-panel-entry-category>
<control-panel-entry-weight>1.6</control-panel-entry-weight> <control-panel-entry-weight>1.6</control-panel-entry-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>portos-administration-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
portos-administration-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>22</portlet-name> <portlet-name>22</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>22-portlet</css-class-wrapper> <css-class-wrapper>22-portlet</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>13</portlet-name> <portlet-name>13</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>13-portlet</css-class-wrapper> <css-class-wrapper>13-portlet</css-class-wrapper>
</portlet> </portlet>
<role-mapper> <role-mapper>

107
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/MappeUtil.java

@ -0,0 +1,107 @@
package it.mwg.sismica.bo.util;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.theme.ThemeDisplay;
public class MappeUtil {
private final static Log _log = LogFactoryUtil.getLog(MappeUtil.class);
public static String getUrlFe(HttpServletRequest request, DettPratica dettPratica, Comune comune, boolean readOnly)
throws UnsupportedEncodingException, PortalException, SystemException {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = td.getCompanyId();
String baseUrl = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.MAPPE_URL_IFRAME_FE);
return getUrlComune(request, baseUrl, dettPratica, comune, readOnly);
}
public static String getUrlBo(HttpServletRequest request, DettPratica dettPratica, Comune comune, boolean readOnly)
throws UnsupportedEncodingException, PortalException, SystemException {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = td.getCompanyId();
String baseUrl = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.MAPPE_URL_IFRAME_BO);
return getUrlComune(request, baseUrl, dettPratica, comune, readOnly);
}
private static String getUrlComune(HttpServletRequest request, String baseUrl, DettPratica dettPratica,
Comune comune, boolean readOnly) throws PortalException, SystemException {
ThemeDisplay td = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = td.getCompanyId();
long intPraticaId = dettPratica.getIntPraticaId();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
String sharedSecret = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId,
ConfigurazioneConstants.MAPPE_SHARED_SECRET);
long date = new Date().getTime() / 1000;
String auth = DigestUtils.sha256Hex(date + sharedSecret + request.getServerName());
String localizzazione = dettPratica.getLocalizzazioneGeografica();
String lat = StringPool.BLANK;
String lng = StringPool.BLANK;
if (Validator.isNotNull(localizzazione)) {
String[] coordinate = StringUtils.split(localizzazione, StringPool.PIPE);
if (coordinate.length > 1) {
lat = coordinate[0];
lng = coordinate[1];
}
}
baseUrl = baseUrl
.replace("{{COD_BELFIORE}}",
Validator.isNull(comune) ? StringPool.BLANK : urlEncode(comune.getCodiceBelfiore()))
.replace("{{ESTREMI_CAT}}",
Validator.isNull(dettPratica) ? StringPool.BLANK : urlEncode(dettPratica.getEstremiCatastali()))
.replace("{{LAT}}", lat).replace("{{LNG}}", lng).replace("{{IDPRATICA}}", String.valueOf(intPraticaId))
.replace("{{NPRATICA}}", intPratica.getNumeroProgetto())
.replace("{{READONLY}}", readOnly ? StringPool.TRUE : StringPool.FALSE);
String query = null;
String[] parti = StringUtils.split(baseUrl, StringPool.QUESTION);
if (parti.length > 1) {
query = parti[1];
}
if (Validator.isNull(query)) {
query = StringPool.BLANK;
} else {
query += StringPool.AMPERSAND;
}
StringBuilder url = new StringBuilder();
url.append(parti[0]).append(StringPool.QUESTION).append(query).append("date=").append(date).append("&auth=")
.append(auth);
return url.toString();
}
private static String urlEncode(String str) {
String encoded;
try {
encoded = URLEncoder.encode(str, StringPool.UTF8);
} catch (UnsupportedEncodingException e) {
encoded = str;
}
return encoded;
}
}

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

@ -1215,3 +1215,5 @@ tipo-procedura-b = B - Interventi di “minore rilevanza” D.D.G. 344/20 all.
tipo-procedura-b1 = B1 - Interventi di “minore rilevanza” zone 1-2 ed interventi in abitati da consolidare, art.61 (zone 3-4) tipo-procedura-b1 = B1 - Interventi di “minore rilevanza” zone 1-2 ed interventi in abitati da consolidare, art.61 (zone 3-4)
tipo-procedura-c = C - Interventi “privi di rilevanza“ D.D.G. 344/20 all. A - lett. C tipo-procedura-c = C - Interventi “privi di rilevanza“ D.D.G. 344/20 all. A - lett. C
mappe-bbcc = Mappe BBCC
mappe-openstreetmap = OpenStreetmap

20
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SismicaAdministrationPortlet.java

@ -4,8 +4,10 @@ import it.mwg.sismica.bo.util.AllegatiUtil;
import it.mwg.sismica.bo.util.ManutenzioneDatabase; import it.mwg.sismica.bo.util.ManutenzioneDatabase;
import it.mwg.sismica.bo.util.SismicaUtil; import it.mwg.sismica.bo.util.SismicaUtil;
import it.mwg.sismica.bo.util.SorteggioPraticaUtil; import it.mwg.sismica.bo.util.SorteggioPraticaUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
@ -29,13 +31,25 @@ import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
/**
* Portlet implementation class SismicaAdministrationPortlet
*/
public class SismicaAdministrationPortlet extends MVCPortlet { public class SismicaAdministrationPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(SismicaAdministrationPortlet.class); private static final Log _log = LogFactoryUtil.getLog(SismicaAdministrationPortlet.class);
public void impostazioniMappe(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
String urlIframeFE = ParamUtil.getString(actionRequest, "urlIframeFE");
String urlIframeBO = ParamUtil.getString(actionRequest, "urlIframeBO");
String sharedSecret = ParamUtil.getString(actionRequest, "sharedSecret");
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.MAPPE_URL_IFRAME_FE, urlIframeFE,
serviceContext);
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.MAPPE_URL_IFRAME_BO, urlIframeBO,
serviceContext);
ConfigurazioneLocalServiceUtil.storeConfig(ConfigurazioneConstants.MAPPE_SHARED_SECRET, sharedSecret,
serviceContext);
}
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
List<String> esito = new ArrayList<String>(); List<String> esito = new ArrayList<String>();

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2651 build.number=2652
build.date=1623069175552 build.date=1623675250829
build.auto.upgrade=true build.auto.upgrade=true
## ##

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

@ -1,4 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.mwg.sismica.bo.util.MappeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> <%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%>
<%@page import="java.util.regex.Pattern"%> <%@page import="java.util.regex.Pattern"%>
@ -7,21 +9,22 @@
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@ include file="/html/fascicolo/init.jsp" %> <%@ include file="/html/fascicolo/init.jsp" %>
<% <%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l);
DettPratica dettPratica; DettPratica dettPratica;
if(Validator.isNotNull(dettPraticaId)) { if (Validator.isNotNull(dettPraticaId)) {
dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
} else { } else {
dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData");
} }
IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica");
if(intPratica == null){ if (intPratica == null) {
intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
} }
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
boolean isDisabledMap = ParamUtil.getBoolean(request, "isDisabledMap", false); boolean isDisabledMap = ParamUtil.getBoolean(request, "isDisabledMap", false);
String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune, true);
%> %>
<c:if test="<%= Validator.isNull(dettPraticaId) %>"> <c:if test="<%= Validator.isNull(dettPraticaId) %>">
<liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%=application %>"/> <liferay-util:include page="/html/fascicolo/navigator/header.jsp" servletContext="<%=application %>"/>
@ -369,18 +372,33 @@
</div> </div>
</c:if> </c:if>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-xs-12 cont_maps">
<% <% String[] geolocalization = dettPratica.getLocalizzazioneGeografica().split(Pattern.quote("|")); %>
String[] geolocalization = BeanPropertiesUtil.getString(dettPratica, "localizzazioneGeografica","").split(Pattern.quote("|"));
%>
<aui:input name="lat" label="" type="hidden" <aui:input name="lat" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK %>' /> value='<%= geolocalization.length > 0 ? geolocalization[0] : StringPool.BLANK %>' />
<aui:input name="long" label="" type="hidden" <aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK %>'/> value='<%= geolocalization.length > 1 ? geolocalization[1] : StringPool.BLANK %>'/>
<aui:input type="hidden" name="geoIsEditable" value='<%= false %>' label=""/> <aui:input name="zoom" label="" type="hidden" value="16" />
<aui:input type="hidden" name="geoIsEditable" value="false" label=""/>
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap" refresh="false">
<liferay-portlet:runtime portletName="5_WAR_trefmapitmapportlet" queryString='<%="mapitNamespace="+renderResponse.getNamespace()%>' /> <liferay-ui:section>
<div class="col-xs-12">
<!-- Integrazione geoportal -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<div style="border:none;width:100%;height:700px">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
</div>
</div>
</div>
</div>
</liferay-ui:section>
<liferay-ui:section>
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>" queryString='<%= "mapitNamespace=" + renderResponse.getNamespace() %>' />
</liferay-ui:section>
</liferay-ui:tabs>
</div> </div>
</div> </div>
</div> </div>

51
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp

@ -6,15 +6,13 @@
<%@page import="java.util.Date"%> <%@page import="java.util.Date"%>
<%@page import="java.util.Map"%> <%@page import="java.util.Map"%>
<%@ include file="/html/sismica_administration/init.jsp"%> <%@ include file="/html/sismica_administration/init.jsp"%>
<% <%
SimpleDateFormat simpleDateTimeFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); long companyId = company.getCompanyId();
String dataUltimoSorteggioString = String dataSorteggio = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO);
ConfigurazioneLocalServiceUtil.findByC_ChiaveString(themeDisplay.getCompanyId(), ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO); String urlIframeFE = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.MAPPE_URL_IFRAME_FE);
String dataProssimoSorteggio = String urlIframeBO = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.MAPPE_URL_IFRAME_BO);
ConfigurazioneServiceUtil.findByC_ChiaveString(company.getCompanyId(), "conf.geniocivile.sorteggio.data.prossimo.sorteggio"); String sharedSecret = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.MAPPE_SHARED_SECRET);
%> %>
<liferay-ui:error key="operazione-non-supportata" message="Operazione non supportata" /> <liferay-ui:error key="operazione-non-supportata" message="Operazione non supportata" />
<liferay-ui:error key="invia-avviso-tipo-obbligatorio" message="Nessun tipo di avviso selezionato" /> <liferay-ui:error key="invia-avviso-tipo-obbligatorio" message="Nessun tipo di avviso selezionato" />
<liferay-ui:error key="invia-avviso-progetto-obbligatorio" <liferay-ui:error key="invia-avviso-progetto-obbligatorio"
@ -28,7 +26,7 @@ String dataProssimoSorteggio =
<hr style="margin: 0" /> <hr style="margin: 0" />
<liferay-portlet:actionURL name="reIndexFasciolo" var="reIndexFascioloURL" /> <liferay-portlet:actionURL name="reIndexFasciolo" var="reIndexFascioloURL" />
<liferay-portlet:actionURL name="reIndexFascicoli" var="reIndexFascicoliURL" /> <liferay-portlet:actionURL name="reIndexFascicoli" var="reIndexFascicoliURL" />
<liferay-portlet:actionURL name="salvaDataProssimoSorteggio" var="salvaDataProssimoSorteggioURL" /> <liferay-portlet:actionURL name="impostazioniMappe" var="impostazioniMappeURL" />
<div class="row-fluid" style="margin-top: 10px"> <div class="row-fluid" style="margin-top: 10px">
<div class="span6"> <div class="span6">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Form per reindicizzare un <div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Form per reindicizzare un
@ -49,22 +47,15 @@ String dataProssimoSorteggio =
<aui:button cssClass="btn-danger" type="submit" value="Reindicizza tutti i fascicoli" /> <aui:button cssClass="btn-danger" type="submit" value="Reindicizza tutti i fascicoli" />
</div> </div>
</aui:form> </aui:form>
</div> </div>
<div class="span6"> <div class="span6">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Impostazioni sistema mappe</div>
<c:if test='<%=dataProssimoSorteggio != null && !dataProssimoSorteggio.equals("")%>'> <aui:form action="<%= impostazioniMappeURL %>" method="post" name="fmImpostazioniMappe">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">
Prossimo sorteggio previsto per:
<%=dataProssimoSorteggio%>.
</div>
</c:if>
<aui:form action="<%=salvaDataProssimoSorteggioURL%>" method="post" name="fmDataProssimoSorteggio">
<div> <div>
<aui:input name="dataProssimoSorteggio" label="Data Prossimo Sorteggio"> <aui:input type="text" cssClass="span12" name="sharedSecret" label="Segreto condiviso" value="<%= sharedSecret %>"/>
</aui:input> <aui:input type="text" cssClass="span12" name="urlIframeFE" label="Url iframe Front End" value="<%= urlIframeFE %>"/>
<aui:button type="submit" value="Salva Data Prossimo Sorteggio" /> <aui:input type="text" cssClass="span12" name="urlIframeBO" label="Url iframe Back Office" value="<%= urlIframeBO %>"/>
<aui:button type="submit" value="Salva" />
</div> </div>
</aui:form> </aui:form>
</div> </div>
@ -78,7 +69,7 @@ String dataProssimoSorteggio =
<div class="span6"> <div class="span6">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;"> <div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">
Ultimo Sorteggio lanciato il Ultimo Sorteggio lanciato il
<%=dataUltimoSorteggioString%>. <strong>Si è sicuri di volerlo lanciare?</strong> <%= dataSorteggio %>. <strong>Si è sicuri di volerlo lanciare?</strong>
</div> </div>
<aui:form action="<%=lanciaSorteggioURL%>" method="post" name="fmLanciaSorteggio"> <aui:form action="<%=lanciaSorteggioURL%>" method="post" name="fmLanciaSorteggio">
<div> <div>
@ -236,19 +227,3 @@ String dataProssimoSorteggio =
} }
%> %>
</c:if> </c:if>
<aui:script>
YUI({
lang : 'it'
}).use('aui-datepicker', function(Y) {
var datepicker1 = new Y.DatePicker({
trigger : '#<portlet:namespace />dataProssimoSorteggio',
mask : '%d/%m/%Y',
popover : {
zIndex : 1
}
});
});
</aui:script>

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/js/main.js

@ -1 +1,10 @@
/**/ if ($('.cont_maps').length) {
$('.cont_maps ul li').click(function() {
var map = mapItMap.getInstance();
setTimeout(function() {
map.updateSize();
if (map.layers.length > 0)
map.layers[0].redraw();
}, 100);
});
}

51
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -1,42 +1,31 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd"> <!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN"
"http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd">
<liferay-portlet-app> <liferay-portlet-app>
<portlet> <portlet>
<portlet-name>1</portlet-name> <portlet-name>1</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<configuration-action-class> <configuration-action-class>
com.liferay.portal.kernel.portlet.DefaultConfigurationAction com.liferay.portal.kernel.portlet.DefaultConfigurationAction
</configuration-action-class> </configuration-action-class>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js
</footer-portlet-javascript>
<css-class-wrapper>1-portlet</css-class-wrapper> <css-class-wrapper>1-portlet</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>2</portlet-name> <portlet-name>2</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>ricerca-pratiche-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
ricerca-pratiche-portlet
</css-class-wrapper>
</portlet> </portlet>
<portlet> <portlet>
<portlet-name>3</portlet-name> <portlet-name>3</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>
<render-weight>0</render-weight> <render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>soggetti-pratica-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
soggetti-pratica-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
</portlet> </portlet>
<portlet> <portlet>
@ -44,13 +33,9 @@
<icon>/icon.png</icon> <icon>/icon.png</icon>
<instanceable>true</instanceable> <instanceable>true</instanceable>
<render-weight>0</render-weight> <render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>alegati-pratica-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
alegati-pratica-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
</portlet> </portlet>
<portlet> <portlet>
@ -58,13 +43,9 @@
<icon>/icon.png</icon> <icon>/icon.png</icon>
<instanceable>true</instanceable> <instanceable>true</instanceable>
<render-weight>0</render-weight> <render-weight>0</render-weight>
<header-portlet-css>/css/main.css</header-portlet-css> <header-portlet-css>/css/main.css?v=1</header-portlet-css>
<footer-portlet-javascript> <footer-portlet-javascript>/js/main.js?v=2</footer-portlet-javascript>
/js/main.js <css-class-wrapper>parere-geologo-portlet</css-class-wrapper>
</footer-portlet-javascript>
<css-class-wrapper>
parere-geologo-portlet
</css-class-wrapper>
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
</portlet> </portlet>
<role-mapper> <role-mapper>

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

@ -23,6 +23,7 @@
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> <%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="it.mwg.sismica.bo.util.MappeUtil" %>
<%@ include file="/html/fascicolofe/init.jsp"%> <%@ include file="/html/fascicolofe/init.jsp"%>
<% <%
@ -52,7 +53,8 @@ boolean enabledByIntegrazione = hasDelegaCompilazioneDomanda
boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante"); boolean isNewVariante = ParamUtil.getBoolean(request, "isNewVariante");
String displayStyle = proceduraC ? "display:none" : ""; String displayStyle = proceduraC ? "display:none" : StringPool.BLANK;
String urlIframeMappe = MappeUtil.getUrlFe(request, dettPratica, comune, disabledInput || isGeoEditable);
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">
@ -65,7 +67,7 @@ String displayStyle = proceduraC ? "display:none" : "";
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>"></aui:model-context> <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>"></aui:model-context>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<c:if <c:if
test="<%=AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId()) && TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())%>"> test="<%=AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId()) && TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())%>">
@ -73,7 +75,7 @@ String displayStyle = proceduraC ? "display:none" : "";
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-variante"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-variante">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-md-3">
<% <%
if (isNewVariante) { if (isNewVariante) {
dettPratica.setVarianteSostanziale(isNewVariante); dettPratica.setVarianteSostanziale(isNewVariante);
@ -125,7 +127,7 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group group_dati_catastali"> <div class="module-group group_dati_catastali">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Normativa"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="Normativa">
<div class="row group_checkbox row-padding-custom"> <div class="row group_checkbox row-padding-custom">
@ -145,7 +147,7 @@ String displayStyle = proceduraC ? "display:none" : "";
label="norm-dpr02-aut" /> label="norm-dpr02-aut" />
</c:if> </c:if>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<p class="checkbox_title">Nel Rispetto di:</p> <p class="checkbox_title">Nel Rispetto di:</p>
<aui:input disabled="<%=disabledInput%>" name="normDm2018" label="norm-dm2018" /> <aui:input disabled="<%=disabledInput%>" name="normDm2018" label="norm-dm2018" />
<aui:input disabled="<%=disabledInput%>" name="normDm01" label="norm-dm01" /> <aui:input disabled="<%=disabledInput%>" name="normDm01" label="norm-dm01" />
@ -161,33 +163,33 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione%>" name="normLavoriInProprio" <aui:input disabled="<%=disabledInput && !enabledByIntegrazione%>" name="normLavoriInProprio"
label="norm-lavori-in-proprio" /> label="norm-lavori-in-proprio" />
</div> </div>
</div> </div>
<div class="row row-padding-custom"> <div class="row row-padding-custom">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput%>" name="lavoriPubblici" label="lavori-pubblici" /> <aui:input disabled="<%=disabledInput%>" name="lavoriPubblici" label="lavori-pubblici" />
</div> </div>
</div> </div>
<div class="row row-padding-custom" style="<%=displayStyle%>"> <div class="row row-padding-custom" style="<%=displayStyle%>">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>" <aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>"
name="normEsenteBollo" label="norm-esente-bollo" /> name="normEsenteBollo" label="norm-esente-bollo" />
</div> </div>
</div> </div>
<div class="row row-padding-custom" style="<%=displayStyle%>"> <div class="row row-padding-custom" style="<%=displayStyle%>">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>" <aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>"
name="normEsenteSpese" label="norm-esente-spese" /> name="normEsenteSpese" label="norm-esente-spese" />
</div> </div>
</div> </div>
<div class="row row-padding-custom" style="<%=displayStyle%>"> <div class="row row-padding-custom" style="<%=displayStyle%>">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<c:if <c:if
test='<%=(disabledInput && !enabledByIntegrazione) || !disabledCollaudoStatico || intPratica.getStatoPratica().equals("")%>'> test='<%=(disabledInput && !enabledByIntegrazione) || !disabledCollaudoStatico || intPratica.getStatoPratica().equals("")%>'>
<aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>" <aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>"
@ -202,11 +204,11 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
<div class="row row-padding-custom" style="<%=displayStyle%>"> <div class="row row-padding-custom" style="<%=displayStyle%>">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"> <div class="col-xs-1">
<aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>" <aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>"
name="normArt3com3" label="" /> name="normArt3com3" label="" />
</div> </div>
<div class="col-xs-11 col-sm-11 col-md-11 col-lg-11"> <div class="col-xs-11">
<div class="container-regolamento"> <div class="container-regolamento">
<p style="display: inline;"><%=LanguageUtil.get(pageContext, "norm-art3com3")%>: <p style="display: inline;"><%=LanguageUtil.get(pageContext, "norm-art3com3")%>:
</p> </p>
@ -220,11 +222,11 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="row row-padding-custom" style="<%=displayStyle%>"> <div class="row row-padding-custom" style="<%=displayStyle%>">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"> <div class="col-xs-1">
<aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>" <aui:input disabled="<%=(disabledInput && !enabledByIntegrazione) || proceduraC%>"
name="normArt3com4" label="" /> name="normArt3com4" label="" />
</div> </div>
<div class="col-xs-11 col-sm-11 col-md-11 col-lg-11"> <div class="col-xs-11">
<div class="container-regolamento"> <div class="container-regolamento">
<p><%=LanguageUtil.get(pageContext, "norm-art3com4")%>: <p><%=LanguageUtil.get(pageContext, "norm-art3com4")%>:
</p> </p>
@ -235,10 +237,22 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-sm-6">
<aui:input disabled="<%=disabledInput %>" type="text" name="estremiPratCom"
label="estremi-prat-com"/>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="container-fluid">
<div class="row row-padding-custom ">
<div class="col-xs-12 col-md-4">
<aui:input disabled="<%=disabledInput%>" name="suap" label="suap" /> <aui:input disabled="<%=disabledInput%>" name="suap" label="suap" />
</div> </div>
</div> </div>
@ -246,18 +260,18 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> <div class="col-xs-12 col-md-4">
<aui:input disabled="<%=disabledInput%>" name="normSismaBonus" label="norm-sisma-bonus" /> <aui:input disabled="<%=disabledInput%>" name="normSismaBonus" label="norm-sisma-bonus" />
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> <div class="col-xs-4">
<span><%=LanguageUtil.get(pageContext, "cl-rischio-pre-int")%></span> <span><%=LanguageUtil.get(pageContext, "cl-rischio-pre-int")%></span>
</div> </div>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"> <div class="col-xs-8">
<aui:input disabled="<%=disabledInput%>" inlineField="true" label="cl-rischio-pre-int-1" <aui:input disabled="<%=disabledInput%>" inlineField="true" label="cl-rischio-pre-int-1"
name="clRischioPreInt" type="radio" name="clRischioPreInt" type="radio"
checked='<%=BeanParamUtil.getString(dettPratica, request, "clRischioPreInt").equalsIgnoreCase("1")%>' checked='<%=BeanParamUtil.getString(dettPratica, request, "clRischioPreInt").equalsIgnoreCase("1")%>'
@ -325,10 +339,10 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> <div class="col-xs-4">
<span><%=LanguageUtil.get(pageContext, "cl-rischio-post-int")%></span> <span><%=LanguageUtil.get(pageContext, "cl-rischio-post-int")%></span>
</div> </div>
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"> <div class="col-xs-8">
<aui:input disabled="<%=disabledInput%>" inlineField="true" label="cl-rischio-post-int-1" <aui:input disabled="<%=disabledInput%>" inlineField="true" label="cl-rischio-post-int-1"
name="clRischioPostInt" type="radio" name="clRischioPostInt" type="radio"
checked='<%=BeanParamUtil.getString(dettPratica, request, "clRischioPostInt").equalsIgnoreCase("1")%>' checked='<%=BeanParamUtil.getString(dettPratica, request, "clRischioPostInt").equalsIgnoreCase("1")%>'
@ -399,15 +413,15 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<div class="container-fluid"> <div class="container-fluid">
<div class="row row-padding-custom altro_check"> <div class="row row-padding-custom altro_check">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput%>" name="intervFinPub" label="interv-fin-pub" /> <aui:input disabled="<%=disabledInput%>" name="intervFinPub" label="interv-fin-pub" />
</div> </div>
</div> </div>
<div class="row altro_check"> <div class="row altro_check">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input type="textarea" name="intervFinPubDesc" <aui:input type="textarea" name="intervFinPubDesc"
disabled="<%=!dettPratica.getIntervFinPub() || disabledInput%>" label=""></aui:input> disabled="<%=!dettPratica.getIntervFinPub() || disabledInput%>" label=""></aui:input>
</div> </div>
@ -419,35 +433,92 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group group_dati_catastali"> <div class="module-group group_dati_catastali">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-dc"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-dc">
<div class="dati_catastali"> <div class="dati_catastali">
<div class="col-xs-12 cont_maps">
<liferay-ui:tabs names="mappe-bbcc,mappe-openstreetmap"
refresh="false" value="mappe-bbcc">
<liferay-ui:section>
<div class="col-xs-12">
<!-- Integrazione geoportal -->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<iframe src="<%= urlIframeMappe %>" style="border:none;width:100%;height:700px"></iframe>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function(event) {
window.addEventListener('message', messageListener, false);
});
function messageListener(event) {
try {
var data = JSON.parse(event.data);
} catch (e) {
return;
}
var trasferiti = [];
for (key in data) {
switch (key) {
case 'latitudine':
var name = 'lat';
break;
case 'longitudine':
var name = 'long';
break;
default:
var name = 'input_' + key;
}
var el = document.getElementById('<portlet:namespace/>' + name);
if (null !== el) {
el.value = data[key];
trasferiti.push(key);
}
}
if (trasferiti.length > 0) {
//console.log('Trasferiti correttamente: ' + trasferiti.join(', '));
}
}
</script>
</div>
<!-- /Integrazione geoportal -->
</liferay-ui:section>
<liferay-ui:section>
<div style="border:none;width:100%;height:700px">
<liferay-portlet:runtime portletName="<%= PortletKeys.MAPIT %>" queryString='<%= "mapitNamespace=" + renderResponse.getNamespace() %>' />
</div>
</liferay-ui:section>
</liferay-ui:tabs>
</div>
<div class="col-xs-12 col-md-12" style="margin-top:40px;"></div>
<aui:row> <aui:row>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione%>" name="descLongIntervento" <aui:input disabled="<%=disabledInput && !enabledByIntegrazione%>" name="descLongIntervento"
label="desc-long-intervento" /> label="desc-long-intervento" />
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:input disabled="<%=disabledInput || isGeoEditable%>" readonly="true" type="text" <aui:input disabled="<%=disabledInput || isGeoEditable%>" readonly="true" type="text"
name="provincia" value="<%=provincia.getProvincia()%>" label="dp-dc-prov" /> name="provincia" value="<%=provincia.getProvincia()%>" label="dp-dc-prov" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:input disabled="<%=disabledInput || isGeoEditable%>" readonly="true" type="text" <aui:input disabled="<%=disabledInput || isGeoEditable%>" readonly="true" type="text"
name="comune" value="<%=comune.getDenominazione()%>" label="dp-dc-comune" /> name="comune" value="<%=comune.getDenominazione()%>" label="dp-dc-comune" />
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:input disabled="<%=disabledInput || isGeoEditable%>" name="localita" label="dp-dc-loc" /> <aui:input disabled="<%=disabledInput || isGeoEditable%>" name="localita" label="dp-dc-loc" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:input disabled="<%=disabledInput || isGeoEditable%>" name="via" label="dp-dc-via" /> <aui:input disabled="<%=disabledInput || isGeoEditable%>" name="via" label="dp-dc-via" />
</div> </div>
</div> </div>
@ -457,76 +528,20 @@ String displayStyle = proceduraC ? "display:none" : "";
onClick="localize()" value="Localizza" /> onClick="localize()" value="Localizza" />
</div> </div>
</div> </div>
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input disabled="<%=disabledInput%>" name="dcFoglio" label="dc-foglio" />
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input disabled="<%=disabledInput%>" name="dcAllegato" label="dc-allegato" />
</div>
</div>
<div class="row">
<%
String[] particelle= BeanParamUtil.getString(dettPratica, request, "dcParticelle","").split(Pattern.quote("|"));
%>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<h5>
<strong><%=LanguageUtil.get(pageContext, "dc-particelle")%></strong>
</h5>
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput%>" type="text" name="particella1" maxLength="15"
value='<%=particelle.length>0?particelle[0]:StringPool.BLANK%>' label="" />
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput%>" type="text" name="particella2" maxLength="15"
value='<%=particelle.length>1?particelle[1]:StringPool.BLANK%>' label="" />
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput%>" type="text" name="particella3" maxLength="15"
value='<%=particelle.length>2?particelle[2]:StringPool.BLANK%>' label="" />
</div>
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2">
<aui:input disabled="<%=disabledInput%>" type="text" name="particella4" maxLength="15"
value='<%=particelle.length>3?particelle[3]:StringPool.BLANK%>' label="" />
</div>
</div>
<!--
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input type="text" name="progetto_estremi_catastali" label="Subalterno"/>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input type="text" name="progetto_estremi_catastali" label="Categoria"/>
</div>
</div>
-->
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input disabled="<%=disabledInput%>" type="text" name="estremiPratCom"
label="estremi-prat-com" />
</div>
<c:if test='<%=Validator.isNotNull(dettPratica.getEstremiCatastali())%>'>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<aui:input disabled="<%=disabledInput%>" type="text" name="estremiCatastali"
label="estremi-catastali" />
</div>
</c:if>
</div>
<div class="row"> <div class="row">
<% <%
String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|")); String[] geolocalization = BeanParamUtil.getString(dettPratica, request, "localizzazioneGeografica","").split(Pattern.quote("|"));
%> %>
<aui:input name="zoom" label="" type="hidden" <aui:input name="zoom" label="" type="hidden"
value='<%=geolocalization.length>2?geolocalization[2]:"8"%>' /> value='<%=geolocalization.length>2?geolocalization[2]:"8"%>' />
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:input name="lat" label="" type="hidden" <aui:input name="lat" label="" type="hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK%>' /> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK%>' />
<aui:input disabled="true" type="text" name="lat_hidden" <aui:input disabled="true" type="text" name="lat_hidden"
value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK%>' label="dp-lat" /> value='<%=geolocalization.length>0?geolocalization[0]:StringPool.BLANK%>' label="dp-lat" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<aui:input name="long" label="" type="hidden" <aui:input name="long" label="" type="hidden"
value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK%>' /> value='<%=geolocalization.length>1?geolocalization[1]:StringPool.BLANK%>' />
<aui:input disabled="true" type="text" name="long_hidden" <aui:input disabled="true" type="text" name="long_hidden"
@ -537,22 +552,28 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="col-xs-12 col-md-6">
<liferay-portlet:runtime portletName="<%=PortletKeys.MAPIT%>" /> <div class="container-fluid">
<div class="row" style="margin-bottom:20px">
<div class="col-xs-12">
<aui:input disabled="<%= disabledInput && !enabledByIntegrazione %>" type="text" name="estremiCatastali" id="input_estremiCatastali"
label="estremi-catastali"/>
</div>
</div>
</div>
</div> </div>
</aui:row> </aui:row>
</div> </div>
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
</div> </div>
<div class="col-sm-12">
<div class="col-sm-12 col-md-12">
<div class="module-group group_dati_catastali"> <div class="module-group group_dati_catastali">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="destinazione" <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="destinazione"
id="destinazioneinazione"> id="destinazioneinazione">
<div class="container-fluid"> <div class="container-fluid">
<div class="row row-padding-custom cb_destinazione"> <div class="row row-padding-custom cb_destinazione">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput && !enabledByIntegrazione%>" type="radio" <aui:input disabled="<%=disabledInput && !enabledByIntegrazione%>" type="radio"
checked='<%=BeanParamUtil.getString(dettPratica, request, "destinazione").equalsIgnoreCase("1")%>' checked='<%=BeanParamUtil.getString(dettPratica, request, "destinazione").equalsIgnoreCase("1")%>'
name="destinazione" bean="<%=dettPratica%>" value="1" label="destinazione-1" /> name="destinazione" bean="<%=dettPratica%>" value="1" label="destinazione-1" />
@ -567,7 +588,7 @@ String displayStyle = proceduraC ? "display:none" : "";
name="destinazione" bean="<%=dettPratica%>" value="2A" label="destinazione-2A" /> name="destinazione" bean="<%=dettPratica%>" value="2A" label="destinazione-2A" />
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center"> <div class="col-xs-12 text-center">
<h3 class="mbottom20"><%=LanguageUtil.get(pageContext, "titolo-destinazione")%></h3> <h3 class="mbottom20"><%=LanguageUtil.get(pageContext, "titolo-destinazione")%></h3>
<c:if test="<%=alertClassi%>"> <c:if test="<%=alertClassi%>">
<div class="col-xs-12" style="background-color: #ffebcd; padding: 8px 4px; margin: 0 0 20px 0"> <div class="col-xs-12" style="background-color: #ffebcd; padding: 8px 4px; margin: 0 0 20px 0">
@ -575,7 +596,7 @@ String displayStyle = proceduraC ? "display:none" : "";
</div> </div>
</c:if> </c:if>
</div> </div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <div class="col-xs-6">
<p><%=LanguageUtil.get(pageContext, "destinazione-A")%></p> <p><%=LanguageUtil.get(pageContext, "destinazione-A")%></p>
<p>&nbsp;</p> <p>&nbsp;</p>
@ -639,7 +660,7 @@ String displayStyle = proceduraC ? "display:none" : "";
name="destinazione" value="A5A" label="destinazione-A5A" /> name="destinazione" value="A5A" label="destinazione-A5A" />
<p>&nbsp;</p> <p>&nbsp;</p>
</div> </div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <div class="col-xs-6">
<p><%=LanguageUtil.get(pageContext, "destinazione-B")%></p> <p><%=LanguageUtil.get(pageContext, "destinazione-B")%></p>
<p>&nbsp;</p> <p>&nbsp;</p>
@ -762,7 +783,7 @@ String displayStyle = proceduraC ? "display:none" : "";
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
</div> </div>
<div class="col-sm-12 col-md-12"> <div class="col-sm-12">
<div class="module-group group_dati_catastali de__tipologia-costruttiva"> <div class="module-group group_dati_catastali de__tipologia-costruttiva">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-sc-tc"> <liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="dp-sc-tc">
<div class="container-fluid desc_edificio-tipologia"> <div class="container-fluid desc_edificio-tipologia">
@ -770,13 +791,13 @@ String displayStyle = proceduraC ? "display:none" : "";
<% <%
boolean tcInCA = dettPratica.getTcInCA(); boolean tcInCA = dettPratica.getTcInCA();
%> %>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 first-check"> <div class="col-xs-3 first-check">
<aui:input disabled="<%=disabledInput%>" name="tcInCA" label="tc-in-ca" /> <aui:input disabled="<%=disabledInput%>" name="tcInCA" label="tc-in-ca" />
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 disabled-check"> <div class="col-xs-3 disabled-check">
<aui:input disabled="<%=!tcInCA || disabledInput%>" name="tcInOpera" label="tc-in-opera" /> <aui:input disabled="<%=!tcInCA || disabledInput%>" name="tcInOpera" label="tc-in-opera" />
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 disabled-check"> <div class="col-xs-3 disabled-check">
<aui:input disabled="<%=!tcInCA || disabledInput%>" name="tcPrefabbricato" <aui:input disabled="<%=!tcInCA || disabledInput%>" name="tcPrefabbricato"
label="tc-prefabbricato" /> label="tc-prefabbricato" />
</div> </div>
@ -787,10 +808,10 @@ String displayStyle = proceduraC ? "display:none" : "";
<% <%
boolean tcInAcciaio = dettPratica.getTcInAcciaio(); boolean tcInAcciaio = dettPratica.getTcInAcciaio();
%> %>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 first-check"> <div class="col-xs-3 first-check">
<aui:input disabled="<%=disabledInput%>" name="tcInAcciaio" label="tc-in-acciaio" /> <aui:input disabled="<%=disabledInput%>" name="tcInAcciaio" label="tc-in-acciaio" />
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 disabled-check"> <div class="col-xs-3 disabled-check">
<aui:input disabled="<%=!tcInAcciaio || disabledInput%>" name="tcMista" label="tc-mista" /> <aui:input disabled="<%=!tcInAcciaio || disabledInput%>" name="tcMista" label="tc-mista" />
</div> </div>
</div> </div>
@ -799,42 +820,42 @@ String displayStyle = proceduraC ? "display:none" : "";
<% <%
boolean tcInMuratura = dettPratica.getTcInMuratura(); boolean tcInMuratura = dettPratica.getTcInMuratura();
%> %>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 first-check"> <div class="col-xs-3 first-check">
<aui:input disabled="<%=disabledInput%>" name="tcInMuratura" label="tc-in-muratura" /> <aui:input disabled="<%=disabledInput%>" name="tcInMuratura" label="tc-in-muratura" />
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 disabled-check"> <div class="col-xs-3 disabled-check">
<aui:input disabled="<%=!tcInMuratura || disabledInput%>" name="tcInMuraturaOrdinaria" <aui:input disabled="<%=!tcInMuratura || disabledInput%>" name="tcInMuraturaOrdinaria"
label="tc-in-muratura-ordinaria" /> label="tc-in-muratura-ordinaria" />
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 disabled-check"> <div class="col-xs-3 disabled-check">
<aui:input disabled="<%=!tcInMuratura || disabledInput%>" name="tcInMuraturaArmata" <aui:input disabled="<%=!tcInMuratura || disabledInput%>" name="tcInMuraturaArmata"
label="tc-in-muratura-armata" /> label="tc-in-muratura-armata" />
</div> </div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 disabled-check"> <div class="col-xs-3 disabled-check">
<aui:input disabled="<%=!tcInMuratura || disabledInput%>" name="tcInMuraturaMista" <aui:input disabled="<%=!tcInMuratura || disabledInput%>" name="tcInMuraturaMista"
label="tc-in-muratura-mista" /> label="tc-in-muratura-mista" />
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3">
<aui:input disabled="<%=disabledInput%>" name="tcInLegno" label="tc-in-legno" /> <aui:input disabled="<%=disabledInput%>" name="tcInLegno" label="tc-in-legno" />
</div> </div>
</div> </div>
<div class="row row-padding-custom altro_check"> <div class="row row-padding-custom altro_check">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input disabled="<%=disabledInput%>" name="tcAltro" label="tc-altro" /> <aui:input disabled="<%=disabledInput%>" name="tcAltro" label="tc-altro" />
</div> </div>
</div> </div>
<div class="row altro_check"> <div class="row altro_check">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="col-xs-12">
<aui:input type="textarea" name="tcAltroDescrizione" <aui:input type="textarea" name="tcAltroDescrizione"
disabled="<%=!dettPratica.getTcAltro() || disabledInput%>" label=""></aui:input> disabled="<%=!dettPratica.getTcAltro() || disabledInput%>" label=""></aui:input>
</div> </div>
</div> </div>
<div class="row row-padding-custom "> <div class="row row-padding-custom ">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <div class="col-xs-3">
<aui:input disabled="<%=disabledInput%>" name="tcConDispositivi" label="tc-con-dispositivi" /> <aui:input disabled="<%=disabledInput%>" name="tcConDispositivi" label="tc-con-dispositivi" />
</div> </div>
</div> </div>

12
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/main.js

@ -92,3 +92,15 @@ $('body').on('mouseup', 'label.radio', function(){
if(radio.length) if(radio.length)
uncheck_radio_before_click(radio); uncheck_radio_before_click(radio);
}) })
if ($('.cont_maps').length) {
$('.cont_maps ul li').click(function() {
var map = mapItMap.getInstance();
setTimeout(function() {
map.updateSize();
if (map.layers.length > 0) {
map.layers[0].redraw();
}
}, 100);
});
}

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css

@ -1,2 +0,0 @@
.ol-box{box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-Index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:12px;z-Index:11;color:#000;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.ol-scale-text{position:absolute;font-size:14px;text-align:center;bottom:25px;color:#000;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.ol-scale-singlebar{position:relative;height:10px;z-Index:9;border:1px solid #000}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-overlaycontainer,.ol-overlaycontainer-stopevent{pointer-events:none}.ol-overlaycontainer-stopevent>*,.ol-overlaycontainer>*{pointer-events:auto}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:rgba(255,255,255,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:rgba(255,255,255,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-control button span{pointer-events:none}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}
/*# sourceMappingURL=ol.css.map */

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.css.map

@ -1 +0,0 @@
{"version":3,"sources":["src/ol/ol.css"],"names":[],"mappings":"AAAA,QACE,WAAY,WACZ,cAAe,IACf,OAAQ,IAAI,MAAM,KAGpB,mBACE,IAAK,IACL,MAAO,IACP,SAAU,SAGZ,eACE,WAAY,kBACZ,cAAe,IACf,OAAQ,IACR,KAAM,IACN,QAAS,IACT,SAAU,SAEZ,qBACE,OAAQ,IAAI,MAAM,KAClB,WAAY,KACZ,MAAO,KACP,UAAW,KACX,WAAY,OACZ,OAAQ,IACR,YAAa,QAAQ,CAAE,MACvB,WAAY,IAAI,KAElB,cACE,SAAU,SACV,OAAQ,IACR,KAAM,IAER,sBACE,MAAO,IACP,OAAQ,KACR,iBAAkB,KAClB,MAAO,MACP,QAAS,GAEX,oBACE,SAAU,SACV,OAAQ,KACR,UAAW,KACX,QAAS,GACT,MAAO,KACP,YAAa,KAAK,EAAE,IAAO,CAAE,EAAE,IAAI,IAAO,CAAE,IAAI,EAAE,IAAO,CAAE,EAAE,KAAK,KAEpE,eACE,SAAU,SACV,UAAW,KACX,WAAY,OACZ,OAAQ,KACR,MAAO,KACP,YAAa,KAAK,EAAE,IAAO,CAAE,EAAE,IAAI,IAAO,CAAE,IAAI,EAAE,IAAO,CAAE,EAAE,KAAK,KAEpE,oBACE,SAAU,SACV,OAAQ,KACR,QAAS,EACT,OAAQ,IAAI,MAAM,KAGpB,gBACE,QAAS,KAEG,iBAAd,aACE,sBAAuB,KACvB,oBAAqB,KACrB,iBAAkB,KAClB,gBAAiB,KACjB,YAAa,KACb,4BAA6B,YAE/B,qBAAsB,+BACpB,eAAgB,KAEQ,iCAA1B,uBACE,eAAgB,KAElB,eACE,sBAAuB,QACvB,oBAAqB,KACrB,iBAAkB,KAClB,gBAAiB,KACjB,YAAa,KAEf,aACE,OAAQ,iBACR,OAAQ,cACR,OAAQ,SAEV,SACE,OAAQ,KACR,OAAQ,aACR,OAAQ,UACR,OAAQ,KAEV,YACE,SAAU,SACV,iBAAkB,qBAClB,cAAe,IACf,QAAS,IAEX,kBACE,iBAAkB,qBAEpB,SACE,IAAK,KACL,KAAM,KAER,WACE,IAAK,KACL,MAAO,KACP,WAAY,QAAQ,KAAK,MAAM,CAAE,WAAW,GAAG,OAEjD,qBACE,QAAS,EACT,WAAY,OACZ,WAAY,QAAQ,KAAK,MAAM,CAAE,WAAW,GAAG,OAAO,KAExD,gBACE,IAAK,QACL,KAAM,KAER,gBACE,MAAO,KACP,IAAK,KAGP,mBACE,QAAS,MACT,OAAQ,IACR,QAAS,EACT,MAAO,KACP,UAAW,OACX,YAAa,IACb,gBAAiB,KACjB,WAAY,OACZ,OAAQ,QACR,MAAO,QACP,YAAa,KACb,iBAAkB,kBAClB,OAAQ,KACR,cAAe,IAEjB,qCACE,OAAQ,KACR,QAAS,EAEX,wBACE,eAAgB,KAElB,uBACE,YAAa,MAEf,YACE,QAAS,MACT,YAAa,IACb,UAAW,MACX,YAAa,UAEf,6BACE,UAAW,MAEb,0BACE,IAAK,MAGP,yBADA,yBAEE,gBAAiB,KACjB,iBAAkB,kBAEpB,qBACE,cAAe,IAAI,IAAI,EAAE,EAE3B,sBACE,cAAe,EAAE,EAAE,IAAI,IAIzB,gBACE,WAAY,MACZ,OAAQ,KACR,MAAO,KACP,UAAW,mBAGb,mBACE,OAAQ,EACR,QAAS,EAAE,KACX,MAAO,KACP,YAAa,EAAE,EAAE,IAAI,KAEvB,mBACE,QAAS,OACT,WAAY,KAEd,0CACE,QAAS,IAEX,oBACE,WAAY,IACZ,UAAW,QACX,eAAgB,OAEE,uBAApB,mBACE,QAAS,aAEX,gCACE,QAAS,KAEX,mCACE,WAAY,qBAEd,iCACE,OAAQ,EACR,MAAO,EACP,cAAe,IAAI,EAAE,EAEvB,qCACE,WAAY,MACZ,WAAY,MAEd,wCACE,QAAS,KAGX,eACE,IAAK,MACL,KAAM,KACN,OAAQ,MAEV,sBACE,SAAU,SACV,OAAQ,KAGV,yBACE,IAAK,MAGP,gBACE,KAAM,KACN,OAAQ,KAEV,iCACE,OAAQ,EACR,KAAM,EACN,cAAe,EAAE,IAAI,EAAE,EAEzB,oCACA,uBACE,QAAS,aAEX,oCACE,OAAQ,IAAI,MAAM,QAClB,OAAQ,MACR,OAAQ,IACR,MAAO,MAET,0CACE,OAAQ,IACR,KAAM,IACN,SAAU,SAEZ,iDACA,wCACE,QAAS,KAEX,mCACE,WAAY,qBAEd,oBACE,OAAQ,IAAI,OAAO,kBAGrB,0CACE,OAAQ"}

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js

File diff suppressed because one or more lines are too long

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/js/open_layers/ol.js.map

File diff suppressed because one or more lines are too long

3
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java

@ -39,4 +39,7 @@ public class ConfigurazioneConstants {
public static final String IRIS_GENERAZIONE_IUV_URL = "conf.geniocivile.scheduler.iris.iuv.url"; public static final String IRIS_GENERAZIONE_IUV_URL = "conf.geniocivile.scheduler.iris.iuv.url";
public static final String IMPORTO_BOLLO = "conf.geniocivile.scheduler.iris.importobollo"; public static final String IMPORTO_BOLLO = "conf.geniocivile.scheduler.iris.importobollo";
public static final String MAPPE_URL_IFRAME_FE = "conf.sismica.mappe.iframe.url.fe";
public static final String MAPPE_URL_IFRAME_BO = "conf.sismica.mappe.iframe.url.bo";
public static final String MAPPE_SHARED_SECRET = "conf.sismica.mappe.secret";
} }
Caricamento…
Annulla
Salva