Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
d53cd8e6
Commit
d53cd8e6
authored
Apr 02, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
descripcion reportes
parent
dfca5edd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
views.py
reports/views.py
+12
-7
No files found.
reports/views.py
View file @
d53cd8e6
...
@@ -458,10 +458,15 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
...
@@ -458,10 +458,15 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
# define the style for our paragraph text
# define the style for our paragraph text
styles
=
getSampleStyleSheet
()
styles
=
getSampleStyleSheet
()
styles2
=
getSampleStyleSheet
()
styleN
=
styles
[
'Normal'
]
styleN
=
styles
[
'Normal'
]
styleN
.
alignment
=
1
styleN
.
alignment
=
1
styleN
.
fontSize
=
25
styleN
.
fontSize
=
25
style2
=
styles2
[
'Normal'
]
style2
.
alignment
=
1
style2
.
fontSize
=
15
# Header
# Header
im
=
Image
(
USERS_PATH
+
'header.png'
,
width
=
300
,
height
=
70
)
im
=
Image
(
USERS_PATH
+
'header.png'
,
width
=
300
,
height
=
70
)
im
.
hAlign
=
'CENTER'
im
.
hAlign
=
'CENTER'
...
@@ -473,15 +478,15 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
...
@@ -473,15 +478,15 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
story
.
append
(
Spacer
(
1
,
.60
*
inch
))
story
.
append
(
Spacer
(
1
,
.60
*
inch
))
story
.
append
(
Paragraph
(
"<strong>"
+
searchInfo
[
'title'
]
+
"</strong>"
,
styleN
,))
story
.
append
(
Paragraph
(
"<strong>"
+
searchInfo
[
'title'
]
+
"</strong>"
,
styleN
,))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Paragraph
(
"<strong>
"
+
searchInfo
[
'startDate'
]
+
" to "
+
searchInfo
[
'endDate'
]
+
"</strong>"
,
styleN
,))
story
.
append
(
Paragraph
(
"<strong>
("
+
searchInfo
[
'startDate'
]
+
" - "
+
searchInfo
[
'endDate'
]
+
")</strong>"
,
style2
,))
story
.
append
(
Spacer
(
1
,
.
4
0
*
inch
))
story
.
append
(
Spacer
(
1
,
.
6
0
*
inch
))
story
.
append
(
Paragraph
(
"<strong>Platform: "
+
searchInfo
[
'platform'
]
+
"</strong>"
,
style
N
,))
story
.
append
(
Paragraph
(
"<strong>Platform: "
+
searchInfo
[
'platform'
]
+
"</strong>"
,
style
2
,))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Paragraph
(
"<strong>Product level: "
+
searchInfo
[
'productLevel'
]
+
"</strong>"
,
style
N
,))
story
.
append
(
Paragraph
(
"<strong>Product level: "
+
searchInfo
[
'productLevel'
]
+
"</strong>"
,
style
2
,))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Paragraph
(
"<strong>Process:"
+
searchInfo
[
'process'
]
+
"</strong>"
,
style
N
,))
story
.
append
(
Paragraph
(
"<strong>Process:"
+
searchInfo
[
'process'
]
+
"</strong>"
,
style
2
,))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Paragraph
(
"<strong>Clouds: "
+
str
(
searchInfo
[
'clouds'
])
+
"
%
</strong>"
,
style
N
,))
story
.
append
(
Paragraph
(
"<strong>Clouds: "
+
str
(
searchInfo
[
'clouds'
])
+
"
%
</strong>"
,
style
2
,))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
story
.
append
(
Spacer
(
1
,
.40
*
inch
))
# convert data to paragraph form and then add paragraphs
# convert data to paragraph form and then add paragraphs
...
...
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