|
|
@ -1,21 +1,14 @@ |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%> |
|
|
|
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%> |
|
|
|
<%@page |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"%> |
|
|
|
import="com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"%> |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil"%> |
|
|
|
<%@page |
|
|
|
|
|
|
|
import="com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.model.DLFolder"%> |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.model.DLFolder"%> |
|
|
|
<%@page |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil"%> |
|
|
|
import="com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil"%> |
|
|
|
|
|
|
|
<%@ include file="/html/init.jsp"%> |
|
|
|
<%@ include file="/html/init.jsp"%> |
|
|
|
<%@page |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.model.DLFolderConstants"%> |
|
|
|
import="com.liferay.portlet.documentlibrary.model.DLFolderConstants"%> |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> |
|
|
|
<%@page |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> |
|
|
|
import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> |
|
|
|
<%@page import="com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryUtil"%> |
|
|
|
<%@page |
|
|
|
|
|
|
|
import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> |
|
|
|
|
|
|
|
<%@page |
|
|
|
|
|
|
|
import="com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryUtil"%> |
|
|
|
|
|
|
|
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> |
|
|
|
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> |
|
|
|
<%@page import="com.liferay.portal.kernel.util.CalendarFactoryUtil"%> |
|
|
|
<%@page import="com.liferay.portal.kernel.util.CalendarFactoryUtil"%> |
|
|
|
|
|
|
|
|
|
|
@ -29,17 +22,16 @@ |
|
|
|
String tabs1 = "parametri"; |
|
|
|
String tabs1 = "parametri"; |
|
|
|
String redirect = "/html/amministrazione/tabs/view.jps"; |
|
|
|
String redirect = "/html/amministrazione/tabs/view.jps"; |
|
|
|
|
|
|
|
|
|
|
|
String schedulerVersioning = |
|
|
|
String schedulerVersioning = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.SCHEDULER_VERSIONING); |
|
|
|
ConfigurazioneConstants.SCHEDULER_VERSIONING); |
|
|
|
String schedulerGeneraDocumento = |
|
|
|
String schedulerGeneraDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); |
|
|
|
ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); |
|
|
|
String schedulerFirmaDocumento = |
|
|
|
String schedulerFirmaDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO); |
|
|
|
ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO); |
|
|
|
String schedulerInvioDocumento = |
|
|
|
String schedulerInvioDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); |
|
|
|
ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); |
|
|
|
String schedulerIris = |
|
|
|
String schedulerIris = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.SCHEDULER_IRIS); |
|
|
|
ConfigurazioneConstants.SCHEDULER_IRIS); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean schedulerVersioningBoolean = Boolean.parseBoolean(schedulerVersioning); |
|
|
|
boolean schedulerVersioningBoolean = Boolean.parseBoolean(schedulerVersioning); |
|
|
|
boolean schedulerGeneraDocumentoBoolean = Boolean.parseBoolean(schedulerGeneraDocumento); |
|
|
|
boolean schedulerGeneraDocumentoBoolean = Boolean.parseBoolean(schedulerGeneraDocumento); |
|
|
@ -47,124 +39,126 @@ |
|
|
|
boolean schedulerInvioDocumentoBoolean = Boolean.parseBoolean(schedulerInvioDocumento); |
|
|
|
boolean schedulerInvioDocumentoBoolean = Boolean.parseBoolean(schedulerInvioDocumento); |
|
|
|
boolean schedulerIrisBoolean = Boolean.parseBoolean(schedulerIris); |
|
|
|
boolean schedulerIrisBoolean = Boolean.parseBoolean(schedulerIris); |
|
|
|
|
|
|
|
|
|
|
|
String irisVerificaPagamentiURL = |
|
|
|
String irisVerificaPagamentiURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL); |
|
|
|
ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL); |
|
|
|
|
|
|
|
|
|
|
|
String protocollazioneServiceURL = |
|
|
|
String protocollazioneServiceURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL); |
|
|
|
ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL); |
|
|
|
|
|
|
|
|
|
|
|
String protocollazioneExportURL = |
|
|
|
String protocollazioneExportURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); |
|
|
|
ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); |
|
|
|
|
|
|
|
|
|
|
|
String protocollazioneImportURL = |
|
|
|
String protocollazioneImportURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL); |
|
|
|
ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL); |
|
|
|
|
|
|
|
|
|
|
|
String irisComunicazioniDebitorieURL = |
|
|
|
String irisComunicazioniDebitorieURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL); |
|
|
|
ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL); |
|
|
|
|
|
|
|
|
|
|
|
String irisGenerazioneIUVURL = |
|
|
|
String irisGenerazioneIUVURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL); |
|
|
|
ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL); |
|
|
|
|
|
|
|
|
|
|
|
String importobollo = |
|
|
|
String importobollo = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.IMPORTO_BOLLO); |
|
|
|
ConfigurazioneConstants.IMPORTO_BOLLO); |
|
|
|
|
|
|
|
|
|
|
|
int dayOfWeekSorteggio = -1; |
|
|
|
int dayOfWeekSorteggio = -1; |
|
|
|
String dayOfWeekSorteggioString = |
|
|
|
String dayOfWeekSorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO); |
|
|
|
ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO); |
|
|
|
if (Validator.isNotNull(dayOfWeekSorteggioString)) { |
|
|
|
if (Validator.isNotNull(dayOfWeekSorteggioString)) { |
|
|
|
dayOfWeekSorteggio = Integer.parseInt(dayOfWeekSorteggioString); |
|
|
|
dayOfWeekSorteggio = Integer.parseInt(dayOfWeekSorteggioString); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String hourOfDaySorteggioString = |
|
|
|
String hourOfDaySorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO); |
|
|
|
ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO); |
|
|
|
if (Validator.isNull(hourOfDaySorteggioString)) { |
|
|
|
if (Validator.isNull(hourOfDaySorteggioString)) { |
|
|
|
hourOfDaySorteggioString = LanguageUtil.get(pageContext, ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO_DEFAULT); |
|
|
|
hourOfDaySorteggioString = LanguageUtil.get(pageContext, |
|
|
|
|
|
|
|
ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO_DEFAULT); |
|
|
|
} |
|
|
|
} |
|
|
|
int hourOfDaySorteggio = Integer.parseInt(hourOfDaySorteggioString); |
|
|
|
int hourOfDaySorteggio = Integer.parseInt(hourOfDaySorteggioString); |
|
|
|
|
|
|
|
|
|
|
|
int dayOfWeekPubblicazione = -1; |
|
|
|
int dayOfWeekPubblicazione = -1; |
|
|
|
String dayOfWeekPubblicazioneString = |
|
|
|
String dayOfWeekPubblicazioneString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( |
|
|
|
ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE); |
|
|
|
companyId, ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE); |
|
|
|
if (Validator.isNotNull(dayOfWeekPubblicazioneString)) { |
|
|
|
if (Validator.isNotNull(dayOfWeekPubblicazioneString)) { |
|
|
|
dayOfWeekPubblicazione = Integer.parseInt(dayOfWeekPubblicazioneString); |
|
|
|
dayOfWeekPubblicazione = Integer.parseInt(dayOfWeekPubblicazioneString); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int startDaySorteggio = -1; |
|
|
|
int startDaySorteggio = -1; |
|
|
|
String startDaySorteggioString = |
|
|
|
String startDaySorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, |
|
|
|
ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.START_DAY_SORTEGGIO); |
|
|
|
ConfigurazioneConstants.START_DAY_SORTEGGIO); |
|
|
|
if (Validator.isNotNull(startDaySorteggioString)) { |
|
|
|
if (Validator.isNotNull(startDaySorteggioString)) { |
|
|
|
startDaySorteggio = Integer.parseInt(startDaySorteggioString); |
|
|
|
startDaySorteggio = Integer.parseInt(startDaySorteggioString); |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<liferay-ui:panel id='panel-scheduler' |
|
|
|
<liferay-ui:panel id='panel-scheduler' title="panel-scheduler-conf-geniocivile" collapsible='true' |
|
|
|
title="panel-scheduler-conf-geniocivile" collapsible='true' |
|
|
|
|
|
|
|
extended="false"> |
|
|
|
extended="false"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="row row-configScheduler"> |
|
|
|
<div class="row row-configScheduler"> |
|
|
|
|
|
|
|
|
|
|
|
<liferay-portlet:actionURL name="saveConfigScheduler" var="saveConfigSchedulerURL"> |
|
|
|
<liferay-portlet:actionURL name="saveConfigScheduler" var="saveConfigSchedulerURL"> |
|
|
|
<portlet:param name="redirect" value="<%=redirect %>"/> |
|
|
|
<portlet:param name="redirect" value="<%=redirect%>" /> |
|
|
|
<liferay-portlet:param name="tabs1" value="<%=tabs1%>" /> |
|
|
|
<liferay-portlet:param name="tabs1" value="<%=tabs1%>" /> |
|
|
|
</liferay-portlet:actionURL> |
|
|
|
</liferay-portlet:actionURL> |
|
|
|
|
|
|
|
|
|
|
|
<aui:form action="<%=saveConfigSchedulerURL%>" name="fmConfigurazioneScheduler"> |
|
|
|
<aui:form action="<%=saveConfigSchedulerURL%>" name="fmConfigurazioneScheduler"> |
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.SCHEDULER_VERSIONING%>'> |
|
|
|
name='<%=ConfigurazioneConstants.SCHEDULER_VERSIONING%>'> |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' selected="<%=schedulerVersioningBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' |
|
|
|
label="active" /> |
|
|
|
selected="<%=schedulerVersioningBoolean%>" label="active" /> |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' selected="<%=!schedulerVersioningBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' |
|
|
|
label="inactive" /> |
|
|
|
selected="<%=!schedulerVersioningBoolean%>" label="inactive" /> |
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO%>'> |
|
|
|
name='<%=ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO%>'> |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' selected="<%=schedulerGeneraDocumentoBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' |
|
|
|
label="active" /> |
|
|
|
selected="<%=schedulerGeneraDocumentoBoolean%>" label="active" /> |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' selected="<%=!schedulerGeneraDocumentoBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' |
|
|
|
label="inactive" /> |
|
|
|
selected="<%=!schedulerGeneraDocumentoBoolean%>" label="inactive" /> |
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO%>'> |
|
|
|
name='<%=ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO%>'> |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' selected="<%=schedulerFirmaDocumentoBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' |
|
|
|
label="active" /> |
|
|
|
selected="<%=schedulerFirmaDocumentoBoolean%>" label="active" /> |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' selected="<%=!schedulerFirmaDocumentoBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' |
|
|
|
label="inactive" /> |
|
|
|
selected="<%=!schedulerFirmaDocumentoBoolean%>" label="inactive" /> |
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO%>'> |
|
|
|
name='<%=ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO%>'> |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' selected="<%=schedulerInvioDocumentoBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' |
|
|
|
label="active" /> |
|
|
|
selected="<%=schedulerInvioDocumentoBoolean%>" label="active" /> |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' selected="<%=!schedulerInvioDocumentoBoolean%>" |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' |
|
|
|
label="inactive" /> |
|
|
|
selected="<%=!schedulerInvioDocumentoBoolean%>" label="inactive" /> |
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
<div class="separator"></div> |
|
|
|
<div class="separator"></div> |
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.SCHEDULER_IRIS%>'> |
|
|
|
name='<%=ConfigurazioneConstants.SCHEDULER_IRIS%>'> |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' selected="<%=schedulerIrisBoolean%>" label="active" /> |
|
|
|
<aui:option value='<%=Boolean.TRUE.toString()%>' |
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' selected="<%=!schedulerIrisBoolean%>" label="inactive" /> |
|
|
|
selected="<%=schedulerIrisBoolean%>" label="active" /> |
|
|
|
|
|
|
|
<aui:option value='<%=Boolean.FALSE.toString()%>' |
|
|
|
|
|
|
|
selected="<%=!schedulerIrisBoolean%>" label="inactive" /> |
|
|
|
|
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL%>" value="<%=irisVerificaPagamentiURL %>"></aui:input> |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL%>" |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL%>" value="<%=irisComunicazioniDebitorieURL %>"></aui:input> |
|
|
|
value="<%=irisVerificaPagamentiURL%>"></aui:input> |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL%>" value="<%=irisGenerazioneIUVURL %>"></aui:input> |
|
|
|
<aui:input cssClass="span12" type="text" |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IMPORTO_BOLLO%>" value="<%=importobollo %>"></aui:input> |
|
|
|
name="<%=ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL%>" |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL%>" value="<%=protocollazioneServiceURL %>"></aui:input> |
|
|
|
value="<%=irisComunicazioniDebitorieURL%>"></aui:input> |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL%>" value="<%=protocollazioneExportURL %>"></aui:input> |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL%>" |
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL%>" value="<%=protocollazioneImportURL %>"></aui:input> |
|
|
|
value="<%=irisGenerazioneIUVURL%>"></aui:input> |
|
|
|
|
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.IMPORTO_BOLLO%>" |
|
|
|
|
|
|
|
value="<%=importobollo%>"></aui:input> |
|
|
|
|
|
|
|
<aui:input cssClass="span12" type="text" name="<%=ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL%>" |
|
|
|
|
|
|
|
value="<%=protocollazioneServiceURL%>"></aui:input> |
|
|
|
|
|
|
|
<aui:input cssClass="span12" type="text" |
|
|
|
|
|
|
|
name="<%=ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL%>" |
|
|
|
|
|
|
|
value="<%=protocollazioneExportURL%>"></aui:input> |
|
|
|
|
|
|
|
<aui:input cssClass="span12" type="text" |
|
|
|
|
|
|
|
name="<%=ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL%>" |
|
|
|
|
|
|
|
value="<%=protocollazioneImportURL%>"></aui:input> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="separator"></div> |
|
|
|
<div class="separator"></div> |
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO%>'> |
|
|
|
name='<%=ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO%>'> |
|
|
|
|
|
|
|
<aui:option value="" label="" /> |
|
|
|
<aui:option value="" label="" /> |
|
|
|
<% |
|
|
|
<% |
|
|
|
int days[] = |
|
|
|
int days[] = new int[] { Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, |
|
|
|
new int[] {Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY}; |
|
|
|
Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY }; |
|
|
|
Format dayFormat = FastDateFormatFactoryUtil.getSimpleDateFormat("EEEE", locale); |
|
|
|
Format dayFormat = FastDateFormatFactoryUtil.getSimpleDateFormat("EEEE", locale); |
|
|
|
Calendar cal = CalendarFactoryUtil.getCalendar(); |
|
|
|
Calendar cal = CalendarFactoryUtil.getCalendar(); |
|
|
|
cal.set(Calendar.DATE, 1); |
|
|
|
cal.set(Calendar.DATE, 1); |
|
|
@ -172,32 +166,28 @@ |
|
|
|
cal.set(Calendar.DAY_OF_WEEK, day); |
|
|
|
cal.set(Calendar.DAY_OF_WEEK, day); |
|
|
|
String dayString = dayFormat.format(cal); |
|
|
|
String dayString = dayFormat.format(cal); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value='<%=day%>' |
|
|
|
<aui:option value='<%=day%>' selected="<%=day == dayOfWeekSorteggio%>" label='<%=dayString%>' /> |
|
|
|
selected="<%=day == dayOfWeekSorteggio%>" label='<%=dayString%>' /> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO%>'> |
|
|
|
name='<%=ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO%>'> |
|
|
|
|
|
|
|
<aui:option value="" label="" /> |
|
|
|
<aui:option value="" label="" /> |
|
|
|
<% |
|
|
|
<% |
|
|
|
for (int i = 0; i < 24; i++) { |
|
|
|
for (int i = 0; i < 24; i++) { |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value='<%=i%>' |
|
|
|
<aui:option value='<%=i%>' selected="<%=i == hourOfDaySorteggio%>" label='<%=i%>' /> |
|
|
|
selected="<%=i == hourOfDaySorteggio%>" label='<%= i %>' /> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%=ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE%>'> |
|
|
|
name='<%=ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE%>'> |
|
|
|
|
|
|
|
<aui:option value="" label="" /> |
|
|
|
<aui:option value="" label="" /> |
|
|
|
<% |
|
|
|
<% |
|
|
|
int days[] = |
|
|
|
int days[] = new int[] { Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, |
|
|
|
new int[] {Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY}; |
|
|
|
Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY }; |
|
|
|
Format dayFormat = FastDateFormatFactoryUtil.getSimpleDateFormat("EEEE", locale); |
|
|
|
Format dayFormat = FastDateFormatFactoryUtil.getSimpleDateFormat("EEEE", locale); |
|
|
|
Calendar cal = CalendarFactoryUtil.getCalendar(); |
|
|
|
Calendar cal = CalendarFactoryUtil.getCalendar(); |
|
|
|
cal.set(Calendar.DATE, 1); |
|
|
|
cal.set(Calendar.DATE, 1); |
|
|
@ -205,8 +195,7 @@ |
|
|
|
cal.set(Calendar.DAY_OF_WEEK, day); |
|
|
|
cal.set(Calendar.DAY_OF_WEEK, day); |
|
|
|
String dayString = dayFormat.format(cal); |
|
|
|
String dayString = dayFormat.format(cal); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value='<%=day%>' |
|
|
|
<aui:option value='<%=day%>' selected="<%=day == dayOfWeekPubblicazione%>" label='<%=dayString%>' /> |
|
|
|
selected="<%=day == dayOfWeekPubblicazione%>" label='<%=dayString%>' /> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
@ -221,30 +210,27 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
List<DLFolder> rootfolders = |
|
|
|
List<DLFolder> rootfolders = DLFolderServiceUtil.getFolders(portletGroupId, |
|
|
|
DLFolderServiceUtil.getFolders(portletGroupId, DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, QueryUtil.ALL_POS, |
|
|
|
DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); |
|
|
|
QueryUtil.ALL_POS, null); |
|
|
|
long templateFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong(companyId, |
|
|
|
long templateFolderId = |
|
|
|
ConfigurazioneConstants.TEMPLATE_FOLDER_ID); |
|
|
|
ConfigurazioneServiceUtil.findByC_ChiaveLong(companyId, ConfigurazioneConstants.TEMPLATE_FOLDER_ID); |
|
|
|
|
|
|
|
%> |
|
|
|
%> |
|
|
|
<liferay-portlet:actionURL name="saveConfigTemplate" var="saveConfigTemplateURL"> |
|
|
|
<liferay-portlet:actionURL name="saveConfigTemplate" var="saveConfigTemplateURL"> |
|
|
|
<portlet:param name="redirect" value="<%=redirect %>" /> |
|
|
|
<portlet:param name="redirect" value="<%=redirect%>" /> |
|
|
|
<portlet:param name="tabs1" value="<%=tabs1%>" /> |
|
|
|
<portlet:param name="tabs1" value="<%=tabs1%>" /> |
|
|
|
</liferay-portlet:actionURL> |
|
|
|
</liferay-portlet:actionURL> |
|
|
|
<liferay-ui:panel id='fileTemplate' |
|
|
|
<liferay-ui:panel id='fileTemplate' title="panel-template-conf-geniocivile" collapsible='true' |
|
|
|
title="panel-template-conf-geniocivile" collapsible='true' |
|
|
|
|
|
|
|
extended="false"> |
|
|
|
extended="false"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="row row-configTemplate"> |
|
|
|
<div class="row row-configTemplate"> |
|
|
|
<aui:form action="<%=saveConfigTemplateURL%>" |
|
|
|
<aui:form action="<%=saveConfigTemplateURL%>" name="fmConfigurazioneTemplate"> |
|
|
|
name="fmConfigurazioneTemplate"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<aui:select |
|
|
|
<aui:select name='<%="configurazione--" + ConfigurazioneConstants.TEMPLATE_FOLDER_ID + "--"%>'> |
|
|
|
name='<%="configurazione--" + ConfigurazioneConstants.TEMPLATE_FOLDER_ID + "--"%>'> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
for (DLFolder dlFolder : rootfolders) { |
|
|
|
for (DLFolder dlFolder : rootfolders) { |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value="<%=dlFolder.getFolderId()%>" selected="<%=dlFolder.getFolderId() == templateFolderId%>"><%=dlFolder.getName()%></aui:option> |
|
|
|
<aui:option value="<%=dlFolder.getFolderId()%>" |
|
|
|
|
|
|
|
selected="<%=dlFolder.getFolderId() == templateFolderId%>"><%=dlFolder.getName()%></aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
@ -252,24 +238,21 @@ |
|
|
|
<c:if test="<%=templateFolderId != 0L%>"> |
|
|
|
<c:if test="<%=templateFolderId != 0L%>"> |
|
|
|
<% |
|
|
|
<% |
|
|
|
DLFolder dlFolder = DLFolderLocalServiceUtil.getFolder(templateFolderId); |
|
|
|
DLFolder dlFolder = DLFolderLocalServiceUtil.getFolder(templateFolderId); |
|
|
|
|
|
|
|
|
|
|
|
List<FileEntry> fileList = DLAppServiceUtil.getFileEntries(dlFolder.getRepositoryId(), templateFolderId); |
|
|
|
List<FileEntry> fileList = DLAppServiceUtil.getFileEntries(dlFolder.getRepositoryId(), templateFolderId); |
|
|
|
Collection<String> keyColl = AvvisoUtil.getUniqueTipoDocumentoFileTemplateProps(); |
|
|
|
Collection<String> keyColl = AvvisoUtil.getUniqueTipoDocumentoFileTemplateProps(); |
|
|
|
|
|
|
|
|
|
|
|
for (String key : keyColl) { |
|
|
|
for (String key : keyColl) { |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:select name='<%="configurazione--" + key + "--"%>' label="<%= key %>" helpMessage='<%= "("+key+")" %>'> |
|
|
|
<aui:select name='<%="configurazione--" + key + "--"%>' label="<%=key%>" |
|
|
|
|
|
|
|
helpMessage='<%="(" + key + ")"%>'> |
|
|
|
<aui:option label="" value="" /> |
|
|
|
<aui:option label="" value="" /> |
|
|
|
<% |
|
|
|
<% |
|
|
|
for (FileEntry fileEntry : fileList) { |
|
|
|
for (FileEntry fileEntry : fileList) { |
|
|
|
|
|
|
|
|
|
|
|
long currentFileId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, key); |
|
|
|
long currentFileId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, key); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value="<%=fileEntry.getFileEntryId()%>" |
|
|
|
<aui:option value="<%=fileEntry.getFileEntryId()%>" |
|
|
|
selected="<%=fileEntry.getFileEntryId() == currentFileId%>"><%=fileEntry.getTitle()%> |
|
|
|
selected="<%=fileEntry.getFileEntryId() == currentFileId%>"><%=fileEntry.getTitle()%> |
|
|
|
</aui:option> |
|
|
|
</aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
%> |
|
|
|
%> |
|
|
|
</aui:select> |
|
|
|
</aui:select> |
|
|
@ -284,12 +267,10 @@ |
|
|
|
</liferay-ui:panel> |
|
|
|
</liferay-ui:panel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<liferay-ui:panel id='fileFolder' title="panel-folder-conf-geniocivile" |
|
|
|
<liferay-ui:panel id='fileFolder' title="panel-folder-conf-geniocivile" collapsible='true' extended="false"> |
|
|
|
collapsible='true' extended="false"> |
|
|
|
|
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="row row-configTemplate"> |
|
|
|
<div class="row row-configTemplate"> |
|
|
|
<aui:form action="<%=saveConfigTemplateURL%>" |
|
|
|
<aui:form action="<%=saveConfigTemplateURL%>" name="fmConfigurazioneTemplate"> |
|
|
|
name="fmConfigurazioneTemplate"> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
Collection<String> keyColl = AvvisoUtil.getAllTipoDocumentoFolderProps().values(); |
|
|
|
Collection<String> keyColl = AvvisoUtil.getAllTipoDocumentoFolderProps().values(); |
|
|
|
for (String key : keyColl) { |
|
|
|
for (String key : keyColl) { |
|
|
@ -298,14 +279,15 @@ |
|
|
|
<aui:option label="" value="" /> |
|
|
|
<aui:option label="" value="" /> |
|
|
|
<% |
|
|
|
<% |
|
|
|
for (DLFolder fd : rootfolders) { |
|
|
|
for (DLFolder fd : rootfolders) { |
|
|
|
long currentFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong(companyId, key); |
|
|
|
long currentFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong( |
|
|
|
|
|
|
|
companyId, key); |
|
|
|
String parentFolderName = StringPool.BLANK; |
|
|
|
String parentFolderName = StringPool.BLANK; |
|
|
|
DLFolder parentFolder = fd.getParentFolder(); |
|
|
|
DLFolder parentFolder = fd.getParentFolder(); |
|
|
|
if (parentFolder != null) parentFolderName = parentFolder.getName(); |
|
|
|
if (parentFolder != null) |
|
|
|
|
|
|
|
parentFolderName = parentFolder.getName(); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value="<%=fd.getFolderId()%>" |
|
|
|
<aui:option value="<%=fd.getFolderId()%>" selected="<%=fd.getFolderId() == currentFolderId%>"><%=parentFolderName.equals(StringPool.BLANK) ? fd.getName() |
|
|
|
selected="<%=fd.getFolderId() == currentFolderId%>"><%=parentFolderName.equals(StringPool.BLANK) ? fd.getName() : parentFolderName |
|
|
|
: parentFolderName + StringPool.MINUS + fd.getName()%> |
|
|
|
+ StringPool.MINUS + fd.getName()%> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
</aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
@ -319,13 +301,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</liferay-ui:panel> |
|
|
|
</liferay-ui:panel> |
|
|
|
<liferay-ui:panel id='fileFolderAttachment' |
|
|
|
<liferay-ui:panel id='fileFolderAttachment' title="panel-folder-attachment-conf-geniocivile" |
|
|
|
title="panel-folder-attachment-conf-geniocivile" collapsible='true' |
|
|
|
collapsible='true' extended="false"> |
|
|
|
extended="false"> |
|
|
|
|
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="row row-configTemplate"> |
|
|
|
<div class="row row-configTemplate"> |
|
|
|
<aui:form action="<%=saveConfigTemplateURL%>" |
|
|
|
<aui:form action="<%=saveConfigTemplateURL%>" name="fmConfigurazioneTemplate"> |
|
|
|
name="fmConfigurazioneTemplate"> |
|
|
|
|
|
|
|
<% |
|
|
|
<% |
|
|
|
String key = ConfigurazioneConstants.ATTACHMENT_FOLDER_ID; |
|
|
|
String key = ConfigurazioneConstants.ATTACHMENT_FOLDER_ID; |
|
|
|
%> |
|
|
|
%> |
|
|
@ -333,14 +313,15 @@ |
|
|
|
<aui:option label="" value="" /> |
|
|
|
<aui:option label="" value="" /> |
|
|
|
<% |
|
|
|
<% |
|
|
|
for (DLFolder fd : rootfolders) { |
|
|
|
for (DLFolder fd : rootfolders) { |
|
|
|
long currentFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, key); |
|
|
|
long currentFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( |
|
|
|
|
|
|
|
companyId, key); |
|
|
|
String parentFolderName = StringPool.BLANK; |
|
|
|
String parentFolderName = StringPool.BLANK; |
|
|
|
DLFolder parentFolder = fd.getParentFolder(); |
|
|
|
DLFolder parentFolder = fd.getParentFolder(); |
|
|
|
if (parentFolder != null) parentFolderName = parentFolder.getName(); |
|
|
|
if (parentFolder != null) |
|
|
|
|
|
|
|
parentFolderName = parentFolder.getName(); |
|
|
|
%> |
|
|
|
%> |
|
|
|
<aui:option value="<%=fd.getFolderId()%>" |
|
|
|
<aui:option value="<%=fd.getFolderId()%>" selected="<%=fd.getFolderId() == currentFolderId%>"><%=parentFolderName.equals(StringPool.BLANK) ? fd.getName() |
|
|
|
selected="<%=fd.getFolderId() == currentFolderId%>"><%=parentFolderName.equals(StringPool.BLANK) ? fd.getName() : parentFolderName |
|
|
|
: parentFolderName + StringPool.MINUS + fd.getName()%> |
|
|
|
+ StringPool.MINUS + fd.getName()%> |
|
|
|
|
|
|
|
</aui:option> |
|
|
|
</aui:option> |
|
|
|
<% |
|
|
|
<% |
|
|
|
} |
|
|
|
} |
|
|
|