reuploaded
This is a desktop application made with JavaFX as front-end and Java as back-end with MySQL Database.
JAVA
- JDK(any version may suffice, preferably 16)
- Xampp and Run MySQL
- Any IDE
It helps any newspaper agency manage it's everyday operations efficiently through a desktop application that is easy to use. Now some of those everyday operations may include -
- Managing Newspapers available and their prices
- Managing hawkers Delivering NewsPapers
- Managing Hawker Details
- Managing Customer Details
- Managing Bills
After getting this project into your machine, import the project into eclipse or any other ide that you have.
Open the Dashboard package and run the main.java file in it.
NOTE In the newest version, Before opening the app, you are also presented with a Login Page which was added for additional security of the application. So to access the app you need to enter username : admin and password as : admin
After running the Main.java file, this is what you are presented with. In this you will find different buttons leading to different dialog boxes each performing a unique task. We will now disuss each of these in detail i.e. what they do and how they do it.
This was specifically built for ease of management of papers available and their rates. From this tab, One can easily manage all the papers available for sale and their rates. All the data that is feeded into this goes to a table in mySQL from which the data can then be updated, removed and fetched. New papers can also be added by just a click of a button 'SAVE' . Fetching of data will occur automatically and the rates will also appear once a paper is selected from the comboBox. The comboBox was made editable so that new papers can be added by typing in their name.
Managing Hawkers has never been easier . From this tab, One can easily manage the hawkers working for them. By simply typing in or selecting the available names from the comboBox , all the details of that particular hawker can be fetched from the table , and any detail can also be changed easily. Also as we know one Hawker may not serve only one area but possibly several based on the requirement , therefore multiple areas can be selected from the area ComboBox (this is auto-updated and fetches values that were filled in paperMaster tab) and they will start appearing with , seperating them in textfield SelectedAreas. Name has been set as primary key in the database table so that it is easier for the admin to identify any hawker. An image of hawker can also be uploaded from local machine and during fetch operation, this image gets autoSet as the path of image gets saved in the database.
This tab was built was specific use of customers cum admin. Any new Customer can easily navigate through this tab and fill in his own details. The area comboBox is again pre-Filled from the database table and customer can simply select from the available choices. After selecting area , all the hawkers serving that area will get automatically filled into the Hawker ComboBox. In this Contact is set as primary key as some customers may have the same name but their numbers will surely be different. After that from the listView multiple papers can be selected at once or one at a time, which then appear in the Selected Paper listView , Selected Paper's prices will automatically reflect in the prices listview. For searching , Customer's mobile number is required as it has been set as primary key. Also the Selected papers as well as their prices will be stored as String seperated by , in the table which when required will be fetched , seperated using split method and displayed .
This tab generates the bill that is to be paid by the customer. After typing in the customer Mobile number ( which was set as primary key) , Their corresponding Date of Start will be fetched from the table and after selecting the UptoDate, per day Price will appear in total Price textField. Clicking on generate Total bill will produce the amount payable by the customer. Note : this tab is only for generating total bill and saving that bill in table with status 0. Status 0 : Means bill is not yet Paid. Status 1 : Bill payed .
This tab will set the Status of the unpaid bill to 1 thus showing the bill has been paid. Bill will be fetched in the same way by typing in the Mobile number.
This tab was built so that all the details of all the hawkers can be viewed from one place . Results can be filtered using area comboBox which will then make only those hawkers appear in TableView that are serving in the selected area.
This tab wiill show all the bill details - Bills that have been paid(Status 1), Bills that are still due(Status 0).
This tab shows details of all the cutomers in one place which can also be filtered using paper ComboBox and area ComboBox.
Fix minor Bugsinclude a login page that appears before the DashBoard- Include a .exe file for easy running of the application