├── EERDiagram_Bank.PNG ├── MySql_Bank.txt ├── README.md ├── bank.sql ├── build.xml ├── build ├── built-jar.properties └── classes │ ├── DB │ ├── DBConnection.class │ ├── DeleteDatabase.class │ ├── DisplayDatabase$1.class │ ├── DisplayDatabase.class │ └── QueryDatabase.class │ └── bankmanagement │ ├── AccountHolderScene.fxml │ ├── AccountHolderSceneController.class │ ├── BankMain.fxml │ ├── BankMainController.class │ ├── BankManagement.class │ ├── BranchEmployeeScene.fxml │ ├── BranchEmployeeSceneController.class │ ├── ServiceScene.fxml │ ├── ServiceSceneController.class │ ├── TransactoinScene.fxml │ ├── TransactoinSceneController.class │ └── style.css ├── dist ├── BankManagement.html ├── BankManagement.jar ├── BankManagement.jnlp ├── lib │ ├── controlsfx-8.20.8.jar │ └── mysql-connector-java-5.1.23-bin.jar └── web-files │ ├── dtjava.js │ ├── error.png │ ├── get_java.png │ ├── get_javafx.png │ ├── javafx-chrome.png │ ├── javafx-loading-100x100.gif │ ├── javafx-loading-25x25.gif │ ├── upgrade_java.png │ └── upgrade_javafx.png ├── lib ├── controlsfx-8.20.8.jar └── mysql-connector-java-6.0.4-bin.jar ├── manifest.mf ├── nbproject ├── build-impl.xml ├── configs │ ├── Run_as_WebStart.properties │ └── Run_in_Browser.properties ├── genfiles.properties ├── jfx-impl.xml ├── private │ ├── configs │ │ ├── Run_as_WebStart.properties │ │ └── Run_in_Browser.properties │ ├── private.properties │ └── private.xml ├── project.properties └── project.xml └── src ├── DB ├── DBConnection.java ├── DeleteDatabase.java ├── DisplayDatabase.java └── QueryDatabase.java └── bankmanagement ├── AccountHolderScene.fxml ├── AccountHolderSceneController.java ├── BankMain.fxml ├── BankMainController.java ├── BankManagement.java ├── BranchEmployeeScene.fxml ├── BranchEmployeeSceneController.java ├── ServiceScene.fxml ├── ServiceSceneController.java ├── TransactoinScene.fxml ├── TransactoinSceneController.java └── style.css /EERDiagram_Bank.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandandas27/Bank-Management-System/c25e1a14bc3bc0db680ddde451851e1926b60eaa/EERDiagram_Bank.PNG -------------------------------------------------------------------------------- /MySql_Bank.txt: -------------------------------------------------------------------------------- 1 | Create database bank 2 | 3 | 4 | CREATE TABLE `BranchTable` ( 5 | 6 | `Id` INT NOT NULL AUTO_INCREMENT, 7 | 8 | `Name` VARCHAR(120) NOT NULL, 9 | `BCode` VARCHAR(15) NOT NULL, 10 | 11 | `Address` VARCHAR(200) NOT NULL, 12 | 13 | PRIMARY KEY (`Id`)); 14 | 15 | 16 | CREATE TABLE `EmployeeTable` ( 17 | 18 | `Id` INT NOT NULL AUTO_INCREMENT, 19 | 20 | `Name` VARCHAR(50) NOT NULL, 21 | 22 | `Branch` VARCHAR(50) NOT NULL, 23 | 24 | PRIMARY KEY (`Id`)) ; 25 | 26 | 27 | CREATE TABLE `AccountTable` ( 28 | 29 | `Id` INT NOT NULL AUTO_INCREMENT, 30 | 31 | `Account_Number` VARCHAR(15) NOT NULL, 32 | `Account_Type` VARCHAR(15) NOT NULL, 33 | `BCode` VARCHAR(15) NOT NULL, 34 | `Name` VARCHAR(50) NOT NULL, 35 | 36 | `Gender` VARCHAR(10) NOT NULL, 37 | `DOB` Date, 38 | 39 | `Address` VARCHAR(50) NOT NULL, 40 | 41 | `Aadhar` VARCHAR(12) NOT NULL, 42 | 43 | `Balance` double NOT NULL, 44 | 45 | PRIMARY KEY (`Id`)) ; 46 | 47 | 48 | CREATE TABLE TransactionTable( 49 | `Id` INT NOT NULL AUTO_INCREMENT, 50 | 51 | `Date` Date NOT NULL, 52 | `Account_Num` Varchar(15), 53 | `Transaction_Type` Varchar(15), 54 | `Amount` double, 55 | PRIMARY KEY (`Id`)) ; 56 | 57 | 58 | CREATE TABLE ServiceTable( 59 | `Date` Date NOT NULL, 60 | `Account_Num` Varchar(15), 61 | `ServiceName` Varchar(100), 62 | `Description` Varchar(200), 63 | `Amount` double, 64 | `TransactionId` INT NOT NULL, 65 | INDEX par_ind (TransactionId), 66 | CONSTRAINT fk_tranTable FOREIGN KEY (TransactionId) 67 | REFERENCES TransactionTable (Id) 68 | ON DELETE CASCADE 69 | ON UPDATE CASCADE 70 | ) ENGINE=INNODB; 71 | 72 | 73 | // truncate table which has foreign key contraints. 74 | 75 | SET FOREIGN_KEY_CHECKS = 0; 76 | truncate tableName; 77 | SET FOREIGN_KEY_CHECKS = 1; 78 | 79 | // done. 80 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bank-Management-System 2 | 3 | This is a Bank Management System Database Project. 4 | 5 | 6 | 7 | Abstract: The main aim of Bank Management Mini DBMS project is to keep record of customer transactions in the bank. 8 | 9 | We aim to demonstrate the use of create, read, update and delete MySQL operations through this project. 10 | 11 | Firstly, employee registration is done in the concern bank branch. 12 | 13 | Branch employee creates customer account in the bank, then customer can credit amount, debit amount and check balance. 14 | 15 | Customer can even use different services like insurance, loan, bill payments etc. 16 | 17 | 18 | 19 | 20 | Modules: 21 | 22 | 23 | Bank Management Mini DBMS Project contains 4 modules: 24 | 25 | 26 | 27 | 1. Account Holder: As the name suggests, a record of customer details. 28 | 29 | 2. Transaction: Transactions to be made by the customer (credit amount, debit etc). 30 | 31 | 3. Services: Additional services that customer may want like (insurance, loan etc.). 32 | 33 | 4. Branch/Employee : Manager/Employee details of the concern bank. 34 | 35 | 36 | 37 | 38 | SOFTWARE REQUIREMENTS: 39 | 40 | 41 | 42 | • Operating system : Windows XP/7/10. 43 | 44 | • Language : Java ( Install JDK 8 version) 45 | 46 | • IDE : Netbeans 8.2 / Eclipse 47 | 48 | • Database : MYSQL (Install XAMPP) 49 | 50 | 51 | 52 | 53 | 54 | 55 | Technologies used: 56 | 57 | 58 | 59 | • JavaFX 60 | 61 | • Mysql 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /bank.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.8.1 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Sep 06, 2018 at 08:58 AM 7 | -- Server version: 10.1.33-MariaDB 8 | -- PHP Version: 7.2.6 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Database: `bank` 23 | -- 24 | 25 | -- -------------------------------------------------------- 26 | 27 | -- 28 | -- Table structure for table `accounttable` 29 | -- 30 | 31 | CREATE TABLE `accounttable` ( 32 | `Id` int(11) NOT NULL, 33 | `Account_Number` varchar(15) NOT NULL, 34 | `Account_Type` varchar(15) NOT NULL, 35 | `BCode` varchar(15) NOT NULL, 36 | `Name` varchar(50) NOT NULL, 37 | `Gender` varchar(10) NOT NULL, 38 | `DOB` date DEFAULT NULL, 39 | `Address` varchar(50) NOT NULL, 40 | `Aadhar` varchar(12) NOT NULL, 41 | `Balance` double NOT NULL 42 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 43 | 44 | -- 45 | -- Dumping data for table `accounttable` 46 | -- 47 | 48 | INSERT INTO `accounttable` (`Id`, `Account_Number`, `Account_Type`, `BCode`, `Name`, `Gender`, `DOB`, `Address`, `Aadhar`, `Balance`) VALUES 49 | (1, 'SBI23432310001', 'Savings', 'SBI234323', 'chandan', 'M', '2018-09-06', 'xyz xyz', '234432234', 20500); 50 | 51 | -- -------------------------------------------------------- 52 | 53 | -- 54 | -- Table structure for table `branchtable` 55 | -- 56 | 57 | CREATE TABLE `branchtable` ( 58 | `Id` int(11) NOT NULL, 59 | `Name` varchar(120) NOT NULL, 60 | `BCode` varchar(15) NOT NULL, 61 | `Address` varchar(200) NOT NULL 62 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 63 | 64 | -- 65 | -- Dumping data for table `branchtable` 66 | -- 67 | 68 | INSERT INTO `branchtable` (`Id`, `Name`, `BCode`, `Address`) VALUES 69 | (1, 'newjersy', 'SBI234323', 'xyz'); 70 | 71 | -- -------------------------------------------------------- 72 | 73 | -- 74 | -- Table structure for table `employeetable` 75 | -- 76 | 77 | CREATE TABLE `employeetable` ( 78 | `Id` int(11) NOT NULL, 79 | `Name` varchar(50) NOT NULL, 80 | `Branch` varchar(50) NOT NULL 81 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 82 | 83 | -- 84 | -- Dumping data for table `employeetable` 85 | -- 86 | 87 | INSERT INTO `employeetable` (`Id`, `Name`, `Branch`) VALUES 88 | (1, 'arun', 'SBI234323'); 89 | 90 | -- -------------------------------------------------------- 91 | 92 | -- 93 | -- Table structure for table `servicetable` 94 | -- 95 | 96 | CREATE TABLE `servicetable` ( 97 | `Date` date NOT NULL, 98 | `Account_Num` varchar(15) DEFAULT NULL, 99 | `ServiceName` varchar(100) DEFAULT NULL, 100 | `Description` varchar(200) DEFAULT NULL, 101 | `Amount` double DEFAULT NULL, 102 | `TransactionId` int(11) NOT NULL 103 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 104 | 105 | -- 106 | -- Dumping data for table `servicetable` 107 | -- 108 | 109 | INSERT INTO `servicetable` (`Date`, `Account_Num`, `ServiceName`, `Description`, `Amount`, `TransactionId`) VALUES 110 | ('2018-09-06', 'SBI23432310001', 'online banking', 'done', 500, 2); 111 | 112 | -- -------------------------------------------------------- 113 | 114 | -- 115 | -- Table structure for table `transactiontable` 116 | -- 117 | 118 | CREATE TABLE `transactiontable` ( 119 | `Id` int(11) NOT NULL, 120 | `Date` date NOT NULL, 121 | `Account_Num` varchar(15) DEFAULT NULL, 122 | `Transaction_Type` varchar(15) DEFAULT NULL, 123 | `Amount` double DEFAULT NULL 124 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 125 | 126 | -- 127 | -- Dumping data for table `transactiontable` 128 | -- 129 | 130 | INSERT INTO `transactiontable` (`Id`, `Date`, `Account_Num`, `Transaction_Type`, `Amount`) VALUES 131 | (1, '2018-09-06', 'SBI23432310001', 'Credit', 21000), 132 | (2, '2018-09-06', 'SBI23432310001', 'Debit', 500); 133 | 134 | -- 135 | -- Indexes for dumped tables 136 | -- 137 | 138 | -- 139 | -- Indexes for table `accounttable` 140 | -- 141 | ALTER TABLE `accounttable` 142 | ADD PRIMARY KEY (`Id`); 143 | 144 | -- 145 | -- Indexes for table `branchtable` 146 | -- 147 | ALTER TABLE `branchtable` 148 | ADD PRIMARY KEY (`Id`); 149 | 150 | -- 151 | -- Indexes for table `employeetable` 152 | -- 153 | ALTER TABLE `employeetable` 154 | ADD PRIMARY KEY (`Id`); 155 | 156 | -- 157 | -- Indexes for table `servicetable` 158 | -- 159 | ALTER TABLE `servicetable` 160 | ADD KEY `par_ind` (`TransactionId`); 161 | 162 | -- 163 | -- Indexes for table `transactiontable` 164 | -- 165 | ALTER TABLE `transactiontable` 166 | ADD PRIMARY KEY (`Id`); 167 | 168 | -- 169 | -- AUTO_INCREMENT for dumped tables 170 | -- 171 | 172 | -- 173 | -- AUTO_INCREMENT for table `accounttable` 174 | -- 175 | ALTER TABLE `accounttable` 176 | MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 177 | 178 | -- 179 | -- AUTO_INCREMENT for table `branchtable` 180 | -- 181 | ALTER TABLE `branchtable` 182 | MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 183 | 184 | -- 185 | -- AUTO_INCREMENT for table `employeetable` 186 | -- 187 | ALTER TABLE `employeetable` 188 | MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 189 | 190 | -- 191 | -- AUTO_INCREMENT for table `transactiontable` 192 | -- 193 | ALTER TABLE `transactiontable` 194 | MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 195 | 196 | -- 197 | -- Constraints for dumped tables 198 | -- 199 | 200 | -- 201 | -- Constraints for table `servicetable` 202 | -- 203 | ALTER TABLE `servicetable` 204 | ADD CONSTRAINT `fk_tranTable` FOREIGN KEY (`TransactionId`) REFERENCES `transactiontable` (`Id`) ON DELETE CASCADE ON UPDATE CASCADE; 205 | COMMIT; 206 | 207 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 208 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 209 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 210 | -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | Builds, tests, and runs the project BankManagement. 3 | 4 | 53 | 54 | -------------------------------------------------------------------------------- /build/built-jar.properties: -------------------------------------------------------------------------------- 1 | #Sat, 25 Jan 2020 20:06:02 +0530 2 | 3 | 4 | C\:\\Users\\CHANDAN\ DAS\\Desktop\\chandan\ bank= 5 | -------------------------------------------------------------------------------- /build/classes/DB/DBConnection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandandas27/Bank-Management-System/c25e1a14bc3bc0db680ddde451851e1926b60eaa/build/classes/DB/DBConnection.class -------------------------------------------------------------------------------- /build/classes/DB/DeleteDatabase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandandas27/Bank-Management-System/c25e1a14bc3bc0db680ddde451851e1926b60eaa/build/classes/DB/DeleteDatabase.class -------------------------------------------------------------------------------- /build/classes/DB/DisplayDatabase$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandandas27/Bank-Management-System/c25e1a14bc3bc0db680ddde451851e1926b60eaa/build/classes/DB/DisplayDatabase$1.class -------------------------------------------------------------------------------- /build/classes/DB/DisplayDatabase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandandas27/Bank-Management-System/c25e1a14bc3bc0db680ddde451851e1926b60eaa/build/classes/DB/DisplayDatabase.class -------------------------------------------------------------------------------- /build/classes/DB/QueryDatabase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chandandas27/Bank-Management-System/c25e1a14bc3bc0db680ddde451851e1926b60eaa/build/classes/DB/QueryDatabase.class -------------------------------------------------------------------------------- /build/classes/bankmanagement/AccountHolderScene.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 49 |