Tải bản đầy đủ (.pdf) (47 trang)

Báo cáo chuyên đề học phần Phân tích thiết kế hướng đối tượng: Phân tích và thiết kế hệ thống quản lý nhân sự

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 (2.41 MB, 47 trang )

lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">


<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

TRƯỜNG ĐẠI HỌC ĐIỆN LỰC
KHOA CÔNG NGHỆ THÔNG TIN

BÁO CÁO CHUYÊN ĐỀ HỌC PHẦN

TÊN HỌC PHẦN
PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG

ĐỀ
TÀI:
PHÂN TÍCH VÀ THIẾT KẾ HỆ THỐNG QUẢN LÝ NHÂN
SỰ
Sinh viên thực hiện

: QUÁCH THỊ HOÀNG HƯƠNG

Giảng viên hướng dẫn : NGUYỄN THỊ HỒNG KHÁNH
Ngành

: CÔNG NGHỆ THƠNG TIN

Chun ngành

: CƠNG NGHỆ PHẦN MỀN

Lớp

: D11CNPM

Khóa

: D11
Hà Nội, tháng 6 năm 2019
1


Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>

</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>


MỤC LỤC
LỜI MỞ ĐẦU........................................................................................................... 3
CHƯƠNG 1: KHẢO SÁT........................................................................................4
1.1

Giới thiệu về công ty cổ phần Ansi Đông Á.............................................. 4

1.2

Một số khái niệm cơ bản............................................................................ 6

1.3 Khảo sát....................................................................................................... 8
CHƯƠNG 2 : PHÂN TÍCH THIẾT KẾ HỆ THỐNG............................................ 16
1. Mơ tả bài toán.................................................................................................. 16
2. Xây dựng biểu đồ Use case..............................................................................17
2.1. Xác định các tác nhân................................................................................17
2.2. Xây dựng biểu đồ Use case....................................................................... 18
3. Xây dựng biểu đồ tương tác.............................................................................29
3.1. Biểu đồ trình tự..........................................................................................29
3.2. Biểu đồ cộng tác........................................................................................37
4. Xây dựng biểu đồ lớp.......................................................................................46
5. Xây dựng biểu đồ trạng thái.............................................................................57
6. Xây dựng biểu đồ thành phần.......................................................................... 60
7. Xây dựng biểu đồ hoạt động............................................................................ 60
8. Xây dựng biểu đồ triển khai.............................................................................63
CHƯƠNG 3: PHÁT SINH MÃ TRÌNH................................................................. 64
1. Ví dụ về phát sinh mã trình..............................................................................64
2. Mơ hình hóa cơ sở dữ liệu................................................................................66
3. Một số giao diện...............................................................................................66


Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>

</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>


LỜI NÓI ĐẦU
Ngày nay, cùng với sự phát triển của khoa học kỹ thuật, nhu cầu ứng dụng tin học
trong cơng tác quản lí cũng ngày càng gia tăng. Việc xây dựng các phần mềm quản lí nhằm
đáp ứng nhu cầu trên là rất cần thiết.
Quản lý khách sạn cũng không ngoại lệ. Việc phần mềm quản lý khách sạn ra đời giúp cho
các nhân viên khách sạn như lễ tân, nv buồng phịng, kế tốn có thể dễ dàng thực hiện tốt
cơng việc của mình qua các chức năng tìm kiếm, thơng kê, lưu trữ và truy xuất dữ liệu.
Đây cũng là tài liệu phục cho đồ án cuối kì mơn Phân tích thiết kế hướng đối tượng của
của tôi, trong đồ án này tôi xây dựng theo từng chương để thuận tiên trong quá trình học tập
và theo dõi
Với kiến thức còn hạn hẹp nên trong đồ án sẽ khơng tránh khỏi thiếu sót. Kính mong thầy
cơ cùng bạn bè thơng cảm và góp ý để nhóm chúng tơi có thể sửa chữa kịp thời, phục vụ cho
công tác nghiên cứu sau này.
Em xin chân thành cảm ơn cô!
Giáo viên hướng dẫn

Sinh viên thực hiện

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>

</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

CHƯƠNG 1: KHẢO SÁT
1.1. Khảo sát hiện trạng
1.1.1. Khảo sát hiện trạng
Tọa lạc tại thành phố Đà Nẵng, cách Bãi biển Non Nước 1,2 km, Dai Nam Hotel cung
cấp chỗ nghỉ với khu vườn, chỗ đậu xe riêng miễn phí, khu vực bãi biển riêng và sân hiên.
Dịch vụ phòng và dịch vụ đặt vé cũng được bố trí cho khách. Khách sạn 1 sao này cịn có lễ
tân 24 giờ, dịch vụ đưa đón sân bay, bếp chung và WiFi miễn phí.
Các phịng nghỉ tại khách sạn được trang bị máy điều hịa, truyền hình cáp màn hình
phẳng, ấm đun nước, vịi sen, máy sấy tóc và bàn làm việc. Các phòng sử dụng phòng tắm
chung và có tầm nhìn ra quang cảnh thành phố. Tủ để quần áo và phịng tắm riêng được bố trí
trong mỗi phịng.
1.1.2. Đánh giá hiện trạng

Qua q trình khảo sát thực tế tôi nhận thấy :
Khách sạn Đại Nam là một khách sạn nhỏ mới thành lập và đưa vào hoạt động một thời
gian ngắn. Số lượng nhân viên không nhiều nhưng vấp phải nhiều khó khăn do nhu cầu khách
thuê phịng khá nhiều, việc thực hiện thủ cơng dễ gây ra nhầm lẫn do đó sẽ gặp nhiều thiếu
sót trong q trình quản lý.
Chính vì thế tơi đã quyết định chọn đề tài phân tích và thiết kế một phần mềm quản lý
khách sạn nhằm phục vụ cho công tác quản lý tại khách sạn, đảm bảo quy trình nghiệp vụ và
hiệu quả cao.
CHƯƠNG 2 : PHÂN TÍCH THIẾT KẾ HỆ THỐNG
1. Mơ tả bài tốn
Trong cơng việc quản lý khách sạn nói chung, nó bao gồm một số cơng việc được phân
chia cơ bản như là quản lý vấn đề th phịng của khách hàng, quản lý thơng tin khách
hàng(quản lý hồ sơ về khách hàng), quản lý dịch vụ. Về quản lý phịng th, tài chính và
khách hàng thì đã có một số vấn đề được tin học hóa. Tuy nhiên chỉ dừng ở mức độ cập
nhật danh sách. Một số vấn đề rất quan trọng như tìm phịng phân cho khách hàng, đối
chiếu các hố đơn cũng như phân công công việc cho nhân viên chủ yếu vẫn là những thao
tác thủ công truyền thống. Không mang tính chính xác, đơi khi mất rất nhiều thời gian và
ảnh hưởng đến những công việc khác.
Nhiệm vụ cơ bản của hệ thống là khi có khách hàng liên hệ hoặc đến thuê phòng hoặc
thuê các dịch vụ của khách sạn thì có trách nhiệm giới thiệu về những đặc điểm chung của
khách sạn cũng như các công tác phục vụ của khách sạn. Cùng với đó là thu thập các yêu
cầu của khách hàng. Khi khách hàng có yêu cầu cụ thể thì sẽ cơng tác chuẩn bị, giao phòng
cho khách, phục vụ các yêu cầu về dịch vụ của khách, hướng dẫn khách hiểu thêm về hoạt
động của khách sạn. Cập nhật đầy đủ các thông tin của khách hàng .Phân loại khách hàng.
Các dịch vụ tối thiểu dịch vụ ăn uống ,thông tin liên lạc, đi lại cùng các loại hình dịch vụ
giải trí khác. Vì vậy ngồi các thơng tin để quản lý phịng, khách th phòng còn cần các

Downloaded by Nguynhavy Ha Vy ()



lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>

<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

thơng tin về các loại hình dịch vụ và các thơng tin về q trình hoạt động kinh doanh của
khách sạn. Và thực hiện các thủ tục nhanh gọn đảm bảo khơng xảy ra tình trạng nhầm lẫn.
2. Quy Trình Nghiệp Vụ


 Quy trình Check-in

Hình 1.1. Quy trình nghiệp vụ check-in
Sau khi tiếp nhận khách hàng thì nhân viên lễ tân sẽ giao tiếp với khách hàng để thu thập
thông tin về khách hàng như thông tin cá nhân, thơng tin đặt phịng, nhu cầu phịng ở, lượng
người... từ đó đưa ra gợi ý và làm thủ tục nhập phịng cho du khách.
• Quy trình Trả phịng

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">

<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>

<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

Hình 1.2. Quy trình nghiệp vụ check-out.
Sau khi tiếp nhận yêu cầu trả phòng, nhân viên lễ tân sẽ u cầu bộ phận buồng phịng
kiểm tra tình trạnh phịng, thống kê dịch vụ, sau đó lập hóa đơn và nhận thanh tốn từ khách
hàng.
• Quy trình nghiệp vụ Nhập hàng, phân loại

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>

<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

Hình 1.3. Quy trình nghiệp vụ nhập hàng, phân loại.
Sau khi mua hàng từ nhà cung cấp, kế toán sẽ tiến hành kiểm tra, phân loại , sắp xếp vào
kho.
• Quy trình nghiệp vụ Xuất kho

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">

<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>

<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

Hình 1.4. Quy trình nghiệp vụ xuất kho.
Kế toán nhận danh sách hàng cần xuất từ bộ phận buồng phòng, tiến hành kiểm tra và bàn
giao cho bộ phận buồng phịng, lấy xác nhận và lưu trữ thơng tin xuất kho.
• Quy trình nghiệp vụ Thanh lý hàng tồn kho – hết hạn

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>

</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>

<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

Hình 1.5. Quy trình nghiệp vụ Thanh lý hàng.
Theo đinh kì, Kế tốn sẽ kiểm tra tình trạng hàng hóa trong kho lập danh sách hàng tồn,
hết hạn để chuẩn bị đưa đi thanh lý.



Quy trình nghiệp vụ thống kê, báo cáo

Hình 1.7. Quy trình nghiệp vụ Thống kê,báo cáo
Theo định kì hoặc tùy thời điêm, Quản lý sẽ yêu cầu nhân viên thực hiện thống kê, báo
cáo tình hình hoạt động của khách sạn. Nhân viên có trách nhiệm thực hiện thống kê, lập báo
cáo thống kê trình lên Quản lý, kết thúc thống kê, báo cáo.
3. Yêu cầu hệ thống
• Yêu cầu chức năng
Hệ thống Quản lý dược phẩm được xây dựng nhằm thực hiện các chức năng sau:
 Chức năng quản lý hệ thống
 Đăng nhập/Đăng xuất
 Khởi tạo User
 Xóa User
 Hiệu chỉnh User
 Chức năng cập nhật danh mục
 Danh mục Nhân viên
 Danh muc Phòng
 Danh mục Khách hàng (Du khách, Nhà cung cấp)
 Danh mục Hàng hóa – Dịch vụ
 Danh mục Chứng từ
 Danh mục người sử dụng

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">

<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>

 Chức năng xử lí.
 Đặt phịng
 Check-in
 Check-out
 Phục vụ phịng
 Nhập hàng
 Xuất hàng
 Thanh lý hàng
 Tìm kiếm thơng tin (khác hàng, phịng, nhân viên, thiết bị, dịch vụ...)
 Thống kê, báo cáo
• Yêu cầu phi chức năng
 Hạn chế thấp nhất các sai sót có thể xảy ra trong quá trình sử dụng chương trình.
 Đảm bảo đúng quy trình nghiệp vụ.
 Chương trình chay ổn định, chính xác, an tồn.
 Giao diện thân thiện, dễ sử dụng,
 Chương trình có chế độ mã hóa dữ liệu, bảo mật thông tin.
4. Xây dựng biểu đồ Use case
Mô hình sơ đồ use case quản lý khách sạn
a. Tại Bộ phận Lễ tân

Downloaded by Nguynhavy Ha Vy ()

<Layout>
<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>

<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>

</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

b. Tại Bộ phận Kế toán

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>

<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

c. Tại Bộ phận Kinh doanh

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">

<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

d. Tại Bộ phận Nhân sự

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>

</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">

<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

3. Đặc tả use case quản lý khách sạn
a. Use case quản lý đăng nhập
 Đối tượng sử dụng (actor) bao gồm: Lễ tân, nhân viên kinh doanh, Nhân viên Nhân sự,
NV Kế toán, Nhân viên Dịch vụ.
 Use case này mô tả các bước đăng nhập của các actor vào hệ thống.
 Các bước thực hiện:
+ Hệ thống yêu cầu actor cung cấp thông tin đăng nhập gồm tên đăng nhập và mật
khẩu.
+ Actor nhập xong thông tin đăng nhập và click nút đăng nhập.
+ Hệ thống check lại thông tin đăng nhập và thông báo thành công/thất bại cho actor.
Nếu đăng nhập thành công hệ thống dựa trên thông tin đăng nhập sẽ đồng thời phân

quyền tùy theo loại nhân viên. Nếu đăng nhập thất bại, hệ thống sẽ hiện thông báo cho
người dùng và yêu cầu đăng nhập lại.
b. Use case Đăng xuất
 Đối tượng sử dụng (Actor) bao gồm các thành viên trong use case đăng nhập.
 Use case này mô tả việc đăng xuất khỏi hệ thống.
 Các bước thực hiện:
+ Actor thực hiện chức năng đăng xuất khỏi hệ thống.

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>

+ Hệ thống hiển thị yêu cầu xác nhận từ actor

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">

<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">

<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

+ Actor dùng xác nhận đăng xuất
+ Hệ thống đăng xuất tài khoản actor khỏi hệ thống. Nếu Actor khơng xác nhận đăng
xuất thì hệ thống sẽ giữ nguyên hiện trạng.
c. Use case Đặt phòng
 Đối tượng sử dụng: Lễ tân
 Use case này cho phép bộ phận lễ tân tiếp nhận việc đặt phòng trước của khách hàng.
 Các bước thực hiện:
+ Bộ phận Lễ tân đăng nhập vào hệ thống
+ Chọn chức năng đặt phòng cho khách hàng
+ Hệ thống hiển thị form yêu cầu nhập thơng tin khách hàng và ngày nhận phịng. Bao
gồm: Số CMND; Họ tên; Địa chỉ; SĐT.
+ Bộ phận lễ tân nhập thơng tin và ngày nhận phịng của khách đầy đủ theo form
+ Hệ thống tự động kiểm tra thông tin phòng ngày mà khách hàng yêu cầu, đồng thời
lọc danh sách các loại phòng và các phòng tương ứng mà khách hàng có thể th vào
ngày đó.
TH1: Cịn loại phòng mà khách hàng yêu cầu:
+ Lễ tân chọn phòng theo yêu cầu của khách hàng đã đặt.
+ Click nút “Đăng ký” để hồn tất việc đặt phịng trước của khách.
+ Hệ thống kiểm tra dữ liệu lễ tân vừa nhập và lưu lại thơng tin đặt phịng của khách.

Nếu thông tin khách hàng đã tồn tại trong hệ thống thì sẽ khơng lưu thơng tin khách
hàng nữa mà chỉ lưu thơng tin đặt phịng.
TH2: Loại phịng mà khách hàng yêu cầu đã hết phòng trống:
+ Hệ thống sẽ báo hết loại phòng đã chọn và cảnh báo để yêu cầu chọn loại phịng khác.
+ Lễ tân sẽ thơng báo cho khách và tiếp tục tìm kiếm loại phịng khác hoặc thời gian
khác nếu khách hàng yêu cầu. Nếu khách hàng khơng cịn nhu cầu thực hiện hủy phiếu
đăng ký.
+ Hệ thống thông báo và yêu cầu thực hiện lại.

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">

<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>

<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

d. Use case kiểm tra tình trạng phịng
 Đối tượng sử dụng: toàn bộ hệ thống
 Use case này cung cấp thơng tin về tình trạng phịng của 1 phịng bất kỳ nào đó cho
các actor.
 Các bước thực hiện:
+ Actor đăng nhập vào hệ thống
+ Actor chọn chức năng “Đặt phòng” hoặc “Thuê phòng” với một phòng.

+ Hệ thống sẽ tìm kiếm thơng tin phịng dựa vào mã phịng và phản hổi lại tình trạng
hiện tại của phòng (đang ở, đã được đặt trước hoặc còn trống)
+ Kết thúc use case
e. Use case tìm thơng tin đặt phòng
 Đối tượng sử dụng: Lễ tân
 Use case này cho phép lấy thơng tin đặt phịng của một khách hàng đến nhận phịng
mà đã đặt phịng trước đó.
 Các bước thực hiện:
+ Lễ tân thực hiện chức năng đăng ký phịng đặt trước, chọn chức năng “Tìm thơng tin
đặt phòng”
+ Lễ tân nhập số CMND của khách hàng để tiến hành tìm thơng tin đặt phịng.
+ Hệ thống tìm kiếm thơng tin đặt phịng của khách hàng và trả về kết quả
f. Use case Lập phiếu dịch vụ

 Đối tượng sử dụng: Lễ tân
 Use case này cho phép bộ phận lễ tân tiếp nhận yêu cầu và lập phiếu sử dụng dịch vụ
của khách hàng.
 Các bước thực hiện:
+ Bộ phận lễ tân đăng nhập hệ thống và chọn chức năng lập phiếu dịch vụ.
+ Hệ thống sẽ tạo ra phiếu dịch vụ ứng với thông tin nhận phịng tương ứng và hiển thị
thơng tin ra để lễ tân xem, đồng thời yêu cầu lễ tân chọn các dịch vụ mà khách hàng yêu
cầu.
+ Nhân viên click chọn “thêm phiếu dịch vụ”
+ Hệ thống lưu lại phiếu sử dụng dịch vụ, đồng thời lưu thông tin chi tiết xuống “Chi
tiết phiếu dịch vụ”.
+ Kết thúc Use case.

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>

</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

+ Lưu thông tin phiếu sử dụng dịch vụ của khách hàng vào hệ thống nếu use case thực
hiện thành công.
g. Use case Thống kê doanh thu
 Đối tượng: Nhân viên Kế toán
 Use case này cho phép nhân viên kế toán thống kê doanh thu của khách sạn theo yêu
cầu của quản lý.
 Các bước thực hiện:
+ Nhân viên kế toán đăng nhập hệ thống và chọn nút “Thống kê”
+ Hệ thống hiển thị menu thống kê: theo ngày, theo tháng, theo quý, theo năm.
+ Nhân viên kế toán chọn một trong các mục.
+ Hệ thống sẽ thống kê và in ra giấy.
5. Xây dựng biểu đồ tương tác
5.1. Biểu đồ trình tự

 Biều đồ trình tự Khởi động hệ thống

Hình 5.1. Biểu đồ trình tự Khởi động hệ thống.


 Biểu đồ trình tự Đăng nhập

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>

<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>

<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

Hình 5.2. Biểu đồ trình tự Đăng nhập





Biểu đồ trình tự Đóng hệ thống

Hình 5.3. Biểu đồ trình tự Đóng hệ thống.
Biểu đồ trình tự Checkin

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">

<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>

<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>



Hình 5.4. Biểu đồ trình tự Check in.
Biểu đồ trình tự Check out

Hình 5.5. Biểu đồ trình tự Check out.

5.2 Biểu đồ trạng thái
 Biểu đồ trạng thái phòng

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>

<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>

</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

Hình 5.2.1. Biểu đồ trạng thái Phịng.

 Biểu đồ trạng thái thiết bị phịng

Hình 5.2.2. Biểu đồ cộng tác Đăng nhập hệ thống.


 Biểu đồ trạng thái Nhân viên

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">

<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>

</Group>

Hình 5.2.3. Biểu đồ trạng thái Nhân viên.
 Biểu đồ trạng thái Khách Hàng

Hình 5.2.4. Biểu đồ trạng thái Khách hàng

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>

 Biểu đồ trạng thái Dịch Vụ

Hình 5.2.5. Biểu đồ trạng thái Dịch Vụ
6. Xây dựng biểu đồ lớp
-Biểu đồ lớp tổng quát

Downloaded by Nguynhavy Ha Vy ()

<Layout>

<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">

<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">

<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>

<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

-Biểu đồ lớp cho ca sử dụng đăng nhập

-Biểu đồ lớp tham gia ca sử dụng thêm hồ sơ nhân viên

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>

</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>

<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

-Biểu đồ lớp cho ca sử dụng thêm hợp đồng lao động

Downloaded by Nguynhavy Ha Vy ()


lOMoARcPSD|16911414
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">

<Color blue="66" green="66" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
<Component id="jScrollPane8" alignment="1" min="-2" pref="157" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="44" max="-2" attributes="0"/>
<Component id="jLabel19" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane7" min="-2" pref="157" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="42" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>

<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton6" min="-2" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
<EmptySpace type="separate" max="-2" attributes="0"/>
<Component id="jComboBox1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel6" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="jButton7" min="-2" max="-2" attributes="0"/>
</Group>

-Biểu đồ lớp cho ca sử dụng khen thưởng kỉ luật

Downloaded by Nguynhavy Ha Vy ()


×