Documente Academic
Documente Profesional
Documente Cultură
Laborator 3
Laborator 3
GESTIUNE STOCURI
A 1.2.2
Field Name
Data
Type
Nr bon consum
Number
Long
Integer
>0
Data bon
consum
Date/Tim
e
Short
Date
>#01.01.200
2#
Cod loc
consum
Number
Integer
>0
Cod gestiune
Number
Integer
>0
A 1.2.3
Field
Size
/
Format
Decim
al
Place
s
Validation
Rule
Look Up
Obs
Cheie
primar
a
Tabel
Gestiuni
Cheie
extern
a
Look Up
Obs
Field Name
Data
Type
Field
Size
/
Format
Decim
al
Place
s
Validation
Rule
Nr factura
Number
Long
Integer
>0
Data factura
Date/Tim
e
Short
Date
>#01.01.200
2#
Valoare factura
Currency
Currency
Cod furnizor
Number
Integer
A 1.2.4
Cheie
primar
a
>0
>0
Tabel
Furnizori
Cheie
extern
a
Look Up
Obs
Field Name
Data
Type
Field
Size
/
Format
Nr factura
retur
Number
Long
Integer
>0
Data factura
retur
Date/Tim
e
Short
Date
>#01.01.200
2#
Valoare factura
retur
Currency
Currency
Cod furnizor
Number
Integer
>0
Tabel
Furnizori
Cheie
extern
a
Nr factura
Number
Long
integer
>0
Tabel Facturi
Cheie
extern
a
Decim
al
Place
s
Validation
Rule
Cheie
primar
a
>0
A 1.2.5
Field Name
Data
Type
Field
Size /
Forma
t
Cod furnizor
Numbe
r
Integer
>0
Denumire furnizor
Text
20
<>
Adresa furnizor
Text
30
<>
Registrul
comertului
Text
15
<>
Cod fiscal
Text
10
<>
A 1.2.6
Decim
al
Places
Validatio
n Rule
Look Up
Obs
Cheie
primar
a
Field Name
Data
Type
Field
Size /
Forma
t
Cod gestiune
Numbe
r
Integer
>0
Denumire
gestiune
Text
20
<>
Responsabil
gestiune
Text
30
<>
Decim
al
Place
s
Validatio
n Rule
Look
Up
Obs
Cheie primara
A 1.2.7
Field Name
Data
Type
Nr NIR
Number
Cod material
Validatio
n Rule
Look Up
Obs
Long
Integer
>0
Tabel NIR
Cheie
extern
a
Number
Long
Integer
>0
Tabel
Materiale
Cheie
extern
a
Cantitate
Currency
General
Number
>0
Pret achizitie
Currency
Currency
>0
Look Up
Obs
A 1.2.8
Field Size /
Format
Decim
al
Places
Field Name
Data
Type
Cod material
Number
Denumire
material
Field Size /
Format
Decim
al
Places
Validatio
n Rule
Long
Integer
>0
Text
20
<>
Unitate de
masura
Text
10
<>
Cota TVA
Currency
Fixed
>0
Stoc inceput
Currency
General
Number
Pret mediu
Currency
Currency
>0
>0
Cheie
primar
a
Lista
de
valori:
ml;mc;to;kg
; buc;per
A 1.2.9
Field Name
Data
Type
Cod material
Number
Nr bon
consum
Cantitate
A 1.2.10
Field Size
Format
Decim
al
Places
Valida
tion
Rule
Look Up
Obs
Long Integer
>0
Tabel
Materiale
Cheie
externa
Number
Long Integer
>0
Tabel
Bon
consum
Cheie
externa
Currency
General
Number
>0
Field Name
Data
Type
Field
Size
/
Format
Nr NIR
Number
Long
Integer
>0
Data NIR
Date/Tim
e
Short
Date
>#01.01.200
2#
Nr factura
Number
Long
Integer
>0
Tabel Facturi
Cheie
extern
a
Cod gestiune
Number
Integer
>0
Tabel
Gestiuni
Cheie
extern
a
Decima
l
Places
Validation
Rule
Look Up
Obs
Cheie
primar
a
A 1.2.11
Field Name
Data
Type
Field Size /
Format
Decim
al
Places
Stoc initial
Currency
General
Number
Data stoc
initial
Date/Tim
e
Short Date
>#01.01.200
2#
Cod gestiune
Number
Integer
Cod material
Number
Long
Integer
Stoc curent
Currency
General
Number
A 1.2.12
Validation
Rule
Look Up
Obs
>0
Tabel
Gestiuni
Cheie
extern
a
>0
Tabel
Materiale
Cheie
extern
a
>0
>0
MASTER
DETAIL
Cheia externa
Gestiuni
Bon consum
Cod gestiune
Furnizori
Facturi
Cod furnizor
Furnizori
Facturi retur
Cod furnizor
Facturi
Facturi
retur
1
Nr factura
NIR
Materiale
aprovizionate
Nr NIR
Materiale
Cod material
Materiale
Materiale
aprovizionate
Cod material
Materiale
consumate
Bon consum
Facturi
Nr bon consum
Materiale
consumate
NIR
Nr factura
Gestiuni
NIR
cod gestiune
Gestiuni
Cod gestiune
Stoc
Materiale
A 1.2.13
Cod material
Stoc
Dup ce s-au creat i legturile ntre tabele, se vor introduce date n fiecare
tabel. Se introduc nregistrari nti n tabelele master, apoi n tabelele detail, de
aici rezultnd aceast ordine de introducere a datelor: