-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkRequest.java
More file actions
29 lines (26 loc) · 1.01 KB
/
WorkRequest.java
File metadata and controls
29 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package TaskManagerProject;
import java.time.LocalDateTime;
import java.util.UUID;
class WorkRequest {
private UUID requestId;
private Employee employee;
private String requestType;
private LocalDateTime startTime;
private LocalDateTime endTime;
private String reason;
private String status;
public WorkRequest(Employee employee, String requestType, LocalDateTime startTime, LocalDateTime endTime, String reason) {
this.requestId = UUID.randomUUID();
this.employee = employee;
this.requestType = requestType.toUpperCase();
this.startTime = startTime;
this.endTime = endTime;
this.reason = reason;
this.status = "PENDING";
}
public UUID getRequestId() { return requestId; }
public Employee getEmployee() { return employee; }
public String getRequestType() { return requestType; }
public String getStatus() { return status; }
public void setStatus(String status) { this.status = status; }
}