Salvatore La Manna
4 anni fa
13 ha cambiato i file con 740 aggiunte e 915 eliminazioni
@ -1,68 +1,36 @@
|
||||
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
||||
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> |
||||
<%@ include file="/html/fascicolo/init.jsp" %> |
||||
|
||||
<% |
||||
/* |
||||
String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; |
||||
String[] pageIntegrazioni = new String[] { "page_in_dettagli","page_in_allegati","page_in_soggetti"}; |
||||
String[] pageVarianti = new String[] { "page_va_dettagli","page_va_allegati","page_va_soggetti"}; |
||||
String[] pageFineLavori = new String[] { "page_fl_dati","page_fl_allegati","page_fl_pagamenti"}; |
||||
String[] pageCollaudi = new String[] { "page_co_dati","page_co_allegati","page_co_pagamenti"}; |
||||
String[] pageComunicazioni = new String[] { "page_bo_fe","page_doc_aggiuntiva","page_allegati_manuali"}; |
||||
String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica", |
||||
"page_soggetti", "page_allegati", "page_asseverazioni", "page_pagamenti", "page_andamento", "page_avvisi", |
||||
"page_storico_titolari", "page_versioning" }; |
||||
String[] pageIntegrazioni = new String[] { "page_in_dettagli", "page_in_allegati", "page_in_soggetti" }; |
||||
String[] pageVarianti = new String[] { "page_va_dettagli", "page_va_allegati", "page_va_soggetti" }; |
||||
String[] pageComunicazioni = new String[] { "page_bo_fe", "page_doc_aggiuntiva", "page_allegati_manuali" }; |
||||
|
||||
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
||||
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); |
||||
if(intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)){ |
||||
pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_allegati_annullamento","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; |
||||
|
||||
if (intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { |
||||
pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica", |
||||
"page_soggetti", "page_allegati", "page_allegati_annullamento", "page_asseverazioni", "page_pagamenti", |
||||
"page_andamento", "page_avvisi", "page_storico_titolari", "page_versioning" }; |
||||
} |
||||
String[][] categorySections = { pageRiepilogo,pageIntegrazioni,pageVarianti,pageFineLavori,pageCollaudi,pageComunicazioni}; |
||||
String[][] categorySections = { pageRiepilogo, pageIntegrazioni, pageVarianti, pageComunicazioni }; |
||||
|
||||
String[] _CATEGORY_NAMES = { "cat_riepilogo","cat_integrazioni","cat_varianti","cat_fine_lavori","cat_collaudi","cat_comunicazioni"}; |
||||
String[] _CATEGORY_NAMES = { "cat_riepilogo", "cat_integrazioni", "cat_varianti", "cat_comunicazioni" }; |
||||
DettPratica dettPraticaLast = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); |
||||
DettPratica dettPraticaLastData = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); |
||||
DettPratica dettPraticaLastData = dettPraticaLast; |
||||
|
||||
request.setAttribute("bean.intPratica", intPratica); |
||||
request.setAttribute("bean.dettPratica.last", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId())); |
||||
request.setAttribute("bean.dettPratica.lastData", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()));////TODO utilizzare getLastdByIntPraticaAndTipoPratica |
||||
*/ |
||||
|
||||
String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; |
||||
String[] pageIntegrazioni = new String[] { "page_in_dettagli","page_in_allegati","page_in_soggetti"}; |
||||
String[] pageVarianti = new String[] { "page_va_dettagli","page_va_allegati","page_va_soggetti"}; |
||||
String[] pageComunicazioni = new String[] { "page_bo_fe","page_doc_aggiuntiva","page_allegati_manuali"}; |
||||
|
||||
long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); |
||||
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); |
||||
if(intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)){ |
||||
pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_allegati_annullamento","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; |
||||
} |
||||
String[][] categorySections = { pageRiepilogo,pageIntegrazioni,pageVarianti,pageComunicazioni}; |
||||
|
||||
String[] _CATEGORY_NAMES = { "cat_riepilogo","cat_integrazioni","cat_varianti","cat_comunicazioni"}; |
||||
DettPratica dettPraticaLast = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); |
||||
DettPratica dettPraticaLastData = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); |
||||
|
||||
request.setAttribute("bean.intPratica", intPratica); |
||||
request.setAttribute("bean.dettPratica.last", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId())); |
||||
request.setAttribute("bean.dettPratica.lastData", DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId())); |
||||
|
||||
request.setAttribute("bean.dettPratica.last", dettPraticaLast); |
||||
request.setAttribute("bean.dettPratica.lastData", dettPraticaLastData); |
||||
%> |
||||
|
||||
<liferay-util:buffer var="htmlBottom"> |
||||
<%@ include file="/html/fascicolo/html_bottom.jspf" %> |
||||
</liferay-util:buffer> |
||||
<liferay-util:buffer var="htmlTop"> |
||||
<%@ include file="/html/fascicolo/html_top.jspf" %> |
||||
</liferay-util:buffer> |
||||
|
||||
<liferay-ui:form-navigator |
||||
categoryNames="<%= _CATEGORY_NAMES %>" |
||||
categorySections="<%= categorySections %>" |
||||
formName="fm" |
||||
jspPath="/html/fascicolo/navigator/" |
||||
htmlBottom="<%=htmlBottom%>" |
||||
showButtons="<%=false %>" |
||||
htmlTop="<%=htmlTop%>" /> |
||||
|
||||
<liferay-ui:form-navigator categoryNames="<%= _CATEGORY_NAMES %>" categorySections="<%= categorySections %>" formName="fm" |
||||
jspPath="/html/fascicolo/navigator/" htmlBottom="<%= htmlBottom %>" showButtons="false" htmlTop="<%= htmlTop %>" /> |
@ -1,109 +1,74 @@
|
||||
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
||||
<%@page import="it.tref.liferay.portos.bo.util.WorkflowConstants"%> |
||||
<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> |
||||
<%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> |
||||
<%@page import="com.liferay.portal.model.Role"%> |
||||
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskAssignee"%> |
||||
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> |
||||
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%> |
||||
<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil"%> |
||||
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%> |
||||
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%> |
||||
<%@page import="com.liferay.portal.service.persistence.WorkflowInstanceLinkUtil"%> |
||||
<%@page import="com.liferay.portal.kernel.workflow.WorkflowDefinitionManagerUtil"%> |
||||
<%@page import="javax.portlet.PortletRequest"%> |
||||
<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%> |
||||
<%@page import="com.liferay.portal.model.GroupConstants"%> |
||||
<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%> |
||||
<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> |
||||
<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%> |
||||
<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%> |
||||
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%> |
||||
<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> |
||||
<%@page import="com.liferay.portal.kernel.util.ListUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%> |
||||
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> |
||||
<%@page import="java.util.ArrayList"%> |
||||
<%@page import="com.liferay.portal.kernel.util.WebKeys"%> |
||||
<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%> |
||||
<%@page import="java.util.Map"%> |
||||
<%@page import="java.util.HashMap"%> |
||||
<%@page import="com.liferay.portal.kernel.util.StringUtil"%> |
||||
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> |
||||
<%@page import="com.liferay.portal.service.permission.PortletPermissionUtil"%> |
||||
<%@ include file="/html/gestioneattivita/init.jsp" %> |
||||
|
||||
<%@page import="javax.portlet.PortletRequest"%> |
||||
<%@ include file="/html/gestioneattivita/init.jsp"%> |
||||
<% |
||||
SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); |
||||
ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); |
||||
|
||||
SearchContainer searchContainer = (SearchContainer) request |
||||
.getAttribute("liferay-ui:search:searchContainer"); |
||||
ResultRow row = (ResultRow) request |
||||
.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); |
||||
|
||||
IntPratica intPratica = (IntPratica) row.getObject(); |
||||
IntPratica intPratica = (IntPratica) row.getObject(); |
||||
|
||||
List<ControlloPratica> controlliPratica = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); |
||||
ControlloPratica controlloPratica = null; |
||||
if(controlliPratica.size() > 0) |
||||
controlloPratica = controlliPratica.get(controlliPratica.size()-1); |
||||
Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); |
||||
long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true); |
||||
List<ControlloPratica> controlliPratica = ControlloPraticaLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); |
||||
ControlloPratica controlloPratica = null; |
||||
if (controlliPratica.size() > 0 ) { |
||||
controlloPratica = controlliPratica.get(controlliPratica.size() - 1); |
||||
} |
||||
Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); |
||||
long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true); |
||||
|
||||
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( |
||||
controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),controlloPratica.getPrimaryKey()); |
||||
|
||||
List<WorkflowTask> listaTask = null; |
||||
if (workflowInstanceLink == null) { |
||||
WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( |
||||
controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(), |
||||
controlloPratica.getPrimaryKey()); |
||||
List<WorkflowTask> listaTask = null; |
||||
if (workflowInstanceLink == null) { |
||||
listaTask = new ArrayList<WorkflowTask>(); |
||||
} else { |
||||
} else { |
||||
listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, |
||||
workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); |
||||
} |
||||
|
||||
} |
||||
%> |
||||
|
||||
<liferay-ui:icon-menu icon="" showWhenSingleIcon="false" showExpanded="true" cssClass="menu_button_activity"> |
||||
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-open-pratica") %>' class="tooltip-info"> |
||||
<liferay-ui:icon iconCssClass="fa fa-folder-open" |
||||
linkCssClass="btn btn-action" |
||||
target="_blank" |
||||
message="" |
||||
url="<%=FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" /> |
||||
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-open-pratica") %>' class="tooltip-info"> |
||||
<liferay-ui:icon iconCssClass="fa fa-folder-open" linkCssClass="btn btn-action" target="_blank" message="" |
||||
url="<%= FascicoloURLUtil.getFascicoloViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId()) %>" /> |
||||
</div> |
||||
<c:if test="<%= !listaTask.isEmpty() %>"> |
||||
<% |
||||
PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid, PortletRequest.RENDER_PHASE); |
||||
workflowTaskURL.setParameter("struts_action", |
||||
"/my_workflow_tasks/edit_workflow_task"); |
||||
PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid, |
||||
PortletRequest.RENDER_PHASE); |
||||
workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task"); |
||||
workflowTaskURL.setParameter("workflowTaskId",String.valueOf(listaTask.get(0).getWorkflowTaskId())); |
||||
workflowTaskURL.setPortletMode(PortletMode.VIEW); |
||||
workflowTaskURL.setWindowState(LiferayWindowState.POP_UP); |
||||
%> |
||||
|
||||
<div title='<%=LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info"> |
||||
<liferay-ui:icon useDialog="true" |
||||
iconCssClass="fa fa-list-ol" |
||||
linkCssClass="btn btn-action" |
||||
message="" |
||||
url='<%=workflowTaskURL.toString()+"&controlPanelCategory=my" %>' /> |
||||
<div title='<%= LanguageUtil.get(pageContext,"workflow-action-manage") %>' class="tooltip-info"> |
||||
<liferay-ui:icon useDialog="true" iconCssClass="fa fa-list-ol" linkCssClass="btn btn-action" message="" |
||||
url='<%= workflowTaskURL.toString() + "&controlPanelCategory=my" %>' /> |
||||
</div> |
||||
</c:if> |
||||
</liferay-ui:icon-menu> |
||||
|
||||
|
||||
<script type="text/javascript"> |
||||
YUI().use( |
||||
<script> |
||||
YUI().use( |
||||
'aui-tooltip', |
||||
function(Y) { |
||||
new Y.TooltipDelegate( |
||||
{ |
||||
function (Y) { |
||||
new Y.TooltipDelegate({ |
||||
trigger: '.tooltip-info', |
||||
position: 'top', |
||||
cssClass: 'tooltip-help', |
||||
html: true, |
||||
opacity: 1 |
||||
}); |
||||
} |
||||
); |
||||
} |
||||
); |
||||
); |
||||
</script> |
@ -1,50 +1,33 @@
|
||||
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
||||
|
||||
<%@page import="com.liferay.portal.kernel.util.StringUtil"%> |
||||
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> |
||||
<%@page import="javax.portlet.PortletURL"%> |
||||
|
||||
|
||||
<%@include file="/html/gestionefirme/init.jsp" %> |
||||
|
||||
<%@include file="/html/gestionefirme/init.jsp"%> |
||||
<% |
||||
|
||||
PortletURL portletURL = renderResponse.createRenderURL(); |
||||
|
||||
portletURL.setParameter("tabs1", tabs1 ); |
||||
|
||||
String[] tabs = StringUtil.split(tabNames); |
||||
%> |
||||
|
||||
<div id="<portlet:namespace/>avvisiContainerId" class="container-fluid"> |
||||
|
||||
<liferay-ui:tabs |
||||
names="<%= tabNames %>" |
||||
url="<%= portletURL.toString() %>" |
||||
/> |
||||
|
||||
<liferay-ui:tabs names="<%= tabNames %>" url="<%= portletURL.toString() %>" /> |
||||
<liferay-ui:icon-menu showWhenSingleIcon="<%= false %>" extended="false" showExpanded="true" cssClass="inline_toolbar" > |
||||
<aui:button value="Aggiorna" id='<%=renderResponse.getNamespace()+"aggiorna"%>' icon="fa fa-refresh" type="button" |
||||
onclick="javascript:location.reload()" cssClass="btn btn-primary btn-action pull-right margin_10_0"/> |
||||
|
||||
|
||||
<!-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --> |
||||
<aui:button value="Aggiorna" id='<%= renderResponse.getNamespace() + "aggiorna" %>' icon="fa fa-refresh" type="button" |
||||
onclick="javascript:location.reload()" cssClass="btn btn-primary btn-action pull-right margin_10_0" /> |
||||
<%-- ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme --%> |
||||
<liferay-portlet:resourceURL id="exportCSV" var="exportScadenzePraticheURL"> |
||||
<liferay-portlet:param name="tabs1" value="<%= tabs1 %>" /> |
||||
</liferay-portlet:resourceURL> |
||||
|
||||
<aui:button value="Esporta" id='<%=renderResponse.getNamespace()+"esporta"%>' icon="fa fa-floppy-o" type="button" |
||||
<aui:button value="Esporta" id='<%= renderResponse.getNamespace() + "esporta" %>' icon="fa fa-floppy-o" type="button" |
||||
cssClass="btn btn-primary btn-action pull-left margin_10_0" href="<%= exportScadenzePraticheURL %>"/> |
||||
</liferay-ui:icon-menu> |
||||
|
||||
<br/> |
||||
|
||||
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[0]) %>'> |
||||
<c:if test='<%= tabs1.equals(tabs[0]) %>'> |
||||
<jsp:include page='/html/gestionefirme/avvisi_da_firmare.jsp'/> |
||||
</c:if> |
||||
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[1]) %>'> |
||||
<c:if test='<%= tabs1.equals(tabs[1]) %>'> |
||||
<jsp:include page='/html/gestionefirme/avvisi_da_firmare_altri.jsp'/> |
||||
</c:if> |
||||
<c:if test='<%= tabs1.equals(StringUtil.split(tabNames)[2]) %>'> |
||||
<c:if test='<%= tabs1.equals(tabs[2]) %>'> |
||||
<jsp:include page='/html/gestionefirme/avvisi_firme.jsp' /> |
||||
</c:if> |
||||
</div> |
||||
|
Caricamento…
Reference in new issue