Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simmctic
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
simmctic
simmctic
Commits
1e5fd26b
Commit
1e5fd26b
authored
Oct 23, 2019
by
Lucas Fernandes de Oliveira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue/60' into 'develop'
Issue
#60
: Fix cvt Reports See merge request
!879
parents
a01ee8cb
1406c827
Pipeline
#22072
passed with stages
in 2 minutes and 7 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
12 deletions
+11
-12
portal/queries/reports_csv/cvtAlert.sql
portal/queries/reports_csv/cvtAlert.sql
+1
-1
portal/queries/reports_csv/cvtAvail.sql
portal/queries/reports_csv/cvtAvail.sql
+2
-2
portal/queries/reports_csv/cvtInventory.sql
portal/queries/reports_csv/cvtInventory.sql
+1
-1
portal/reports/reports/cvtAlert.jrxml
portal/reports/reports/cvtAlert.jrxml
+2
-2
portal/reports/reports/cvtAvail.jrxml
portal/reports/reports/cvtAvail.jrxml
+3
-3
portal/reports/reports/cvtInventory.jrxml
portal/reports/reports/cvtInventory.jrxml
+1
-1
portal/reports/reports/cvtNetUsage.jrxml
portal/reports/reports/cvtNetUsage.jrxml
+1
-1
portal/routes/reports.js
portal/routes/reports.js
+0
-1
No files found.
portal/queries/reports_csv/cvtAlert.sql
View file @
1e5fd26b
...
...
@@ -3,7 +3,7 @@ SELECT
,
region
AS
"Região"
,
state
AS
"Estado"
,
city
AS
"Cidade"
,
telecenter
AS
"
Telecentro
"
,
telecenter
AS
"
CVT
"
,
machine
AS
"Máquina"
,
os_distro
AS
"Sistema Operacional"
,
processor
AS
"Processador"
...
...
portal/queries/reports_csv/cvtAvail.sql
View file @
1e5fd26b
...
...
@@ -3,7 +3,7 @@ SELECT
,
region
AS
"Região"
,
state
AS
"Estado"
,
city
AS
"Cidade"
,
initcap
(
regexp_replace
(
te
lecenter
,
'
\n
'
,
''
))
AS
"Telecentro
"
,
initcap
(
regexp_replace
(
te
ch_vocational_center
,
'
\n
'
,
''
))
AS
"CVT
"
,
machine
AS
"Máquina"
,
to_char
(
last_contact
,
'DD/MM/YYYY'
)
AS
"Data do último contato"
,
days_last_contact
AS
"Dias desde o último contato"
...
...
@@ -22,4 +22,4 @@ ORDER BY
region
,
remove_accentuation
(
state
)
,
remove_accentuation
(
city
)
,
remove_accentuation
(
te
le
center
)
,
remove_accentuation
(
te
ch_vocational_
center
)
portal/queries/reports_csv/cvtInventory.sql
View file @
1e5fd26b
...
...
@@ -25,7 +25,7 @@ SELECT
,
state
AS
"Estado"
,
city
AS
"Cidade"
,
id_city
AS
"ID da cidade"
,
telecenter
AS
"
Telecentro
"
,
telecenter
AS
"
CVT
"
,
id_point
AS
"ID do ponto"
,
machine
AS
"Máquina"
,
os_distro
AS
"Sistema Operacional"
...
...
portal/reports/reports/cvtAlert.jrxml
View file @
1e5fd26b
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
telecentro
Alert"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
cvt
Alert"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<property
name=
"ireport.zoom"
value=
"1.0"
/>
<property
name=
"ireport.x"
value=
"0"
/>
<property
name=
"ireport.y"
value=
"0"
/>
...
...
@@ -16,7 +16,7 @@ FROM
INNER JOIN state s ON a.state = s.id
INNER JOIN active_tech_vocational_center p ON a.id_point = p.id_point
WHERE
(id_city = $P{ID_CITY} OR $P{ID_CITY} is null)
(
a.
id_city = $P{ID_CITY} OR $P{ID_CITY} is null)
AND (a.state = $P{STATE} OR $P{STATE} is null)
AND (a.region = $P{REGION} OR $P{REGION} is null)
ORDER BY
...
...
portal/reports/reports/cvtAvail.jrxml
View file @
1e5fd26b
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
telecentro
Avail"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
cvt
Avail"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<property
name=
"ireport.zoom"
value=
"1.5"
/>
<property
name=
"ireport.x"
value=
"0"
/>
<property
name=
"ireport.y"
value=
"0"
/>
...
...
@@ -11,7 +11,7 @@
<![CDATA[SELECT
s.name AS state
, *
, initcap(regexp_replace(te
le
center, '\n', '')) AS t
, initcap(regexp_replace(te
ch_vocational_
center, '\n', '')) AS t
FROM
availability_report_tech_vocational_center a
INNER JOIN state s ON a.state = s.id
...
...
@@ -23,7 +23,7 @@ ORDER BY
a.region
, remove_accentuation(state)
, remove_accentuation(city)
, remove_accentuation(te
le
center)]]>
, remove_accentuation(te
ch_vocational_
center)]]>
</queryString>
<field
name=
"state"
class=
"java.lang.String"
/>
<field
name=
"id_point"
class=
"java.lang.Integer"
/>
...
...
portal/reports/reports/cvtInventory.jrxml
View file @
1e5fd26b
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
telecentro
Inventory"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
cvt
Inventory"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<property
name=
"ireport.zoom"
value=
"1.5"
/>
<property
name=
"ireport.x"
value=
"0"
/>
<property
name=
"ireport.y"
value=
"0"
/>
...
...
portal/reports/reports/cvtNetUsage.jrxml
View file @
1e5fd26b
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
telecentro
NetUsage"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<jasperReport
xmlns=
"http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name=
"
cvt
NetUsage"
language=
"groovy"
pageWidth=
"595"
pageHeight=
"842"
whenNoDataType=
"AllSectionsNoDetail"
columnWidth=
"555"
leftMargin=
"20"
rightMargin=
"20"
topMargin=
"20"
bottomMargin=
"20"
uuid=
"8aebead2-33a3-49b2-80db-ae7b6301ad20"
>
<property
name=
"ireport.zoom"
value=
"1.8181818181818192"
/>
<property
name=
"ireport.x"
value=
"0"
/>
<property
name=
"ireport.y"
value=
"0"
/>
...
...
portal/routes/reports.js
View file @
1e5fd26b
...
...
@@ -222,7 +222,6 @@ function simmcReports() {
report
:
report
.
report
,
data
:
params
});
generateFile
(
params
,
'
pdf
'
,
pdf
);
}
else
if
(
req
.
params
.
format
==
'
csv
'
)
{
parseParams
(
params
,
true
);
...
...
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