-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from dianaRodriguess/refatorar
Reestruturação do do projeto. Closes #41.
- Loading branch information
Showing
31 changed files
with
562 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include "view.h" | ||
#include "../view/entradas.h" | ||
|
||
|
||
void cadastrarCliente(void) { | ||
char nome[55], cpf[15], endereco[55], telefone[15], email[55], dataNasc[11]; | ||
char sexo, plano; | ||
|
||
menuCadastrarCliente(); | ||
capturarNome(nome); | ||
capturarCPF(cpf); | ||
capturarEndereco(endereco); | ||
capturarTelefone(telefone); | ||
capturarEmail(email); | ||
capturarDataNasc(dataNasc); | ||
capturarSexo(&sexo); | ||
capturarPlano(&plano); | ||
|
||
printf("|_____________________________________________|\n"); | ||
|
||
} | ||
|
||
void pesquisarCliente(void) { | ||
char cpf[15]; | ||
|
||
menuPesquisarCliente(); | ||
capturarCPF(cpf); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void atualizarCliente(void) { | ||
char cpf[15]; | ||
|
||
menuAtualizarCliente(); | ||
capturarCPF(cpf); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void deletarCliente(void) { | ||
char cpf[15]; | ||
|
||
menuDeletarCliente(); | ||
capturarCPF(cpf); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#if !defined(_CLIENTE_H) | ||
#define _CLIENTE_H | ||
#ifndef CONTROLER_H | ||
#define CONTROLER_H | ||
|
||
void cadastrarCliente(void); | ||
void pesquisarCliente(void); | ||
void atualizarCliente(void); | ||
void deletarCliente(void); | ||
|
||
#endif // _CLIENTE_H | ||
|
||
#endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include "view.h" | ||
|
||
|
||
void menuCadastrarCliente(void){ | ||
system("clear"); | ||
printf("|_____________________________________________|\n"); | ||
printf("|..... . ... CADASTRAR CLIENTE ... . .....|\n"); | ||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void menuPesquisarCliente(void){ | ||
system("clear"); | ||
printf("|_____________________________________________|\n"); | ||
printf("|..... . ... PESQUISAR CLIENTE ... . .....|\n"); | ||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void menuAtualizarCliente(void){ | ||
system("clear"); | ||
printf("|_____________________________________________|\n"); | ||
printf("|..... . ... ATUALIZAR CLIENTE ... . .....|\n"); | ||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void menuDeletarCliente(void){ | ||
system("clear"); | ||
printf("|_____________________________________________|\n"); | ||
printf("|...... . ... DELETAR CLIENTE ... . ......|\n"); | ||
printf("|_____________________________________________|\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef VIEW_H | ||
#define VIEW_H | ||
|
||
void menuCadastrarCliente(void); | ||
void menuPesquisarCliente(void); | ||
void menuAtualizarCliente(void); | ||
void menuDeletarCliente(void); | ||
|
||
|
||
#endif // VIEW_H |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include "view.h" | ||
#include "../view/entradas.h" | ||
|
||
void cadastrarEquipamento(void){ | ||
char nome[55], funcao[27], marca[27], preco[9]; | ||
char quantidade[9], codBarras[13]; | ||
|
||
menuCadastrarEquipamento(); | ||
|
||
capturarNome(nome); | ||
capturarFuncao(funcao); | ||
capturarMarca(marca); | ||
capturarPreco(preco); | ||
capturarQuantidade(quantidade); | ||
capturarCodBarras(codBarras); | ||
|
||
printf("|________________________________________________|\n"); | ||
} | ||
|
||
void pesquisarEquipamento(void){ | ||
char codBarras[13]; | ||
|
||
menuPesquisarEquipamento(); | ||
|
||
capturarCodBarras(codBarras); | ||
|
||
printf("|________________________________________________|\n"); | ||
} | ||
|
||
void atualizarEquipamento(void){ | ||
char codBarras[13]; | ||
|
||
menuAtualizarEquipamento(); | ||
|
||
capturarCodBarras(codBarras); | ||
|
||
printf("|________________________________________________|\n"); | ||
} | ||
|
||
void deletarEquipamento(void){ | ||
char codBarras[13]; | ||
|
||
menuDeletarEquipamento(); | ||
|
||
capturarCodBarras(codBarras); | ||
|
||
printf("|________________________________________________|\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#if !defined(_EQUIPAMENTOS_H) | ||
#define _EQUIPAMENTOS_H | ||
#ifndef CONTROLLER_H | ||
#define CONTROLLER_H | ||
|
||
void cadastrarEquipamento(void); | ||
void pesquisarEquipamento(void); | ||
void atualizarEquipamento(void); | ||
void deletarEquipamento(void); | ||
|
||
#endif // _EQUIPAMENTOS_H | ||
#endif // CONTROLLER_H |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
|
||
void menuCadastrarEquipamento(void){ | ||
system("clear"); | ||
printf("|_________________________________________________|\n"); | ||
printf("|..... . ... CADASTRAR EQUIPAMENTO ... . .....|\n"); | ||
printf(" _________________________________________________|\n"); | ||
} | ||
|
||
void menuPesquisarEquipamento(void){ | ||
system("clear"); | ||
printf("|_______________________________________________________________|\n"); | ||
printf("|..... . ... . .... PESQUISAR EQUIPAMENTO .... . ... . .....|\n"); | ||
printf(" _______________________________________________________________|\n"); | ||
} | ||
|
||
void menuAtualizarEquipamento(void){ | ||
system("clear"); | ||
printf("|_______________________________________________________________|\n"); | ||
printf("|..... . ... . .... ATUALIZAR EQUIPAMENTO .... . ... . .....|\n"); | ||
printf("|_______________________________________________________________|\n"); | ||
} | ||
|
||
void menuDeletarEquipamento(void){ | ||
system("clear"); | ||
printf("|_____________________________________________________________|\n"); | ||
printf("|..... . ... . .... DELETAR EQUIPAMENTO .... . ... . .....|\n"); | ||
printf("|_____________________________________________________________|\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef VIEW_H | ||
#define VIEW_H | ||
|
||
void menuCadastrarEquipamento(void); | ||
void menuPesquisarEquipamento(void); | ||
void menuAtualizarEquipamento(void); | ||
void menuDeletarEquipamento(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include "view.h" | ||
#include "../view/entradas.h" | ||
|
||
|
||
void cadastrarFuncionario(void) { | ||
char nome [55], cpf [15], endereco [55], telefone [15], email [55], dataNasc [11]; | ||
char cargo [22]; | ||
|
||
menuCadastrarFuncionario(); | ||
capturarNome(nome); | ||
capturarCPF(cpf); | ||
capturarEndereco(endereco); | ||
capturarTelefone(telefone); | ||
capturarEmail(email); | ||
capturarDataNasc(dataNasc); | ||
capturarCargo(cargo); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void pesquisarFuncionario(void) { | ||
char cpf[15]; | ||
|
||
menuPesquisarFuncionario(); | ||
capturarCPF(cpf); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void atualizarFuncionario(void) { | ||
char cpf[15]; | ||
|
||
menuAtualizarFuncionario(); | ||
capturarCPF(cpf); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} | ||
|
||
void deletarFuncionario(void) { | ||
char cpf[15]; | ||
|
||
menuDeletarFuncionario(); | ||
capturarCPF(cpf); | ||
|
||
printf("|_____________________________________________|\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#if !defined(_FUNCIONARIO_H_) | ||
#define _FUNCIONARIO_H_ | ||
#ifndef FUN_CONTROLLER_H | ||
#define FUN_CONTROLLER_H | ||
|
||
void cadastrarFuncionario(void); | ||
void pesquisarFuncionario(void); | ||
void atualizarFuncionario(void); | ||
void deletarFuncionario(void); | ||
|
||
#endif // __FUNCIONARIO_H_f | ||
|
||
#endif // FUN_CONTROLLER_H |
Empty file.
Oops, something went wrong.