MotorPH Payroll System is a Java-based payroll management system designed to automate employee salary calculations, deductions, attendance tracking, and leave management. The project follows Advanced Object-Oriented Programming (AOOP) principles and integrates with PostgreSQL 16 using JDK 23 to securely store and manage payroll data.
- Shekinah Jabez Florentino
- Lenie Joice Mendoza
- Maricar Punzalan
- Mary Jullianne Maycacayan
- Nicolas Lugtu
- Paulo Martin Molina
Under the guidance of: Sir Glenn Baluyot
Before running this project, ensure you have installed:
- Java Development Kit (JDK 23) → Download JDK 23
- PostgreSQL 16 → Download PostgreSQL 16
- Apache NetBeans (Recommended IDE) → Download NetBeans
Download the database dump file via the following link:
📥 Download motorph_db.dump
Do not move the file from your Downloads directory.
- Click on the Start Menu
- Type
PowerShell - Right-click on Windows PowerShell and select Run as Administrator
- Confirm the User Account Control (UAC) prompt
⚠️ Note: Running PowerShell as Administrator is required to avoid permission issues when restoring the database.
In PowerShell, run:
cd $HOME\DownloadsRun the following command to restore the database:
& "C:\Program Files\PostgreSQL\16\bin\pg_restore.exe" -U postgres -d postgres "motorph_db.dump"- This assumes that PostgreSQL is installed in the default location (
C:\Program Files\PostgreSQL\16\). - If prompted, enter your PostgreSQL password.
- The database will be restored under the name "motorph_db" (you can modify this if needed).
- This assumes that the admin role is set up in PostgreSQL, as shown in pgAdmin under Login/Group Roles.
- If the
adminrole does not exist, create it manually in pgAdmin:- Open pgAdmin.
- In the left panel, expand your server.
- Connect to PostgreSQL 16.
- Scroll down, then right-click on Login/Group Roles.
- Select Create → Login/Group Role.
- In the Name field, enter:
admin - Click Save.
- If the
If you already have PostgreSQL installed and prefer to use its built-in Query Tool:
-
Download the SQL file from the following link: 📥 Download motorph_db.sql
-
Open pgAdmin (or your preferred PostgreSQL client).
-
Connect to your PostgreSQL 16 server.
-
Right-click on Databases and select Create → Database.... Name the new database
motorph_db. -
Right-click on the newly created
motorph_dband select Query Tool. -
In the Query Tool window:
- Click on the "Open file" icon (usually looks like an open folder) in the toolbar.
- Navigate to your Downloads folder (or wherever you saved
motorph_db.sql). - Select the
motorph_db.sqlfile and click "Open". The SQL commands will now appear in the Query Editor pane. - To execute the contents, click on the "Execute/Refresh" icon (usually a lightning bolt or play button). This will run all the SQL commands in the file, creating the necessary tables and inserting data into your
motorph_dbdatabase.
In NetBeans, navigate to:
MotorPH_AOOP> Other Sources > src/main/resources > config
Ensure your db.properties file matches your PostgreSQL setup:
db.url=jdbc:postgresql://localhost:5432/motorph_db
db.username=postgres
db.password=[yourpassword]This document outlines the strategic roadmap for scaling the MotorPH Payroll System. It includes proposed infrastructure changes, resource allocation, and branch-level coordination to ensure a seamless rollout.
This document contains detailed unit test cases used to validate key modules in the MotorPH Payroll System. It ensures that all components perform correctly and catch errors early during the development cycle.
This document serves as the official Software Requirements Specification (SRS) for the expanded MotorPH Payroll System. It includes purpose, scope, user needs, features, non-functional requirements, and diagrams.