0% found this document useful (0 votes)
19 views4 pages

J1.S.P0071 - Task Management

Uploaded by

huyenttthe180399
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

J1.S.P0071 - Task Management

Uploaded by

huyenttthe180399
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Type: Short Assignment

Code: 809784566.docx

LAB211 Assignment LOC:


Slot(s):
150
2

Title
Task management program of CCRM project
Background
(Module extracted from TienPhong Bank, ebank project)
Program Specifications
Write a program to manage the task and task type for employees include function to delete:
- The type of task: (ID, Name contains the following data fixed:

o ID Name

1 Code
2 Test
3 Design
4 Review
- Task: ID, TaskTypeID, Requirement Name, Date(dd-MM-yyyy), Plan From, Plan To, Assignee, Reviewer

o (ID = ID last task +1)

o Plan From, Plan To calculate from 8h -> 17h30  8.0, 8.5, 9.0, 9.5 … -> 17.5.
Function details:

Function 1: Display a menu and ask users to select an option.

 Users run the program. The program prompts users to select an option.
 Users select an option, perform Function 2.

Function 2: Perform function based on the selected option.

 Option 1: Add Task


o Prompt user to input the information requested Task (TaskTypeID, Requirement Name, Date, From, Plan
To Plan, Assignee, Expert)
o Check for valid data with the conditions:
 Check the TaskTypeID must exist (1-4).
 Information must be valid date in the format dd-MM-yyyy.
 Plan From must be less than Plan To and within 8 h-17 h 30 > 8.0, 8.5, 9.0, ⇔ 9.5 ...-> 17.5 .
o Add a Task on the program .
o Go back to the main screen.
 Option 2: Delete Task
o Request input the ID of the task to delete.
o Check for valid data with the conditions below:
 Id must exist in the DB.
o Delete the task.
o To return to the main screen.
 Option 3: Show task
o Show the task of ascending according to the ID and the required format interface.
o To return to the main screen.
 Option 4: Exit the program.

Expectation of User interface:


Guidelines

Student must implement methods


addTask
deleteTask
getDataTasks
in startup code.
Uses try-catch to catch NullPointerException, NumberFormatException
Use SimpleDateFormat to handle date.
Use wapper classes to test the value number.
Option 1: Add the task.
o Implement function: public int add Task (String requirementName, String assignee, String, String, String
taskTypeID expert date, String, the planTo planFrom String) throws Exception

 input :

 requirementName: Name of the requirement

 assignee: task assigned to.

 reviewer: Review task.

 taskTypeID: task type.

 date: task performed date

 planFrom: Start time.

 planTo: End time.


 Return value:

 id task

 Exception list

Option 2: Delete task.


o Implement function: public void deleteTask (String id) throws Exception

 input :

 id: id task

 Return value: Exception list

Option 3: Show task.


o Implement function: public function settings getDataTasks ()

 Return value: list of task

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy