2 Phân tích use case
2.1.16. Phân tích use case Bảo trì thể loại (…)
: Admin
: Admin : BaoTriTheLoaiUI : BaoTriTheLoaiUI : BaoTriTheLoaiController : BaoTriTheLoaiController : THELOAI : THELOAI : ICSDL : ICSDL : CSDL : CSDL 1: kich nut "Bao tri the loai"( )
2: lay danh sach cac the loai( )
3: chon bang THELOAI( )
4: chon bang THELOAI( ) 6: return ket qua
7: hien thi danh sach the loai( ) 8: kich nut "Them moi"( )
9: hien thi form nhap tt the loai( ) 10: nhap tt the loai
11: kich nut "Tao"( )
12: sinh ra MaTL( ) 13: tao the loai moi( )
14: createTHELOAI( ) 15: cap nhat bang THELOAI( )
16: cap nhat bang THELOAI( ) 17: return ket qua
18: hien thi danh sach the loai sau khi them( ) 19: chon 1 dong the loai
20: kich nut "Sua"( )
21: lay tt the loai can sua( )
22: getTHELOAI_byMaTL( ) 23: return ket qua
24: hien thi form sua the loai( ) 25: nhap tt moi cho the loai
26: kich nut "Cap nhat"( )
27: sua the loai da chon( )
28: setTHELOAI_byMaTL( ) 29: cap nhat bang THELOAI( )
30: cap nhat bang THELOAI( ) 31: return ket qua
32: hien thi danh sach the loai sau khi sua( ) 33: chon 1 dong the loai
34: kich nut "Xoa"( )
35: hien thi thong bao xac nhan xoa( )
2.1.16.2 . Bi u đ phân tíchể ồ
Admin
(from Use Case View)
<<Actor>>
CSDL chon bang THELOAI() cap nhat bang THELOAI() cap nhat bang THELOAI()
(from Use Case View)
<<Actor>>
BaoTriTheLoaiUI kich nut "Bao tri the loai"() hien thi danh sach the loai() kich nut "Them moi"() hien thi form nhap tt the loai() kich nut "Tao"()
hien thi danh sach the loai sau khi them() kich nut "Sua"()
hien thi form sua the loai() kich nut "Cap nhat"()
hien thi danh sach the loai sau khi sua() kich nut "Xoa"()
hien thi thong bao xac nhan xoa() kich nut "Dong y"()
hien thi danh sach the loai sau khi xoa() <<boundary>>
ICSDL chon bang THELOAI() cap nhat bang THELOAI() cap nhat bang THELOAI()
<<boundary>> THELOAI maTL tenTL getMaTL() setMaTL() getTenTL() setMaTL() getTHELOAI() createTHELOAI() getTHELOAI_byMaTL() setTHELOAI_byMaTL() deleteTHELOAI_byMaTL() <<entity>> BaoTriTheLoaiController lay danh sach cac the loai() sinh ra MaTL() tao the loai moi() lay tt the loai can sua() sua the loai da chon() xoa the loai da chon() <<control>> * 1 * 1 1 * 1 * * 1 * 1 2.1.16.3 . Bi u đ phân tích có lu ng rẽ nhánhể ồ ồ BaoTriTheLoaiUI kich nut "Bao tri the loai"() hien thi danh sach the loai() kich nut "Them moi"() hien thi form nhap tt the loai() kich nut "Tao"()
hien thi danh sach the loai sau khi them() kich nut "Sua"()
hien thi form sua the loai() kich nut "Cap nhat"()
hien thi danh sach the loai sau khi sua() kich nut "Xoa"()
hien thi thong bao xac nhan xoa() kich nut "Dong y"()
hien thi danh sach the loai sau khi xoa() hien thi thong bao "Ma the loai da ton tai"() kich nut "Huy"()
hien thi thong bao "Loi ket noi"() <<boundary>>
ICSDL chon bang THELOAI() cap nhat bang THELOAI() cap nhat bang THELOAI()
<<boundary>> THELOAI maTL tenTL getMaTL() setMaTL() getTenTL() setMaTL() getTHELOAI() createTHELOAI() getTHELOAI_byMaTL() setTHELOAI_byMaTL() deleteTHELOAI_byMaTL() <<entity>> BaoTriTheLoaiController lay danh sach cac the loai() sinh ra MaTL()
tao the loai moi() lay tt the loai can sua() sua the loai da chon() xoa the loai da chon()
<<control>> * 1 * 1 1 * 1 * * 1 * 1
2.1.16.4 . Bi u đ Alternative Flowể ồ
: Admin
: Admin : BaoTriTheLoaiUI : BaoTriTheLoaiUI : BaoTriTheLoaiController
: BaoTriTheLoaiController
: THELOAI
: THELOAI : ICSDL : ICSDL : CSDL : CSDL
Re nhanh 1 1: getTHELOAI( )
2: return ket qua
3: hien thi thong bao "Ma the loai da ton tai"( )
4: hien thi form nhap tt the loai( )
Re nhanh 2
5: kich nut "Huy"( )
6: hien thi danh sach the loai( )
Re nhanh 3 7: chon bang THELOAI( )
8: return loi 9: return loi