"Thie't l~p cac thuQcHnh HANGHOA va HANGHOACT"
- Cac thuQc tinh cua HANGHOA baa g6m : ten, mo tit, kkh thuoc, tn;mg luQng.
- Cac thuQc tinh cua HANGHOACT baa g6m : s6 thli tl;1',ten.
3. Thie't l~p cac n6i ke't giua cac Idp d6i tu'qng : "Thie't l~p cac n6i ke't cua Idp KHACHHANG"
- Thie't l~p cac n6i ke't d6i tuQng "khach hang" - d6i tuQng "giaa dich" : mQt d6i tuQng "giaa dich" chi ke't n6i voi mQt d6i tuQng "khach hang"
t~i cling mQt thdi di~m, nhung mQt d6i tuQng "khach hang" c6 th~ ke't n6i voi nhiSu d6i tuQng "giaa dich" (j cling mQt thdi di~m.
N6i ke't d6i tuQng gifi'a "KHACHHANG - GIAODICH" "Thie't l~p Cae n6i ke't eua lop GIAODICH"
Lop GIAODICH chua cac n6i ke't de'n lOp: KHACHHANG, CHITIETGIAODICH, HANGHOACT, NOICHON..
Thie't l~p cac n6i ke't d6i tuQng "giao dich" - d6i tuQng "khach hang" dii trlnh bay aph§n thie't l~p cac n6i ke't d6i tuQng cua lOp KHACHHANG. Thie't l~p cac n6i ke't d6i tuQng "giao dich" - d6i tuQng "chi tie't giao dich": mQt d6i tuQng "giao dich" co th€ ke't n6i voi mQt ho~c nhi~u d6i tuQng "chi tie't giao dich" t~i cling mQt thai di€m va mQt d6i tuQng "chi tie't giao dich" chI ke't n6i voi' mQt d6i tuQng "giao dich" t~i cling mQt
thai di€m.
N6i ke't d6i tuQng "GIAODICH- CHITIETGIAODICH "
Thie't l~p cac n6i ke't d6i tuQng "giao dich" - d6i tuQng "hang hoa Cl,l «Class Module» «Class Module» KHACHHANG GlAODICH MaKH: String SoGD: Siring Ten: String Ngay : Date Diachi: String Gio : Timer Dienthoai: String TinhtrangGD: Boolean Thuoctinhcanthiet: Variant .. 1 Thuoctinhcanthiet: Variant TinhtoancanthietO TinhtoancanthietO TinhtoantoanhocacGDO TndanhgiaO SapxepcacGDO «Class Module» GIAODICH
SaGO : Siring «Class Module»
Ngay: Date CHITIETGlAODICH
Gio : Timer Soluong : Long
TinhtrangGD: Boolean Tinhtrang: Boolean Thuoctinhcanthiet: Variant Tinhtoancanthiet: Variant
\.* 1
TinhtoancanlhietO ThuoctinhcanthielO
TinhtoantoanhocacCTG DO TudanhgiaO SapxepcacCTGDO
th~": ffiQtd6i tu<;jng"giao dich" chi k€t n6i vdi ffiQtd6i tu<;jng"hang h6a Cl;1th~" t(;1icling ffiQtthai di~ffi va ffiQt d6i tu<;jng"hang h6a Cl;1th~" c6 th~ k€t n6i nhi~u d6i tu<;jng"giao dich:' t(;1icling ffiQtthai di~ffi.
N6i k€t d6i tu<;jng"GIAODICH - HANGHOACT"
Thi€t l~p cac n6i k€t d6i tu<;jng"giao dich" - d6i tu<;jng"noi ch6n" trlnh
bay d ph~n thi€t l~p cac n6i k€t d6i tu<;jngcua ldp NOICHON.
"Thie't l~p cae n6i ke't cua lap NOICHON "
MQt d6i tu<;jng "noi ch6n" k€t n6i vdi nhi~u d6i tu<;jng "giao dich" t(;1i cling ffiQt thai di~ffi, va ffiQt d6i tu<;jng "giao dich" chi t(;10ffiQt n6i k€t duy nh~t d€n d6i tu<;jng"noi ch6n" t(;1icling ffiQtthai di~ffi.
N6i k€t d6i tu<;jng"NOICHON - GIAODICH"
"Thie't l~p Cae n6i ke't cua lap CHITIETGIAODICH"
Ldp CHITIETGIAODICH chua cac n6i k€t d€n cac ldp : GIAODICH, HANGHOA, HANGHOACT.
«Class Module» ---
GIAODICH «Class Module»
---
HANGHOACTmGiaodichID: Variant mGiaodichID: Variant
mNgay : Date mMathangCT: Variant
mGio: Timer mTen: Variant
TinhtrangGD: Boolean I * Thuoctinhcanthiet: Variant Thuoctinhcanthiet: Variant
f-- --- ...---...- ---
---
«Class Module» «Class Module»
NOICHON GIAODICH
MaNC: String SoGD: String
Ten: String Ngay: Date
Diachi: String Gio : Timer
Thuoctinhcanthiet: Variant TinhtrangGD: Boolean * ] Thuoctinhcanthiet: Variant TinhloancanthietO
TinhtoantoanbocacGDO TinhtoancanthietO
Thie't l~p cac n6i ke't d6i tu'cJng "chi tie't giao dich" - d6i tu'cJng "giao dich" dil trinh bay trong ph~n thie't l~p cac n6i ke't d6i tu'cJng cua lOp GIAODICH.
Thie't l~p cac n6i ke't d6i tu'cJng "chi tie't giao dich" - d6i tu'cJng "hang hoa": ffiQt d6i tu'cJng "chi tie't giao dich" chi ke't n6i voi ffiQt d6i tu'cJng
"hang hoa" t(;licling ffiQtthai diSm, va ffiQtd6i tu'cJng"hang hoa" co thS ke't n6i nhi~u d6i tu'cJng"chi tie't giao dich" t(;licling ffiQtthai diSffi.
- - - --,
N6i ke't d6i tu'cJng"CHITIETGIAODICH - HANGHOA"
Thie't l~p CaC n6i ke't d6i tu'cJng "chi tie't giao dich" - d6i tu'cJng "hang ho a ClJthS": ffiQt d6i tu'cJng "chi tie't giao dich" chi ke't n6i voi ffiQt d6i tu'cJng "hang hoa ClJ thS" t(;li cling ffiQt thai diSffi, va ffiQt d6i tu'cJng
"hang hoa ClJthS" co thS ke't n6i nhi~u d6i tu'cJng "chi ti€t giao dich" t(;li cling ffiQtthai diSffi.
---
N6i k€t d6i tu'cJng"CHITIETGIAODICH - HANGHOACT" «Class Module» CHITIETGIAODICH mSoluong : Long mTinhtrang: Boolean Thuoctinhcanthiet: Variant TaomoiCTGDO CapnhatO HuyO PhuongthuccanthietO Class_lnitializeO Class- TerminateO «Class Module» HANGHOA mMathanglD: Variant mTen : Variant mMota: Variant mGiamacdinh : Variant Thuoctinhcanthiet: Variant «Class Module» CHITIETGIAODICH mSoluong ,Long mTinhtnlng, Boolean Thuoe!inheanthie! ,Varian! TanmoiCI'GDO Capnhat() Huy() PhuongthuccanthietO Class_ltlitializeO Cla,s,s- TerminateO «Class Module» HANGHOACT mMathangCT , Variant mTen , Varian! Thunetinheanthie! , Vat'iant
"Thie't l~p cae n6i ke't ciia lap HANGHOA"
Ldp HANGHOA chua cac n6i ke't de'n cac ldp: HANGHOACT,
CHITIETGIAODICH (ne'u ldp "hang h6a ClJth~" khang c6 trong ffia hlnh). - Thie't l~p cac n6i ke't d6i tu'<;1ng"hang h6a" - d6i tu'<;1ng"hang h6a ClJ
th~": ffiQt d6i tu'<;1ng"hang h6a" ke't n6i vdi nhi~u d6i tu'<;1ng"hang h6a ClJ th~" t~i cling ffiQt thai di~ffi, ngu'<;1cl~i ffiQt d6i tu'<;1ng"hang h6a ClJ th~" c6 th~ ke't n6i vdi duy nh§t d6i tu'<;1ng"hang h6a" t~i cling ffiQtthai di~ffi.
N6i ke't d6i tu'<;1ngIIHANGHOA - HANGHOACT"
- Thie't l~p cac n6i ke't d6i tu'<;1ng"hang h6a" - d6i tu'<;1ng"chi tie't giao
dieh": dfi trlnh bay trong ph~n thie't l~p eae n6i ke't d6i tu'<;1ngcua ldp CHITIETGIAODICH.
"Thie't l~p cae n6i ke't ciia lap HANGHOACT"
Ldp HANGHOACT chua cac n6i ke't de'n cac ldp: GIAODICH,
CHITIETGIAODICH, HANGHOA.
- Thie't l~p cac n6i ke't d6i tu'<;1ng"hang h6a ClJ th~" - d6i tu'<;1ng"giaodich" da trlnh bay trong phgn thie't l~p cac n6i ke't d6i tu'<;1ngcua ldp dich" da trlnh bay trong phgn thie't l~p cac n6i ke't d6i tu'<;1ngcua ldp GIAODICH.
- Thie't l~p cac n6i ke't d6i tu'<;1ng"hang h6a ClJth~" - d6i tu'<;1ng"chi tie't
giao dich" da trlnh bay trong phgn thie't l~p cac Ii6i ke't d6i tu'<;1ngcua
«Class Modulc»
HANGHOA «Class Modulc»
,---
HANGHOACTmMathangID: Variant mMathangID: Variant
mTcn: Variant mMathangCT: Variant
mMota: Variant mTcn: Variant
mGiamacdinh: Variant * I Thuoctinhcanthiet: Variant
Thuoctinhcanthiet: Variant I I I
lOp CHITIETGIAODICH.
- Thie't l?p cac n6i ke't d6i tuQng "hang h6a C1,lth€" - d6i tuQng "hang
h6a": da trlnh bay tfong phgn thie't l?p cae n6i ke't d6i tuQng cua lOp HANGHOA.
4. Thie'"t H;ipeae phudng thue eua eae lop dol tuQng
Chu thich cac ta ngil au(fc a(it ten cho cac phuong thac cua cac [cJp
a(J'i tu(fng
- Thuoctinhcanthiet (thuQc tinh cgn thie't) : giup chung ta nghl fa nhungthuQc tinh naG la cgn thie't.