├── TurizmAcente-master
├── .idea
│ ├── .name
│ ├── .gitignore
│ ├── vcs.xml
│ ├── libraries
│ │ ├── postgresql_42_7_3.xml
│ │ └── postgresql_42_7_31.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── uiDesigner.xml
├── img.png
├── img_1.png
├── img_2.png
├── img_3.png
├── img_4.png
├── img_5.png
├── img_6.png
├── img_7.png
├── src
│ ├── admin.png
│ ├── patika.png
│ ├── Main.java
│ ├── core
│ │ ├── ComboItem.java
│ │ ├── Db.java
│ │ └── Helper.java
│ ├── entity
│ │ ├── Types.java
│ │ ├── User.java
│ │ ├── Season.java
│ │ ├── Hotel.java
│ │ ├── Property.java
│ │ ├── Room.java
│ │ └── Reser.java
│ ├── business
│ │ ├── TypeManager.java
│ │ ├── SeasonManager.java
│ │ ├── HotelManager.java
│ │ ├── RoomManager.java
│ │ ├── PropertyManager.java
│ │ ├── UserManager.java
│ │ └── ReserManager.java
│ ├── view
│ │ ├── LoginView.java
│ │ ├── RevervationUpdateView.java
│ │ ├── UserManagementView.java
│ │ ├── Layout.java
│ │ ├── UserManagementView.form
│ │ ├── AdminView.java
│ │ ├── LoginView.form
│ │ ├── AdminView.form
│ │ ├── GuestInfoAddView.java
│ │ ├── RevervationUpdateView.form
│ │ ├── ReservationAdd.java
│ │ └── RoomAdd.form
│ └── dao
│ │ ├── UserDao.java
│ │ ├── TypeDao.java
│ │ ├── RoomDao.java
│ │ ├── SeasonDao.java
│ │ ├── HotelDao.java
│ │ ├── ReserDao.java
│ │ └── PropertyDao.java
├── postgresql-42.7.3.jar
├── turizmacentesistemi.sql
├── .gitignore
├── TurizmAcente-master.iml
├── TurizmAcente.iml
└── README.md
├── img.png
├── img_1.png
├── img_2.png
├── img_3.png
├── img_4.png
├── img_5.png
├── img_6.png
├── img_7.png
├── rohat.png
├── rohatt.jpg
├── rohatt.png
├── rohattt.jpg
├── turizm.jpg
├── LICENSE
└── README.md
/TurizmAcente-master/.idea/.name:
--------------------------------------------------------------------------------
1 | Main.java
--------------------------------------------------------------------------------
/img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img.png
--------------------------------------------------------------------------------
/img_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_1.png
--------------------------------------------------------------------------------
/img_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_2.png
--------------------------------------------------------------------------------
/img_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_3.png
--------------------------------------------------------------------------------
/img_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_4.png
--------------------------------------------------------------------------------
/img_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_5.png
--------------------------------------------------------------------------------
/img_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_6.png
--------------------------------------------------------------------------------
/img_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/img_7.png
--------------------------------------------------------------------------------
/rohat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/rohat.png
--------------------------------------------------------------------------------
/rohatt.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/rohatt.jpg
--------------------------------------------------------------------------------
/rohatt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/rohatt.png
--------------------------------------------------------------------------------
/rohattt.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/rohattt.jpg
--------------------------------------------------------------------------------
/turizm.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/turizm.jpg
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/TurizmAcente-master/img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_1.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_2.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_3.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_4.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_5.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_6.png
--------------------------------------------------------------------------------
/TurizmAcente-master/img_7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/img_7.png
--------------------------------------------------------------------------------
/TurizmAcente-master/src/admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/src/admin.png
--------------------------------------------------------------------------------
/TurizmAcente-master/src/patika.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/src/patika.png
--------------------------------------------------------------------------------
/TurizmAcente-master/postgresql-42.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/postgresql-42.7.3.jar
--------------------------------------------------------------------------------
/TurizmAcente-master/turizmacentesistemi.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rohatdgnr/TourismAgency/HEAD/TurizmAcente-master/turizmacentesistemi.sql
--------------------------------------------------------------------------------
/TurizmAcente-master/src/Main.java:
--------------------------------------------------------------------------------
1 | import core.Helper;
2 | import view.LoginView;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 | Helper.setTheme();
8 | LoginView loginView = new LoginView();
9 |
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/libraries/postgresql_42_7_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/libraries/postgresql_42_7_31.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.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
--------------------------------------------------------------------------------
/TurizmAcente-master/TurizmAcente-master.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TurizmAcente-master/TurizmAcente.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/TurizmAcente-master/src/core/ComboItem.java:
--------------------------------------------------------------------------------
1 | package core;
2 |
3 | public class ComboItem {
4 |
5 | private int key;
6 | private String value;
7 |
8 | public ComboItem(int key, String value){
9 | this.key = key;
10 | this.value = value;
11 | }
12 |
13 | public int getKey() {
14 | return key;
15 | }
16 |
17 | public void setKey(int key) {
18 | this.key = key;
19 | }
20 |
21 | public String getValue() {
22 | return value;
23 | }
24 |
25 | public void setValue(String value) {
26 | this.value = value;
27 | }
28 |
29 | public String toString(){
30 | return this.value;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Rohat
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/TurizmAcente-master/src/entity/Types.java:
--------------------------------------------------------------------------------
1 | package entity;
2 |
3 | public class Types {
4 | private int typeId;
5 | private int hotel_id;
6 | private String typeName;
7 |
8 |
9 | public Types() {
10 | }
11 |
12 | public Types(int typeId,String typeName, int hotelId) {
13 | this.typeId = typeId;
14 | this.typeName = typeName;
15 | this.hotel_id = hotelId;
16 | }
17 |
18 | public int getTypeId() {
19 | return typeId;
20 | }
21 |
22 | public void setTypeId(int typeId) {
23 | this.typeId = typeId;
24 | }
25 |
26 | public int getHotel_id() {
27 | return hotel_id;
28 | }
29 |
30 | public void setHotel_id(int hotel_id) {
31 | this.hotel_id = hotel_id;
32 | }
33 |
34 | public String getTypeName() {
35 | return typeName;
36 | }
37 |
38 | public void setTypeName(String typeName) {
39 | this.typeName = typeName;
40 | }
41 |
42 | @Override
43 | public String toString() {
44 | return "Types{" +
45 | "typeId=" + typeId +
46 | ", hotel_id=" + hotel_id +
47 | ", typeName='" + typeName + '\'' +
48 | '}';
49 | }
50 | }
--------------------------------------------------------------------------------
/TurizmAcente-master/src/core/Db.java:
--------------------------------------------------------------------------------
1 | package core;
2 |
3 | import java.sql.Connection;
4 | import java.sql.DriverManager;
5 | import java.sql.SQLException;
6 |
7 | public class Db {
8 | // Değerlendirme Formu 6 Projede veritabanı kullanılmış ve DB bağlantı konfigürasyonu doğru bir şekilde yapılmış
9 | private static Db instance = null;
10 | private Connection connection = null;
11 | private final String DB_URL = "jdbc:postgresql://localhost:5432/turizmacentesistemi";
12 | private final String DB_USERNAME = "postgres";
13 | private final String DB_PASS = "1234";
14 |
15 |
16 | private Db() {
17 | try {
18 | this.connection = DriverManager.getConnection(DB_URL, DB_USERNAME, DB_PASS);
19 | } catch (SQLException e) {
20 | System.out.println(e.getMessage());
21 | }
22 |
23 |
24 | }
25 |
26 | public Connection getConnection() {
27 | return connection;
28 | }
29 |
30 | public static Connection getInstance() {
31 |
32 | try {
33 | if (instance == null || instance.getConnection().isClosed()) {
34 | instance = new Db();
35 |
36 | }
37 | } catch (SQLException e) {
38 | System.out.println(e.getMessage());
39 | }
40 | return instance.getConnection();
41 | }
42 |
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/TurizmAcente-master/README.md:
--------------------------------------------------------------------------------
1 | #Patika Turizm Acentesi Turizm Acente Sistemi
2 | Bu proje, Patika Turizm Acentesi'nin günlük operasyonlarını dijital bir platforma taşımak için geliştirilmiş bir
3 | yazılım çözümüdür. Bu yazılım, otel yönetimi, oda yönetimi, dönem yönetimi, fiyat yönetimi, oda arama ve rezervasyon
4 | işlemleri gibi bir dizi özelliği içermektedir.
5 |
6 | Kullanılan Teknolojiler
7 | - Java
8 | - Java Swing (GUI)
9 | - PostgreSQL
10 |
11 | Kurulum
12 | - Bu projeyi klonlayın.
13 | - PostgreSQL veritabanında turizmacentesistemi adında bir veritabanı oluşturun.
14 | - turizmacentesistemi.sql dosyasını kullanarak veritabanı tablolarını oluşturun.
15 | Veritabanı bağlantısını yapılandırmak için DatabaseConnection.java dosyasını düzenleyin.
16 |
17 | Proje Yapısı
18 |
19 | - business: İş mantığını gerçekleştiren servis sınıfları
20 |
21 | - core: Dizini altında veritabanı oluşturma dosyası, bulunmaktadır.
22 |
23 | - dao: Veritabanı işlemlerini gerçekleştiren DAO (Data Access Object) sınıfları
24 |
25 | - entity: Veritabanı tablolarını temsil eden model sınıfları
26 |
27 | - views: Kullanıcı arayüzünü oluşturan Swing GUI sınıfları
28 |
29 | Projenin videoya alınmış hali aşağıdaki linkte mevcuttur.
30 |
31 | https://www.youtube.com/watch?v=RrVL1pAHLcM&t=4s
32 |
33 | Proje ile ilgili görseller :
34 |
35 | Giriş Ekranı
36 |
37 | 
38 |
39 | Admin Kullanıcısının Ekranı :
40 |
41 | 
42 |
43 | Employee(Çalışan) Kullanıcısın Ekranları :
44 |
45 | 
46 |
47 | 
48 |
49 | 
50 |
51 | 
52 |
53 | 
54 |
55 | 
56 |
57 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | # Patika Turizm Acentesi Turizm Acente Sistemi
6 |
7 | Bu proje, Patika Turizm Acentesi'nin günlük operasyonlarını dijital bir platforma taşımak için geliştirilmiş bir yazılım çözümüdür. Bu yazılım, otel yönetimi, oda yönetimi, dönem yönetimi, fiyat yönetimi, oda arama ve rezervasyon işlemleri gibi bir dizi özelliği içermektedir.
8 |
9 | # Kullanılan Teknolojiler
10 |
11 | - Java
12 | - Java Swing (GUI)
13 | - PostgreSQL
14 |
15 |
16 | # Kurulum
17 |
18 | - Bu projeyi klonlayın.
19 | - PostgreSQL veritabanında turizmacentesistemi adında bir veritabanı oluşturun.
20 | - turizmacentesistemi.sql dosyasını kullanarak veritabanı tablolarını oluşturun. Veritabanı bağlantısını yapılandırmak için DatabaseConnection.java dosyasını düzenleyin.
21 |
22 |
23 | # Proje Yapısı
24 |
25 | - business: İş mantığını gerçekleştiren servis sınıfları
26 |
27 | - core: Dizini altında veritabanı oluşturma dosyası, bulunmaktadır.
28 |
29 | - dao: Veritabanı işlemlerini gerçekleştiren DAO (Data Access Object) sınıfları
30 |
31 | - entity: Veritabanı tablolarını temsil eden model sınıfları
32 |
33 | - views: Kullanıcı arayüzünü oluşturan Swing GUI sınıfları
34 |
35 |
36 | # Projenin videoya alınmış hali aşağıdaki linkte mevcuttur.
37 |
38 | - https://www.youtube.com/watch?v=RrVL1pAHLcM&t=4s
39 |
40 |
41 | # Proje ile ilgili görseller :
42 |
43 | - Giriş Ekranı
44 |
45 |
46 |
47 | - Admin Kullanıcısının Ekranı :
48 |
49 |
50 |
51 | - Employee(Çalışan) Kullanıcısın Ekranları :
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/TurizmAcente-master/src/entity/User.java:
--------------------------------------------------------------------------------
1 | package entity;
2 |
3 | public class User {
4 | private int userId;
5 | private String username;
6 | private String password;
7 | private Role role;
8 |
9 |
10 |
11 | public enum Role {
12 | admin,
13 | employee
14 | }
15 | public User() {
16 | }
17 | public User(String username, String password, Role role) {
18 | this.username = username;
19 | this.password = password;
20 | this.role = role;
21 | }
22 |
23 | public User(int userId, String username, String password, Role role) {
24 | this.userId = userId;
25 | this.username = username;
26 | this.password = password;
27 | this.role = role;
28 | }
29 |
30 | public int getUserId() {
31 | return userId;
32 | }
33 |
34 | public void setUserId(int userId) {
35 | this.userId = userId;
36 | }
37 |
38 | public String getUsername() {
39 | return username;
40 | }
41 |
42 | public void setUsername(String username) {
43 | this.username = username;
44 | }
45 |
46 | public String getPassword() {
47 | return password;
48 | }
49 |
50 | public void setPassword(String password) {
51 | this.password = password;
52 | }
53 |
54 | public Role getRole() {
55 | return role;
56 | }
57 |
58 | public void setRole(Role role) {
59 | this.role = role;
60 | }
61 |
62 | @Override
63 | public String toString() {
64 | return "User{" +
65 | "id=" + userId +
66 | ", username='" + username + '\'' +
67 | ", password='" + password + '\'' +
68 | ", role='" + role + '\'' +
69 | '}';
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/TurizmAcente-master/src/entity/Season.java:
--------------------------------------------------------------------------------
1 | package entity;
2 |
3 | import java.time.LocalDate;
4 |
5 | public class Season {
6 |
7 | private int seasonId;
8 | private LocalDate season_start;
9 | private LocalDate season_end;
10 | private int hotel_id;
11 | private String seasonName;
12 |
13 |
14 |
15 | public Season() {
16 | }
17 |
18 | public Season(int seasonId, LocalDate season_start, LocalDate season_end, String seasonName , int hotel_id) {
19 | this.seasonId = seasonId;
20 | this.season_start = season_start;
21 | this.season_end = season_end;
22 | this.seasonName = seasonName;
23 | this.hotel_id = hotel_id;
24 | }
25 |
26 |
27 | public String getSeasonName() {
28 | return seasonName;
29 | }
30 |
31 | public void setSeasonName(String seasonName) {
32 | this.seasonName = seasonName;
33 | }
34 |
35 | public int getSeasonId() {
36 | return seasonId;
37 | }
38 |
39 | public void setSeasonId(int seasonId) {
40 | this.seasonId = seasonId;
41 | }
42 |
43 | public LocalDate getSeason_start() {
44 | return season_start;
45 | }
46 |
47 | public void setSeason_start(LocalDate season_start) {
48 | this.season_start = season_start;
49 | }
50 |
51 | public int getHotel_id() {
52 | return hotel_id;
53 | }
54 |
55 | public void setHotel_id(int hotel_id) {
56 | this.hotel_id = hotel_id;
57 | }
58 |
59 |
60 |
61 | public LocalDate getSeason_end() {
62 | return season_end;
63 | }
64 |
65 | public void setSeason_end(LocalDate season_end) {
66 | this.season_end = season_end;
67 | }
68 |
69 | @Override
70 | public String toString() {
71 | return "Season{" +
72 | "seasonId=" + seasonId +
73 | ", season_start=" + season_start +
74 | ", season_end=" + season_end +
75 | ", hotel_id=" + hotel_id +
76 | ", seasonName='" + seasonName + '\'' +
77 |
78 | '}';
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/TurizmAcente-master/src/business/TypeManager.java:
--------------------------------------------------------------------------------
1 | package business;
2 |
3 | import core.Helper;
4 | import dao.TypeDao;
5 | import entity.Types;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | public class TypeManager {
11 | private TypeDao typeDao ;
12 | public TypeManager() {
13 |
14 | this.typeDao = new TypeDao();
15 |
16 | }
17 |
18 |
19 | public ArrayList findAll(int id){
20 | return this.typeDao.findAll(id);
21 | }
22 |
23 |
24 | public ArrayList