Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
birt for gdoc2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
José Emmanuel Noguera
birt for gdoc2
Commits
8e7d99c5
Commit
8e7d99c5
authored
Aug 16, 2019
by
José Emmanuel Noguera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consulta OK
parent
7871321e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
888 additions
and
927 deletions
+888
-927
exped_x_seccion.rptdesign
exped_x_seccion/exped_x_seccion.rptdesign
+888
-927
No files found.
exped_x_seccion/exped_x_seccion.rptdesign
View file @
8e7d99c5
...
...
@@ -5,13 +5,16 @@
<property
name=
"units"
>
in
</property>
<method
name=
"initialize"
>
<![CDATA[if (params["param_estado"] != ''){
if(params["param_estado"] == 'P'){
params["estado"] =
params["estado"] + "Pendiente";
params["estado"] =
"Pendiente";
}
if(params["param_estado"] == 'T'){
params["estado"] =
params["estado"] + "En trámite";
params["estado"] =
"En trámite";
}
if(params["param_estado"] == 'TR'){
params["estado"] = params["estado"] + "Retrasados";
params["estado"] = "Retrasados";
}
if(params["param_estado"] == 'F'){
params["estado"] = "Finalizado en Sección";
}
}]]>
</method>
<text-property
name=
"displayName"
>
Template Reporte
</text-property>
...
...
@@ -20,11 +23,9 @@
<scalar-parameter
name=
"param_anho"
id=
"603"
>
<property
name=
"valueType"
>
static
</property>
<property
name=
"isRequired"
>
true
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"dataType"
>
integer
</property>
<property
name=
"distinct"
>
true
</property>
<simple-property-list
name=
"defaultValue"
>
<value
type=
"constant"
></value>
</simple-property-list>
<list-property
name=
"selectionList"
/>
<property
name=
"paramType"
>
simple
</property>
<property
name=
"concealValue"
>
false
</property>
<property
name=
"controlType"
>
text-box
</property>
...
...
@@ -37,9 +38,7 @@
<property
name=
"isRequired"
>
true
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"distinct"
>
true
</property>
<simple-property-list
name=
"defaultValue"
>
<value
type=
"constant"
></value>
</simple-property-list>
<list-property
name=
"selectionList"
/>
<property
name=
"paramType"
>
simple
</property>
<property
name=
"controlType"
>
text-box
</property>
<structure
name=
"format"
>
...
...
@@ -51,9 +50,7 @@
<property
name=
"isRequired"
>
true
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"distinct"
>
true
</property>
<simple-property-list
name=
"defaultValue"
>
<value
type=
"constant"
></value>
</simple-property-list>
<list-property
name=
"selectionList"
/>
<property
name=
"paramType"
>
simple
</property>
<property
name=
"controlType"
>
text-box
</property>
<structure
name=
"format"
>
...
...
@@ -68,6 +65,7 @@
<simple-property-list
name=
"defaultValue"
>
<value
type=
"constant"
></value>
</simple-property-list>
<list-property
name=
"selectionList"
/>
<property
name=
"paramType"
>
simple
</property>
<property
name=
"controlType"
>
text-box
</property>
<structure
name=
"format"
>
...
...
@@ -82,6 +80,7 @@
<simple-property-list
name=
"defaultValue"
>
<value
type=
"constant"
></value>
</simple-property-list>
<list-property
name=
"selectionList"
/>
<property
name=
"paramType"
>
simple
</property>
<property
name=
"controlType"
>
text-box
</property>
<structure
name=
"format"
>
...
...
@@ -115,30 +114,49 @@
</data-sources>
<data-sets>
<oda-data-set
extensionID=
"org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet"
name=
"PorSeccionDSet"
id=
"602"
>
<property
name=
"nullsOrdering"
>
nulls lowest
</property>
<list-property
name=
"columnHints"
>
<structure>
<property
name=
"columnName"
>
cod_seccion
</property>
<property
name=
"analysis"
>
dimension
</property>
<text-property
name=
"displayName"
>
cod_seccion
</text-property>
<text-property
name=
"heading"
>
cod_seccion
</text-property>
</structure>
<structure>
<property
name=
"columnName"
>
nombre_seccion
</property>
<property
name=
"analysis"
>
dimension
</property>
<text-property
name=
"displayName"
>
nombre_seccion
</text-property>
<text-property
name=
"heading"
>
nombre_seccion
</text-property>
</structure>
<structure>
<property
name=
"columnName"
>
nombre_seccion_padre
</property>
<property
name=
"analysis"
>
dimension
</property>
<text-property
name=
"displayName"
>
nombre_seccion_padre
</text-property>
<text-property
name=
"heading"
>
nombre_seccion_padre
</text-property>
</structure>
<structure>
<property
name=
"columnName"
>
seccion_padre
</property>
<property
name=
"analysis"
>
dimension
</property>
<text-property
name=
"displayName"
>
seccion_padre
</text-property>
<text-property
name=
"heading"
>
seccion_padre
</text-property>
</structure>
<structure>
<property
name=
"columnName"
>
cantidad
</property>
<property
name=
"analysis"
>
measure
</property>
<text-property
name=
"displayName"
>
cantidad
</text-property>
<text-property
name=
"heading"
>
cantidad
</text-property>
</structure>
<structure>
<property
name=
"columnName"
>
responsable
</property>
<property
name=
"analysis"
>
dimension
</property>
<text-property
name=
"displayName"
>
responsable
</text-property>
<text-property
name=
"heading"
>
responsable
</text-property>
</structure>
<structure>
<property
name=
"columnName"
>
seccion_padre
</property>
<text-property
name=
"displayName"
>
seccion_padre
</text-property>
<property
name=
"columnName"
>
padre_id
</property>
<property
name=
"analysis"
>
measure
</property>
<text-property
name=
"displayName"
>
padre_id
</text-property>
<text-property
name=
"heading"
>
padre_id
</text-property>
</structure>
</list-property>
<list-property
name=
"parameters"
>
...
...
@@ -171,7 +189,7 @@
<property
name=
"paramName"
>
param_cod_inst
</property>
<property
name=
"nativeName"
></property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"nativeDataType"
>
1
</property>
<property
name=
"nativeDataType"
>
1
2
</property>
<property
name=
"position"
>
3
</property>
<property
name=
"isOptional"
>
false
</property>
<property
name=
"allowNull"
>
true
</property>
...
...
@@ -198,31 +216,36 @@
</structure>
<structure>
<property
name=
"position"
>
4
</property>
<property
name=
"name"
>
seccion_padre
</property>
<property
name=
"dataType"
>
string
</property>
</structure>
<structure>
<property
name=
"position"
>
5
</property>
<property
name=
"name"
>
cantidad
</property>
<property
name=
"dataType"
>
integer
</property>
</structure>
<structure>
<property
name=
"position"
>
5
</property>
<property
name=
"position"
>
6
</property>
<property
name=
"name"
>
responsable
</property>
<property
name=
"dataType"
>
string
</property>
</structure>
<structure>
<property
name=
"position"
>
6
</property>
<property
name=
"name"
>
seccion_padre
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"position"
>
7
</property>
<property
name=
"name"
>
padre_id
</property>
<property
name=
"dataType"
>
decimal
</property>
</structure>
</list-property>
</structure>
<method
name=
"beforeOpen"
>
<![CDATA[// Si llega una seccion padre, se muestran los hijos de dicha seccion,
// o de lo contrario las secciones sin padres
if (params["param_secc_padre"] != ''){
this.queryText = this.queryText + "AND s
.seccion_padre = '" + params["param_secc_padre"] + "'";
this.queryText = this.queryText + "AND s
p.codigo = '" + params["param_secc_padre"] + "'";
}else{
this.queryText = this.queryText + "AND s
.seccion_padre is null";
this.queryText = this.queryText + "AND s
p.codigo is null";
}
// Se ordena las secciones por nombre
this.queryText = this.queryText + " ORDER BY s.nombre
_seccion DESC"]]>
</method>
this.queryText = this.queryText + " ORDER BY s.nombre
DESC"]]>
</method>
<property
name=
"dataSource"
>
expedientesDS
</property>
<list-property
name=
"resultSet"
>
<structure>
...
...
@@ -248,108 +271,55 @@ this.queryText = this.queryText + " ORDER BY s.nombre_seccion DESC"]]></method>
</structure>
<structure>
<property
name=
"position"
>
4
</property>
<property
name=
"name"
>
seccion_padre
</property>
<property
name=
"nativeName"
>
seccion_padre
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"nativeDataType"
>
12
</property>
</structure>
<structure>
<property
name=
"position"
>
5
</property>
<property
name=
"name"
>
cantidad
</property>
<property
name=
"nativeName"
>
cantidad
</property>
<property
name=
"dataType"
>
integer
</property>
<property
name=
"nativeDataType"
>
4
</property>
</structure>
<structure>
<property
name=
"position"
>
5
</property>
<property
name=
"position"
>
6
</property>
<property
name=
"name"
>
responsable
</property>
<property
name=
"nativeName"
>
responsable
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"nativeDataType"
>
12
</property>
</structure>
<structure>
<property
name=
"position"
>
6
</property>
<property
name=
"name"
>
seccion_padre
</property>
<property
name=
"nativeName"
>
seccion_padre
</property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"nativeDataType"
>
12
</property>
<property
name=
"position"
>
7
</property>
<property
name=
"name"
>
padre_id
</property>
<property
name=
"nativeName"
>
padre_id
</property>
<property
name=
"dataType"
>
decimal
</property>
<property
name=
"nativeDataType"
>
-5
</property>
</structure>
</list-property>
<xml-property
name=
"queryText"
>
<![CDATA[SELECT s.cod_seccion, s.nombre_seccion,
sp.nombre_seccion AS nombre_seccion_padre,
f_get_cantXseccion( s.cod_institucion, ?, s.cod_seccion, ? ) AS cantidad,
(f.nombre || ' ' || f.apellido) AS responsable,
s.seccion_padre
FROM seccion s LEFT OUTER JOIN funcionario f ON f.cedula = s.responsable
LEFT OUTER JOIN seccion sp ON sp.cod_seccion = s.seccion_padre
<xml-property
name=
"queryText"
>
<![CDATA[SELECT s.codigo as cod_seccion, s.nombre as nombre_seccion,
sp.nombre AS nombre_seccion_padre, sp.nombre as seccion_padre,
f_get_cantxseccion( i.codigo, ?, s.codigo, ? ) AS cantidad,
(f.name || ' ' || f.surname) AS responsable,
s.padre_id
WHERE s.cod_institucion = ?]]>
</xml-property>
FROM seccion s LEFT OUTER JOIN userinfo f ON f.id = s.usuarioresponsable_id
LEFT OUTER JOIN seccion sp ON sp.id = s.padre_id
LEFT OUTER JOIN institucion i ON i.id = s.institucion_id
WHERE i.codigo = ?]]>
</xml-property>
<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"
>
<Version>
1.0
</Version>
<design:DataSetParameters>
<design:parameterDefinitions>
<design:inOutMode>
In
</design:inOutMode>
<design:attributes>
<design:name></design:name>
<design:position>
1
</design:position>
<design:nativeDataTypeCode>
4
</design:nativeDataTypeCode>
<design:nullability>
Unknown
</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue></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>
1
</design:nativeDataTypeCode>
<design:nullability>
Unknown
</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue></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></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>
<Version>
2.0
</Version>
<design:ResultSets
derivedMetaData=
"true"
>
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
cod_seccion
</design:name>
<design:position>
1
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
12
</design:nativeDataTypeCode>
<design:precision>
5
</design:precision>
<design:scale>
0
</design:scale>
...
...
@@ -367,8 +337,10 @@ WHERE s.cod_institucion = ?]]></xml-property>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
nombre_seccion
</design:name>
<design:position>
2
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
12
</design:nativeDataTypeCode>
<design:precision>
100
</design:precision>
<design:scale>
0
</design:scale>
...
...
@@ -386,8 +358,10 @@ WHERE s.cod_institucion = ?]]></xml-property>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
nombre_seccion_padre
</design:name>
<design:position>
3
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
12
</design:nativeDataTypeCode>
<design:precision>
100
</design:precision>
<design:scale>
0
</design:scale>
...
...
@@ -405,8 +379,10 @@ WHERE s.cod_institucion = ?]]></xml-property>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
cantidad
</design:name>
<design:position>
4
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
4
</design:nativeDataTypeCode>
<design:precision>
10
</design:precision>
<design:scale>
0
</design:scale>
...
...
@@ -424,8 +400,10 @@ WHERE s.cod_institucion = ?]]></xml-property>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
responsable
</design:name>
<design:position>
5
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
12
</design:nativeDataTypeCode>
<design:precision>
0
</design:precision>
<design:scale>
0
</design:scale>
...
...
@@ -443,8 +421,10 @@ WHERE s.cod_institucion = ?]]></xml-property>
</design:resultColumnDefinitions>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
seccion_padre
</design:name>
<design:position>
6
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
12
</design:nativeDataTypeCode>
<design:precision>
5
</design:precision>
<design:scale>
0
</design:scale>
...
...
@@ -469,6 +449,7 @@ WHERE s.cod_institucion = ?]]></xml-property>
<list-property
name=
"columnHints"
>
<structure>
<property
name=
"columnName"
>
nombre_seccion
</property>
<property
name=
"analysis"
>
dimension
</property>
<text-property
name=
"displayName"
>
nombre_seccion
</text-property>
</structure>
</list-property>
...
...
@@ -478,7 +459,7 @@ WHERE s.cod_institucion = ?]]></xml-property>
<property
name=
"paramName"
>
param_secc_padre
</property>
<property
name=
"nativeName"
></property>
<property
name=
"dataType"
>
string
</property>
<property
name=
"nativeDataType"
>
1
</property>
<property
name=
"nativeDataType"
>
1
2
</property>
<property
name=
"position"
>
1
</property>
<property
name=
"isOptional"
>
true
</property>
<property
name=
"allowNull"
>
true
</property>
...
...
@@ -505,42 +486,22 @@ WHERE s.cod_institucion = ?]]></xml-property>
<property
name=
"nativeDataType"
>
12
</property>
</structure>
</list-property>
<xml-property
name=
"queryText"
>
<![CDATA[SELECT public.seccion.nombre
_seccion
<xml-property
name=
"queryText"
>
<![CDATA[SELECT public.seccion.nombre
as nombre_seccion
FROM public.seccion
WHERE public.seccion.cod
_seccion = ?]]>
</xml-property>
WHERE public.seccion.cod
igo = ?]]>
</xml-property>
<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"
>
<Version>
1.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>
Nullable
</design:nullability>
<design:uiHints/>
</design:attributes>
<design:inputAttributes>
<design:elementAttributes>
<design:defaultScalarValue></design:defaultScalarValue>
<design:optional>
true
</design:optional>
<design:masksValue>
false
</design:masksValue>
<design:uiHints>
<design:promptStyle>
TextField
</design:promptStyle>
</design:uiHints>
</design:elementAttributes>
</design:inputAttributes>
</design:parameterDefinitions>
</design:DataSetParameters>
<Version>
2.0
</Version>
<design:ResultSets
derivedMetaData=
"true"
>
<design:resultSetDefinitions>
<design:resultSetColumns>
<design:resultColumnDefinitions>
<design:attributes>
<design:identifier>
<design:name>
nombre_seccion
</design:name>
<design:position>
1
</design:position>
</design:identifier>
<design:nativeDataTypeCode>
12
</design:nativeDataTypeCode>
<design:precision>
100
</design:precision>
<design:scale>
0
</design:scale>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment