Sfoglia il codice sorgente

Fix form cambio data fine lavori su advanced operation

control-panel-filter
Gabriele Incoronato 3 settimane fa
parent
commit
10054f1b5e
  1. 12
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/util/AdvancedOperationUtil.java
  2. 4
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp

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

@ -295,6 +295,18 @@ public class AdvancedOperationUtil {
return false; return false;
} }
public static boolean hasEditableFineLavoriDate(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){
try {
return Validator.isNotNull(
getEditableFineLavoriDate(intPratica));
} catch (Exception e) {
return false;
}
}
return false;
}
public static Date getEditableFineLavoriDate(IntPratica intPratica){ public static Date getEditableFineLavoriDate(IntPratica intPratica){
if(Validator.isNotNull(intPratica)){ if(Validator.isNotNull(intPratica)){
try { try {

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

@ -416,7 +416,7 @@
</aui:row> </aui:row>
</liferay-ui:panel> </liferay-ui:panel>
</div> </div>
<% if(AdvancedOperationUtil.hasEditableFineLavori(intPratica)){ %> <% if(AdvancedOperationUtil.hasEditableFineLavoriDate(intPratica) && AdvancedOperationUtil.hasEditableFineLavori(intPratica)){ %>
<div class="module-group"> <div class="module-group">
<liferay-ui:panel title="FINE LAVORI" extended="true" collapsible="false"> <liferay-ui:panel title="FINE LAVORI" extended="true" collapsible="false">
<aui:row> <aui:row>
@ -431,7 +431,6 @@
%> %>
<div style="display:flex;"> <div style="display:flex;">
<aui:form action="<%= cambiaDataFineLavoriURL %>" method="post" name="cambiaDataFineLavori"> <aui:form action="<%= cambiaDataFineLavoriURL %>" method="post" name="cambiaDataFineLavori">
<div style="display:flex;">
<p><b>Data Fine Lavori:</b></p> <p><b>Data Fine Lavori:</b></p>
<aui:input <aui:input
name="dataFineLavoriInput" name="dataFineLavoriInput"
@ -448,7 +447,6 @@
value="Modifica Data" value="Modifica Data"
> >
</aui:button> </aui:button>
</div>
</aui:form> </aui:form>
</div> </div>
</aui:row> </aui:row>

Caricamento…
Annulla
Salva