-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
66 lines (53 loc) · 2.08 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Trabalho - Utilizando Listas
# Autor: Eduardo Caetano
###### variaveis e listas ###################################################################
# Imports
import sys
import struct
from produto import Produto
import tenis
import cadastroGeral
import relatorio
import cadastroCor
import atualizarPreco
import exportarTxt
import importarTxt
import vender
import validacao
### Listas vazias
listaProdutos = []
####################################################################################
### Execução ######################################################################
####################################################################################
while True:
validacao.menu()
escolha = validacao.lerInteiro()
if escolha == 0:
validacao.menuEscolha(' Ate logo amigo! ')
sys.exit()
elif escolha == 1:
validacao.menuEscolha(' Opcao 1 - Cadastro ')
cadastroGeral.CadastroGeral(listaProdutos)
elif escolha == 2:
validacao.menuEscolha(' Opcao 2 - Relatorio ')
relatorio.relatorioGeral(listaProdutos)
elif escolha == 3:
validacao.menuEscolha(' Opcao 3 - Realizar Venda ')
vender.realizarVenda(listaProdutos)
elif escolha == 4:
validacao.menuEscolha(' Opcao 4 - Atualizar preços ')
atualizarPreco.atulizaPreco(listaProdutos)
elif escolha == 5:
validacao.menuEscolha(' Opcao 5 - Cadastrar Cores ')
cadastroCor.cadastrarCores(validacao.listaCorExemplo)
elif escolha == 6:
validacao.menuEscolha(' Opcao 5 - Cadastrar no TXT ')
exportarTxt.ExportarTxt(listaProdutos)
elif escolha == 7:
validacao.menuEscolha(' Opcao 5 - Recuperar no TXT ')
importarTxt.ImportarTxt(listaProdutos)
else:
print('Item do menu inexistente')
########## Daqui pra baixo não ha mais nada! #######################################################
#####################################################################################################
#####################################################################################################