Sfoglia il codice sorgente

fix funzione Unita Operative AOP

feature/advanced-operation
marcoalderighi 2 anni fa
parent
commit
024ce3cfcf
  1. 3
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java
  2. 9
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp

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

@ -113,6 +113,7 @@ public class AdvancedOperationUtil {
} }
public static boolean evalInt_Dett_UserID(IntPratica intPratica){ public static boolean evalInt_Dett_UserID(IntPratica intPratica){
_log.info("lastDettPraticaUserID: "+getLastDettPraticaUserID(intPratica)+" || intPraticaUserID: "+intPratica.getUserId());
return getLastDettPraticaUserID(intPratica) == intPratica.getUserId(); return getLastDettPraticaUserID(intPratica) == intPratica.getUserId();
} }
@ -125,7 +126,7 @@ public class AdvancedOperationUtil {
} catch (SystemException e){ } catch (SystemException e){
_log.error(e,e); _log.error(e,e);
} }
return -1; return intPratica.getUserId();
} }
// public static boolean getNormLavoriInProprioFlag(long intPraticaId){ // public static boolean getNormLavoriInProprioFlag(long intPraticaId){

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

@ -36,13 +36,18 @@
String numeroProgetto = ParamUtil.getString(request, "numeroProgetto", StringPool.BLANK); String numeroProgetto = ParamUtil.getString(request, "numeroProgetto", StringPool.BLANK);
boolean isBrokenUO = ParamUtil.getBoolean(request, "brokenUO", false); boolean isBrokenUO = ParamUtil.getBoolean(request, "brokenUO", false);
List<IntPratica> brokenUOList = null; List<IntPratica> brokenUOList = null;
int brokenUOnum = 0;
if(isBrokenUO){ if(isBrokenUO){
brokenUOList = AdvancedOperationUtil.getBrokenUOList(); brokenUOList = AdvancedOperationUtil.getBrokenUOList();
brokenUOnum = brokenUOList.size();
if(brokenUOnum > 20){
brokenUOList = brokenUOList.subList(0, 20);
}
} }
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId);
%> %>
<liferay-portlet:actionURL <liferay-portlet:actionURL
name="findIntPratica" name="findIntPratica"
var="findIntPraticaURL" > var="findIntPraticaURL" >
@ -100,7 +105,7 @@
<aui:row> <aui:row>
<p> <p>
<b>Numero IntPratica con problemi di Unità Operativa:</b> <b>Numero IntPratica con problemi di Unità Operativa:</b>
<span id="brokenUOnum"><%= brokenUOList.size() %></span> <span id="brokenUOnum"><%= brokenUOnum %></span>
</p> </p>
<div id="brokenUOList"> <div id="brokenUOList">
<liferay-ui:search-container emptyResultsMessage="Nessun soggetto disponibile"> <liferay-ui:search-container emptyResultsMessage="Nessun soggetto disponibile">

Caricamento…
Annulla
Salva