Sfoglia il codice sorgente

aggiunto "sticker" H nel back office

feature/fix_soggetti
marcoalderighi 1 anno fa
parent
commit
e593f60441
  1. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  2. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp
  3. 4
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp

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

@ -452,6 +452,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
etichette.put("value", StatoPraticaConstants.INTEGRAZIONE);
etichette.put("default", false);
jsonArray.put(etichette);
// Settato a "disabled" per poter gestire le limitazioni nel workflow
// nella jsp -render_form_task.jsp
etichette = JSONFactoryUtil.createJSONObject();
etichette.put("label", "disabled");
etichette.put("value", StatoPraticaConstants.NON_CONFORME);

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp

@ -207,20 +207,19 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
</liferay-portlet:renderURL>
<liferay-ui:search-container-column-text name="#" cssClass="text-center middle-aligned">
<div class="flex-center">
<div class="flex-center" style="flex: 0 0 auto;">
<c:if test="<%= intPratica.isSospesa() %>">
<span class="btn status-icon tooltip-info btn-action" title="Sospesa">
<span class="fa fa-circle txt-orange"></span>
</span>
</c:if>
<!--
Manifattura Web Group per Regione Siciliana
Le pratiche sottoposte a parere sono quelle che hanno
statoPratica == 'SP', non quelle in status di workflow = pending
-->
<c:if test="<%= StatoPraticaConstants.SOTTOPOSTA_A_PARERE.equals(intPratica.getStatoPratica()) %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Sottoposta a parere" style="padding: 5px;margin-right:5px;">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Sottoposta a parere" style="padding: 5px;margin-right:5px;width: 100%;">
SP
</span>
</c:if>
@ -230,6 +229,13 @@ String dtSorteggioNullo = "2020-03-05 11:12:18.006";
</span>
</c:if>
</div>
<div class="flex-center" style="flex: 0 0 auto;">
<c:if test="<%= intPratica.isPraticaOspedaliera() %>">
<span class="display-inline-block bordered-2x border-circle bg-green txt-bold tooltip-info" title="Pratica Ospedaliera" style="padding: 5px;margin-right:5px;width: 100%;">
H
</span>
</c:if>
</div>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="Sorteggiata">
<% Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); %>

4
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp

@ -187,6 +187,8 @@ private void filter(Node node, Map<String, Serializable> parameters,
boolean defaultValue = MapUtil.getBoolean(option, "default");
if (tag.getAttribute("value").equals(valueOption)) {
tag.getNextSibling().setText(label);
// Se label è inattivo allora è una pratica ospedaliera e disabilito
// e nascondo l'input relativo al rifiuto della pratica.
if("Inattivo".equalsIgnoreCase(label.trim())){
TagNode parent = (TagNode) tag.getParent().getParent();
Attribute disabledAttr = new Attribute();
@ -196,8 +198,6 @@ private void filter(Node node, Map<String, Serializable> parameters,
classValue += " hidden";
tag.setAttribute("class", classValue);
tag.getNextSibling().setText("");
}
}
}

Caricamento…
Annulla
Salva