|
|
@ -1,206 +1,143 @@ |
|
|
|
<%@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"> |
|
|
|
<!-- ADT - BUG-11 Aggiunta filtro ricerca --> |
|
|
|
<liferay-ui:message key="autorizzazione" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
<aui:option value="03"> |
|
|
|
|
|
|
|
<liferay-ui:message key="sanatoria" /> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 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()){ |
|
|
|
boolean isPresent = false; |
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
for (UserGroupRole tecnico : tecniciIstruttori) { |
|
|
|
|
|
|
|
if (tecnico.getUserId() == userGroupRole.getUserId()) { |
|
|
|
} else { |
|
|
|
isPresent = true; |
|
|
|
boolean isPresent = false; |
|
|
|
break; |
|
|
|
for(UserGroupRole tecnico : tecniciIstruttori){ |
|
|
|
} |
|
|
|
if(tecnico.getUserId() == userGroupRole.getUserId()){ |
|
|
|
} |
|
|
|
isPresent = true; |
|
|
|
if (!isPresent) { |
|
|
|
break; |
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!isPresent){ |
|
|
|
} |
|
|
|
tecniciIstruttori.add(userGroupRole); |
|
|
|
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); |
|
|
|
} |
|
|
|
for (UserGroupRole tecnico : tecniciIstruttori) { |
|
|
|
}}} |
|
|
|
IstruttoreBean istruttore = new IstruttoreBean(); |
|
|
|
List<IstruttoreBean> tecniciIstruttoriSorted = new ArrayList<IstruttoreBean>(); |
|
|
|
istruttore.setIdIstruttore(tecnico.getUserId()); |
|
|
|
for(UserGroupRole tecnico : tecniciIstruttori){ |
|
|
|
istruttore.setDenominazione(tecnico.getUser().getFullName()); |
|
|
|
IstruttoreBean istruttore = new IstruttoreBean(); |
|
|
|
tecniciIstruttoriSorted.add(istruttore); |
|
|
|
istruttore.setIdIstruttore(tecnico.getUserId()); |
|
|
|
} |
|
|
|
istruttore.setDenominazione(tecnico.getUser().getFullName()); |
|
|
|
Collections.sort(tecniciIstruttoriSorted); |
|
|
|
tecniciIstruttoriSorted.add(istruttore); |
|
|
|
for (IstruttoreBean istruttore : tecniciIstruttoriSorted) { |
|
|
|
} |
|
|
|
%> |
|
|
|
Collections.sort(tecniciIstruttoriSorted); |
|
|
|
<aui:option value="<%= istruttore.getIdIstruttore() %>"> |
|
|
|
for(IstruttoreBean istruttore : tecniciIstruttoriSorted){ |
|
|
|
<%= 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> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
</c:if> |
|
|
|
</c:if> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-12 col-md-3 add-new-project__comune"> |
|
|
|
<div class="col-sm-12 col-md-3 add-new-project__comune"> |
|
|
|
<% |
|
|
|
<% |
|
|
|
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 %>', { |
|
|
|
|
|
|
|
data: { <portlet:namespace />ufficioId: val }, |
|
|
|
A.io.request( |
|
|
|
dataType: 'json', |
|
|
|
'<%= getComuniURL %>', |
|
|
|
on: { |
|
|
|
{ |
|
|
|
success: function() { |
|
|
|
data: { |
|
|
|
$(".add-new-project__comune select").empty(); |
|
|
|
<portlet:namespace />ufficioId: val |
|
|
|
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); |
|
|
|
},dataType: 'json', |
|
|
|
var response = this.get('responseData'); |
|
|
|
on: { |
|
|
|
<% |
|
|
|
success: function() { |
|
|
|
String csParam = ParamUtil.getString(renderRequest, "comune"); |
|
|
|
$(".add-new-project__comune select").empty(); |
|
|
|
String cs = "null"; |
|
|
|
$(".add-new-project__comune select").append($('<option>').val('-1').text('Tutti')); |
|
|
|
if (Validator.isNotNull(csParam)){ |
|
|
|
var response = this.get('responseData'); |
|
|
|
cs = csParam; |
|
|
|
|
|
|
|
} |
|
|
|
<% String csParam = ParamUtil.getString(renderRequest, "comune"); |
|
|
|
%> |
|
|
|
String cs = "null"; |
|
|
|
var cs = <%= cs %>; |
|
|
|
if(csParam != null && !csParam.equals("")){ |
|
|
|
var checkIfExists = false; |
|
|
|
cs = csParam; |
|
|
|
for (index in response) { |
|
|
|
} |
|
|
|
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId) |
|
|
|
%> |
|
|
|
.text(response[index].descLong)); |
|
|
|
|
|
|
|
if (cs != 'null') { |
|
|
|
var cs = <%= cs %>; |
|
|
|
if (response[index].comuneId == cs) { |
|
|
|
var checkIfExists = false; |
|
|
|
checkIfExists = true; |
|
|
|
for( index in response ){ |
|
|
|
|
|
|
|
$(".add-new-project__comune select").append($('<option>').val(response[index].comuneId).text(response[index].descLong)); |
|
|
|
|
|
|
|
if(cs != 'null'){ |
|
|
|
|
|
|
|
if(response[index].comuneId == cs){ |
|
|
|
|
|
|
|
checkIfExists = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(checkIfExists){ |
|
|
|
|
|
|
|
$(".add-new-project__comune select").val(cs); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
if (checkIfExists) { |
|
|
|
}).trigger("change"); |
|
|
|
$(".add-new-project__comune select").val(cs); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}).trigger("change"); |
|
|
|
</aui:script> |
|
|
|
</aui:script> |