Sfoglia il codice sorgente

aggiunto pannello controlloPratica a Portos Advanced Operation

feature/fix_soggetti
marcoalderighi 2 anni fa
parent
commit
af1a469e4c
  1. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  2. 11
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java
  3. 49
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp
  4. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  5. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java
  6. 40
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java
  7. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java
  8. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java
  9. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java
  10. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  11. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

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

File binario non mostrato.

11
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java

@ -196,6 +196,17 @@ public class AdvancedOperationUtil {
}
return false;
}
public static boolean isWorkFlowCompleted(ControlloPratica controlloPratica){
try {
WorkflowTask task = WorkflowUtil.getLastTask(controlloPratica.getCompanyId(),
controlloPratica.getGroupId(), null, controlloPratica);
return task.isCompleted();
} catch (PortalException | SystemException e) {
_log.error(e,e);
}
return false;
}
public static List<DettPratica> fetchDettPraticaListWithInizioLavori(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){

49
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp

@ -616,13 +616,48 @@
}
%>
</aui:row>
<aui:row id="controlloPraticaDiv">
<div class="module-group">
<liferay-ui:panel title="CONTROLLO PRATICA" collapsible="false" extended="true">
</liferay-ui:panel>
</div>
</aui:row>
<c:if test="<%= ControlloPraticaLocalServiceUtil.countByIntPratica(intPraticaId) > 1 %>">
<aui:row id="controlloPraticaDiv">
<div class="module-group">
<liferay-ui:panel title="CONTROLLO PRATICA" collapsible="false" extended="true">
<aui:row>
<div id="sc-controllo-pratica">
<liferay-ui:search-container emptyResultsMessage="no-entries">
<liferay-ui:search-container-results
results="<%= ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId) %>"
total="<%= ControlloPraticaLocalServiceUtil.countByIntPratica(intPraticaId) %>"
/>
<liferay-ui:search-container-row
className="it.tref.liferay.portos.bo.model.ControlloPratica"
modelVar="controlloPratica">
<liferay-ui:search-container-column-text name="ID">
<%= controlloPratica.getControlloPraticaId() %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="STATUS">
<aui:workflow-status
status="<%= controlloPratica.getStatus() %>">
</aui:workflow-status>
<strong>(<%= controlloPratica.getStatus() %>)</strong>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="STATO WORKFLOW">
<%
String statoWorkflowMsg = StringPool.BLANK;
statoWorkflowMsg = AdvancedOperationUtil.isWorkFlowCompleted(controlloPratica) ?
"COMPLETATO" : "ATTIVO";
%>
<strong>
<liferay-ui:message key="<%= statoWorkflowMsg %>"></liferay-ui:message>
</strong>
</liferay-ui:search-container-column-text>
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>
</div>
</aui:row>
</liferay-ui:panel>
</div>
</aui:row>
</c:if>
</aui:row>
</aui:row>
<% } %>

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

File binario non mostrato.

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java

@ -426,6 +426,9 @@ public interface ControlloPraticaLocalService extends BaseLocalService,
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException;
public int countByIntPratica(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException;
public java.lang.Long calculateDateAvvioProcedimento(
long controlloPraticaId)
throws com.liferay.portal.kernel.exception.PortalException,

40
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java

@ -232,9 +232,13 @@ public class ControlloPraticaLocalServiceClp
_methodParameterTypes42 = new String[] { "long" };
_methodName43 = "calculateDateAvvioProcedimento";
_methodName43 = "countByIntPratica";
_methodParameterTypes43 = new String[] { "long" };
_methodName44 = "calculateDateAvvioProcedimento";
_methodParameterTypes44 = new String[] { "long" };
}
@Override
@ -1691,6 +1695,34 @@ public class ControlloPraticaLocalServiceClp
return (java.util.List<it.tref.liferay.portos.bo.model.ControlloPratica>)ClpSerializer.translateOutput(returnObj);
}
@Override
public int countByIntPratica(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes43, new Object[] { intPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return ((Integer)returnObj).intValue();
}
@Override
public java.lang.Long calculateDateAvvioProcedimento(
long controlloPraticaId)
@ -1699,8 +1731,8 @@ public class ControlloPraticaLocalServiceClp
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName43,
_methodParameterTypes43, new Object[] { controlloPraticaId });
returnObj = _invokableLocalService.invokeMethod(_methodName44,
_methodParameterTypes44, new Object[] { controlloPraticaId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1812,4 +1844,6 @@ public class ControlloPraticaLocalServiceClp
private String[] _methodParameterTypes42;
private String _methodName43;
private String[] _methodParameterTypes43;
private String _methodName44;
private String[] _methodParameterTypes44;
}

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

@ -512,6 +512,11 @@ public class ControlloPraticaLocalServiceUtil {
return getService().findByIntPratica(intPraticaId);
}
public static int countByIntPratica(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByIntPratica(intPraticaId);
}
public static java.lang.Long calculateDateAvvioProcedimento(
long controlloPraticaId)
throws com.liferay.portal.kernel.exception.PortalException,

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

@ -543,6 +543,12 @@ public class ControlloPraticaLocalServiceWrapper
return _controlloPraticaLocalService.findByIntPratica(intPraticaId);
}
@Override
public int countByIntPratica(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return _controlloPraticaLocalService.countByIntPratica(intPraticaId);
}
@Override
public java.lang.Long calculateDateAvvioProcedimento(
long controlloPraticaId)

13
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java

@ -240,9 +240,13 @@ public class ControlloPraticaLocalServiceClpInvoker {
_methodParameterTypes236 = new String[] { "long" };
_methodName237 = "calculateDateAvvioProcedimento";
_methodName237 = "countByIntPratica";
_methodParameterTypes237 = new String[] { "long" };
_methodName238 = "calculateDateAvvioProcedimento";
_methodParameterTypes238 = new String[] { "long" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@ -522,6 +526,11 @@ public class ControlloPraticaLocalServiceClpInvoker {
if (_methodName237.equals(name) &&
Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue());
}
if (_methodName238.equals(name) &&
Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) {
return ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(((Long)arguments[0]).longValue());
}
@ -618,4 +627,6 @@ public class ControlloPraticaLocalServiceClpInvoker {
private String[] _methodParameterTypes236;
private String _methodName237;
private String[] _methodParameterTypes237;
private String _methodName238;
private String[] _methodParameterTypes238;
}

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

@ -622,6 +622,12 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return controlloPraticaPersistence.findByIntPraticaId(intPraticaId);
}
@Override
public int countByIntPratica(long intPraticaId) throws SystemException {
return controlloPraticaPersistence.countByIntPraticaId(intPraticaId);
}
@Override
public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, PortalException {

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

@ -13,8 +13,8 @@
##
build.namespace=portos_bo
build.number=2906
build.date=1683294189849
build.number=2907
build.date=1683790768291
build.auto.upgrade=true
##

Caricamento…
Annulla
Salva