Sfoglia il codice sorgente

fix funzionalità Unità Operative su AOP

feature/advanced-operation
marcoalderighi 2 anni fa
parent
commit
017521e26d
  1. 33
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/brokenUOactions.jsp
  2. 1
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/view.jsp

33
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/html/brokenUOactions.jsp

@ -0,0 +1,33 @@
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%>
<%@ include file="/html/init.jsp"%>
<%
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
IntPratica intPratica = (IntPratica) row.getObject();
long intPraticaId = intPratica.getIntPraticaId();
%>
<liferay-portlet:actionURL
name="fixUO"
var="fixUOURL" >
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>"/>
<liferay-portlet:param name="mvcPath" value="/html/view.jsp"/>
</liferay-portlet:actionURL>
<%
String btnName = "fixUOBtn" + intPraticaId;
String formName = "fixUO" + intPraticaId;
String functionfixUOsc = "javascript:"+renderResponse.getNamespace()+"openConfirmationDialog('"+renderResponse.getNamespace() + formName + "','Sei sicuro di voler cambiare l unita operativa di questa pratica?')";
%>
<aui:form action="<%= fixUOURL %>" method="post" name="<%= formName %>">
<aui:button
type="button"
cssClass="btn-primary"
name="<%= btnName %>"
onClick="<%= functionfixUOsc %>"
value="Fixa Unita Operativa"
>
</aui:button>
</aui:form>

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

@ -123,6 +123,7 @@
<liferay-ui:search-container-column-text name="UNITA OPERATIVA ISTRUTTORE">
<%= AdvancedOperationUtil.getDestinationUO(scIntPratica) %>
</liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-jsp path="/html/brokenUOactions.jsp" />
</liferay-ui:search-container-row>
<liferay-ui:search-iterator paginate="false" />
</liferay-ui:search-container>

Caricamento…
Annulla
Salva