Question: I want the code in java please Leave Application Module. This module allows all the active users to: - Apply leave. The rules for leave


I want the code in java please
Leave Application Module. This module allows all the active users to: - Apply leave. The rules for leave application are as described below: - fromDate must be earlier than or equivalent to toDate. - frombate must be later than the system date by the number of days as defined in applicationDay of the selected Leave Type. - Total number of days applied for a leave must not be more than the leave balance of the employee's leave entitlement record (leave balance = entitlement usage) . - Approverid must be automatically captured based on the description as below: Let A be the superior of B,B be the superior of C, and C be the superior of D. Scenario 1: When D applies for a leave which the approvalLevel is "1", C will be recorded the approver of the application. Scenario 2: When D applies for a leave which the approvalLevel is "2", B will be recorded the approver of the application. Scenario 3: When D applies for a leave which the approvalLevel is "3", A will be recorded the approver of the application. Scenario 4: When C applies for a leave which the approvalLevel is "2", A will be recorded the approver of the application. Scenario 5: When B applies for a leave which the approvalLevel is "1", A will be recorded the approver of the application. (20 marks) Edit leave. The rules for leave record edit are as described below: - List only the leave records which: (a) applicantID is equivalent to the logged-in employee's empID, and (b) status is " P " (pending) and (c) frompate is earlier than or equivalent to the system date for the user to select the leave record to edit. (5 marks) Cancel leave. The rules for leave record cancellation are as described below: - List only the leave records which: (a) applicantID is equivalent to the logged-in employee's empID, and (b) status is " P " (pending) or " A " (approved), and (c) frombate is earlier than or equivalent to the system date for the user to select the leave record to edit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
