Sfoglia il codice sorgente

fix icona di verifica

aggiunto metodo di count
feature/pannello-pratiche
marcoalderighi 2 anni fa
parent
commit
a650038fc1
  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-kaleo-shared-6.2.0.1.jar
  3. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  4. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  5. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  10. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java
  11. 54
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java
  12. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java
  13. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java
  14. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java
  15. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PraticaAttenzionataLocalServiceImpl.java
  16. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  17. 33
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp

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-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.

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-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.

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

@ -267,6 +267,9 @@ public interface PraticaAttenzionataLocalService extends BaseLocalService,
public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheDaVerificare() public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheDaVerificare()
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countPraticheDaVerificare()
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate() public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate()
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;

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

@ -128,19 +128,23 @@ public class PraticaAttenzionataLocalServiceClp
_methodParameterTypes20 = new String[] { }; _methodParameterTypes20 = new String[] { };
_methodName21 = "getPraticheVerificate"; _methodName21 = "countPraticheDaVerificare";
_methodParameterTypes21 = new String[] { }; _methodParameterTypes21 = new String[] { };
_methodName22 = "verificaPraticaAttenzionata"; _methodName22 = "getPraticheVerificate";
_methodParameterTypes22 = new String[] { _methodParameterTypes22 = new String[] { };
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName23 = "verificaPraticaAttenzionata"; _methodName23 = "verificaPraticaAttenzionata";
_methodParameterTypes23 = new String[] { _methodParameterTypes23 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName24 = "verificaPraticaAttenzionata";
_methodParameterTypes24 = new String[] {
"it.tref.liferay.portos.bo.model.PraticaAttenzionata", "it.tref.liferay.portos.bo.model.PraticaAttenzionata",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -790,7 +794,7 @@ public class PraticaAttenzionataLocalServiceClp
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate() public int countPraticheDaVerificare()
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null; Object returnObj = null;
@ -814,6 +818,34 @@ public class PraticaAttenzionataLocalServiceClp
} }
} }
return ((Integer)returnObj).intValue();
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate()
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName22,
_methodParameterTypes22, new Object[] { });
}
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 (java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata>)ClpSerializer.translateOutput(returnObj); return (java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata>)ClpSerializer.translateOutput(returnObj);
} }
@ -825,8 +857,8 @@ public class PraticaAttenzionataLocalServiceClp
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName22, returnObj = _invokableLocalService.invokeMethod(_methodName23,
_methodParameterTypes22, _methodParameterTypes23,
new Object[] { new Object[] {
praticaAttenzionataId, praticaAttenzionataId,
@ -860,8 +892,8 @@ public class PraticaAttenzionataLocalServiceClp
Object returnObj = null; Object returnObj = null;
try { try {
returnObj = _invokableLocalService.invokeMethod(_methodName23, returnObj = _invokableLocalService.invokeMethod(_methodName24,
_methodParameterTypes23, _methodParameterTypes24,
new Object[] { new Object[] {
ClpSerializer.translateInput(praticaAttenzionata), ClpSerializer.translateInput(praticaAttenzionata),
@ -934,4 +966,6 @@ public class PraticaAttenzionataLocalServiceClp
private String[] _methodParameterTypes22; private String[] _methodParameterTypes22;
private String _methodName23; private String _methodName23;
private String[] _methodParameterTypes23; private String[] _methodParameterTypes23;
private String _methodName24;
private String[] _methodParameterTypes24;
} }

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

@ -294,6 +294,11 @@ public class PraticaAttenzionataLocalServiceUtil {
return getService().getPraticheDaVerificare(); return getService().getPraticheDaVerificare();
} }
public static int countPraticheDaVerificare()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().countPraticheDaVerificare();
}
public static java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate() public static java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate()
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().getPraticheVerificate(); return getService().getPraticheVerificate();

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

@ -310,6 +310,12 @@ public class PraticaAttenzionataLocalServiceWrapper
return _praticaAttenzionataLocalService.getPraticheDaVerificare(); return _praticaAttenzionataLocalService.getPraticheDaVerificare();
} }
@Override
public int countPraticheDaVerificare()
throws com.liferay.portal.kernel.exception.SystemException {
return _praticaAttenzionataLocalService.countPraticheDaVerificare();
}
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate() public java.util.List<it.tref.liferay.portos.bo.model.PraticaAttenzionata> getPraticheVerificate()
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {

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

@ -126,19 +126,23 @@ public class PraticaAttenzionataLocalServiceClpInvoker {
_methodParameterTypes185 = new String[] { }; _methodParameterTypes185 = new String[] { };
_methodName186 = "getPraticheVerificate"; _methodName186 = "countPraticheDaVerificare";
_methodParameterTypes186 = new String[] { }; _methodParameterTypes186 = new String[] { };
_methodName187 = "verificaPraticaAttenzionata"; _methodName187 = "getPraticheVerificate";
_methodParameterTypes187 = new String[] { _methodParameterTypes187 = new String[] { };
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName188 = "verificaPraticaAttenzionata"; _methodName188 = "verificaPraticaAttenzionata";
_methodParameterTypes188 = new String[] { _methodParameterTypes188 = new String[] {
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName189 = "verificaPraticaAttenzionata";
_methodParameterTypes189 = new String[] {
"it.tref.liferay.portos.bo.model.PraticaAttenzionata", "it.tref.liferay.portos.bo.model.PraticaAttenzionata",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -262,17 +266,22 @@ public class PraticaAttenzionataLocalServiceClpInvoker {
if (_methodName186.equals(name) && if (_methodName186.equals(name) &&
Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) {
return PraticaAttenzionataLocalServiceUtil.getPraticheVerificate(); return PraticaAttenzionataLocalServiceUtil.countPraticheDaVerificare();
} }
if (_methodName187.equals(name) && if (_methodName187.equals(name) &&
Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) {
return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata(((Long)arguments[0]).longValue(), return PraticaAttenzionataLocalServiceUtil.getPraticheVerificate();
(com.liferay.portal.service.ServiceContext)arguments[1]);
} }
if (_methodName188.equals(name) && if (_methodName188.equals(name) &&
Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) {
return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata(((Long)arguments[0]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[1]);
}
if (_methodName189.equals(name) &&
Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0], return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0],
(com.liferay.portal.service.ServiceContext)arguments[1]); (com.liferay.portal.service.ServiceContext)arguments[1]);
} }
@ -326,4 +335,6 @@ public class PraticaAttenzionataLocalServiceClpInvoker {
private String[] _methodParameterTypes187; private String[] _methodParameterTypes187;
private String _methodName188; private String _methodName188;
private String[] _methodParameterTypes188; private String[] _methodParameterTypes188;
private String _methodName189;
private String[] _methodParameterTypes189;
} }

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

@ -96,6 +96,10 @@ public class PraticaAttenzionataLocalServiceImpl
return praticaAttenzionataPersistence.findByVerificata(false); return praticaAttenzionataPersistence.findByVerificata(false);
} }
public int countPraticheDaVerificare() throws SystemException{
return praticaAttenzionataPersistence.countByVerificata(false);
}
@Override @Override
public List<PraticaAttenzionata> getPraticheVerificate() throws SystemException{ public List<PraticaAttenzionata> getPraticheVerificate() throws SystemException{
return praticaAttenzionataPersistence.findByVerificata(true); return praticaAttenzionataPersistence.findByVerificata(true);

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=2890 build.number=2892
build.date=1681377894873 build.date=1681460296604
build.auto.upgrade=true build.auto.upgrade=true
## ##

33
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp

@ -11,7 +11,7 @@
<liferay-ui:search-container-results <liferay-ui:search-container-results
results="<%= PraticaAttenzionataLocalServiceUtil.getPraticheDaVerificare() %>" results="<%= PraticaAttenzionataLocalServiceUtil.getPraticheDaVerificare() %>"
total="<%= PraticaAttenzionataLocalServiceUtil.getPraticheDaVerificare().size() %>" total="<%= PraticaAttenzionataLocalServiceUtil.countPraticheDaVerificare() %>"
> >
</liferay-ui:search-container-results> </liferay-ui:search-container-results>
@ -30,31 +30,47 @@
/> />
<liferay-ui:search-container-column-text <liferay-ui:search-container-column-text
property="dataFineLavoriTotale"
name="data-fine-lavori-totale" name="data-fine-lavori-totale"
cssClass="text-nowrap" cssClass="text-nowrap"
value="<%= PraticaAttenzionataUtil.getDateValueString(praticaAttenzionata.getDataFineLavoriTotale(), dateFormatDate) %>" value="<%= PraticaAttenzionataUtil.getDateValueString(praticaAttenzionata.getDataFineLavoriTotale(), dateFormatDate) %>"
/> />
<liferay-ui:search-container-column-text <liferay-ui:search-container-column-text
property="dataRelazioneFineLavoriTotale"
name="data-relazione-fine-lavori-totale" name="data-relazione-fine-lavori-totale"
cssClass="text-nowrap" cssClass="text-nowrap"
value="<%= PraticaAttenzionataUtil.getDateValueString(praticaAttenzionata.getDataRelazioneFineLavoriTotale(), dateFormatDate %>" value="<%= PraticaAttenzionataUtil.getDateValueString(praticaAttenzionata.getDataRelazioneFineLavoriTotale(), dateFormatDate) %>"
/> />
<liferay-ui:search-container-column-text name="azioni" cssClass="text-nowrap"> <liferay-ui:search-container-column-text name="azioni" cssClass="text-nowrap">
<liferay-ui:icon-menu icon="" showExpanded="<%=true%>" showWhenSingleIcon="<%=true%>" cssClass="text-center"> <%
String praticaAttenzionataIdString = String.valueOf(praticaAttenzionata.getPraticaAttenzionataId());
%>
<liferay-ui:icon-menu
icon=""
showExpanded="<%= true %>"
showWhenSingleIcon="<%= true %>"
cssClass="text-center">
<liferay-portlet:actionURL name="verificaPratica" var="verificaPraticaURL" > <liferay-portlet:actionURL name="verificaPratica" var="verificaPraticaURL" >
<liferay-portlet:param name="praticaAttenzionata" value="<%= praticaAttenzionata.getPraticaAttenzionataId() %>" /> <liferay-portlet:param name="praticaAttenzionata" value="<%= praticaAttenzionataIdString %>" />
</liferay-portlet:actionURL> </liferay-portlet:actionURL>
<div title="verifica-pratica" class="tooltip-info" style="display: inline-block;"> <div title="verifica-pratica" class="tooltip-info" style="display: inline-block;">
<c:choose>
<c:when test="<%= praticaAttenzionata.isVerificata() %>">
<liferay-ui:icon <liferay-ui:icon
id='verifica-pratica' id='verifica-pratica-<%= praticaAttenzionataIdString %>'
linkCssClass="btn btn-action" linkCssClass="btn btn-action"
iconCssClass="fa fa-check-square" iconCssClass="fa fa-check-circle-o txt-green"
/>
</c:when>
<c:otherwise>
<liferay-ui:icon
id='verifica-pratica-<%= praticaAttenzionataIdString %>'
linkCssClass="btn btn-action"
iconCssClass="fa fa-circle-o txt-grey"
url="<%= verificaPraticaURL %>" url="<%= verificaPraticaURL %>"
/> />
</c:otherwise>
</c:choose>
</div> </div>
</liferay-ui:icon-menu> </liferay-ui:icon-menu>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
@ -64,3 +80,4 @@
<liferay-ui:search-iterator paginate="true" /> <liferay-ui:search-iterator paginate="true" />
</liferay-ui:search-container> </liferay-ui:search-container>

Caricamento…
Annulla
Salva