2 Phân tích use case
2.1.3. Phân tích use case Bảo trì danh mục (Trần Như Hải)
: Admin
: Admin : BaoTriDanhMucUI : BaoTriDanhMucUI : BaoTriDanhMucController
: BaoTriDanhMucController
: DANHMUC
: DANHMUC : iCsdl : iCsdl : csdl : csdl 1: kich nut "Danh muc"( )
2: lay danh sach danh muc( )
3: lay bang DanhMuc( )
4: lay bang DanhMuc( ) 6: return DanhMuc
7: hien thi DS DanhMuc( ) 8: kich nut "Them Moi"( )
9: hien thi form nhap( ) 10: nhap thong tin moi
11: kich nut "Them Moi"( )
12: tao MaDM( ) 13: tao DM moi( )
15: cap nhap bang DanhMuc( )
16: cap nhap bang DanhMuc( ) 17: return ket qua
18: chon DanhMuc can sua( ) 19: kich chon "Sua danh muc"( )
22: return DM 23: hien thi form sua( ) 24: sua thong tin
25: kich nut"Cap nhap danh muc"( )
26: sua thong tin DM( )
27: setDM( ) 28: cap nhap DM( )
29: cap nhap bang DM( ) 30: return ket qua
31: hien thi lai DM( ) 32: chon DM can xoa( )
33: hien thi man hinh xac nhan( ) 34: kich nut "Dong y"( )
35: xoa danh muc da chon( )
36: deleteDM( )
37: cap nhap lai bang DM( )
38: cap nhap lai bang Dm( )
40: hien thi lai danh muc( ) 39: return ket qua 20: lay thong tin DM( )
5: getDM( )
14: createDM( )
2.1.3.2. Bi u đ phân tíchể ồ
Admin
(from Use Case View)
<<Actor>>
csdl lay bang DanhMuc() cap nhap bang() cap nhap bang DM() cap nhap lai bang Dm()
<<Actor>> BaoTriDanhMucUI
kich nut "Danh muc"() hien thi DS DanhMuc() kich nut "Them Moi"() hien thi form nhap() kich nut "Them Moi"() kich nut "Sua danh muc"() hien thi form sua() chon DanhMuc can sua() kich chon "Sua danh muc"() hien thi tt DanhMuc() hien thi form sua() kich nut"Cap nhap danh muc"() hien thi lai DM() chon DM can xoa() hien thi man hinh xac nhan() kich nut "Dong y"() return ket qua() hien thi lai danh muc()
<<boundary>> iCsdl
lay bang DanhMuc() cap nhap bang DanhMuc() cap nhap DM() cap nhap lai bang DM()
<<boundary>> DANHMUC maDM tenDM moTa getMaDM() setMaDM() getTenDM() setTenDM() getMoTa() setMoTa() getDM() createDM() getDMByID() setDM() deleteDM() <<entity>> BaoTriDanhMucController
lay danh sach danh muc() getMaDM() tao MaDN() tao DM moi() sua thong tin DM() xoa danh muc da chon() lay thong tin DM()
<<control>> 1 1 1 1 1 1 1 1 * 1 * 1 2.1.3.3. Bi u đ phân tích có lu ng rẽ nhánhể ồ ồ BaoTriDanhMucUI kich nut "Danh muc"() hien thi DS DanhMuc() kich nut "Them Moi"() hien thi form nhap() kich nut "Them Moi"() kich nut "Sua danh muc"() hien thi form sua() chon DanhMuc can sua() kich chon "Sua danh muc"() hien thi tt DanhMuc() hien thi form sua()
kich nut"Cap nhap danh muc"() hien thi lai DM()
chon DM can xoa() hien thi man hinh xac nhan() kich nut "Dong y"() return ket qua() hien thi lai danh muc()
thong bao "Ma danh muc da ton tai"() kich nut "Huy"()
hien thi lai danh sach DanhMuc() hien thi lai form nhap()
hien thi thong bao loi ket noi() <<boundary>>
iCsdl lay bang DanhMuc() cap nhap bang DanhMuc() cap nhap DM()
cap nhap lai bang DM() <<boundary>> DANHMUC maDM tenDM moTa getMaDM() setMaDM() getTenDM() setTenDM() getMoTa() setMoTa() getDM() createDM() getDMByID() setDM() deleteDM() <<entity>> BaoTriDanhMucController
lay danh sach danh muc() getMaDM()
tao MaDN() tao DM moi() sua thong tin DM() xoa danh muc da chon() lay thong tin DM()
<<control>> 1 1 1 1 1 1 1 1 * 1 * 1
2.1.3.4. Bi u đ Alternative Flowể ồ
: Admin
: Admin : BaoTriDanhMucUI : BaoTriDanhMucUI BaoTriDanhMucControllerBaoTriDanhMucController : : : DANHMUC : DANHMUC : iCsdl : iCsdl : csdl : csdl 1: createDM( )
3: thong bao "Ma danh muc da ton tai"( )
5: kich nut "Huy"( )
6: hien thi lai danh sach DanhMuc( ) 4: hien thi lai form nhap( )
7: lay bang DanhMuc( ) 8: return loi
9: return loi 2: return ket qua re nhanh 1
re nhanh 2
re nhanh 3