Tải bản đầy đủ (.docx) (70 trang)

BÀI tập lớn PHÂN TÍCH THIẾT kế HƯỚNG đối TƯỢNG đề tài PHẦN mềm QUẢN lý SIÊU THỊ

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (516.78 KB, 70 trang )




 !"#$%
#&'(!))*%+,!
*-+
Nhóm
Đề tài: #.//0123456
+5789:
;<=>?
5@/:
#/AB CDDEFGDD
#/ABH CDDEDDIC
J=;K CDDICELM
Mục lục
C
Chương 1. Khảo sát sơ bộ
1.1. Mô tả chung
JNOPQ22RS/TU2V584?WQ
XU123456<#/Q8YZ/1/QX<
2[\/?]\8^@_`8a/1b/c?
WQX<@ZSd//Oe188^fUO@8^@
_?/5g8Oh4i8NjVjX<K>fB
b5.\?W4Y\_QX.Oh1Ujf
Sbdk.@QG456O_1/S7B2Y
P/4XUR\NQ456<d/2l\\jm[f\jl\f@
OKf?@f?B5f<<<
1.2. Phạm vị dự án:
#.//U123456OhmB8Yn/@\NU123456f
2hj8\<XSd//28
8^\o\2l\\jm[f\jl\f@OKf?@f?


B5f<<<fOe1VplVq/`<UO@/X[
2hfOlOh[\V7/?OX[@_<
1.3. Tổng quan về phần mềm:
#.//Oh8^S456fV@4YK7S5
V[\<
>4i8N\.//Z2d/@:
 +/OX<
 j
 B5S
 #@/OX<
1.4. Danh sách quy trình nghiệp vụ
Chức năng Quản lý nhập hàng:
0123\jl\<
?\jl\
0123[\<
?[\<
Chức năng quản lý hàng hóa:
0123@
?@
F
 O@f?WQuản lý thông tin hàng hóa@FO_//r
stt`m`8uuvfKOKF?W/r2
• 0123Q2
• 01232
• 0123OK6P
- Chức năng Quản lý nhân viên:
0123B5<
?B5<
wChức năng Quản lý khách hàng thân thiết:
• 0123Bj<

• ?Bj<
Chức năng Quản lý xuất hàng:
0123\jm[kV25U.<
?\jm[<
wChức năng thống kê & báo cáo
XV5@V<
XV5T4X2hd
XV58S
XV5d5U.
wChức năng Quản lý bán hàng:
• $l\@OK<
• ?@OK<
1.5. Phân công công việc
:R/_TUf\BfTh\2/\.4`
4`<
;K:jVjK4r8>2S_Od27\jVj<
H:_OdKf8
5\B5Zx2KOXR
URYf5O[PYchO_1Uj
7/bfV@VWQ/R5V<
y
Chương 2: Phân tích
2.1. Biểu đồ hoạt động:
2.2. Mô tả các usecase:
12V54`4`K?:
I
Use-case Actors
/`:Wl\z
!{|G
/OX}\@/OX}Vj}B5

S
/`:$l\@OKz
!{|C
B5S
/`:0123B5
456z!{|F
+/OX
/`:U123V
Bjz!{|y
+/OX
/`:0123[\z
!{:I
+/OX
/`:U123@z
!{:L
\@/OX
/`:U123OK6Pz
!{:E
\@/OX
/`:U123Q2z
!{:M
\@/OX
/`:U1232z
!{:~
\@/OX
/`:U123UO6z
!{|GD
\@/OX
/`:U123\jm[z
!{|GG

Vj
/`:U123\jl\z
!{|GC
Vj
/`:?\jm[z
!{|GF
+/OX}Vj
/`:?\jl\z
!{|Gy
+/OX}Vj
/`:?@OKz
!{|GI
+/OX}Vj}B5S
/`:?VBjz
!{|GL
+/OX}B5S
/`:?B5z
!{|GE
+/OX}
/`:?[\z
!{|GM
+/OX}
/`:?@z
!{|G~
+/OX}\@/OX}Vj}B5
S
/`:XV5@Vz
!{|CD
+/OX}Vj
/`:XV58z

!{|CG
+/OX}Vj
/`:XV5d5U.z
!{|CC
+/OX}Vj
L
/`:XV5T4X2hd
z!{|CF
+/OX}Vj
/`:A`/Bz
!{|Cy
+/OX}\@/OX}Vj}B5
S
E
2.2.1. Đăng nhập
•4`4` Name: Đăng nhập; ID=1
{`\4 4`4`/1OWl\XU123456<j
•4`4`ROWl\4€@U4i8N
XK?<h2QXVOT<
H4 /OX}\@/OX}Vj}B5S
H44/\4}
\`8
;`\4 •4`4`SbO.V//XOWl\X<
X5.l\5/lVg}ejOW
l\2.O.5Rl\5!{<
Hl\5/lVg}5!{<
XV_/5/lVg/O•l\\o\
OWl\X<
$.OWl\O.5X4€SjO@22.OWl\O.
5<dSj\44‚8QB5O@<

!{4€/[2Y<!{4€S6m@VƒK4r8>2<

„2
_S1O1/tính an toànXf/cxOhU
l\25/lVgQ/RsjOWl\4vXO2F2.<
;O@X4€YOVj]4`4`<
!44`4 j8…4YVPl\5/lVg4R
X4€S2c<
H@_UrO.4`4`eQSƒOWl\f2]
4`4`Vj]<
M
_Od27\
sd Dynamic Vi
NhanVien
- id_dang_nhap: int
- ma_khau: int
- ten_dang_nhap: char
+ nhap_id(int) : void
+ nhap_ten_dang_nhap(char) : void
+ kich_hoat_chuc_nang_nguoi_dung(NhanVien) : void
+ kich_hoat_form_dang_nhap() : voi d
+ kich_hoat_form_dang_nhap_lan_dau() : void
+ kiem_tra_thong_tin_dang_nhap(char, int) : void
+ lay_thong_tin_dang_nhap(ten_dang_nhap) : void
+ nhap_mat_khau(int) : void
+ nhap_ten_dang_nhap(char) : void
ThongTinNhanVi en
W_DangNhapLanDau
W_DangNhap
Controll er_DangNhap

1
1 1
1
1 1
+8:
0•†$‡;!ˆ•‰
ĐĂNG NHẬP LẦN ĐẦU
•4`/`
!{
ĐĂNG NHẬP
A

~
2.2.2. Lập hóa đơn
•4`4` Name: Lập hóa đơn; ID=2
{`\4 •4`4`\o\B5S@_P@
OKV<
j•4`4`fOKOhVf
OdK4r8>24€OhXYOl\l2<
X2OKK4r8>27>:
/•OKf2l\OKf/•B5fT6OKf/•
/e4X2hO•S<
Xl\l2K4r8>2OT:4X2h/e
f/.[QVBjf4XO_/r
QVBj8Y56@OK<
j•4`4`VfQXV
OT<
H4 B5S
H44/\4}
\`8

;`\4 •4`4`SbO.VB5S?W2l\@
OK<X5.B5l\/•4Xk/e.P
<:/•f4X2h/eO@Oh/<
XYOPT4XV18Y5OK
Q/ef4X2hfj6WOX7k
/eOh2(;{$<
XPT4XO_/K?74XQ@OK<
jV@ŠVBjRl\/•4XV
X<XV_/Ph\2Q/•4XV
Bj<
j/•V@482fX4€S<
j/•@482:X2[O_/r
VBj2>K4r8>2V_/
VBj@2l\Š/.[
5GW/R2SƒVƒK4r8>2<
;VXV_/VBj2ƒf
XV_/4XO_/7O@QVBj@5FD
O_/V<jƒ/•f1/I‹6@OK<
B5S?W@OKO_2>@
OK<XOKV

GD
„2
!44`4 j/•4X/eV@K4r8>2RX4€
/S2cOd_@V<
•4`4`Vj]OB<
Od27\:
sd Dynamic Vi
Nhan v ien ban hang
+ lay_ma_nhan_vien_dang_nhap(NhanVi en) : int

+ nhap_ma_mat_hang() : void
+ nhap_ma_the_khach_hang_than_thiet() : void
+ nhap_so_l uong() : void
+ cap_nhat_diem_thuong(int) : void
+ chen_hoa_don_moi() : void
+ ki ch_hoat_W_lap_hoa_don() : void
+ lay_ma_nhan_vien_dang_nhap(NhanVien) : void
+ lay_thong_tin_khach_hang_than_thiet(int) : void
+ lay_thong_tin_mat_hang(ma_mat_hang) : voi d
+ tinh_di em_thuong() : int
+ tinh_tien_thanh_toan() : int
+ tinh_tong_tien() : double
+ diem_thuong: int
- ma_the: int
+ ngay_cap_the: doubl e
+ xac_nhan_ma_the(int) : void
- ma_nhan_vien: int
+ don_gia: int
+ don_vi_tinh: doubl e
- ma_mat_hang: int
- ma_mat_hang: int
- ma_nhan_vien_lap: int
- ma_the_khach_hang_than_thiet: int
- so_luong: int
- tong_tien_thanh_toan: int
W_lap_hoa_don
Lap_hoa_don_controller
Khach_hang_than_thiet
Nhan_vien
mat_hang

Hoa_don
+ chon_chuc_nang(char) : void
W_nhan_vien_ban_hang
1 *1
1
1
11
1
1
1
1
1
1 *
1
0 *
0 * 1
+8:
GG
GC
?@OK<
jU1
Quản lý Thống kê Tra cứu
G<J•@OK:<<<
J•B52l\:<<<
2l\:
C<J•@OK:<<<
J•B52l\:<<<
2l\:
<<<<
A`/j

A`/j
A
2.2.3. Quản lý thông tin nhân viên
•4`4` Name : Quản lý thông tin nhân viên siêu thị ; ID=3
{`\4 •4`4`\o\U1238RB5
Q456X<d/:5//7f
xfm@5B5VƒX<
j•4`4`fB5SOh5/f
4iemVƒX<h2QXV
OT<
H4 +/OX
H44/\4}
\`8
+/OX\1OWl\X7V•4`4`Sb
O.<
;`\4 •4`4`SbO.VU123/X5//7fx
fm@B5Q456X<
X_684B5Q456<X5
.U123?W/XY<;V
U123?Wf/2d\NK?4Oh
Y:
j4i8N5/:2d\N5/B5Oh
Y<
j4i8N(l\l:2d\N(l\l
B5OhY<
j4i8NA@:2d\NA@B5OhY
<
Œ5/B5
X5.U123l\B5S
fd/:5sŒvf4X(J{sŒvf4fO6xsŒvfOf

2/sŒvf?NsŒv<$3:(@8[4sŒv2
SbS\1@<
;VOO.OQ.jB5f4i
8NX?W5/<
Xb4i8Nml5/B5<
XV_/Ph\24Y/B9K4r8>2Q
<
B5SOh5/X<
XYO\4/•B5U/?
7<
B5k/7Ohl\X4€YOOh4b\mj\
W`5<
Hệ thống sẽ cho Giám đốc biết : tên và ID đăng nhâp của nhân viên
vừa mới thêm.
ID này sẽ được thêm vào cơ sở dữ liệu, phục vụ cho lần đăng nhập
đầu tiên của nhân viên mới được thêm.
ŒxB5:sB5Sd/U123f
SfS1fB5V_/[2hf•v
Xm[_6QB5O•Oh
GF
4i8NXk84B5Q456}?
`5B5}?`/•B5<
4i8NXOT/4XQB5<
d/[1Ohx2d5/<;V
4iOTf4i8NX?W(l\
l<
Xb4i8Nmll\l<
XV_/Ph\2Q<B
5SOhl\l2XOr2/
R<

ŒA@B5:
4i8N/B5/Xm<4i8N
?WA@<
Xb4i8Nmlm@B5sOhk
84B5Q456v<4i8N[\lm@<
B5Ohm@VƒX<
Ž/c2d\NfjYf/R4€25
S8^Sj<

„2
+/OX@UKY8/<
+/OX@O.OQUU123V1Q
B5456<
•5V1Q/OXV_m@fx@_OT
Be/lVg<(ZV_V1?C
@Ul<
QGB5O@456PZV@
UOTfx/OX/7@UO@<
!44`4 ŒB5VO.OQ
jOh4i8NXl\2d
\NThêmHiệu chỉnh thông tinVO.OQRX4€_
6S2c:
•j.j<‘5.ST4O.OQ
<
4i8NX@_ST4O.OQ.j
eQSƒOYf2]4`4`Vj]<
ŒB5Vh\2
jOh4i8NXl\2d
\NThêmHiệu chỉnh thông tin Vh\2RX4€_
6S2c:

•B5Vh\2<‘5.4i8N
Xx4i2Vh\2<
4i8NX@_x4iVP
meQSƒOYf2]4`4`Vj]<
ŒmlVOh4i8NX[\l
2d4YV5/fxA@B5<
jmlK?VOh4i
8N[\lX4€r27O@Qk2d
Gy
4YVK?<
_Od27\/
+8
?B5<
e:$Y5P?<
Quản lý
Thống kê
Tra cứu
l\/•B5
l\5B5
R/
A`/84
GI
A
1.1 Gói chức năng quản lý-giám đốc.
2.2.4. Quản lý thông tin khách hàng thân thiết
GL
Tra cứuThống kêQuản lý
0123B5456
5/B5
xB5

A@B5
A
•4`4` Name: quản lý thông tin khách hàng thân thiết ; ID=4
{`\4 •4`4`\o\U1238RV
BjX<d/:5//7fx
fm@5VBjVƒX<
j•4`4`fVBjOh5/f
4iemVƒX<h2QXV
OT<
H4 +/OX
H44/\4}
\`8
+/OX\1OWl\X7V•4`4`@_Sb
O.<
;`\4 •4`4`SbO.VU123/X5//7fx
fm@VBjX<
X_6[1VBjQ456<
X5.U123?W/XY<;V
4i8N?Wf/2d\NK?
4OhY:
j4i8N5//7:2d\N5/V
BjOhY<
j4i8Nx:2d\Nx
VBjOhY<
j4i8NA@V:2d\NA@V
BjOhY<
Œ5/VBj
X5.U123l\VB
jfSd/:5sŒvf4fO6xsŒvfOf[\
ŠsŒv<

$3:(@8[4sŒv2SbS\1@
;VOO.OQ.j/Vf
4i8NX?W5/<
Xbr8^ml5/<
XV_/Ph\2Q<V
BjOh5/X<XYO\
4/•VBj<Bjk/7Oh
l\X4€YOOh4b\mj\W`5Or2
/R_6<
ŒxVBj
Xm[_6QVO•Oh
4i8NXk84VBj
Q456}?`5V}?`/•ŠV
<
4i8NXOT/4XQV<
d/[1Ohx2d5//7<
;V4iOTf4i8NX?W
(l\l<
Xbr8^ml(l\l<
XV_/Ph\2Q<V
GE
Ohl\l2X<
ŒA@VBj
Xb4i8Nmlm@VBj
sVO•Oh4i8NXk84
VBjQ456v<
4i8N[\lm@<
VBjOhm@Vƒ
X
Ž/c2d\NfjYf/R4€25

S8^Sj<
„2
!44`4 ŒVVO.OQ
jOh4i8NXl\2d\N5/
/7xVO.OQRX4€_6S2c:
•j.j<‘5.ST4O.OQ<
4i8NX@_ST4O.OQ.jeQSƒ
OYf2]4`4`Vj]<
ŒVVh\2
jOh4i8NXl\2d\N5/
/7xVh\2RX4€_6S2c:
•VVh\2‘5.4i8NXx
4i2Vh\2<
4i8NX@_x4iVPmeQ
SƒOYf2]4`4`Vj]<
ŒmlVOh4i8NX[\l
2d4YV5//7fxA@Vfj
mlK?VOh4i8N[\l
X4€r27O@Qk2d4YVK?f2]4`
4`Vj]<
_Od27\/
GM
sd Class Mo
GiamDoc
+ nhap_thong_tin_KHTT () : void
+ thong_bao_them_thanh_cong() : char
+ chon_thao_tac(char)
+ chon_khach_hang_than_thi et(int) : KhachHangThanThi et
+ hien_thi _thong_tin_KHTT(int) : voi d
+ sua_thong_tin_KHTT() : boolean

+ thong_bao_sua_thanh_cong() : char
chu thich:
KHTT:khach
hang than thiet
+ chon_KHTT () : void
+ hien_thi_thong_tin_KHTT () : void
+ thong_bao_Xoa_thanh_cong() : void
+ xoa_KHTT(int) : boolean
+ di a_chi: int
+ ho_ten_KHTT: int
- ma_the_KHTT : int
+ ngay_cap_the: int
+ ngay_si nh: double
+ so_cmnd: int
+ so_dien_thoai: double
+ kiem_tra_thong_tin_KHT T() : void
+ lay_thong_tin_KHTT(int) : voi d
+ sua_thong_ti n_KHTT() : boolean
+ them_KHTT() : void
+ xoa_KHTT(char) : boolean
W_QuanLyKHTT
W_ThemKHTT
ThongT inKHTT
controllerQuanLyKHTT
XoaKHTT
SuaT hongTinKHTT
1 1 *
1
1
1

1
1 1
11
1
1
1
1
G~
+8
CD
A
0123VBj
Quản lý Thống kê Tra cứu
5/VBj
xVBj
A@VBj
2.2.5. Quản lý thong tin nhà cung cấp
•4`4` Name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
((
5((sŒv:
6xsŒv:
CF
0123[\
Quản lý Thống kê Tra cứu
A
5/[\
A@[\
x[\
sŒv:
’/2:
<<Chú ý:
-Thông tin có dấu (*) là được sửa nhưng không được để trống
-Thông tin có dấu (***) là không được sửa>>
0123[\

A@[\
([\:
l\5 e l\/•((
((:
J•((:
5[\:
6x:
:
Quản lý
Cy
Thống kê
Tra cứu
A`/84
A@
CI

×