Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Juan
/
asw_motor_reportes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 46509d4c
authored
2020-02-28 20:58:20 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
se cambia el limite de columnas a 600
1 parent
d75fa993
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
Libmod/__pycache__/funciones.cpython-36.pyc
Libmod/funciones.py
Libmod/reporte.py
Libmod/__pycache__/funciones.cpython-36.pyc
View file @
46509d4
No preview for this file type
Libmod/funciones.py
View file @
46509d4
...
@@ -8,3 +8,24 @@ def encodear(archivo):
...
@@ -8,3 +8,24 @@ def encodear(archivo):
nombre
=
nombre
[
1
]
nombre
=
nombre
[
1
]
r
=
{
"Archivo"
:
encoded
.
decode
(
'ascii'
),
"Nombre"
:
nombre
,
"Tipo"
:
mime
}
r
=
{
"Archivo"
:
encoded
.
decode
(
'ascii'
),
"Nombre"
:
nombre
,
"Tipo"
:
mime
}
return
(
r
)
return
(
r
)
__COLUMNA
=
(
"A"
,
"B"
,
"C"
,
"D"
,
"E"
,
"F"
,
"G"
,
"H"
,
"I"
,
"J"
,
"K"
,
"L"
,
"M"
,
"N"
,
"O"
,
"P"
,
"Q"
,
"R"
,
"S"
,
"T"
,
"U"
,
"V"
,
"Y"
,
"Z"
)
def
COLUMNA
():
columna
=
[]
for
Letra
in
__COLUMNA
:
columna
.
append
(
Letra
)
for
Letra
in
__COLUMNA
:
for
letra
in
__COLUMNA
:
X
=
Letra
+
letra
columna
.
append
(
X
)
return
(
columna
)
def
ColumnaTama
ñ
o
():
KEYs
=
COLUMNA
()
listado
=
{}
for
key
in
KEYs
:
listado
[
key
]
=
12
return
(
listado
)
\ No newline at end of file
\ No newline at end of file
Libmod/reporte.py
View file @
46509d4
from
Libmod
import
funciones
import
xlsxwriter
import
xlsxwriter
import
time
import
time
class
Reporte
():
class
Reporte
():
COLUMNA
=
(
"A"
,
"B"
,
"C"
,
"D"
,
"E"
,
"F"
,
"G"
,
"H"
,
"I"
,
"J"
,
"K"
,
COLUMNA
=
funciones
.
COLUMNA
()
"L"
,
"M"
,
"N"
,
"O"
,
"P"
,
"Q"
,
"R"
,
"S"
,
"T"
,
"U"
,
"V"
,
"Y"
,
"Z"
)
anchos
=
funciones
.
ColumnaTama
ñ
o
()
anchos
=
{
"A"
:
12
,
"B"
:
12
,
"C"
:
12
,
"D"
:
12
,
"E"
:
12
,
"F"
:
12
,
"G"
:
12
,
"H"
:
12
,
"I"
:
12
,
"J"
:
12
,
"K"
:
12
,
"L"
:
12
,
"M"
:
12
,
"N"
:
12
,
"O"
:
12
,
"P"
:
12
,
"Q"
:
12
,
"R"
:
12
,
"S"
:
12
,
"T"
:
12
,
"U"
:
12
,
"V"
:
12
,
"Y"
:
12
,
"Z"
:
12
}
def
__init__
(
self
):
def
__init__
(
self
):
self
.
fecha
=
time
.
strftime
(
"
%
y
%
m
%
d"
)
self
.
fecha
=
time
.
strftime
(
"
%
y
%
m
%
d"
)
...
@@ -54,7 +50,7 @@ class Reporte():
...
@@ -54,7 +50,7 @@ class Reporte():
self
.
alto
=
str
(
n
)
self
.
alto
=
str
(
n
)
def
__ajuste__
(
self
):
def
__ajuste__
(
self
):
Pn
=
self
.
ancho
+
self
.
alto
#
Pn = self.ancho + self.alto
#print(Pn)
#print(Pn)
for
columna
in
Reporte
.
anchos
.
keys
():
for
columna
in
Reporte
.
anchos
.
keys
():
a
=
Reporte
.
anchos
[
columna
]
a
=
Reporte
.
anchos
[
columna
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment