actualiza acceso a bd y toma fecha parametro como DD/MM/YYYY

parent 84cb6c7c
......@@ -253,7 +253,7 @@ appvalue1=values.get("Entry1");
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="expedientesDS" id="601">
<property name="odaDriverClass">org.postgresql.Driver</property>
<property name="odaURL">jdbc:postgresql://sbd.rec.una.py/gdoc</property>
<property name="odaURL">jdbc:postgresql://sbd2.rec.una.py/gdoc</property>
<property name="odaUser">gdocweb</property>
<encrypted-property name="odaPassword" encryptionID="base64">ZXhwMDAw</encrypted-property>
</oda-data-source>
......@@ -303,11 +303,11 @@ if (params["param_cod_sec"] != '' && params["param_cod_sec"] != 'null' && params
}
if (params["param_f_entrada"] != '' && params["param_f_entrada"] != 'null' && params["param_f_entrada"] != null){
this.queryText = this.queryText + "AND cast(de.fecha_entrada as date) = '" + params["param_f_entrada"] + "'";
this.queryText = this.queryText + "AND cast(de.fecha_entrada as date) = to_date( '" + params["param_f_entrada"]+ "' , 'DD/MM/YYYY') ";
}
if (params["param_f_salida"] != '' && params["param_f_salida"] != 'null' && params["param_f_salida"] != null){
this.queryText = this.queryText + "AND cast(de.fecha_salida as date) = '" + params["param_f_salida"] + "'";
this.queryText = this.queryText + "AND cast(de.fecha_salida as date) = to_date( '" + params["param_f_salida"]+ "' , 'DD/MM/YYYY')";
}
if (params["param_estado_actual"] != '' && params["param_estado_actual"] != 'null' && params["param_estado_actual"] != null){
......
......@@ -139,7 +139,7 @@ if (params["param_estado"] != ''){
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="expedientesDS" id="601">
<property name="odaDriverClass">org.postgresql.Driver</property>
<property name="odaURL">jdbc:postgresql://sbd.der.una.py/gdoc</property>
<property name="odaURL">jdbc:postgresql://sbd2.rec.una.py/gdoc</property>
<property name="odaUser">gdocweb</property>
<encrypted-property name="odaPassword" encryptionID="base64">ZXhwMDAw</encrypted-property>
</oda-data-source>
......
SERV_OLD='sbd.rec.una.py'
SERV_OLD='sbd2.rec.una.py'
SERV_NEW='sbd.der.una.py'
DIR=$(ls)
......
......@@ -81,7 +81,7 @@
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="expedientesDS" id="601">
<property name="odaDriverClass">org.postgresql.Driver</property>
<property name="odaURL">jdbc:postgresql://sbd.der.una.py/gdoc</property>
<property name="odaURL">jdbc:postgresql://sbd2.rec.una.py/gdoc</property>
<property name="odaUser">gdocweb</property>
<encrypted-property name="odaPassword" encryptionID="base64">ZXhwMDAw</encrypted-property>
</oda-data-source>
......
......@@ -81,7 +81,7 @@
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="expedientesDS" id="601">
<property name="odaDriverClass">org.postgresql.Driver</property>
<property name="odaURL">jdbc:postgresql://sbd.der.una.py/gdoc</property>
<property name="odaURL">jdbc:postgresql://sbd2.rec.una.py/gdoc</property>
<property name="odaUser">gdocweb</property>
<encrypted-property name="odaPassword" encryptionID="base64">ZXhwMDAw</encrypted-property>
</oda-data-source>
......
......@@ -81,7 +81,7 @@
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="expedientesDS" id="601">
<property name="odaDriverClass">org.postgresql.Driver</property>
<property name="odaURL">jdbc:postgresql://sbd.der.una.py/gdoc</property>
<property name="odaURL">jdbc:postgresql://sbd2.rec.una.py/gdoc</property>
<property name="odaUser">gdocweb</property>
<encrypted-property name="odaPassword" encryptionID="base64">ZXhwMDAw</encrypted-property>
</oda-data-source>
......
......@@ -35,7 +35,7 @@
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="expedientesDS" id="8">
<property name="odaDriverClass">org.postgresql.Driver</property>
<property name="odaURL">jdbc:postgresql://sbd.der.una.py/gdoc</property>
<property name="odaURL">jdbc:postgresql://sbd2.rec.una.py/gdoc</property>
<property name="odaUser">gdocweb</property>
<encrypted-property name="odaPassword" encryptionID="base64">ZXhwMDAw</encrypted-property>
</oda-data-source>
......
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