1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <CDADescriptor> |
---|
3 | <DataSources> |
---|
4 | <Connection id="Rif" type="sql.jndi"> |
---|
5 | <Jndi>smid</Jndi> |
---|
6 | </Connection> |
---|
7 | <Connection id="Nombre" type="sql.jndi"> |
---|
8 | <Jndi>smid</Jndi> |
---|
9 | </Connection> |
---|
10 | <Connection id="RazonSocial" type="sql.jndi"> |
---|
11 | <Jndi>smid</Jndi> |
---|
12 | </Connection> |
---|
13 | <Connection id="PrincipalesProductos" type="sql.jndi"> |
---|
14 | <Jndi>smid</Jndi> |
---|
15 | </Connection> |
---|
16 | <Connection id="Info" type="sql.jndi"> |
---|
17 | <Jndi>smid</Jndi> |
---|
18 | </Connection> |
---|
19 | </DataSources> |
---|
20 | <DataAccess access="public" cache="true" cacheDuration="3600" connection="Rif" id="Rif" |
---|
21 | type="sql"> |
---|
22 | <Columns/> |
---|
23 | <Parameters/> |
---|
24 | <Query>SELECT |
---|
25 | "dimension_empresa"."rif" |
---|
26 | FROM |
---|
27 | "dimension_empresa" INNER JOIN "hechos_bienesproducidos_empresa" ON "dimension_empresa"."id" = "hechos_bienesproducidos_empresa"."id_empresa" |
---|
28 | GROUP BY "dimension_empresa"."rif" |
---|
29 | ORDER BY 1 asc</Query> |
---|
30 | </DataAccess> |
---|
31 | <DataAccess access="public" cache="true" cacheDuration="3600" connection="Nombre" |
---|
32 | id="Nombre" |
---|
33 | type="sql"> |
---|
34 | <Columns/> |
---|
35 | <Parameters/> |
---|
36 | <Query>SELECT |
---|
37 | "dimension_empresa"."nombre" |
---|
38 | FROM |
---|
39 | "dimension_empresa" INNER JOIN "hechos_bienesproducidos_empresa" ON "dimension_empresa"."id" = "hechos_bienesproducidos_empresa"."id_empresa" |
---|
40 | WHERE |
---|
41 | dimension_empresa.nombre NOT LIKE 'NO INDICA' |
---|
42 | GROUP BY |
---|
43 | "dimension_empresa"."nombre" |
---|
44 | ORDER BY |
---|
45 | 1 ASC</Query> |
---|
46 | </DataAccess> |
---|
47 | <DataAccess access="public" cache="true" cacheDuration="3600" connection="RazonSocial" |
---|
48 | id="RazonSocial" |
---|
49 | type="sql"> |
---|
50 | <Columns/> |
---|
51 | <Parameters/> |
---|
52 | <Query>SELECT |
---|
53 | "dimension_empresa"."razon_social" |
---|
54 | FROM |
---|
55 | "dimension_empresa" INNER JOIN "hechos_bienesproducidos_empresa" ON "dimension_empresa"."id" = "hechos_bienesproducidos_empresa"."id_empresa" |
---|
56 | GROUP BY |
---|
57 | "dimension_empresa"."razon_social" |
---|
58 | ORDER BY |
---|
59 | 1 ASC</Query> |
---|
60 | </DataAccess> |
---|
61 | <DataAccess access="public" cache="true" cacheDuration="3600" |
---|
62 | connection="PrincipalesProductos" |
---|
63 | id="PrincipalesProductos" |
---|
64 | type="sql"> |
---|
65 | <Columns/> |
---|
66 | <Parameters> |
---|
67 | <Parameter default="seleccion" name="seleccion" type="String"/> |
---|
68 | </Parameters> |
---|
69 | <Query>SELECT |
---|
70 | "dimension_bien"."nombre" AS Name, |
---|
71 | "dimension_bien"."especificaciones_tecnicas" as Tecn, |
---|
72 | round(sum("hechos_bienesproducidos_empresa"."medida_monto_venta")::numeric,2) AS Total |
---|
73 | FROM |
---|
74 | "dimension_bien" INNER JOIN "hechos_bienesproducidos_empresa" ON "dimension_bien"."id" = "hechos_bienesproducidos_empresa"."id_bien" |
---|
75 | INNER JOIN "dimension_empresa" ON "hechos_bienesproducidos_empresa"."id_empresa" = "dimension_empresa"."id" |
---|
76 | WHERE |
---|
77 | dimension_empresa.rif LIKE ${seleccion} |
---|
78 | OR dimension_empresa.nombre LIKE ${seleccion} |
---|
79 | OR dimension_empresa.razon_social LIKE ${seleccion} |
---|
80 | GROUP BY |
---|
81 | Name,Tecn |
---|
82 | ORDER BY |
---|
83 | Total DESC |
---|
84 | LIMIT 10</Query> |
---|
85 | </DataAccess> |
---|
86 | <DataAccess access="public" cache="true" cacheDuration="3600" connection="Info" id="Info" |
---|
87 | type="sql"> |
---|
88 | <Columns/> |
---|
89 | <Parameters> |
---|
90 | <Parameter default="seleccion" name="seleccion" type="String"/> |
---|
91 | </Parameters> |
---|
92 | <Query>SELECT |
---|
93 | "dimension_empresa"."rif" || ' - ' || "dimension_empresa"."razon_social" |
---|
94 | FROM |
---|
95 | "dimension_empresa" |
---|
96 | WHERE |
---|
97 | dimension_empresa.rif LIKE ${seleccion} |
---|
98 | OR dimension_empresa.nombre LIKE ${seleccion} |
---|
99 | OR dimension_empresa.razon_social LIKE ${seleccion}</Query> |
---|
100 | </DataAccess> |
---|
101 | </CDADescriptor> |
---|