|
|
@ -1,193 +1,131 @@ |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portal.model.Organization"%> |
|
|
|
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> |
|
|
|
<%@page import="com.liferay.portal.model.Role"%> |
|
|
|
<%@page import="com.liferay.portal.kernel.json.JSONFactoryUtil"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portal.kernel.json.JSONObject"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portal.model.UserGroupRole"%> |
|
|
|
<%@page import="com.liferay.portal.model.UserGroupRole"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> |
|
|
|
<%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%> |
|
|
|
<%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%> |
|
|
|
<%@page import="com.liferay.portal.model.Role"%> |
|
|
|
<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> |
|
|
|
<%@page import="java.util.Collections"%> |
|
|
|
|
|
|
|
<%@page import="java.util.Comparator"%> |
|
|
|
|
|
|
|
<%@page import="java.util.ArrayList"%> |
|
|
|
<%@page import="java.util.ArrayList"%> |
|
|
|
<%@page import="com.liferay.portal.model.Organization"%> |
|
|
|
<%@page import="java.util.Collections"%> |
|
|
|
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> |
|
|
|
|
|
|
|
<%@page import="org.apache.commons.lang.StringEscapeUtils"%> |
|
|
|
|
|
|
|
<%@include file="/html/fascicolo/init.jsp"%> |
|
|
|
<%@include file="/html/fascicolo/init.jsp"%> |
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); |
|
|
|
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<liferay-ui:panel title="filters" defaultState="closed" |
|
|
|
<liferay-ui:panel title="filters" defaultState="closed" |
|
|
|
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' |
|
|
|
id='<%= renderResponse.getNamespace() + scopeGroupId + "ricercaSaiPanel" %>' collapsible="true" extended="false" |
|
|
|
collapsible="<%= true %>" extended="<%= false %>" |
|
|
|
persistState="true"> |
|
|
|
persistState="<%= true %>"> |
|
|
|
<div class="container-fluid" style="padding: 15px"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container-fluid" style="padding: 15px;"> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> |
|
|
|
<div class="col-xs-12 col-md-3"> |
|
|
|
<aui:input type="text" name="numeroProgetto" label="Numero Progetto" /> |
|
|
|
<aui:input type="text" name="numeroProgetto" label="Numero Progetto" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> |
|
|
|
<div class="col-xs-12 col-md-3"> |
|
|
|
<aui:input type="text" name="protocollo" label="Protocollo" /> |
|
|
|
<aui:input type="text" name="protocollo" label="Protocollo" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> |
|
|
|
<div class="col-xs-12 col-md-3"> |
|
|
|
<aui:select name="tipoPratica" label="Tipo Pratica"> |
|
|
|
<aui:select name="tipoPratica" label="Tipo Pratica"> |
|
|
|
<aui:option value="-1">Seleziona il tipo di pratica</aui:option> |
|
|
|
<aui:option value="-1">Seleziona il tipo di pratica</aui:option> |
|
|
|
<aui:option value="01"> |
|
|
|
<aui:option value="01"><liferay-ui:message key="deposito" /></aui:option> |
|
|
|
<liferay-ui:message key="deposito" /> |
|
|
|
<aui:option value="02"><liferay-ui:message key="autorizzazione" /></aui:option> |
|
|
|
</aui:option> |
|
|
|
<aui:option value="03"><liferay-ui:message key="sanatoria" /></aui:option> |
|
|
|
<aui:option value="02"> |
|
|
|
|
|
|
|
<liferay-ui:message key="autorizzazione" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="03"> |
|
|
|
|
|
|
|
<liferay-ui:message key="sanatoria" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ADT - BUG-11 Aggiunta filtro ricerca --> |
|
|
|
<!-- ADT - BUG-11 Aggiunta filtro ricerca --> |
|
|
|
<aui:option value="sorteggio"><liferay-ui:message key="sorteggiata"/></aui:option> |
|
|
|
<aui:option value="sorteggio"><liferay-ui:message key="sorteggiata"/></aui:option> |
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> |
|
|
|
<div class="col-xs-12 col-md-3"> |
|
|
|
<aui:select name="statoPratica" label="Stato Pratica"> |
|
|
|
<aui:select name="statoPratica" label="Stato Pratica"> |
|
|
|
<aui:option value="-1">Stato Pratica</aui:option> |
|
|
|
<aui:option value="-1">Stato Pratica</aui:option> |
|
|
|
<aui:option value="AL"> |
|
|
|
<aui:option value="AL"><liferay-ui:message key="annullata" /></aui:option> |
|
|
|
<liferay-ui:message key="annullata" /> |
|
|
|
<aui:option value="AU"><liferay-ui:message key="autorizzata" /></aui:option> |
|
|
|
</aui:option> |
|
|
|
<aui:option value="AN"><liferay-ui:message key="non autorizzata" /></aui:option> |
|
|
|
<aui:option value="AU"> |
|
|
|
<aui:option value="CL"><liferay-ui:message key="collaudo" /></aui:option> |
|
|
|
<liferay-ui:message key="autorizzata" /> |
|
|
|
<aui:option value="CO"><liferay-ui:message key="conforme" /></aui:option> |
|
|
|
</aui:option> |
|
|
|
<aui:option value="FL"><liferay-ui:message key="fine lavori" /></aui:option> |
|
|
|
<aui:option value="AN"> |
|
|
|
<aui:option value="CP"><liferay-ui:message key="collaudo parziale" /></aui:option> |
|
|
|
<liferay-ui:message key="non autorizzata" /> |
|
|
|
<aui:option value="FP"><liferay-ui:message key="fine lavori parziali" /></aui:option> |
|
|
|
</aui:option> |
|
|
|
<aui:option value="VA"><liferay-ui:message key="variata" /></aui:option> |
|
|
|
<aui:option value="CL"> |
|
|
|
<aui:option value="VI"><liferay-ui:message key="vidimata" /></aui:option> |
|
|
|
<liferay-ui:message key="collaudo" /> |
|
|
|
<aui:option value="NC"><liferay-ui:message key="non conforme" /></aui:option> |
|
|
|
</aui:option> |
|
|
|
<aui:option value="IN"><liferay-ui:message key="integrazione in corso" /></aui:option> |
|
|
|
<aui:option value="CO"> |
|
|
|
<aui:option value="SO"><liferay-ui:message key="sorteggiata" /></aui:option> |
|
|
|
<liferay-ui:message key="conforme" /> |
|
|
|
<aui:option value="SP"><liferay-ui:message key="sottoposta a parere" /></aui:option> |
|
|
|
</aui:option> |
|
|
|
<aui:option value="sospesa"><liferay-ui:message key="sospesa"/></aui:option> |
|
|
|
<aui:option value="FL"> |
|
|
|
|
|
|
|
<liferay-ui:message key="fine lavori" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="CP"> |
|
|
|
|
|
|
|
<liferay-ui:message key="collaudo parziale" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="FP"> |
|
|
|
|
|
|
|
<liferay-ui:message key="fine lavori parziali" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="VA"> |
|
|
|
|
|
|
|
<liferay-ui:message key="variata" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="VI"> |
|
|
|
|
|
|
|
<liferay-ui:message key="vidimata" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="NC"> |
|
|
|
|
|
|
|
<liferay-ui:message key="nonConforme" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="IN"> |
|
|
|
|
|
|
|
<liferay-ui:message key="integrazione in corso" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="SO"> |
|
|
|
|
|
|
|
<liferay-ui:message key="sorteggiata" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="SP"> |
|
|
|
|
|
|
|
<liferay-ui:message key="sottoposta a parere" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="sospesa"> |
|
|
|
|
|
|
|
<liferay-ui:message key="sospesa"/> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-12 col-md-4"> |
|
|
|
<aui:input type="text" name="committente" label="Committente" /> |
|
|
|
<aui:input type="text" name="committente" label="Committente" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-12 col-md-4"> |
|
|
|
<aui:input type="text" name="soggettiInterconnessi" |
|
|
|
<aui:input type="text" name="soggettiInterconnessi" label="Soggetti Interconnessi" /> |
|
|
|
label="Soggetti Interconnessi" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-12 col-md-4"> |
|
|
|
<%--ADT BUG BO ID = 8 SEZIONE ATTIVITà --%> |
|
|
|
<%--ADT BUG BO ID = 8 SEZIONE ATTIVITÀ --%> |
|
|
|
<c:if test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>"> |
|
|
|
<c:if test="<%= organizationList != null && organizationList.size() > 1 %>"> |
|
|
|
<aui:select name="istruttore" label="Tecnico Istruttore"> |
|
|
|
<aui:select name="istruttore" label="Tecnico Istruttore"> |
|
|
|
<aui:option value="-1">Tutti</aui:option> |
|
|
|
<aui:option value="-1">Tutti</aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); |
|
|
|
List<UserGroupRole> tecniciIstruttori = new ArrayList<UserGroupRole>(); |
|
|
|
for(Organization org : organizationList){ |
|
|
|
for (Organization org : organizationList) { |
|
|
|
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); |
|
|
|
Role role = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_istruttore"); |
|
|
|
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(org.getGroupId(), role.getRoleId()); |
|
|
|
List<UserGroupRole> istruttori = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( |
|
|
|
|
|
|
|
org.getGroupId(), role.getRoleId()); |
|
|
|
for (UserGroupRole userGroupRole : istruttori) { |
|
|
|
for (UserGroupRole userGroupRole : istruttori) { |
|
|
|
if(tecniciIstruttori.isEmpty()){ |
|
|
|
|
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
boolean isPresent = false; |
|
|
|
boolean isPresent = false; |
|
|
|
for(UserGroupRole tecnico : tecniciIstruttori){ |
|
|
|
for (UserGroupRole tecnico : tecniciIstruttori) { |
|
|
|
if(tecnico.getUserId() == userGroupRole.getUserId()){ |
|
|
|
if (tecnico.getUserId() == userGroupRole.getUserId()) { |
|
|
|
isPresent = true; |
|
|
|
isPresent = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!isPresent){ |
|
|
|
if (!isPresent) { |
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
} |
|
|
|
} |
|
|
|
}}} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); |
|
|
|
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); |
|
|
|
for(UserGroupRole tecnico : tecniciIstruttori){ |
|
|
|
for (UserGroupRole tecnico : tecniciIstruttori) { |
|
|
|
IstruttoreBean istruttore = new IstruttoreBean(); |
|
|
|
IstruttoreBean istruttore = new IstruttoreBean(); |
|
|
|
istruttore.setIdIstruttore(tecnico.getUserId()); |
|
|
|
istruttore.setIdIstruttore(tecnico.getUserId()); |
|
|
|
istruttore.setDenominazione(tecnico.getUser().getFullName()); |
|
|
|
istruttore.setDenominazione(tecnico.getUser().getFullName()); |
|
|
|
tecniciIstruttoriSorted.add(istruttore); |
|
|
|
tecniciIstruttoriSorted.add(istruttore); |
|
|
|
} |
|
|
|
} |
|
|
|
Collections.sort(tecniciIstruttoriSorted); |
|
|
|
Collections.sort(tecniciIstruttoriSorted); |
|
|
|
for(IstruttoreBean istruttore : tecniciIstruttoriSorted){ |
|
|
|
for (IstruttoreBean istruttore : tecniciIstruttoriSorted) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value="<%=istruttore.getIdIstruttore() %>"><%=istruttore.getDenominazione() %></aui:option> |
|
|
|
<aui:option value="<%= istruttore.getIdIstruttore() %>"> |
|
|
|
|
|
|
|
<%= istruttore.getDenominazione() %> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-12 col-md-4"> |
|
|
|
<aui:field-wrapper label="Data richiesta da" |
|
|
|
<aui:field-wrapper label="Data richiesta da" inlineField="true"> |
|
|
|
inlineField="<%= true %>"> |
|
|
|
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> |
|
|
|
<liferay-util:include page="/html/common/input_date_time.jsp" |
|
|
|
|
|
|
|
servletContext="<%= application %>"> |
|
|
|
|
|
|
|
<liferay-util:param name="field" value="dataRichiestaInizio" /> |
|
|
|
<liferay-util:param name="field" value="dataRichiestaInizio" /> |
|
|
|
</liferay-util:include> |
|
|
|
</liferay-util:include> |
|
|
|
</aui:field-wrapper> |
|
|
|
</aui:field-wrapper> |
|
|
|
<aui:field-wrapper label="a" inlineField="<%= true %>"> |
|
|
|
<aui:field-wrapper label="a" inlineField="true"> |
|
|
|
<liferay-util:include page="/html/common/input_date_time.jsp" |
|
|
|
<liferay-util:include page="/html/common/input_date_time.jsp" servletContext="<%= application %>"> |
|
|
|
servletContext="<%= application %>"> |
|
|
|
|
|
|
|
<liferay-util:param name="field" value="dataRichiestaFine" /> |
|
|
|
<liferay-util:param name="field" value="dataRichiestaFine" /> |
|
|
|
</liferay-util:include> |
|
|
|
</liferay-util:include> |
|
|
|
</aui:field-wrapper> |
|
|
|
</aui:field-wrapper> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div class="col-sm-12 col-md-3 add-new-project__ufficio"> |
|
|
|
class="col-sm-12 col-md-3 add-new-project__ufficio"> |
|
|
|
<c:if test="<%= organizationList != null && organizationList.size() > 1 %>"> |
|
|
|
|
|
|
|
|
|
|
|
<c:if |
|
|
|
|
|
|
|
test="<%=organizationList != null && !organizationList.isEmpty() && organizationList.size() > 1 %>"> |
|
|
|
|
|
|
|
<aui:select name="ufficio" label="Ufficio"> |
|
|
|
<aui:select name="ufficio" label="Ufficio"> |
|
|
|
<aui:option value="-1">Tutte</aui:option> |
|
|
|
<aui:option value="-1">Tutte</aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
for(Organization org : organizationList){ |
|
|
|
for (Organization org : organizationList) { |
|
|
|
if(org.getParentOrganizationId()!= 0){ |
|
|
|
if (org.getParentOrganizationId() != 0) { |
|
|
|
|
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value="<%=org.getGroupId() %>"><%=org.getName() %></aui:option> |
|
|
|
<aui:option value="<%= org.getGroupId() %>"><%= org.getName() %></aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -199,8 +137,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani |
|
|
|
<% |
|
|
|
<% |
|
|
|
String comuneSelect = ParamUtil.getString(renderRequest, "comune"); |
|
|
|
String comuneSelect = ParamUtil.getString(renderRequest, "comune"); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:select name="comune" label="Comune"> |
|
|
|
<aui:select name="comune" label="Comune" /> |
|
|
|
</aui:select> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-12 col-md-2"> |
|
|
|
<div class="col-sm-12 col-md-2"> |
|
|
|
<aui:select name="tipoProcedura" label="tipo-procedura"> |
|
|
|
<aui:select name="tipoProcedura" label="tipo-procedura"> |
|
|
@ -212,7 +149,7 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-12 col-md-4"> |
|
|
|
<aui:select name="tipoAttivita" label="Tipo Attività"> |
|
|
|
<aui:select name="tipoAttivita" label="Tipo Attività"> |
|
|
|
<aui:option value="-1">Tutte</aui:option> |
|
|
|
<aui:option value="-1">Tutte</aui:option> |
|
|
|
<aui:option value="Assegnazione">Assegnazione</aui:option> |
|
|
|
<aui:option value="Assegnazione">Assegnazione</aui:option> |
|
|
@ -226,80 +163,67 @@ List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrgani |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> |
|
|
|
<div class="col-xs-12 col-md-4"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
|
|
|
<div class="col-xs-12 col-md-6"> |
|
|
|
<aui:select name="ordinaPer" label="Ordina Per"> |
|
|
|
<aui:select name="ordinaPer" label="Ordina Per"> |
|
|
|
<aui:option value="taskName">Nome Task</aui:option> |
|
|
|
<aui:option value="taskName">Nome Task</aui:option> |
|
|
|
<aui:option selected="true" value="numeroProgetto">Numero Progetto</aui:option> |
|
|
|
<aui:option selected="true" value="numeroProgetto">Numero Progetto</aui:option> |
|
|
|
<aui:option value="protocollo">Protocollo</aui:option> |
|
|
|
<aui:option value="protocollo">Protocollo</aui:option> |
|
|
|
<aui:option value="createDate">Data Invio</aui:option> |
|
|
|
<aui:option value="createDate">Data Invio</aui:option> |
|
|
|
<aui:option value="tipoPratica">Tipo Pratica</aui:option> |
|
|
|
<aui:option value="tipoPratica">Tipo Pratica</aui:option> |
|
|
|
|
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
|
|
|
<div class="col-xs-12 col-md-6"> |
|
|
|
<aui:select name="ordinaTipo" label="Tipo Ordine"> |
|
|
|
<aui:select name="ordinaTipo" label="Tipo Ordine"> |
|
|
|
<aui:option selected="true" value="dec">Dec</aui:option> |
|
|
|
<aui:option selected="true" value="dec">Dec</aui:option> |
|
|
|
<aui:option value="asc">Asc</aui:option> |
|
|
|
<aui:option value="asc">Asc</aui:option> |
|
|
|
|
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<aui:button type="submit" value="search" /> |
|
|
|
<aui:button type="submit" value="search" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</liferay-ui:panel> |
|
|
|
</liferay-ui:panel> |
|
|
|
<%--ADT BUG BO ID = 1 SEZIONE ATTIVITà --%> |
|
|
|
<%--ADT BUG BO ID = 1 SEZIONE ATTIVITÀ --%> |
|
|
|
<liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" /> |
|
|
|
<liferay-portlet:resourceURL id="comuniForUfficio" var="getComuniURL" /> |
|
|
|
<aui:script use="aui-io-request"> |
|
|
|
<aui:script use="aui-io-request"> |
|
|
|
|
|
|
|
$(".add-new-project__ufficio select").change(function() { |
|
|
|
$(".add-new-project__ufficio select").change(function(){ |
|
|
|
|
|
|
|
var comuni = ''; |
|
|
|
var comuni = ''; |
|
|
|
var val = $(this).val(); |
|
|
|
var val = $(this).val(); |
|
|
|
$(".add-new-project__comune select").empty(); |
|
|
|
$(".add-new-project__comune select").empty(); |
|
|
|
|
|
|
|
A.io.request('<%= getComuniURL %>', { |
|
|
|
A.io.request( |
|
|
|
data: { <portlet:namespace />ufficioId: val }, |
|
|
|
'<%= getComuniURL %>', |
|
|
|
dataType: 'json', |
|
|
|
{ |
|
|
|
|
|
|
|
data: { |
|
|
|
|
|
|
|
<portlet:namespace />ufficioId: val |
|
|
|
|
|
|
|
},dataType: 'json', |
|
|
|
|
|
|
|
on: { |
|
|
|
on: { |
|
|
|
success: function() { |
|
|
|
success: function() { |
|
|
|
$(".add-new-project__comune select").empty(); |
|
|
|
$(".add-new-project__comune select").empty(); |
|
|
|
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); |
|
|
|
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); |
|
|
|
var response = this.get('responseData'); |
|
|
|
var response = this.get('responseData'); |
|
|
|
|
|
|
|
<% |
|
|
|
<% String csParam = ParamUtil.getString(renderRequest, "comune"); |
|
|
|
String csParam = ParamUtil.getString(renderRequest, "comune"); |
|
|
|
String cs = "null"; |
|
|
|
String cs = "null"; |
|
|
|
if(csParam != null && !csParam.equals("")){ |
|
|
|
if (Validator.isNotNull(csParam)){ |
|
|
|
cs = csParam; |
|
|
|
cs = csParam; |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
var cs = <%= cs %>; |
|
|
|
var cs = <%= cs %>; |
|
|
|
var checkIfExists = false; |
|
|
|
var checkIfExists = false; |
|
|
|
for( index in response ){ |
|
|
|
for (index in response) { |
|
|
|
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId).text(response[index].descLong)); |
|
|
|
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId) |
|
|
|
if(cs != 'null'){ |
|
|
|
.text(response[index].descLong)); |
|
|
|
if(response[index].comuneId == cs){ |
|
|
|
if (cs != 'null') { |
|
|
|
|
|
|
|
if (response[index].comuneId == cs) { |
|
|
|
checkIfExists = true; |
|
|
|
checkIfExists = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(checkIfExists){ |
|
|
|
if (checkIfExists) { |
|
|
|
$(".add-new-project__comune select").val(cs); |
|
|
|
$(".add-new-project__comune select").val(cs); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
); |
|
|
|
}).trigger("change"); |
|
|
|
}).trigger("change"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</aui:script> |
|
|
|
</aui:script> |