Sfoglia il codice sorgente

Eliminata entità Tempistica

master
Salvatore La Manna 3 anni fa
parent
commit
fe334a2888
  1. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar
  2. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-io.jar
  3. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar
  4. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar
  11. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar
  12. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
  13. 34
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml
  14. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  15. 572
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld
  16. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/tempistiche/init.jsp
  17. 383
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/tempistiche/view.jsp
  18. 99
      liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/notification/portlet/NotificationPortlet.java

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

@ -129,12 +129,6 @@
<add-default-resource>true</add-default-resource> <add-default-resource>true</add-default-resource>
<system>true</system> <system>true</system>
</portlet> </portlet>
<portlet>
<portlet-name>10</portlet-name>
<icon>/icon.png</icon>
<css-class-wrapper>tempistiche-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>
<portlet> <portlet>
<portlet-name>11</portlet-name> <portlet-name>11</portlet-name>
<icon>/icon.png</icon> <icon>/icon.png</icon>

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

@ -270,40 +270,6 @@
<role-name>user</role-name> <role-name>user</role-name>
</security-role-ref> </security-role-ref>
</portlet> </portlet>
<portlet>
<portlet-name>10</portlet-name>
<display-name>Tempistiche</display-name>
<portlet-class>
it.tref.liferay.portos.bo.portlet.TempistichePortlet
</portlet-class>
<init-param>
<name>view-template</name>
<value>/html/tempistiche/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<resource-bundle>content.Language</resource-bundle>
<portlet-info>
<title>Tempistiche</title>
<short-title>10</short-title>
<keywords></keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet> <portlet>
<portlet-name>11</portlet-name> <portlet-name>11</portlet-name>
<display-name>Generate Protocollo Csv</display-name> <display-name>Generate Protocollo Csv</display-name>

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=3347 build.number=3348
build.date=1631524835570 build.date=1631526462579
build.auto.upgrade=true build.auto.upgrade=true
## ##

572
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld

@ -1,572 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<description>JSTL 1.2 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.2</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>
<validator>
<description>
Provides core validation features for JSTL tags.
</description>
<validator-class>
org.apache.taglibs.standard.tlv.JstlCoreTLV
</validator-class>
</validator>
<tag>
<description>
Catches any Throwable that occurs in its body and optionally
exposes it.
</description>
<name>catch</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
exception thrown from a nested action. The type of the
scoped variable is the type of the exception thrown.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Simple conditional tag that establishes a context for
mutually exclusive conditional operations, marked by
&lt;when&gt; and &lt;otherwise&gt;
</description>
<name>choose</name>
<tag-class>com.liferay.taglib.core.ChooseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Simple conditional tag, which evalutes its body if the
supplied condition is true and optionally exposes a Boolean
scripting variable representing the evaluation of this condition
</description>
<name>if</name>
<tag-class>com.liferay.taglib.core.IfTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or
not the body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Retrieves an absolute or relative URL and exposes its contents
to either the page, a String in 'var', or a Reader in 'varReader'.
</description>
<name>import</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to import.
</description>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is Reader.
</description>
<name>varReader</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when accessing a relative
URL resource that belongs to a foreign
context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Character encoding of the content at the input
resource.
</description>
<name>charEncoding</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
The basic iteration tag, accepting many different
collection types and supporting subsetting and other
functionality
</description>
<name>forEach</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
<tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
<body-content>JSP</body-content>
<attribute>
<description>
Collection of items to iterate over.
</description>
<name>items</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.Object</type>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
If items specified:
Iteration begins at the item located at the
specified index. First item of the collection has
index 0.
If items not specified:
Iteration begins with index set at the value
specified.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
If items specified:
Iteration ends at the item located at the
specified index (inclusive).
If items not specified:
Iteration ends when index reaches the value
specified.
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step items of
the collection, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility. Its type depends
on the object of the underlying collection.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of type
javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Iterates over tokens, separated by the supplied delimeters
</description>
<name>forTokens</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
String of tokens to iterate over.
</description>
<name>items</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description>
The set of delimiters (the characters that
separate the tokens in the string).
</description>
<name>delims</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<description>
Iteration begins at the token located at the
specified index. First token has index 0.
</description>
<name>begin</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration ends at the token located at the
specified index (inclusive).
</description>
<name>end</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Iteration will only process every step tokens
of the string, starting with the first one.
</description>
<name>step</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>int</type>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of
type
javax.servlet.jsp.jstl.core.LoopTag
Status. This scoped variable has nested
visibility.
</description>
<name>varStatus</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Default value if the resulting value is null.
</description>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Determines whether characters &lt;,&gt;,&amp;,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
</description>
<name>escapeXml</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that follows &lt;when&gt; tags
and runs only if all of the prior conditions evaluated to
'false'
</description>
<name>otherwise</name>
<tag-class>com.liferay.taglib.core.OtherwiseTag</tag-class>
<body-content>JSP</body-content>
</tag>
<tag>
<description>
Adds a parameter to a containing 'import' tag's URL.
</description>
<name>param</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the query string parameter.
</description>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Value of the parameter.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Redirects to a new URL.
</description>
<name>redirect</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The URL of the resource to redirect to.
</description>
<name>url</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when redirecting to a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Removes a scoped variable (from a particular scope, if specified).
</description>
<name>remove</name>
<tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description>
Name of the scoped variable to be removed.
</description>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Sets the result of an expression evaluation in a 'scope'
</description>
<name>set</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable to hold the value
specified in the action. The type of the scoped variable is
whatever type the value expression evaluates to.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Expression to be evaluated.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Target object whose property will be set. Must evaluate to
a JavaBeans object with setter property property, or to a
java.util.Map object.
</description>
<name>target</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the property to be set in the target object.
</description>
<name>property</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Creates a URL with optional query parameters.
</description>
<name>url</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
Name of the exported scoped variable for the
processed url. The type of the scoped variable is
String.
</description>
<name>var</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
Scope for var.
</description>
<name>scope</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<description>
URL to be processed.
</description>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description>
Name of the context when specifying a relative URL
resource that belongs to a foreign context.
</description>
<name>context</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag>
<description>
Subtag of &lt;choose&gt; that includes its body if its
condition evalutes to 'true'
</description>
<name>when</name>
<tag-class>com.liferay.taglib.core.WhenTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<description>
The test condition that determines whether or not the
body content should be processed.
</description>
<name>test</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>boolean</type>
</attribute>
</tag>
</taglib>

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/tempistiche/init.jsp

@ -1,7 +0,0 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %>
<%
Format dateFormat = FastDateFormatFactoryUtil.getDate(locale);
Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale);
%>

383
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/tempistiche/view.jsp

@ -1,383 +0,0 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.service.impl.AvvisoLocalServiceImpl"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.TempisticaConstants"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>
<%@page import="com.liferay.portlet.PortletURLUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.kernel.exception.PortalException"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="java.util.concurrent.TimeUnit"%>
<%@page import="com.liferay.portal.kernel.util.DateUtil"%>
<%@page import="java.util.Calendar"%>
<%@page import="org.apache.commons.lang.time.DateUtils"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.Format"%>
<%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.ControlloPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Comune"%>
<%@page import="it.tref.liferay.portos.bo.model.Territorio"%>
<%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="javax.portlet.PortletURL"%>
<%@include file="/html/tempistiche/init.jsp" %>
<%
long companyId = company.getCompanyId();
long groupId = 0l;
boolean fromPopUp = renderRequest.getWindowState().equals(LiferayWindowState.POP_UP);
//ADT - BUG-14 - Scadenziario
//ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
String tmpStatoPratica = request.getParameter("statoPratica");
Integer statoPratica = Validator.isNotNull(tmpStatoPratica) && !"".equals(tmpStatoPratica.trim()) ? Integer.parseInt(tmpStatoPratica) : null;
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("statoPratica", request.getParameter("statoPratica"));
//ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca
String tipoPratica = request.getParameter("tipoPratica");
String istruttore = request.getParameter("istruttore");
if(Validator.isNotNull(tipoPratica))
portletURL.setParameter("tipoPratica", tipoPratica);
if(Validator.isNotNull(istruttore))
portletURL.setParameter("istruttore", istruttore);
%>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="label.scadenzegeniocivile.pratiche" id='<%=renderResponse.getNamespace() + "panelScadenzaPraticheId" %>'>
<!-- ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca -->
<liferay-portlet:actionURL name="search" var="searchURL">
<%-- <liferay-portlet:param name="statoPratica" value="<%= String.valueOf(statoPratica) %>" /> --%>
</liferay-portlet:actionURL>
<aui:form method="POST" name="fm" action="<%= searchURL.toString() %>">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<aui:select name="tipoPratica" label="Tipo Pratica">
<aui:option value="">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:input type="text" name="istruttore" label="Istruttore" />
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<aui:select name="statoPratica" label="Scadenza">
<aui:option value="">Seleziona la scadenza</aui:option>
<aui:option value="1"><liferay-ui:message key="Attive"/></aui:option>
<aui:option value="0"><liferay-ui:message key="In Scadenza"/></aui:option>
<aui:option value="-1"><liferay-ui:message key="Scadute"/></aui:option>
</aui:select>
</div>
</div>
<aui:button type="submit" id="<portlet:namespace />submitSearch" value="search" ></aui:button>
</div>
</aui:form>
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL">
<liferay-portlet:param name="tipoTempistica" value="<%= TempisticaConstants.TIPO_PRATICA %>" />
<liferay-portlet:param name="groupId" value="<%= String.valueOf(groupId) %>" />
<liferay-portlet:param name="statoPratica" value="<%= tmpStatoPratica %>" />
<!-- ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca -->
<liferay-portlet:param name="tipoPratica" value="<%= tipoPratica %>" />
<liferay-portlet:param name="istruttore" value="<%= istruttore %>" />
</liferay-portlet:resourceURL>
<liferay-portlet:resourceURL id="exportAllCSV" var="exportAllScadenzePraticheURL">
<liferay-portlet:param name="tipoTempistica" value="<%= TempisticaConstants.TIPO_PRATICA %>" />
<liferay-portlet:param name="groupId" value="<%= String.valueOf(groupId) %>" />
</liferay-portlet:resourceURL>
<aui:button-row cssClass="margin-top-1">
<liferay-ui:icon linkCssClass="btn btn-action btn-primary pull-right" iconCssClass="fa fa-floppy-o" message="export" label="<%= true %>" url="<%= exportScadenzePraticheURL %>" target="_blank" />
<liferay-ui:icon linkCssClass="btn btn-action btn-primary pull-left" iconCssClass="fa fa-floppy-o" message="Esporta Tutto" label="<%= true %>" url="<%= exportAllScadenzePraticheURL %>" target="_blank" />
</aui:button-row>
<liferay-ui:search-container delta="10" emptyResultsMessage="no-entries-were-found"
deltaParam="praticheDeltaParam" curParam="praticheCurParam" iteratorURL="<%=portletURL%>">
<!-- //ADT - BUG-14 - Scadenziario -->
<!-- //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca -->
<liferay-ui:search-container-results
results="<%= TempisticaLocalServiceUtil.getScadenzePratiche(companyId, groupId, searchContainer.getStart(), searchContainer.getEnd(), statoPratica, tipoPratica, istruttore) %>"
total="<%= TempisticaLocalServiceUtil.countScadenzePratiche(companyId, groupId, statoPratica, tipoPratica, istruttore) %>"
/>
<liferay-ui:search-container-row
className="java.lang.Object[]"
modelVar="tempistica"
>
<%
Long intPraticaId = (Long) tempistica[0];
Long start = (Long) tempistica[1];
Long stop = (Long) tempistica[2];
Long wait = (Long) tempistica[3];
Long calcoloTempo = (Long) tempistica[4];
Integer stato = (Integer) tempistica[5];
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
%>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.tipopratica" >
<liferay-ui:message key='<%="tipo-pratica-"+intPratica.getTipoPratica() %>'/>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.progetto">
<%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.istruttore">
<%
User istruttoreUser = null;
long statusByUserId = intPratica.getStatusByUserId();
if (Validator.isNotNull(statusByUserId)) {
try {
istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
} catch(PortalException e) {
}
}
%>
<c:if test="<%= Validator.isNotNull(istruttoreUser) %>">
<%= istruttoreUser.getFullName() + StringPool.SPACE
+ StringPool.OPEN_PARENTHESIS + istruttoreUser.getScreenName() + StringPool.CLOSE_PARENTHESIS %>
</c:if>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="provincia" >
<%= provincia.getProvincia()+" - "+comune.getDenominazione() %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.datavidimazione"
value="<%=dateTimeFormat.format(intPratica.getCreateDate()) %>" />
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.datasorteggio"
value="<%= Validator.isNotNull(intPratica.getDtSorteggio()) ?
dateFormat.format(intPratica.getDtSorteggio()) : StringPool.BLANK %>" />
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.start">
<%=TempisticaLocalServiceUtil.getDtSottopostaAParere(intPraticaId) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.tempoattivita"
value="<%=String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo))%>" />
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.timerfermo">
<c:choose>
<c:when test="<%=Validator.isNotNull(stop) %>">
<liferay-ui:message key="yes" />
<liferay-ui:message key="label.scadenzegeniocivile.timer.dal"
arguments="<%= new Object[] { dateFormat.format(new Date(stop)) } %>" />
</c:when>
<c:otherwise>
<liferay-ui:message key="no" />
</c:otherwise>
</c:choose>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.scadenza">
<c:choose>
<c:when test="<%= Validator.isNotNull(stop) %>">
<span class="fa fa-circle" aria-hidden="true" style="color:transparent; padding-right:15px"></span>
<liferay-ui:message key="label.scadenzegeniocivile.scadenza.inattesa" />
</c:when>
<c:when test="<%=stato.intValue() == TempisticaConstants.STATO_IN_SCADENZA %>">
<span class="fa fa-circle" aria-hidden="true" style="color:yellow; padding-right:15px"></span>
<liferay-ui:message key="label.scadenzegeniocivile.scadenza.inscadenza" />
</c:when>
<c:when test="<%=stato.intValue() == TempisticaConstants.STATO_SCADUTA %>">
<span class="fa fa-circle" aria-hidden="true" style="color:red; padding-right:15px"></span>
<liferay-ui:message key="label.scadenzegeniocivile.scadenza.scaduto" />
</c:when>
<c:when test="<%=stato.intValue() == TempisticaConstants.STATO_ATTIVA %>">
<span class="fa fa-circle" aria-hidden="true" style="color:green; padding-right:15px"></span>
<liferay-ui:message key="label.scadenzegeniocivile.scadenza.attivo" />
</c:when>
</c:choose>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="" align="center">
<%
String urlDettaglioPratica = StringPool.BLANK;
if (fromPopUp) {
urlDettaglioPratica = FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId());
}
else {
urlDettaglioPratica = FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId());
}
%>
<aui:button-row cssClass="margin-0 text-center">
<liferay-ui:icon linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza"
url='<%=FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>' target="_blank"/>
</aui:button-row>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
</liferay-ui:panel>
</div>
</div>
</div>
<br/>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="module-group">
<liferay-ui:panel extended="false" defaultState="open" collapsible="false" title="label.scadenzegeniocivile.integrazioni" id='<%=renderResponse.getNamespace() + "panelScadenzaIntegrazioniId" %>'>
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzeIntegrazioniURL">
<liferay-portlet:param name="tipoTempistica" value="<%= TempisticaConstants.TIPO_INTEGRAZIONE %>" />
</liferay-portlet:resourceURL>
<aui:button-row cssClass="margin-top-0">
<liferay-ui:icon linkCssClass="btn btn-action btn-primary pull-right" iconCssClass="fa fa-floppy-o" message="export" label="<%= true %>" url="<%= exportScadenzeIntegrazioniURL %>" target="_blank" />
</aui:button-row>
<liferay-ui:search-container delta="10" emptyResultsMessage="no-entries-were-found"
deltaParam="integrazioniDeltaParam" curParam="integrazioniCurParam" iteratorURL="<%=portletURL%>">
<!-- //ADT - BUG-14 - Scadenziario -->
<liferay-ui:search-container-results
results="<%= TempisticaLocalServiceUtil.getScadenzeIntegrazioni(companyId, groupId, searchContainer.getStart(), searchContainer.getEnd(), statoPratica) %>"
total="<%= TempisticaLocalServiceUtil.countScadenzeIntegrazioni(companyId, groupId) %>"
/>
<liferay-ui:search-container-row
className="java.lang.Object[]"
modelVar="tempistica"
>
<%
Long intPraticaId = (Long) tempistica[0];
Long start = (Long) tempistica[1];
Long calcoloTempo = (Long) tempistica[2];
Integer stato = (Integer) tempistica[3];
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
%>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.tipopratica">
<liferay-ui:message key='<%="tipo-pratica-"+intPratica.getTipoPratica() %>'/>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.progetto" >
<%= intPratica.getTitle(locale, true) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.istruttore">
<%
User istruttoreUser = null;
long statusByUserId = intPratica.getStatusByUserId();
if (Validator.isNotNull(statusByUserId)) {
try {
istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
} catch(PortalException e) {
}
}
%>
<c:if test="<%= Validator.isNotNull(istruttoreUser) %>">
<%= istruttoreUser.getFullName() + StringPool.SPACE
+ StringPool.OPEN_PARENTHESIS + istruttoreUser.getScreenName() + StringPool.CLOSE_PARENTHESIS %>
</c:if>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="provincia" >
<%= provincia.getProvincia()+" - "+comune.getDenominazione() %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.start" >
<%
//out.print(dateFormat.format(intPratica.getDtPratica()));
//ADT: bug scadenzario- data invio = data invio integrazione
Avviso avv = AvvisoLocalServiceUtil.getLastAvvisoIntegrazione(intPratica.getIntPraticaId());
if (avv!=null && avv.getDtInvio()!=null){
out.print(dateFormat.format(avv.getDtInvio()));
}else{
out.print(dateFormat.format(intPratica.getDtPratica()));
}
%>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.tempoattivita"
value="<%=String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo))%>" />
<liferay-ui:search-container-column-text name="label.scadenzegeniocivile.scadenza">
<c:choose>
<c:when test="<%=stato.intValue() == TempisticaConstants.STATO_SCADUTA %>">
<span class="fa fa-circle" aria-hidden="true" style="color:red; padding-right:15px"></span>
<liferay-ui:message key="label.scadenzegeniocivile.scadenza.scaduto" />
</c:when>
<c:when test="<%=stato.intValue() == TempisticaConstants.STATO_ATTIVA %>">
<span class="fa fa-circle" aria-hidden="true" style="color:green; padding-right:15px"></span>
<liferay-ui:message key="label.scadenzegeniocivile.scadenza.attivo" />
</c:when>
</c:choose>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="" align="center">
<%
String urlDettaglioPratica = FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId());
%>
<aui:button-row cssClass="margin-0 text-center">
<liferay-ui:icon linkCssClass="btn btn-action" iconCssClass="fa fa-clipboard" message="Visualizza"
url='<%=FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>' target="_blank"/>
</aui:button-row>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
</liferay-ui:panel>
</div>
</div>
</div>
</div>

99
liferay-plugins-sdk-6.2/portlets/portos-notification-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/notification/portlet/NotificationPortlet.java

@ -1,10 +1,6 @@
package it.tref.liferay.portos.notification.portlet; package it.tref.liferay.portos.notification.portlet;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ClpSerializer;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import java.io.IOException; import java.io.IOException;
@ -14,10 +10,6 @@ import javax.portlet.PortletException;
import javax.portlet.ResourceRequest; import javax.portlet.ResourceRequest;
import javax.portlet.ResourceResponse; import javax.portlet.ResourceResponse;
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
@ -33,8 +25,6 @@ import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory; import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken;
import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
/** /**
@ -45,39 +35,30 @@ public class NotificationPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(NotificationPortlet.class); private static final Log _log = LogFactoryUtil.getLog(NotificationPortlet.class);
@Override @Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException,
throws IOException, PortletException { PortletException {
String id = resourceRequest.getResourceID(); String id = resourceRequest.getResourceID();
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest);
long companyId = serviceContext.getCompanyId(); long companyId = serviceContext.getCompanyId();
// long groupId = serviceContext.getScopeGroupId();
long userId = serviceContext.getUserId(); long userId = serviceContext.getUserId();
int count = 0; int count = 0;
if ("countTasksUser".equals(id)) { if ("countTasksUser".equals(id)) {
try { try {
count = WorkflowTaskManagerUtil.getWorkflowTaskCountByUser(companyId, userId, false); count = WorkflowTaskManagerUtil.getWorkflowTaskCountByUser(companyId, userId, false);
} catch (WorkflowException e) { } catch (WorkflowException e) {}
}
} else if ("countTasksUserRoles".equals(id)) { } else if ("countTasksUserRoles".equals(id)) {
try { try {
count = WorkflowTaskManagerUtil.getWorkflowTaskCountByUserRoles(companyId, userId, false); count = WorkflowTaskManagerUtil.getWorkflowTaskCountByUserRoles(companyId, userId, false);
} catch (WorkflowException e) { } catch (WorkflowException e) {}
}
} else if ("countTaksGestioneFirmeMie".equals(id)) { } else if ("countTaksGestioneFirmeMie".equals(id)) {
count = AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByCF(companyId, count = AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByCF(companyId, UserLocalServiceUtil
UserLocalServiceUtil.getUser(userId).getScreenName()); .getUser(userId).getScreenName());
} else if ("countTaksGestioneFirme".equals(id)) { } else if ("countTaksGestioneFirme".equals(id)) {
long[] groupIds = new long[0]; long[] groupIds = new long[0];
List<Organization> organizations = OrganizationLocalServiceUtil.getUserOrganizations(serviceContext
List<Organization> organizations = OrganizationLocalServiceUtil .getUserId());
.getUserOrganizations(serviceContext.getUserId());
for (Organization organization : organizations) { for (Organization organization : organizations) {
if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(serviceContext.getUserId(), if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(serviceContext.getUserId(),
organization.getGroupId(), Constants.ROLE_NAME_FIRMA, true)) { organization.getGroupId(), Constants.ROLE_NAME_FIRMA, true)) {
@ -89,87 +70,35 @@ public class NotificationPortlet extends MVCPortlet {
} }
count = AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirma(companyId, groupIds); count = AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirma(companyId, groupIds);
} else if ("countPraticheInScadenza".equals(id)) { } else if ("countPraticheInScadenza".equals(id)) {
count = TempisticaLocalServiceUtil.countScadenzePraticheInScadenza(companyId, 0l); count = 0;
} else if ("countPraticheScadute".equals(id)) { } else if ("countPraticheScadute".equals(id)) {
count = TempisticaLocalServiceUtil.countScadenzePraticheScadute(companyId, 0l); count = 0;
} else if ("countIntegrazioniScadute".equals(id)) { } else if ("countIntegrazioniScadute".equals(id)) {
count = TempisticaLocalServiceUtil.countScadenzeIntegrazioniScadute(companyId, 0l); count = 0;
} else if ("countPraticheAttive".equals(id)) { } else if ("countPraticheAttive".equals(id)) {
count = TempisticaLocalServiceUtil.countPraticheAttive(companyId, 0l); count = 0;
} else if ("countPraticheAttiveAssegnazione".equals(id)) { } else if ("countPraticheAttiveAssegnazione".equals(id)) {
count = getCountPraticheAssegnazione(companyId, 0l, false); count = getCountPraticheAssegnazione(companyId, 0l, false);
} else if ("countPraticheAttiveOrdinarie".equals(id)) { } else if ("countPraticheAttiveOrdinarie".equals(id)) {
count = getCountPraticheAssegnazione(companyId, 0l, true); count = getCountPraticheAssegnazione(companyId, 0l, true);
} }
JSONObject obj = JSONFactoryUtil.createJSONObject(); JSONObject obj = JSONFactoryUtil.createJSONObject();
obj.put("count", count); obj.put("count", count);
writeJSON(resourceRequest, resourceResponse, obj); writeJSON(resourceRequest, resourceResponse, obj);
} catch (PortalException | SystemException e) {
} catch (PortalException e) {
_log.error("Error", e);
throw new PortletException(e);
} catch (SystemException e) {
_log.error("Error", e); _log.error("Error", e);
throw new PortletException(e); throw new PortletException(e);
} }
} }
private int getCountPraticheAssegnazione(long companyId, long groupId, boolean ordinarie) private int getCountPraticheAssegnazione(long companyId, long groupId, boolean ordinarie) throws SystemException {
throws SystemException {
ClassLoader classLoaderBO = (ClassLoader) PortletBeanLocatorUtil.locate(
ClpSerializer.getServletContextName(), "portletClassLoader");
ClassLoader classLoader = (ClassLoader) PortletBeanLocatorUtil.locate(
com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(),
"portletClassLoader");
List<Long> pratiche = TempisticaLocalServiceUtil.countPraticheAttivePerDiscriminazione(companyId, 0l);
int countControlloDaAssegnare = 0; int countControlloDaAssegnare = 0;
int countControlloOrdinarie = 0; int countControlloOrdinarie = 0;
for (Long intPraticaId : pratiche) {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class, classLoaderBO);
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty()) {
ControlloPratica controlloPratica = lista.get(0);
if (controlloPratica != null) {
DynamicQuery queryKaleo = DynamicQueryFactoryUtil.forClass(KaleoTaskInstanceToken.class,
classLoader);
queryKaleo.add(RestrictionsFactoryUtil.eq("classPK",
controlloPratica.getControlloPraticaId()));
queryKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName()));
queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione"));
queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false));
List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil
.dynamicQuery(queryKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) {
countControlloDaAssegnare++;
} else {
countControlloOrdinarie++;
}
}
}
}
if (ordinarie) { if (ordinarie) {
return countControlloOrdinarie; return countControlloOrdinarie;
} else { } else {
return countControlloDaAssegnare; return countControlloDaAssegnare;
} }
} }
} }

Caricamento…
Annulla
Salva