Package records.util

Class ID_Generator

java.lang.Object
records.util.ID_Generator

public class ID_Generator extends Object
  • Constructor Details

    • ID_Generator

      public ID_Generator()
  • Method Details

    • generatePayrollID

      public static String generatePayrollID(int employeeID, String payrollPeriod)
      Generates a unique payroll ID for the specified employee and current month.
      Parameters:
      employeeID - the ID of the employee
      Returns:
      a unique payroll ID
    • generatePayrollID_WithMonth

      public static String generatePayrollID_WithMonth(int employeeID, int month, String payrollPeriod)
      Generates a unique payroll ID for the specified employee and period.
      Parameters:
      employeeID - the ID of the employee
      month - the month for which the ID is generated
      payrollPeriod - the period for which the ID is generated
      Returns:
      a unique payroll ID
    • generateAttendanceID

      public static String generateAttendanceID(int employeeID)
      Generates a unique attendance ID for the specified employee and current date.
      Parameters:
      employeeID - the ID of the employee
      Returns:
      a unique attendance ID
    • generateLeaveID

      public static String generateLeaveID(int employeeID)
      Generates a unique leave ID for the specified employee and current date and time.
      Parameters:
      employeeID - the ID of the employee
      Returns:
      a unique leave ID