47b44ccaa0
<SRS> SRS02 : Employee Management </SRS> <Changes> - Added Payroll getHeaders, serialize and deserialize functions - Stored payrolls in DataStore - Loaded and saved payrolls along with employees - Linked payroll to employees during creation and load - Added employeeId to Payroll - Renamed TAG role to TALENT_ACQUISITION across the project - Added missing TalentExecutive case in Employee deserialization - Added constructor to TalentExecutive for FileManager integration - Renamed ID counters to m_uid for consistency - Updated salary values in ApplicationConfig </Changes> <Review> Smitha Mohan </Review>
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include "Enums.h"
|
|
|
|
class Ticket
|
|
{
|
|
private:
|
|
static int m_uid;
|
|
std::string m_id;
|
|
Enums::TicketType m_type;
|
|
std::string m_description;
|
|
Enums::TicketStatus m_status;
|
|
std::string m_employeeId;
|
|
public:
|
|
Ticket() : m_id("TKT" + std::to_string(++m_uid)), m_type(Enums::TicketType::UNKNOWN), m_description(""), m_status(Enums::TicketStatus::OPEN), m_employeeId("") {}
|
|
Ticket(
|
|
Enums::TicketType type,
|
|
const std::string& description,
|
|
const std::string& employeeId,
|
|
Enums::TicketStatus status)
|
|
: m_id("TKT" + std::to_string(++m_uid)), m_type(type), m_description(description), m_status(status), m_employeeId(employeeId) {}
|
|
const std::string& getTicketId() const;
|
|
Enums::TicketType getTicketType() const;
|
|
const std::string& getDescription() const;
|
|
Enums::TicketStatus getTicketStatus() const;
|
|
const std::string& getEmployeeId() const;
|
|
void setTicketId(const std::string& id);
|
|
void setTicketType(Enums::TicketType type);
|
|
void setTicketDescription(const std::string& description);
|
|
void setTicketStatus(Enums::TicketStatus status);
|
|
void setEmployeeId(const std::string& id);
|
|
}; |