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