reporte expedientes por tramite detallado

parent 2ef7c040
...@@ -2,6 +2,20 @@ ...@@ -2,6 +2,20 @@
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1"> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="comments">Copyright (c) 2007 &lt;&lt;Your Company Name here>></property> <property name="comments">Copyright (c) 2007 &lt;&lt;Your Company Name here>></property>
<property name="createdBy">Eclipse BIRT Designer Version 4.6.0.v201606072122</property> <property name="createdBy">Eclipse BIRT Designer Version 4.6.0.v201606072122</property>
<list-property name="propertyBindings">
<structure>
<property name="name">queryText</property>
<property name="id">602</property>
</structure>
<structure>
<property name="name">queryTimeOut</property>
<property name="id">602</property>
</structure>
<structure>
<property name="name">rowFetchSize</property>
<property name="id">602</property>
</structure>
</list-property>
<property name="units">in</property> <property name="units">in</property>
<method name="initialize"><![CDATA[if (params["param_estado"] != ''){ <method name="initialize"><![CDATA[if (params["param_estado"] != ''){
if(params["param_estado"] == 'P'){ if(params["param_estado"] == 'P'){
...@@ -115,25 +129,31 @@ ...@@ -115,25 +129,31 @@
</data-sources> </data-sources>
<data-sets> <data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="PorTramiteDSet" id="602"> <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="PorTramiteDSet" id="602">
<property name="nullsOrdering">nulls lowest</property>
<list-property name="columnHints"> <list-property name="columnHints">
<structure> <structure>
<property name="columnName">cod_tramite</property> <property name="columnName">cod_tramite</property>
<property name="analysis">dimension</property>
<text-property name="displayName">cod_tramite</text-property> <text-property name="displayName">cod_tramite</text-property>
</structure> </structure>
<structure> <structure>
<property name="columnName">nombre_tramite</property> <property name="columnName">nombre</property>
<property name="analysis">dimension</property>
<text-property name="displayName">nombre_tramite</text-property> <text-property name="displayName">nombre_tramite</text-property>
</structure> </structure>
<structure> <structure>
<property name="columnName">cantidad_expedientes</property> <property name="columnName">cantidad_expedientes</property>
<property name="analysis">measure</property>
<text-property name="displayName">cantidad_expedientes</text-property> <text-property name="displayName">cantidad_expedientes</text-property>
</structure> </structure>
<structure> <structure>
<property name="columnName">nombre_seccion</property> <property name="columnName">nombre_seccion</property>
<property name="analysis">dimension</property>
<text-property name="displayName">nombre_seccion</text-property> <text-property name="displayName">nombre_seccion</text-property>
</structure> </structure>
<structure> <structure>
<property name="columnName">responsable</property> <property name="columnName">responsable</property>
<property name="analysis">dimension</property>
<text-property name="displayName">responsable</text-property> <text-property name="displayName">responsable</text-property>
</structure> </structure>
</list-property> </list-property>
...@@ -143,7 +163,7 @@ ...@@ -143,7 +163,7 @@
<property name="paramName">param_cod_inst</property> <property name="paramName">param_cod_inst</property>
<property name="nativeName"></property> <property name="nativeName"></property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">1</property> <property name="nativeDataType">12</property>
<property name="position">1</property> <property name="position">1</property>
<property name="isOptional">false</property> <property name="isOptional">false</property>
<property name="isInput">true</property> <property name="isInput">true</property>
...@@ -165,7 +185,7 @@ ...@@ -165,7 +185,7 @@
<property name="paramName">param_estado</property> <property name="paramName">param_estado</property>
<property name="nativeName"></property> <property name="nativeName"></property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">1</property> <property name="nativeDataType">12</property>
<property name="position">3</property> <property name="position">3</property>
<property name="isOptional">false</property> <property name="isOptional">false</property>
<property name="allowNull">true</property> <property name="allowNull">true</property>
...@@ -177,7 +197,7 @@ ...@@ -177,7 +197,7 @@
<property name="paramName">param_cod_tramite</property> <property name="paramName">param_cod_tramite</property>
<property name="nativeName"></property> <property name="nativeName"></property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">1</property> <property name="nativeDataType">12</property>
<property name="position">4</property> <property name="position">4</property>
<property name="isOptional">false</property> <property name="isOptional">false</property>
<property name="allowNull">true</property> <property name="allowNull">true</property>
...@@ -194,7 +214,7 @@ ...@@ -194,7 +214,7 @@
</structure> </structure>
<structure> <structure>
<property name="position">2</property> <property name="position">2</property>
<property name="name">nombre_tramite</property> <property name="name">nombre</property>
<property name="dataType">string</property> <property name="dataType">string</property>
</structure> </structure>
<structure> <structure>
...@@ -214,149 +234,66 @@ ...@@ -214,149 +234,66 @@
</structure> </structure>
</list-property> </list-property>
</structure> </structure>
<property name="dataSource">expedientesDS</property>
<list-property name="resultSet"> <list-property name="resultSet">
<structure> <structure>
<property name="position">1</property> <property name="position">1</property>
<property name="name">cod_tramite</property> <property name="name">cod_tramite</property>
<property name="nativeName">cod_tramite</property> <property name="nativeName">cod_tramite</property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure> </structure>
<structure> <structure>
<property name="position">2</property> <property name="position">2</property>
<property name="name">nombre_tramite</property> <property name="name">nombre_tramite</property>
<property name="nativeName">nombre_tramite</property> <property name="nativeName">nombre</property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure> </structure>
<structure> <structure>
<property name="position">3</property> <property name="position">3</property>
<property name="name">cantidad_expedientes</property> <property name="name">cantidad_expedientes</property>
<property name="nativeName">cantidad_expedientes</property> <property name="nativeName">cantidad_expedientes</property>
<property name="dataType">decimal</property> <property name="dataType">decimal</property>
<property name="nativeDataType">-5</property>
</structure> </structure>
<structure> <structure>
<property name="position">4</property> <property name="position">4</property>
<property name="name">nombre_seccion</property> <property name="name">nombre_seccion</property>
<property name="nativeName">nombre_seccion</property> <property name="nativeName">nombre_seccion</property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure> </structure>
<structure> <structure>
<property name="position">5</property> <property name="position">5</property>
<property name="name">responsable</property> <property name="name">responsable</property>
<property name="nativeName">responsable</property> <property name="nativeName">responsable</property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure> </structure>
</list-property> </list-property>
<xml-property name="queryText"><![CDATA[SELECT t.cod_tramite, t.nombre_tramite, count(e.*) AS cantidad_expedientes, <xml-property name="queryText"><![CDATA[SELECT t.codigo as cod_tramite, t.nombre as nombre_tramite, count(e.*) AS cantidad_expedientes,
s.nombre_seccion, f.nombre ||' '|| f.apellido AS responsable s.nombre as nombre_seccion, f.name ||' '|| f.surname AS responsable
FROM tramite t INNER JOIN expediente e ON e.cod_tramite = t.cod_tramite FROM tramite t INNER JOIN expediente e ON e.tramite_id = t.id
INNER JOIN det_expediente det ON det.cod_institucion = e.cod_institucion INNER JOIN detexpediente det ON det.codinstitucion = e.codinstitucion
AND det.anho_expediente = e.anho_expediente AND det.anhoexpediente = e.anhoexpediente
AND det.nro_expediente = e.nro_expediente AND det.numeroexpediente = e.numeroexpediente
INNER JOIN seccion s ON s.cod_seccion = det.cod_seccion INNER JOIN seccion s ON s.id = det.seccion_id
LEFT OUTER JOIN funcionario f ON f.cedula = s.responsable LEFT OUTER JOIN userinfo f ON f.id = s.usuarioresponsable_id
WHERE e.cod_institucion = ? left outer join institucion i on i.id = e.institucion_id
AND e.anho_expediente = ? WHERE i.codigo = ?
AND det.status = ? AND e.anhoexpediente = ?
AND t.cod_tramite = ? AND det.estadoseccion = ?
GROUP BY t.cod_tramite, t.nombre_tramite, s.nombre_seccion, f.nombre, f.apellido AND t.codigo = ?
ORDER BY s.nombre_seccion]]></xml-property> GROUP BY t.codigo, t.nombre, s.nombre, f.name, f.surname
ORDER BY s.nombre]]></xml-property>
<xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?> <xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel"> <model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version> <Version>2.0</Version>
<design:DataSetParameters>
<design:parameterDefinitions>
<design:inOutMode>In</design:inOutMode>
<design:attributes>
<design:name></design:name>
<design:position>1</design:position>
<design:nativeDataTypeCode>1</design:nativeDataTypeCode>
<design:nullability>Unknown</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue>REC</design:defaultScalarValue>
<design:optional>false</design:optional>
<design:masksValue>false</design:masksValue>
<design:uiHints>
<design:promptStyle>TextField</design:promptStyle>
</design:uiHints>
</design:elementAttributes>
</design:inputAttributes>
</design:parameterDefinitions>
<design:parameterDefinitions>
<design:inOutMode>In</design:inOutMode>
<design:attributes>
<design:name></design:name>
<design:position>2</design:position>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:nullability>Unknown</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue>2008</design:defaultScalarValue>
<design:optional>false</design:optional>
<design:masksValue>false</design:masksValue>
<design:uiHints>
<design:promptStyle>TextField</design:promptStyle>
</design:uiHints>
</design:elementAttributes>
</design:inputAttributes>
</design:parameterDefinitions>
<design:parameterDefinitions>
<design:inOutMode>In</design:inOutMode>
<design:attributes>
<design:name></design:name>
<design:position>3</design:position>
<design:nativeDataTypeCode>1</design:nativeDataTypeCode>
<design:nullability>Unknown</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue>P</design:defaultScalarValue>
<design:optional>false</design:optional>
<design:masksValue>false</design:masksValue>
<design:uiHints>
<design:promptStyle>TextField</design:promptStyle>
</design:uiHints>
</design:elementAttributes>
</design:inputAttributes>
</design:parameterDefinitions>
<design:parameterDefinitions>
<design:inOutMode>In</design:inOutMode>
<design:attributes>
<design:name></design:name>
<design:position>4</design:position>
<design:nativeDataTypeCode>1</design:nativeDataTypeCode>
<design:nullability>Unknown</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue>AT</design:defaultScalarValue>
<design:optional>false</design:optional>
<design:masksValue>false</design:masksValue>
<design:uiHints>
<design:promptStyle>TextField</design:promptStyle>
</design:uiHints>
</design:elementAttributes>
</design:inputAttributes>
</design:parameterDefinitions>
</design:DataSetParameters>
<design:ResultSets derivedMetaData="true"> <design:ResultSets derivedMetaData="true">
<design:resultSetDefinitions> <design:resultSetDefinitions>
<design:resultSetColumns> <design:resultSetColumns>
<design:resultColumnDefinitions> <design:resultColumnDefinitions>
<design:attributes> <design:attributes>
<design:identifier>
<design:name>cod_seccion</design:name> <design:name>cod_seccion</design:name>
<design:position>1</design:position> <design:position>1</design:position>
</design:identifier>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>5</design:precision> <design:precision>5</design:precision>
<design:scale>0</design:scale> <design:scale>0</design:scale>
...@@ -374,8 +311,10 @@ ...@@ -374,8 +311,10 @@
</design:resultColumnDefinitions> </design:resultColumnDefinitions>
<design:resultColumnDefinitions> <design:resultColumnDefinitions>
<design:attributes> <design:attributes>
<design:identifier>
<design:name>nombre_seccion</design:name> <design:name>nombre_seccion</design:name>
<design:position>2</design:position> <design:position>2</design:position>
</design:identifier>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>100</design:precision> <design:precision>100</design:precision>
<design:scale>0</design:scale> <design:scale>0</design:scale>
...@@ -393,8 +332,10 @@ ...@@ -393,8 +332,10 @@
</design:resultColumnDefinitions> </design:resultColumnDefinitions>
<design:resultColumnDefinitions> <design:resultColumnDefinitions>
<design:attributes> <design:attributes>
<design:identifier>
<design:name>nombre_seccion_padre</design:name> <design:name>nombre_seccion_padre</design:name>
<design:position>3</design:position> <design:position>3</design:position>
</design:identifier>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>100</design:precision> <design:precision>100</design:precision>
<design:scale>0</design:scale> <design:scale>0</design:scale>
...@@ -412,8 +353,10 @@ ...@@ -412,8 +353,10 @@
</design:resultColumnDefinitions> </design:resultColumnDefinitions>
<design:resultColumnDefinitions> <design:resultColumnDefinitions>
<design:attributes> <design:attributes>
<design:identifier>
<design:name>cantidad</design:name> <design:name>cantidad</design:name>
<design:position>4</design:position> <design:position>4</design:position>
</design:identifier>
<design:nativeDataTypeCode>4</design:nativeDataTypeCode> <design:nativeDataTypeCode>4</design:nativeDataTypeCode>
<design:precision>10</design:precision> <design:precision>10</design:precision>
<design:scale>0</design:scale> <design:scale>0</design:scale>
...@@ -431,8 +374,10 @@ ...@@ -431,8 +374,10 @@
</design:resultColumnDefinitions> </design:resultColumnDefinitions>
<design:resultColumnDefinitions> <design:resultColumnDefinitions>
<design:attributes> <design:attributes>
<design:identifier>
<design:name>responsable</design:name> <design:name>responsable</design:name>
<design:position>5</design:position> <design:position>5</design:position>
</design:identifier>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>0</design:precision> <design:precision>0</design:precision>
<design:scale>0</design:scale> <design:scale>0</design:scale>
...@@ -450,8 +395,10 @@ ...@@ -450,8 +395,10 @@
</design:resultColumnDefinitions> </design:resultColumnDefinitions>
<design:resultColumnDefinitions> <design:resultColumnDefinitions>
<design:attributes> <design:attributes>
<design:identifier>
<design:name>seccion_padre</design:name> <design:name>seccion_padre</design:name>
<design:position>6</design:position> <design:position>6</design:position>
</design:identifier>
<design:nativeDataTypeCode>12</design:nativeDataTypeCode> <design:nativeDataTypeCode>12</design:nativeDataTypeCode>
<design:precision>5</design:precision> <design:precision>5</design:precision>
<design:scale>0</design:scale> <design:scale>0</design:scale>
...@@ -475,7 +422,8 @@ ...@@ -475,7 +422,8 @@
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="SeccionDset" id="680"> <oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="SeccionDset" id="680">
<list-property name="columnHints"> <list-property name="columnHints">
<structure> <structure>
<property name="columnName">nombre_tramite</property> <property name="columnName">nombre</property>
<property name="analysis">dimension</property>
<text-property name="displayName">nombre_tramite</text-property> <text-property name="displayName">nombre_tramite</text-property>
</structure> </structure>
</list-property> </list-property>
...@@ -501,18 +449,19 @@ ...@@ -501,18 +449,19 @@
</structure> </structure>
</list-property> </list-property>
</structure> </structure>
<property name="dataSource">expedientesDS</property>
<list-property name="resultSet"> <list-property name="resultSet">
<structure> <structure>
<property name="position">1</property> <property name="position">1</property>
<property name="name">nombre_tramite</property> <property name="name">nombre_tramite</property>
<property name="nativeName">nombre_tramite</property> <property name="nativeName">nombre</property>
<property name="dataType">string</property> <property name="dataType">string</property>
<property name="nativeDataType">12</property> <property name="nativeDataType">12</property>
</structure> </structure>
</list-property> </list-property>
<xml-property name="queryText"><![CDATA[select public.tramite.nombre_tramite <xml-property name="queryText"><![CDATA[ select public.tramite.nombre
from public.tramite from public.tramite
WHERE public.tramite.cod_tramite = ?]]></xml-property> WHERE public.tramite.codigo = ?]]></xml-property>
<xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?> <xml-property name="designerValues"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel"> <model:DesignValues xmlns:design="http://www.eclipse.org/datatools/connectivity/oda/design" xmlns:model="http://www.eclipse.org/birt/report/model/adapter/odaModel">
<Version>1.0</Version> <Version>1.0</Version>
......
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