Skip to content

Primeira codificacao #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 107 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
6023d0e
Cadastro de clientes
Ronneesley Aug 31, 2017
ece956c
Add files via upload
marcoaureliorp Aug 31, 2017
c07deb8
Projeto no NetBeans 8.2
Ronneesley Sep 11, 2017
81b811f
Delete .Rhistory
Ronneesley Sep 11, 2017
918ec15
Update README.md
Ronneesley Sep 11, 2017
4542c45
Indentações corrigidas
Ronneesley Oct 30, 2017
9272b21
Ajuste do problema alterar
Ronneesley Oct 31, 2017
ddb7ca6
Arquivos do grupo estado
Oct 31, 2017
3699aac
Criação produtos.h
Pedromagalhaesphmo Oct 31, 2017
c58c013
arquivos add: cidade.h e cidade.c
matheusth Oct 31, 2017
f6f0113
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
matheusth Oct 31, 2017
fef57f9
Arquivos do grupo estado.
AlexandreL0pes Oct 31, 2017
37ed5c3
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
AlexandreL0pes Oct 31, 2017
acf74ba
grupo funcionarios
brunoqualhato Oct 31, 2017
02c68cf
Criacao do arquivo fornecedores.h e .c do Grupo Fornecedores.
wellcerv Oct 31, 2017
8609d03
Teste de Codificação
brunoqualhato Nov 1, 2017
d2f5915
Update funcionarios.sql
brunoqualhato Nov 2, 2017
546bb61
Ajustes
brunoqualhato Nov 3, 2017
42c2aed
Delete funcionarios.sql
brunoqualhato Nov 3, 2017
34888db
Ajustes
brunoqualhato Nov 3, 2017
1cc980e
Ajustes
brunoqualhato Nov 3, 2017
5d8d949
Ajustes
brunoqualhato Nov 3, 2017
300cc0b
Ajustes
brunoqualhato Nov 3, 2017
e354db5
ajustes
brunoqualhato Nov 6, 2017
36931e0
ajustes
brunoqualhato Nov 6, 2017
5a8f650
Adição da tabela estados no banco de dados
AlexandreL0pes Nov 8, 2017
b9533fb
Adição da Listagem de países no cadastro estados
AlexandreL0pes Nov 8, 2017
256267a
Codigo iniciais do cadastro de Fornecedores
wellcerv Nov 10, 2017
d6dcf83
Merge branch 'primeira_codificacao' of https://github.com/ronneesley/…
wellcerv Nov 10, 2017
e990952
Inicando a codificacao do Cadastro de Fornecedores
wellcerv Nov 10, 2017
ecd8c7e
Alteracao Fornecedores
wellcerv Nov 10, 2017
642eb1d
Alteracao codigo fornecedores
wellcerv Nov 10, 2017
8fa2135
alteracao fornecedores
wellcerv Nov 11, 2017
f9dc659
Alteracao do grupo fornecedores
wellcerv Nov 14, 2017
134bf1b
listagem de cidades funcionando.
matheusth Nov 14, 2017
ef525c9
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
matheusth Nov 14, 2017
c7c0c05
função exclusão de fornecedores
wellcerv Nov 15, 2017
49aac6c
Função Inserir Fornecedores
wellcerv Nov 15, 2017
16e9954
Alteracao Fornecedores
wellcerv Nov 15, 2017
d2721cc
Função AlteraçãoFornecedores
wellcerv Nov 15, 2017
3c81e8d
Ajustes Fornecedores
wellcerv Nov 16, 2017
a41d747
CNPJ funcionando
wellcerv Nov 18, 2017
b757e78
Menu Alterar em construcao
wellcerv Nov 20, 2017
a2ac683
Resolução da opção AlterarEstado
AlexandreL0pes Nov 21, 2017
e607d78
Resolução da Alteração do Estado
AlexandreL0pes Nov 21, 2017
e3d996f
Funcao alterar funcionando
wellcerv Nov 21, 2017
60a5486
Merge branch 'primeira_codificacao' of https://github.com/ronneesley/…
wellcerv Nov 21, 2017
1368b91
Funcao alterar funcionando
wellcerv Nov 21, 2017
0984ead
Melhorias na Exclusao
wellcerv Nov 21, 2017
9cc0654
remoção do banco de teste funcionarios
brunoqualhato Nov 22, 2017
5b724b6
add função excluir cidades
danieldpaula Nov 22, 2017
3fc5de4
correçoes
LuanaQ Nov 22, 2017
146aad6
Adicionou tabela Cidades
PatriciaMesquita Nov 23, 2017
1ad0a59
Adicionou Mostrar e Inserir Cidades
PatriciaMesquita Nov 23, 2017
e2066c5
Alteração
LuanaQ Nov 23, 2017
3c9067a
Alterações
LuanaQ Nov 23, 2017
0b97af3
teste de codificação
brunoqualhato Nov 23, 2017
f651e98
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
brunoqualhato Nov 23, 2017
0e8a637
Update cidades
Vitorhrf Nov 23, 2017
50cffee
Correções
LuanaQ Nov 24, 2017
ab9a0f3
Remoção de Tabela
LuanaQ Nov 24, 2017
498f370
alterações
brunoqualhato Nov 24, 2017
2a31f0d
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
brunoqualhato Nov 24, 2017
8c3da84
correcoes
brunoqualhato Nov 24, 2017
c6ff0b4
correcoes
brunoqualhato Nov 24, 2017
b6d2e4b
cep removido da cidade
matheusth Nov 24, 2017
35de75b
cep removido da cidade e melhorias no listar
matheusth Nov 24, 2017
7ec05df
cep removido da cidade e melhorias no listar
matheusth Nov 24, 2017
76d9965
modificação na tabela cidades
matheusth Nov 24, 2017
5490aa3
Correções
LuanaQ Nov 25, 2017
4ee3556
corecoes
brunoqualhato Nov 25, 2017
73f49ea
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
brunoqualhato Nov 25, 2017
336c8f7
correcoes
brunoqualhato Nov 25, 2017
8d15127
renomeados cidade.c e cidade.h para cidades.c e cidades.h
matheusth Nov 25, 2017
2731cdb
Conclusão do módulo de Clientes
marcoaureliorp Nov 25, 2017
86a2936
caminho do arquivo errado
marcoaureliorp Nov 25, 2017
8d4d7c1
caminho do arquivo errado
marcoaureliorp Nov 25, 2017
3577040
caminho do arquivo errado
marcoaureliorp Nov 25, 2017
cdcb729
codigo para criacao do banco de dados de clientes
marcoaureliorp Nov 25, 2017
11b3f56
conclusao do modulo de clientes
marcoaureliorp Nov 25, 2017
a9824f6
caminho do arquivo errado
marcoaureliorp Nov 25, 2017
69fade9
up produtos
netoxhoppus Nov 26, 2017
10c6408
criação tabela produtos
netoxhoppus Nov 26, 2017
67c638a
Melhorias no cadastro e alteração de cidades
matheusth Nov 26, 2017
90548d2
Melhorias no cadastro e alteração de cidades
matheusth Nov 26, 2017
d80ca6d
Versão final Funcionarios
brunoqualhato Nov 27, 2017
fa2c01b
Versão final Funcionarios
brunoqualhato Nov 27, 2017
f46f442
Versão final Funcionarios
brunoqualhato Nov 27, 2017
138541d
Pequenos detalhes corrigidos
analuizags Nov 27, 2017
de1c1b4
Codigo Final Fornecedores
wellcerv Nov 27, 2017
5df08a3
nomes
brunoqualhato Nov 27, 2017
dc88a79
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
brunoqualhato Nov 27, 2017
c304d8e
nomes
brunoqualhato Nov 27, 2017
444202d
Inclusão do #include fornecedores.h que havia sido apagado
wellcerv Nov 27, 2017
d882bea
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
wellcerv Nov 27, 2017
a03af8d
comenta
brunoqualhato Nov 27, 2017
7c867cf
comentários
brunoqualhato Nov 27, 2017
d643060
Melhoria na Interface de comunicação com usuario relacionado a cidades
matheusth Nov 27, 2017
1b4398b
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
matheusth Nov 27, 2017
893df15
Adicionado comando free para liberar a memoria alocada com malloc
matheusth Nov 27, 2017
07cc9dc
Mudança na exebição das cidades
matheusth Nov 27, 2017
52d6a06
Update cidades.h
matheusth Nov 27, 2017
16e02ac
ultima mudança visual
matheusth Nov 27, 2017
34545c1
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
matheusth Nov 27, 2017
03938f8
final - bq
Pedromagalhaesphmo Nov 27, 2017
d12e9ef
Merge branch 'primeira_codificacao' of https://github.com/Ronneesley/…
Pedromagalhaesphmo Nov 27, 2017
6efe488
final main e produtos
Pedromagalhaesphmo Nov 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/codigos/ControleEstoqueC/build/
/codigos/ControleEstoqueC/dist/
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>controleestoque_c</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

16 changes: 0 additions & 16 deletions Makefile~

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ Ferramenta utilizada para o ensino de programação no curso de Sistemas de Info

# Ferramentas utilizadas

Os projetos foram desenvolvidos utilizando apenas o *gedit*.
Os projetos foram desenvolvidos utilizando o NetBeans 8.2.

Em ambiente Windows é necessário instalar o MinGW seguindo o manual de configuração disponvel em:

https://netbeans.org/community/releases/80/cpp-setup-instructions.html#compilers_windows

# Como compilar o projeto?

Expand Down
10 changes: 10 additions & 0 deletions banco_de_dados/Banco Fornecedores.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
create database controleestoque;

use controleestoque;

CREATE TABLE fornecedores (
idFornecedor int NOT NULL PRIMARY KEY AUTO_INCREMENT,
nomeFornecedor varchar(100) DEFAULT NULL,
CNPJ bigint(14) DEFAULT NULL,
endFornecedor varchar(150) DEFAULT NULL
);
17 changes: 17 additions & 0 deletions banco_de_dados/clientes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
create database if not exists controleestoque;

use controleestoque;

create table clientes (
id int primary key auto_increment not null,
nome varchar(200) not null,
sexo char,
data varchar(10),
endereco varchar(200),
cidade varchar(50),
cep varchar (10),
telefone varchar(15),
cpf varchar(14),
rg varchar(15),
profissao varchar(50)
);
42 changes: 42 additions & 0 deletions banco_de_dados/criacao.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,45 @@ create table paises (
id int auto_increment primary key,
nome varchar(100) not null
);

create table estados (
idEstado int auto_increment primary key,
nomeEstado varchar(100) not null,
uf varchar(2) not null,
idPais int not null,
constraint foreign key (idPais) references paises(id)
);

create table cidades(
idCidade int not null auto_increment,
nomeCidade varchar(65) not null,
idEstado int not null,
constraint foreign key (idEstado) references estados(idEstado),
primary key (id)
);

create table produtos (
id int auto_increment primary key,
nome varchar(100) not null,
fornecedor varchar(100) not null,
precoCompra real not null,
precoVenda real not null,
descricao varchar(100) not null,
qtdEmEstoque int not null,
dataCadastro timestamp default current_timestamp()
);

create table funcionarios (
id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
nome varchar(100) NOT NULL,
sexo char,
dataNascimento varchar(10),
endereco varchar(200),
cidade varchar(50),
cep varchar (10),
telefone varchar(15),
cpf varchar(14),
rg varchar(15),
profissao varchar(50),
pisPasep varchar(12)
);
14 changes: 14 additions & 0 deletions banco_de_dados/funcionarios.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE TABLE funcionarios (
id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
nome varchar(100) NOT NULL,
sexo char,
dataNascimento varchar(10),
endereco varchar(200),
cidade varchar(50),
cep varchar (10),
telefone varchar(15),
cpf varchar(14),
rg varchar(15),
profissao varchar(50),
pisPasep varchar(12)
);
Binary file removed build/gerais.o
Binary file not shown.
Binary file removed build/main.o
Binary file not shown.
Binary file removed build/paises.o
Binary file not shown.
5 changes: 5 additions & 0 deletions codigos/ControleEstoqueC/.dep.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This code depends on make tool being used
DEPFILES=$(wildcard $(addsuffix .d, ${OBJECTFILES} ${TESTOBJECTFILES}))
ifneq (${DEPFILES},)
include ${DEPFILES}
endif
128 changes: 128 additions & 0 deletions codigos/ControleEstoqueC/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#
# There exist several targets which are by default empty and which can be
# used for execution of your targets. These targets are usually executed
# before and after some main targets. They are:
#
# .build-pre: called before 'build' target
# .build-post: called after 'build' target
# .clean-pre: called before 'clean' target
# .clean-post: called after 'clean' target
# .clobber-pre: called before 'clobber' target
# .clobber-post: called after 'clobber' target
# .all-pre: called before 'all' target
# .all-post: called after 'all' target
# .help-pre: called before 'help' target
# .help-post: called after 'help' target
#
# Targets beginning with '.' are not intended to be called on their own.
#
# Main targets can be executed directly, and they are:
#
# build build a specific configuration
# clean remove built files from a configuration
# clobber remove all built files
# all build all configurations
# help print help mesage
#
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
# .help-impl are implemented in nbproject/makefile-impl.mk.
#
# Available make variables:
#
# CND_BASEDIR base directory for relative paths
# CND_DISTDIR default top distribution directory (build artifacts)
# CND_BUILDDIR default top build directory (object files, ...)
# CONF name of current configuration
# CND_PLATFORM_${CONF} platform name (current configuration)
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
#
# NOCDDL


# Environment
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin


# build
build: .build-post

.build-pre:
# Add your pre 'build' code here...

.build-post: .build-impl
# Add your post 'build' code here...


# clean
clean: .clean-post

.clean-pre:
# Add your pre 'clean' code here...

.clean-post: .clean-impl
# Add your post 'clean' code here...


# clobber
clobber: .clobber-post

.clobber-pre:
# Add your pre 'clobber' code here...

.clobber-post: .clobber-impl
# Add your post 'clobber' code here...


# all
all: .all-post

.all-pre:
# Add your pre 'all' code here...

.all-post: .all-impl
# Add your post 'all' code here...


# build tests
build-tests: .build-tests-post

.build-tests-pre:
# Add your pre 'build-tests' code here...

.build-tests-post: .build-tests-impl
# Add your post 'build-tests' code here...


# run tests
test: .test-post

.test-pre: build-tests
# Add your pre 'test' code here...

.test-post: .test-impl
# Add your post 'test' code here...


# help
help: .help-post

.help-pre:
# Add your pre 'help' code here...

.help-post: .help-impl
# Add your post 'help' code here...



# include project implementation makefile
include nbproject/Makefile-impl.mk

# include project make variables
include nbproject/Makefile-variables.mk
Loading