├── .idea
├── .gitignore
├── vcs.xml
├── libraries
│ └── postgresql_42_6_0.xml
├── misc.xml
├── modules.xml
└── uiDesigner.xml
├── src
├── postgresql-42.6.0.jar
├── view
│ ├── App.java
│ ├── LoginGUI.java
│ ├── PensionGUI.java
│ ├── Layout.java
│ ├── UserGUI.java
│ ├── SeasonGUI.java
│ ├── PensionGUI.form
│ ├── UserGUI.form
│ ├── ADDRoomGUI.java
│ ├── SeasonGUI.form
│ ├── LoginGUI.form
│ ├── UserManagementGUI.java
│ ├── HotelAddGUI.java
│ ├── AddReservationGUI.java
│ ├── HotelUpdateGUI.java
│ ├── UpdateReservationGUI.java
│ └── ADDRoomGUI.form
├── entity
│ ├── Facility.java
│ ├── Pension.java
│ ├── Season.java
│ ├── User.java
│ ├── Hotel.java
│ ├── Reservation.java
│ └── Room.java
├── business
│ ├── FacilityManager.java
│ ├── SeasonManager.java
│ ├── PensionManager.java
│ ├── HotelManager.java
│ ├── ReservationManager.java
│ ├── UserManager.java
│ └── RoomManager.java
├── core
│ ├── ComboItem.java
│ ├── Db.java
│ └── Helper.java
└── dao
│ ├── FacilityDAO.java
│ ├── SeasonDao.java
│ ├── HotelDAO.java
│ ├── PensionDao.java
│ ├── RoomDao.java
│ ├── UserDAO.java
│ └── ReservationDao.java
├── tourismagencysystem.sql
├── .gitignore
├── Tourism_Agency_System.iml
└── README.md
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/src/postgresql-42.6.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahmedaliibrahim01/TourismAgencyManagementSystem/HEAD/src/postgresql-42.6.0.jar
--------------------------------------------------------------------------------
/tourismagencysystem.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahmedaliibrahim01/TourismAgencyManagementSystem/HEAD/tourismagencysystem.sql
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/view/App.java:
--------------------------------------------------------------------------------
1 | package view;
2 |
3 | import business.UserManager;
4 | import core.Helper;
5 |
6 | public class App {
7 | public static void main(String[] args) {
8 | Helper.setTheme();
9 | LoginGUI loginGUI = new LoginGUI();
10 | }
11 | }
--------------------------------------------------------------------------------
/.idea/libraries/postgresql_42_6_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ### IntelliJ IDEA ###
2 | out/
3 | !**/src/main/**/out/
4 | !**/src/test/**/out/
5 |
6 | ### Eclipse ###
7 | .apt_generated
8 | .classpath
9 | .factorypath
10 | .project
11 | .settings
12 | .springBeans
13 | .sts4-cache
14 | bin/
15 | !**/src/main/**/bin/
16 | !**/src/test/**/bin/
17 |
18 | ### NetBeans ###
19 | /nbproject/private/
20 | /nbbuild/
21 | /dist/
22 | /nbdist/
23 | /.nb-gradle/
24 |
25 | ### VS Code ###
26 | .vscode/
27 |
28 | ### Mac OS ###
29 | .DS_Store
--------------------------------------------------------------------------------
/Tourism_Agency_System.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/entity/Facility.java:
--------------------------------------------------------------------------------
1 | package entity;
2 |
3 | public class Facility {
4 | private int id;
5 | private String name;
6 |
7 | public Facility(int id, String name) {
8 | this.id = id;
9 | this.name = name;
10 | }
11 |
12 | public Facility() {
13 | }
14 |
15 | public Facility(String name) {
16 | this.name = name;
17 | }
18 |
19 | public int getId() {
20 | return id;
21 | }
22 |
23 | public void setId(int id) {
24 | this.id = id;
25 | }
26 |
27 | public String getName() {
28 | return name;
29 | }
30 |
31 | public void setName(String name) {
32 | this.name = name;
33 | }
34 |
35 | @Override
36 | public String toString() {
37 | return "Facility{" +
38 | "id=" + id +
39 | ", name='" + name + '\'' +
40 | '}';
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/entity/Pension.java:
--------------------------------------------------------------------------------
1 | package entity;
2 |
3 | import core.ComboItem;
4 |
5 | public class Pension {
6 | private int pension_id;
7 | private int hotel_id;
8 | private String pension_type;
9 |
10 | // Boş kurucu metot
11 | public Pension() {
12 | }
13 |
14 | // Parametreli kurucu metot
15 |
16 | public Pension(int pension_id, int hotel_id, String pension_type) {
17 | this.pension_id = pension_id;
18 | this.hotel_id = hotel_id;
19 | this.pension_type = pension_type;
20 | }
21 |
22 |
23 | // Getter ve Setter metotları
24 |
25 |
26 | public int getPension_id() {
27 | return pension_id;
28 | }
29 |
30 | public void setPension_id(int pension_id) {
31 | this.pension_id = pension_id;
32 | }
33 |
34 | public int getHotel_id() {
35 | return hotel_id;
36 | }
37 |
38 | public void setHotel_id(int hotel_id) {
39 | this.hotel_id = hotel_id;
40 | }
41 |
42 | public String getPension_type() {
43 | return pension_type;
44 | }
45 |
46 | public void setPension_type(String pension_type) {
47 | this.pension_type = pension_type;
48 | }
49 |
50 | public ComboItem getComboItem(){
51 | return new ComboItem(this.getPension_id(),this.getPension_type());}
52 |
53 | @Override
54 | public String toString() {
55 | return pension_type;
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/business/FacilityManager.java:
--------------------------------------------------------------------------------
1 | package business;
2 |
3 | import dao.FacilityDAO;
4 | import entity.Facility;
5 | import entity.Hotel;
6 |
7 | import java.util.ArrayList;
8 |
9 | // Manages operations related to facilities
10 | public class FacilityManager {
11 | private FacilityDAO facilityDao;
12 |
13 | public FacilityManager() {
14 | this.facilityDao = new FacilityDAO();
15 | }
16 |
17 | // Retrieves all facilities
18 | public ArrayList findAll() {
19 | return this.facilityDao.findAll();
20 | }
21 |
22 | // Retrieves facilities of a specific hotel by ID
23 | public ArrayList getHotelFacilities(int hotelId){
24 | return this.facilityDao.getHotelFacilities(hotelId);
25 | }
26 |
27 | // Provides information necessary for the table for hotel facilities
28 | public ArrayList