Skip to content

Commit

Permalink
Merge pull request #156 from ResidenciaTICBrisa/fub_preenchimento
Browse files Browse the repository at this point in the history
Fub preenchimento
  • Loading branch information
pedrobarbosaocb authored Nov 29, 2023
2 parents 38a7cb5 + c0d866c commit 8d477fa
Show file tree
Hide file tree
Showing 36 changed files with 3,594 additions and 1,938 deletions.
160 changes: 160 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
Binary file modified project/app/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/capa.cpython-38.pyc
Binary file not shown.
Binary file removed project/app/__pycache__/estilo_fub.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/estilo_fundep.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/new_dev.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/oracle_cruds.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/preenche_fub.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/preenche_fundep.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified project/app/__pycache__/views.cpython-38.pyc
Binary file not shown.
18 changes: 11 additions & 7 deletions project/app/capa.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@




def pegar_caminho(nome_arquivo):

# Obter o caminho absoluto do arquivo Python em execução
Expand Down Expand Up @@ -118,7 +119,8 @@ def inserir_round_retangulo(planilha,data1,data2,dicionariofin):
# Create an empty dictionary to store the values from the second dictionary
result_dict = {}

# Iterate over the keys and values in the first dictionary
# Loop pra criar no formato dicionarario por exemplo
# Capa Finatec : [(E3:COORDENADOR)]
for key, value in planilha_local_dados["Capa Finatec"]:
if value in dicionariofin:
result_dict[key] = dicionariofin[value]
Expand Down Expand Up @@ -180,8 +182,9 @@ def inserir_round_retangulo(planilha,data1,data2,dicionariofin):
img = Image(image_path)
images.append(img)




#estilo imagem
worksheet.add_image(images[20], "B2")#prestação
worksheet.merge_cells('B2:L2')
Expand All @@ -202,8 +205,8 @@ def inserir_round_retangulo(planilha,data1,data2,dicionariofin):
worksheet['B6'].alignment = Alignment(horizontal="justify",vertical="center",wrap_text=True)
worksheet.add_image(images[3], "E6")
worksheet.merge_cells('E6:M7')
worksheet['E6'].font = Font(name="Tahoma", size=10, color="204c80",bold=False)
worksheet['E6'].alignment = Alignment(horizontal="left",vertical="center",wrap_text=True)
worksheet['E6'].font = Font(name="Tahoma", size=9, color="204c80",bold=False)
worksheet['E6'].alignment = Alignment(horizontal="center",vertical="center",wrap_text=True)

worksheet.add_image(images[23], "B9")#projeto
worksheet.merge_cells('B9:D13')
Expand All @@ -213,7 +216,7 @@ def inserir_round_retangulo(planilha,data1,data2,dicionariofin):
worksheet.add_image(images[24], "E9")
worksheet.merge_cells('E9:M13')
worksheet['E9'].font = Font(name="Tahoma", size=10, color="204c80",bold=False)
worksheet['E9'].alignment = Alignment(horizontal="left",vertical="center",wrap_text=True)
worksheet['E9'].alignment = Alignment(horizontal="center",vertical="center",wrap_text=True)

worksheet.add_image(images[13], "B14")#coordenador
worksheet.merge_cells('B14:D15')
Expand Down Expand Up @@ -286,7 +289,7 @@ def inserir_round_retangulo(planilha,data1,data2,dicionariofin):
worksheet.merge_cells('E21:G22')
worksheet['E21'] = f"{(data1)} a {(data2)}"
worksheet['E21'].font = Font(name="Tahoma", size=10, color="204c80",bold=False)
worksheet['E21'].alignment = Alignment(horizontal="left",vertical="center",wrap_text=True)
worksheet['E21'].alignment = Alignment(horizontal="center",vertical="center",wrap_text=True)

worksheet.add_image(images[7], "B30")#Assistente
worksheet.merge_cells('B30:D32')
Expand All @@ -303,8 +306,9 @@ def inserir_round_retangulo(planilha,data1,data2,dicionariofin):
worksheet['B26'].font = Font(name="Tahoma", size=10, color="204c80",bold=True)
worksheet['B26'].alignment = Alignment(horizontal="center",vertical="center",wrap_text=True)
worksheet.add_image(images[5], "E26")#Analista
worksheet.merge_cells('E26:M28')
worksheet['E26'].font = Font(name="Tahoma", size=10, color="204c80",bold=False)
worksheet['E26'].alignment = Alignment(horizontal="left",vertical="center")
worksheet['E26'].alignment = Alignment(horizontal="center",vertical="center")

worksheet.add_image(images[16], "B34")#gerengte
worksheet.merge_cells('B34:D36')
Expand Down
Loading

0 comments on commit 8d477fa

Please sign in to comment.