├── images
├── .gitignore
├── .idea
├── .gitignore
├── misc.xml
├── libraries
│ └── postgresql_42_7_3.xml
├── modules.xml
└── uiDesigner.xml
├── TurizmAcente-master
├── .idea
│ ├── .gitignore
│ ├── vcs.xml
│ ├── libraries
│ │ └── postgresql_42_7_3.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── uiDesigner.xml
├── 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
│ │ ├── UserManager.java
│ │ ├── PropertyManager.java
│ │ └── ReserManager.java
│ ├── view
│ │ ├── UserManagementView.java
│ │ ├── LoginView.java
│ │ ├── RevervationUpdateView.java
│ │ ├── UserManagementView.form
│ │ ├── Layout.java
│ │ ├── AdminView.java
│ │ ├── LoginView.form
│ │ ├── AdminView.form
│ │ ├── GuestInfoAddView.java
│ │ ├── ReservationAdd.java
│ │ ├── RevervationUpdateView.form
│ │ └── HotelAddView.java
│ └── dao
│ │ ├── UserDao.java
│ │ ├── RoomDao.java
│ │ ├── TypeDao.java
│ │ ├── HotelDao.java
│ │ ├── ReserDao.java
│ │ ├── SeasonDao.java
│ │ └── PropertyDao.java
├── postgresql-42.7.3.jar
├── .gitignore
├── TurizmAcente.iml
└── TurizmAcente-master.iml
├── tourismagencydb
├── taGirisEkranı.png
├── taOdaEklemeEkran.png
├── taOtelEklemeEkran.png
├── taOtelYönetimEkran.png
├── taYöeneticiPaneli.png
├── taOtelDuzenlemeEkranaı.png
├── taRezerGuncellemeEkranı.png
├── taRezervasonBilgiEkranı.png
├── taMisafirBilgiKayıtEkranı.png
├── taRezervasyonEklemeEkran.png
├── taOdaYönetimveOdaAramaEkranı.png
├── taKullanıcıEklemeDuzuenlemeEkrana.png
├── TurizmAcente-master.iml
├── README
└── Requirements_and_Answers
/images:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Project exclude paths
2 | /out/
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/tourismagencydb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/tourismagencydb
--------------------------------------------------------------------------------
/taGirisEkranı.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taGirisEkranı.png
--------------------------------------------------------------------------------
/taOdaEklemeEkran.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taOdaEklemeEkran.png
--------------------------------------------------------------------------------
/taOtelEklemeEkran.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taOtelEklemeEkran.png
--------------------------------------------------------------------------------
/taOtelYönetimEkran.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taOtelYönetimEkran.png
--------------------------------------------------------------------------------
/taYöeneticiPaneli.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taYöeneticiPaneli.png
--------------------------------------------------------------------------------
/taOtelDuzenlemeEkranaı.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taOtelDuzenlemeEkranaı.png
--------------------------------------------------------------------------------
/taRezerGuncellemeEkranı.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taRezerGuncellemeEkranı.png
--------------------------------------------------------------------------------
/taRezervasonBilgiEkranı.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taRezervasonBilgiEkranı.png
--------------------------------------------------------------------------------
/taMisafirBilgiKayıtEkranı.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taMisafirBilgiKayıtEkranı.png
--------------------------------------------------------------------------------
/taRezervasyonEklemeEkran.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taRezervasyonEklemeEkran.png
--------------------------------------------------------------------------------
/taOdaYönetimveOdaAramaEkranı.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taOdaYönetimveOdaAramaEkranı.png
--------------------------------------------------------------------------------
/TurizmAcente-master/src/admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/TurizmAcente-master/src/admin.png
--------------------------------------------------------------------------------
/TurizmAcente-master/src/patika.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/TurizmAcente-master/src/patika.png
--------------------------------------------------------------------------------
/taKullanıcıEklemeDuzuenlemeEkrana.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/taKullanıcıEklemeDuzuenlemeEkrana.png
--------------------------------------------------------------------------------
/TurizmAcente-master/postgresql-42.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gokselgurluk/TurizmAcente-master/HEAD/TurizmAcente-master/postgresql-42.7.3.jar
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/libraries/postgresql_42_7_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TurizmAcente-master/.idea/libraries/postgresql_42_7_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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/src/Main.java:
--------------------------------------------------------------------------------
1 | import business.UserManager;
2 | import core.Helper;
3 | import view.AdminView;
4 | import view.HotelView;
5 | import view.LoginView;
6 |
7 | public class Main {
8 |
9 |
10 |
11 | public static void main(String[] args) {
12 | Helper.setTheme();
13 | LoginView loginView = new LoginView();
14 | //UserManager userManager =new UserManager();
15 | //HotelView employee = new HotelView(userManager.findByLogin("a","a"));
16 |
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/TurizmAcente-master/TurizmAcente.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TurizmAcente-master.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TurizmAcente-master/TurizmAcente-master.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | private static Db instance = null;
9 | private Connection connection = null;
10 | private final String DB_URL = "jdbc:postgresql://localhost/tourismagencydb";
11 | private final String DB_USERNAME = "postgres";
12 | private final String DB_PASS = "postgres";
13 |
14 |
15 | private Db() {
16 | try {
17 | this.connection = DriverManager.getConnection(DB_URL, DB_USERNAME, DB_PASS);
18 | } catch (SQLException e) {
19 | System.out.println(e.getMessage());
20 | }
21 |
22 |
23 | }
24 |
25 | public Connection getConnection() {
26 | return connection;
27 | }
28 |
29 | public static Connection getInstance() {
30 |
31 | try {
32 | if (instance == null || instance.getConnection().isClosed()) {
33 | instance = new Db();
34 |
35 | }
36 | } catch (SQLException e) {
37 | System.out.println(e.getMessage());
38 | }
39 | return instance.getConnection();
40 | }
41 |
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/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/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/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 | // this.con = Db.getInstance();
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