Mattia Gosetto
4 anni fa
6 ha cambiato i file con 113 aggiunte e 33 eliminazioni
@ -0,0 +1,73 @@
|
||||
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
||||
<%@page import="com.liferay.portal.kernel.util.ListUtil"%> |
||||
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> |
||||
<%@page import="com.liferay.portal.model.Organization"%> |
||||
<%@page import="it.tref.liferay.portos.bo.util.Constants"%> |
||||
<%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%> |
||||
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> |
||||
<%@page import="java.util.ArrayList"%> |
||||
<%@page import="com.liferay.portal.model.User"%> |
||||
<%@page import="com.liferay.portal.model.Role"%> |
||||
<%@page import="javax.portlet.PortletURL"%> |
||||
<%@include file="/html/gestioneattivita/init.jsp"%> |
||||
|
||||
<% |
||||
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
||||
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); |
||||
|
||||
String buttonIdAnnullaRicGeologo = ParamUtil.getString(request, "buttonIdAnnullaRicGeologo"); |
||||
PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); |
||||
String orderByType = ParamUtil.getString(request, "orderByType", "asc"); |
||||
String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); |
||||
|
||||
String randomId = StringUtil.randomId(); |
||||
String formNameAnnullaRicGeologo = "formNameAnnullaRicGeologo_"+randomId; |
||||
String divIdAnnullaRicGeologo = "divIdAnnullaRicGeologo_"+randomId; |
||||
List<ParereGeologo> pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS); |
||||
List<User> geologi = new ArrayList<User>(); |
||||
|
||||
%> |
||||
|
||||
<liferay-portlet:actionURL name="annullaRichiestaParere" var="annullaRichiestaParereGeologoUrl"> |
||||
<liferay-util:param name="intPraticaId" value="<%=String.valueOf(intPraticaId)%>" /> |
||||
<liferay-util:param name="dettPraticaId" value="<%=String.valueOf(dettPraticaId)%>" /> |
||||
<liferay-util:param name="redirect" value="<%=currentURL%>" /> |
||||
</liferay-portlet:actionURL> |
||||
|
||||
<aui:form name="<%=formNameAnnullaRicGeologo %>" method="post" action="<%= annullaRichiestaParereGeologoUrl %>" > |
||||
<div id='<%= renderResponse.getNamespace() + divIdAnnullaRicGeologo %>' class="hide" > |
||||
<aui:select name="parereGeologoId" label="<%=StringPool.BLANK %>" required="true"> |
||||
<aui:option label="Seleziona funzionario" value="" /> |
||||
<% |
||||
for (ParereGeologo parereGeologo : pareriGeologo) { |
||||
if(Validator.isNull(parereGeologo.getDtCompilazione())){ |
||||
User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId()); |
||||
List<Organization> listaOrganizzazioni = OrganizationLocalServiceUtil.getUserOrganizations(geologo.getUserId()); |
||||
StringBuilder sb = new StringBuilder(); |
||||
sb.append(geologo.getFullName()); |
||||
sb.append(StringPool.SPACE); |
||||
sb.append(StringPool.DASH); |
||||
sb.append(StringPool.SPACE); |
||||
sb.append(ListUtil.toString(listaOrganizzazioni, "name", StringPool.COMMA_AND_SPACE)); |
||||
|
||||
%> |
||||
<aui:option label="<%=sb.toString()%>" value="<%=parereGeologo.getParereGeologoId()%>" /> |
||||
<% |
||||
} |
||||
} |
||||
|
||||
%> |
||||
|
||||
</aui:select> |
||||
</div> |
||||
|
||||
<liferay-util:include page="/html/common/submit_window.jsp" servletContext="<%= application %>" > |
||||
<liferay-util:param name="formName" value="<%=formNameAnnullaRicGeologo %>"></liferay-util:param> |
||||
<liferay-util:param name="titolo" value="Seleziona parere endoprocedimentale da annullare"></liferay-util:param> |
||||
<liferay-util:param name="buttonId" value="<%=buttonIdAnnullaRicGeologo %>"></liferay-util:param> |
||||
<liferay-util:param name="buttonConferma" value="CONFERMA"></liferay-util:param> |
||||
<liferay-util:param name="contentDiv" value="<%=divIdAnnullaRicGeologo %>"></liferay-util:param> |
||||
<liferay-util:param name="width" value="500"></liferay-util:param> |
||||
<liferay-util:param name="buttonBar" value="true"></liferay-util:param> |
||||
</liferay-util:include> |
||||
</aui:form> |
Caricamento…
Reference in new issue