Employee Management Application with Java, Transcriptions of Law

A java-based employee management application that allows users to perform various operations such as adding, editing, deleting, and searching for employee information. The application features a user-friendly interface with text fields, combo boxes, and buttons for data entry and manipulation. A detailed explanation of the program structure, including the main components (login and mainform frames, and the employee class), as well as the implementation of key functionalities like login, data entry, editing, and deletion. The testing plan covers various scenarios, including successful and failed cases, demonstrating the application's robustness. While the user interface may not be visually appealing, the focus is on providing a functional and practical solution for managing employee data effectively.

Typology: Transcriptions

2022/2023

Uploaded on 06/22/2023

bui-huy-hoang-fgw-hn
bui-huy-hoang-fgw-hn 🇻🇳

3 documents

1 / 36

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
ASSIGNMENT 1 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Object Oriented Programming with Java
Submission date
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Hoang Minh Tam
Student ID
GCH220344
Class
GCH1005
Assessor name
Do Hong Quan
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Hoang Minh Tam
Grading grid
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Employee Management Application with Java and more Transcriptions Law in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title Object Oriented Programming with Java

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Hoang Minh Tam Student ID GCH

Class GCH1005 Assessor name Do Hong Quan

Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice.

Student’s signature Hoang Minh Tam

Grading grid

Grade (0-10)

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: IV Signature:

I. Introduction

In this report, I will create an application that supports employee management using Java. This app helps me to know the exact information of my employees and control all their information

II. Requirement

  • The java program that I created helped me solve the following problems : o I can input data and I can edit or delete them easily o I can find the information about the employee I need through the search function o I can review the information entered through the add function
  • I will use a website which named “draw.io” to make use case diagram, after that I will explain it :

Figure 1 : Use case diagram

III. UI design

  • The first thing is the login The user interface design will include text fields for the user to enter their username and password, you can make your password appear by clicking a button which named “Show password”.

Figure 2 : Log in form

Figure 3 : Log in form when you do not tick "Show password"

Figure 4 : Log in form when you ticked "Show password"

IV. Implementation

a. Explain program structures

  • I made a Java application with primary components : 2 Jframes called login and MainForm, and a class called Employee.

Figure 6 : Program structure

Figure 7 : All the elements in the structure MainForm

b. Explain classes

  • Employee class :

Figure 9 : Employee class ( 1 / 2 )

Figure 10 : Employee class ( 2/2 )

  • Login model class :

Figure 11 : Show password and Exit function o In this function, default password part is set as "**", I use if in this case if user want to display password by pressing checkbox button, otherwise default password will change to " **"

o The function below simply stops the program if the user presses the. button

o In the login function, I use if else to check the attempt variable (the variable is defined in the 15th line of the code), if the user enters the correct username and password, it will go directly to the MainForm, otherwise, it will report error and if it is wrong more than 4 times, the system will lock the text field of the password and prevent the user from entering it again.

Figure 12 : Login algorithm

o In this function I use to design the table of the interface, I will default to the selected gender as Male and use the "Employee" class I have defined to define each object.

Figure 14 : Import library

Figure 15 : MainForm interface

o Here, I use idx so that the program gets that the column is selected or not, -1 means no function has been selected yet. Every time a function is deleted, it will jump to the next line, to the last row, it will automatically jump to the first function.

o As you can see, at the end of the line I use a function called "loadDataFromTable", I will show it in the image below.

Figure 16 : Delete function