Commit 391436ca authored by Luis Dávila's avatar Luis Dávila

Se corrige una variable c que estaba de más en JS y se eliminan y/o sustituyen...

Se corrige una variable c que estaba de más en JS y se eliminan y/o sustituyen Sysouts restantes por log.info
parent 0451a15a
...@@ -39,7 +39,7 @@ public class PresupuestosAction extends BaseContratoAction { ...@@ -39,7 +39,7 @@ public class PresupuestosAction extends BaseContratoAction {
} }
public String guardaMonto() { public String guardaMonto() {
System.out.println("Almacenando presupuesto"); logger.info("Almacenando presupuesto");
try { try {
mensaje = presupuestoBO.almacenaMonto(anio, monto); mensaje = presupuestoBO.almacenaMonto(anio, monto);
......
...@@ -47,7 +47,7 @@ public class DescargaArchivosTransaccionesAction extends BaseContratoAction { ...@@ -47,7 +47,7 @@ public class DescargaArchivosTransaccionesAction extends BaseContratoAction {
byte[] vistaPrevia; byte[] vistaPrevia;
try { try {
System.out.println("si sirve..." + cargaTransacciones); logger.info("si sirve..." + cargaTransacciones);
vistaPrevia = cargaTransaccionesBO.descargarArchivoTransacciones(cargaTransacciones); vistaPrevia = cargaTransaccionesBO.descargarArchivoTransacciones(cargaTransacciones);
nombre = "reporteCargaTransacciones"; nombre = "reporteCargaTransacciones";
...@@ -64,14 +64,19 @@ public class DescargaArchivosTransaccionesAction extends BaseContratoAction { ...@@ -64,14 +64,19 @@ public class DescargaArchivosTransaccionesAction extends BaseContratoAction {
} catch (ResultMapException e) { } catch (ResultMapException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivo: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (PersistenceException e) { } catch (PersistenceException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivo: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (TransaccionException e) { } catch (TransaccionException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivo: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (SQLException e) { } catch (SQLException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivo: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (IOException e) { } catch (IOException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivo: Error al descargar el archivo Excel..." + e + " ___ " + error);
} }
return SUCCESS; return SUCCESS;
} }
...@@ -98,14 +103,19 @@ public class DescargaArchivosTransaccionesAction extends BaseContratoAction { ...@@ -98,14 +103,19 @@ public class DescargaArchivosTransaccionesAction extends BaseContratoAction {
out.close(); out.close();
} catch (ResultMapException e) { } catch (ResultMapException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivoVistaPrevia: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (PersistenceException e) { } catch (PersistenceException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivoVistaPrevia: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (TransaccionException e) { } catch (TransaccionException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivoVistaPrevia: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (SQLException e) { } catch (SQLException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivoVistaPrevia: Error al descargar el archivo Excel..." + e + " ___ " + error);
} catch (IOException e) { } catch (IOException e) {
error = e.getMessage(); error = e.getMessage();
logger.error("descargaArchivoVistaPrevia: Error al descargar el archivo Excel..." + e + " ___ " + error);
} }
return SUCCESS; return SUCCESS;
......
...@@ -105,7 +105,7 @@ public class ReporteAmortvsPptoAction extends BaseContratoAction { ...@@ -105,7 +105,7 @@ public class ReporteAmortvsPptoAction extends BaseContratoAction {
rep = reporteAmortPptoBO.descargaObjReporte(reporte); rep = reporteAmortPptoBO.descargaObjReporte(reporte);
System.out.println("reporte..." + reporte); logger.info("reporte..." + reporte);
nombre = "reporteAmortizacion"; nombre = "reporteAmortizacion";
......
...@@ -118,7 +118,6 @@ TituloController.prototype.openCambio = function() { ...@@ -118,7 +118,6 @@ TituloController.prototype.openCambio = function() {
}; };
TituloController.prototype.openBaja = function() { TituloController.prototype.openBaja = function() {
c
var titulo = this.grid.itemsSelected(); var titulo = this.grid.itemsSelected();
if (titulo.length == 1) { if (titulo.length == 1) {
var a = titulo[0]; var a = titulo[0];
......
...@@ -101,7 +101,7 @@ public class ReporteAddOnsBO extends BaseBO { ...@@ -101,7 +101,7 @@ public class ReporteAddOnsBO extends BaseBO {
if(Objects.nonNull(lReporte) && !lReporte.isEmpty()){ if(Objects.nonNull(lReporte) && !lReporte.isEmpty()){
tipoReporte = lReporte.get(0).getM2(); tipoReporte = lReporte.get(0).getM2();
} }
System.out.println("Tipo reporte: " + tipoReporte); logger.info("Tipo reporte: " + tipoReporte);
ExcelMapper mapper = null; ExcelMapper mapper = null;
......
...@@ -443,7 +443,7 @@ public class CargaTransaccionesBO extends BaseBO { ...@@ -443,7 +443,7 @@ public class CargaTransaccionesBO extends BaseBO {
lang = (JSONArray) jsonObject.get("rows"); lang = (JSONArray) jsonObject.get("rows");
for (int i = 0; i < lang.size(); i++) { for (int i = 0; i < lang.size(); i++) {
System.out.println("The " + i + " element of the json: " + lang.get(i)); log.debug("The " + i + " element of the json: " + lang.get(i));
} }
} catch (IOException e) { } catch (IOException e) {
...@@ -532,7 +532,7 @@ public class CargaTransaccionesBO extends BaseBO { ...@@ -532,7 +532,7 @@ public class CargaTransaccionesBO extends BaseBO {
byte[] barchivo = null; byte[] barchivo = null;
ExcelMapper mapper = excelMapperContext.getExcelMapper("cargaTransacciones"); ExcelMapper mapper = excelMapperContext.getExcelMapper("cargaTransacciones");
System.out.println("mapper:" + mapper); log.info("mapper:" + mapper);
try { try {
barchivo = excelMapperTransform.transformObjectToExcel(infoReporte, mapper, CargaTransaccionesDTO.class); barchivo = excelMapperTransform.transformObjectToExcel(infoReporte, mapper, CargaTransaccionesDTO.class);
...@@ -648,7 +648,7 @@ public class CargaTransaccionesBO extends BaseBO { ...@@ -648,7 +648,7 @@ public class CargaTransaccionesBO extends BaseBO {
try { try {
titulosCarga = cargaTransaccionesDAO.titulosdelaCarga(mes); titulosCarga = cargaTransaccionesDAO.titulosdelaCarga(mes);
System.out.println(titulosCarga); log.info(titulosCarga);
} catch (PersistenceException e) { } catch (PersistenceException e) {
throw new TransaccionException("Error al cargar los datos de actualizacion " + e); throw new TransaccionException("Error al cargar los datos de actualizacion " + e);
} catch (DataAccessException e) { } catch (DataAccessException e) {
...@@ -665,7 +665,6 @@ public class CargaTransaccionesBO extends BaseBO { ...@@ -665,7 +665,6 @@ public class CargaTransaccionesBO extends BaseBO {
try { try {
sinIdBv = cargaTransaccionesDAO.sinIdBroadView(idCarga); sinIdBv = cargaTransaccionesDAO.sinIdBroadView(idCarga);
// System.out.println(sinIdBv);
} catch (PersistenceException e) { } catch (PersistenceException e) {
throw new TransaccionException("Error al cargar los datos de actualizacion " + e); throw new TransaccionException("Error al cargar los datos de actualizacion " + e);
} catch (DataAccessException e) { } catch (DataAccessException e) {
......
...@@ -471,7 +471,6 @@ public class ReporteDatosContratosBO extends BaseBO { ...@@ -471,7 +471,6 @@ public class ReporteDatosContratosBO extends BaseBO {
ExcelRule rule = new ExcelRule(); ExcelRule rule = new ExcelRule();
List<String> headers = new ArrayList<String>(); List<String> headers = new ArrayList<String>();
rule.setColumn(getExcelColumnName(i + 1)); rule.setColumn(getExcelColumnName(i + 1));
System.out.println("Dato: " + tabla[0][i]);
if (tabla[0][i] != null) { if (tabla[0][i] != null) {
headers.add(rheader[i]); headers.add(rheader[i]);
......
...@@ -194,7 +194,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno ...@@ -194,7 +194,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno
} }
query.append(" order by dtct.FECHA_INICIO desc"); query.append(" order by dtct.FECHA_INICIO desc");
System.out.println(query.toString());
List<ReporteInterfazContingenciaDTO> listaReporteRows = jdbcTemplate.query(query.toString(), List<ReporteInterfazContingenciaDTO> listaReporteRows = jdbcTemplate.query(query.toString(),
new BeanPropertyRowMapper<ReporteInterfazContingenciaDTO>(ReporteInterfazContingenciaDTO.class)); new BeanPropertyRowMapper<ReporteInterfazContingenciaDTO>(ReporteInterfazContingenciaDTO.class));
...@@ -215,7 +215,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno ...@@ -215,7 +215,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno
query.append(" AND to_date(a.FECHA_CONTABILIZACION,'dd/mm/yyyy') <= to_date(sysdate,'dd/mm/yyyy') "); query.append(" AND to_date(a.FECHA_CONTABILIZACION,'dd/mm/yyyy') <= to_date(sysdate,'dd/mm/yyyy') ");
query.append(" and FECHA_ENVIO_OK is NULL "); query.append(" and FECHA_ENVIO_OK is NULL ");
query.append(" order by a.FECHA_INICIO DESC "); query.append(" order by a.FECHA_INICIO DESC ");
System.out.println(query.toString());
List<ReporteInterfazContingenciaDTO> listaReporteRows = jdbcTemplate.query(query.toString(), List<ReporteInterfazContingenciaDTO> listaReporteRows = jdbcTemplate.query(query.toString(),
new BeanPropertyRowMapper<ReporteInterfazContingenciaDTO>(ReporteInterfazContingenciaDTO.class)); new BeanPropertyRowMapper<ReporteInterfazContingenciaDTO>(ReporteInterfazContingenciaDTO.class));
...@@ -278,7 +278,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno ...@@ -278,7 +278,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno
+ " AND T.PAIS NOT IN (" + notIn + ") " + " AND T.PAIS NOT IN (" + notIn + ") "
+ " ORDER BY E, P"; + " ORDER BY E, P";
System.out.println("Query ejecutada: " + sql);
List<ReporteAddOnRowDTO> listaReporteRows = jdbcTemplate.query(sql, new RowMapper<ReporteAddOnRowDTO>() { List<ReporteAddOnRowDTO> listaReporteRows = jdbcTemplate.query(sql, new RowMapper<ReporteAddOnRowDTO>() {
@Override @Override
public ReporteAddOnRowDTO mapRow(ResultSet rs, int rowNumber) throws SQLException { public ReporteAddOnRowDTO mapRow(ResultSet rs, int rowNumber) throws SQLException {
...@@ -546,7 +546,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno ...@@ -546,7 +546,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno
+ " WHERE EXTRACT(MONTH FROM T.MES_CARGA)= " + mes + " AND EXTRACT(YEAR FROM T.MES_CARGA)=" + anio + " AND T.ID_ESTUDIO = " + idEstudio + " WHERE EXTRACT(MONTH FROM T.MES_CARGA)= " + mes + " AND EXTRACT(YEAR FROM T.MES_CARGA)=" + anio + " AND T.ID_ESTUDIO = " + idEstudio
+ " AND T.PAIS = 'MEXICO' ORDER BY E, P"; + " AND T.PAIS = 'MEXICO' ORDER BY E, P";
System.out.println("Query ejecutada: " + sql);
List<ReporteAddOnRowDTO> listaReporteRows = jdbcTemplate.query(sql, new RowMapper<ReporteAddOnRowDTO>() { List<ReporteAddOnRowDTO> listaReporteRows = jdbcTemplate.query(sql, new RowMapper<ReporteAddOnRowDTO>() {
@Override @Override
public ReporteAddOnRowDTO mapRow(ResultSet rs, int rowNumber) throws SQLException { public ReporteAddOnRowDTO mapRow(ResultSet rs, int rowNumber) throws SQLException {
...@@ -624,7 +624,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno ...@@ -624,7 +624,7 @@ public class ReportePagoAlternoImpl extends BaseBO implements ReportePagoAlterno
private String textoFechaIniFinMes(String g) { private String textoFechaIniFinMes(String g) {
String r = ""; String r = "";
; ;
System.out.println(g);
SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try { try {
Date dataFormateada = formato.parse(g); Date dataFormateada = formato.parse(g);
......
...@@ -23,7 +23,6 @@ public class DLARestClientFactory extends BaseBO{ ...@@ -23,7 +23,6 @@ public class DLARestClientFactory extends BaseBO{
for(Map.Entry<String, String> entry: services.entrySet()) for(Map.Entry<String, String> entry: services.entrySet())
{ {
String uri = entry.getValue(); String uri = entry.getValue();
System.out.println("No existe el servicio: " + uri);
DLARestClient rc = new DLARestClient(uri); DLARestClient rc = new DLARestClient(uri);
clients.put(entry.getKey(), rc); clients.put(entry.getKey(), rc);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment