Sfoglia il codice sorgente

add dates to render url

develop
E-A 2 anni fa
parent
commit
64049d16e8
  1. BIN
      liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
  2. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  3. BIN
      liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
  4. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  5. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  6. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath
  7. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/.gitignore
  8. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/ant.xml
  9. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/jpa-buddy.xml
  10. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/misc.xml
  11. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/vcs.xml
  12. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project
  13. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
  15. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  16. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  17. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  18. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  19. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  20. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java
  21. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java
  22. 23
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml
  23. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  24. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java
  25. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  26. 1
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/build.xml
  27. BIN
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  28. BIN
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-reportistica-portlet-service.jar
  29. 10
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-plugin-package.properties
  30. 3
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-portlet.xml
  31. 2
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/portlet.xml
  32. 5
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/it/nextmind/portos/reportistica/ReportisticaPortlet.java
  33. 3
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/init.jsp
  34. 53
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/view.jsp
  35. 1
      liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/ivy.xml.MD5

BIN
liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar vendored

File binario non mostrato.

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath

@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" output="docroot/WEB-INF/classes-service" path="docroot/WEB-INF/service"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

10
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/.gitignore vendored

@ -1,10 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Zeppelin ignored files
/ZeppelinRemoteNotebooks/

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/ant.xml

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AntConfiguration">
<buildFile url="file://$PROJECT_DIR$/build.xml" />
</component>
</project>

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/jpa-buddy.xml

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JpaBuddyIdeaProjectConfig">
<option name="renamerInitialized" value="true" />
</component>
</project>

9
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/misc.xml

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
<component name="ProjectType">
<option name="id" value="jpab" />
</component>
</project>

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/vcs.xml

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
</component>
</project>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project

@ -35,7 +35,7 @@
</natures>
<filteredResources>
<filter>
<id>1676466957656</id>
<id>1679562748565</id>
<name></name>
<type>30</type>
<matcher>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Liferay v6.2 CE (Tomcat 7)"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="liferay.portlet" version="6.0"/>

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar

File binario non mostrato.

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java

@ -25,4 +25,8 @@ public interface IntPraticaFinder {
public int canAddCollaudoCount(
java.lang.String codiceFiscaleDelegatoCollaudo)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List filtraPratiche(java.util.Date dataInizioLavori,
java.util.Date dataFineLavori)
throws com.liferay.portal.kernel.exception.SystemException;
}

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java

@ -34,6 +34,12 @@ public class IntPraticaFinderUtil {
return getFinder().canAddCollaudoCount(codiceFiscaleDelegatoCollaudo);
}
public static java.util.List filtraPratiche(
java.util.Date dataInizioLavori, java.util.Date dataFineLavori)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().filtraPratiche(dataInizioLavori, dataFineLavori);
}
public static IntPraticaFinder getFinder() {
if (_finder == null) {
_finder = (IntPraticaFinder)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(),

23
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml

@ -16,4 +16,27 @@
and fine.completata = true order by int.createdate;
]]>
</sql>
<sql id="IntPratica.reportPraticaStato">
<![CDATA[
select tipoprocedura, statopratica, count(*)
from portos_bo_intpratica pbi
where pbi.dtpratica > ?
and pbi.dtpratica < ?
group by tipoprocedura, statopratica
order by tipoprocedura;
]]>
</sql>
<sql id="IntPratica.reportPraticaIntegrazioni">
<![CDATA[
select tipoprocedura, count(*)
from portos_bo_avviso pbd
join portos_bo_intpratica pbi
on pbi.intpraticaid = pbd.intpraticaid
where
pbi.createdate > ?
and pbi.createdate < ?
and tipodocumento = 'IN'
group by tipoprocedura order by tipoprocedura;
]]>
</sql>
</custom-sql>

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

@ -31,6 +31,7 @@ import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.base.IntPraticaLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinderUtil;
import it.tref.liferay.portos.bo.shared.bean.FirmeBean;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
@ -56,6 +57,7 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
@ -131,6 +133,9 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
private static Map<String, String> vecchieProcedure = null;
private static final Log _log = LogFactoryUtil.getLog(IntPraticaLocalServiceImpl.class);
public Iterator filtraPratiche(Date dataInizioLavori, Date dataFineLavori) {
return IntPraticaFinderUtil.filtraPratiche(dataInizioLavori, dataFineLavori);
}
@Override
public Map<String, String> getTipiProcedure() {

37
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java

@ -1,10 +1,5 @@
package it.tref.liferay.portos.bo.service.persistence;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl;
import java.util.List;
import com.liferay.portal.kernel.dao.orm.ORMException;
import com.liferay.portal.kernel.dao.orm.QueryPos;
import com.liferay.portal.kernel.dao.orm.SQLQuery;
@ -15,6 +10,13 @@ import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;
import com.liferay.util.dao.orm.CustomSQLUtil;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implements IntPraticaFinder {
private static final Log _log = LogFactoryUtil.getLog(IntPraticaFinderImpl.class);
@ -71,4 +73,29 @@ public class IntPraticaFinderImpl extends BasePersistenceImpl<IntPratica> implem
}
}
}
private final String FILTRA_PRATICHE = "IntPratica.reportPraticaStato";
private final String FILTRA_PRATICHE_AVVISO = "IntPratica.reportPraticaIntegrazioni";
public Iterator filtraPratiche(Date dataInizioLavori, Date dataFineLavori)
throws SystemException {
Session session = null;
try {
session = openSession();
String sql = CustomSQLUtil.get(FILTRA_PRATICHE);
SQLQuery query = session.createSQLQuery(sql);
query.setCacheable(false);
QueryPos qPos = QueryPos.getInstance(query);
qPos.add(dataInizioLavori);
qPos.add(dataFineLavori);
Iterator l = query.iterate();
_log.debug(l.getClass().getSimpleName());
return l;
} catch (ORMException e) {
_log.error("Errore", e);
throw new RuntimeException(e);
} finally {
if (session != null) {
closeSession(session);
}
}
}
}

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=3616
build.date=1677835577253
build.number=3622
build.date=1679568472281
build.auto.upgrade=true
##

1
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/build.xml

@ -3,4 +3,5 @@
<project name="portos-reportistica-portlet" basedir="." default="deploy">
<import file="../build-common-portlet.xml" />
</project>

BIN
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/lib/portos-reportistica-portlet-service.jar

File binario non mostrato.

10
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-plugin-package.properties

@ -10,9 +10,9 @@ author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.2.0+
portal-dependency-jars=\
jstl-api.jar,\
jstl-impl.jar
jstl-api.jar,\
jstl-impl.jar
portal-dependency-tlds=\
c.tld
required-deployment-contexts=\
portos-bo-portlet
c.tld
required-deployment-contexts=\
portos-bo-portlet

3
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/liferay-portlet.xml

@ -5,6 +5,9 @@
<portlet>
<portlet-name>portos-reportistica</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>
configuration
</control-panel-entry-category>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>portos-reportistica-portlet</css-class-wrapper>

2
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/portlet.xml

@ -7,7 +7,7 @@
<portlet-class>com.liferay.util.bridges.mvc.MVCPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/view.jsp</value>
<value>/html/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>

5
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/WEB-INF/src/it/nextmind/portos/reportistica/ReportisticaPortlet.java

@ -1,5 +0,0 @@
package it.nextmind.portos.reportistica;
public class ReportisticaPortlet {
}

3
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/init.jsp

@ -17,6 +17,3 @@
<liferay-theme:defineObjects />
<portlet:defineObjects />
<%
Format dateFormatDate = FastDateFormatFactoryUtil.getDate(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome"));
%>

53
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/docroot/html/view.jsp

@ -1,34 +1,55 @@
<%@page import="java.util.Iterator"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.persistence.IntPraticaFinderUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.persistence.IntPraticaFinderUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Date"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="com.liferay.portal.model.Group"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="com.liferay.portal.kernel.util.DateFormatFactoryUtil"%>
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@ include file="/html/init.jsp"%>
<%
Date dataInizioLavori = ParamUtil.getDate(request, "dataInizioInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd"));
Date dataFineLavori = ParamUtil.getDate(request, "dataFineInput", DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd"));
%>
<aui:row>
<liferay-portlet:actionURL
name="cambiaDataInizioLavori"
var="cambiaDataInizioLavoriURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:renderURL
var="filtraPerRangeDataURL" >
<liferay-portlet:param name="dataInizioLavori" value="<%= String.valueOf(dataInizioLavori) %>"/>
<liferay-portlet:param name="dataFineLavori" value="<%= String.valueOf(dataFineLavori) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String functionDataInizio = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace()+"cambiaDataInizioLavori','Sei sicuro di voler modificare la DATA di INIZIO LAVORI?')";
%>
<aui:form action="<%= cambiaDataInizioLavoriURL %>" method="post" name="cambiaDataInizioLavori">
</liferay-portlet:renderURL>
<aui:form action="<%= filtraPerRangeDataURL %>" method="post">
<div style="display:flex;">
<p><b>Data inizio Lavori Opera:</b></p>
<aui:input
name="dataInizioLavoriOperaInput"
name="dataInizioInput"
inlineLabel="left"
type="date"
value='<%= DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd").format(dataInizioLavori) %>'>
</aui:input>
<p><b>Data fine Lavori Opera:</b></p>
<aui:input
name="dataFineInput"
label=""
inlineLabel="left"
type="date"
value='<%= DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd").format(dataInizioLavoriOpera) %>'>
value='<%= DateFormatFactoryUtil.getSimpleDateFormat("yyyy-MM-dd").format(dataFineLavori) %>'>
</aui:input>
<div>
<aui:button
name="cambiaDataInizioLavoriBtn"
name="PulsanteFiltro"
cssClass="btn-primary"
type="button"
value="Cambia"
onClick='<%= functionDataInizio %>'/>
type="submit"
/>
</div>
</div>
</aui:form>
</aui:row>
</aui:row>

1
liferay-plugins-sdk-6.2/portlets/portos-reportistica-portlet/ivy.xml.MD5

@ -0,0 +1 @@
e801ce4e2cdef8a0bf759f7d48e9ed48
Caricamento…
Annulla
Salva