SlideShare a Scribd company logo
1 of 37
PROJECT REPORT
(SIX WEEKS TRAINING)

Krishna Pesticides

Submitted by
Niharika Arora
Roll No. 101113032

CDAC, Mohali
(Center for advanced Computing)

Department of Computer Science and Engineering
THAPAR UNIVERSITY, PATIALA
(Deemed University)

Jun-Jul 2013

Page 1 of 37
DECLARATION

I hereby declare that the project work entitled (“Krishna Pesticides”) is an
authentic record of my own work carried out at(Mohali) as requirements of 6week summer training for the award of degree of B.E.(Computer Science &
Engineering), Thapar University, Patiala, under the guidance of Ms.Rajani
Pathania from 17 June to 26 July,2013.

(Niharika Arora)
Roll No. 101113032
Date: ________________

Page 2 of 37
ACKNOWLEDGEMENT

It is my pleasure to be indebted to various people, who directly or indirectly
contributed in the development of this work .
I express my sincere gratitude to my teacher Ms.Rajani Pathania
for providing me an opportunity to undergo summer training at CDAC
,Mohali.
I am thankful to my friends Tanya , Pranav , Sandeep for their
support, cooperation, and motivation provided to me during the training .
I also extend my sincere appreciation to my friend Puja
Kumar who provided his valuable suggestions and precious time in
accomplishing my project .

Niharika Arora
Roll No. 101113032

Page 3 of 37
INDEX
Summary Of the Project
Project’s Motto
Intended Audience
Features
Types of users

Introduction to the programming
Project
DFD
Ishikawa Diagram
Sequence Diagram
Collaboration Diagram
Activity Diagram
Usecase Diagram
Class Diagram
Page 4 of 37
Details of the work
Testing
Conclusion
References

Page 5 of 37
SUMMARY
1. PROJECTS MOTTO-

The main aim of the project is to develop a java based application which
would
reduce the burden of businessman for effective handling of stock ,credit , debit
employees and records of various transactions.
2. INTENDED AUDIENCE-

The project is for the businessmen who find difficulty in maintaining the
records for the large stock , credit and debit which help them during filing of
sales and income tax and can save the records of various transaction with the
different companies and retailers.
3. FEATURES-

1. Stock can be added, checked and updated.
2. Remaining amount of retailers and companies can be checked and credit
can be subtracted from retailers account and debit can be added to
companies account.
3. Transactions details of retailers and companies can be checked.
4. Employee information can be updated, checked and new employee can be
added and old employee can be removed.
5.

Interface for completing the order of retailer.

4. TYPES OF USER-

Administrator- there are two administrators who have the privileges of system
and they will control all the system.

Page 6 of 37
TECHNOLOGIES USED
1. Java
Java is Platform Independent, Secure, Object Oriented, Scalable, and Robust
Programming Language.
It consists of two parts
JVM stands for Java Virtual Machine, which is run time environment to execute the
java programs.
Java API (Application Programming Interface) that consists of inbuilt classes used in
java programs.
Java is a set of several computer software products and specifications from Sun
Microsystems (which has since merged with Oracle Corporation), that together provide a
system for developing application software and deploying it in a cross-platform computing
environment. Java is used in a wide variety of computing platforms from embedded devices
and mobile phones on the low end, to enterprise servers and supercomputers on the high end.
While less common on desktop computers, Java applets are sometimes used to provide
improved and secure functions while browsing the World Wide Web.
Writing in the Java programming language is the primary way to produce code that will be
deployed as Java bytecode. There are, however, bytecode compilers available for other
languages such as Ada, JavaScript, Python, and Ruby. Several new languages have been
designed to run natively on the Java Virtual Machine (JVM), such as Scala, Clojure and
Groovy. Java syntax borrows heavily from C and C++, but object-oriented features are
modeled after Smalltalk and Objective-C. [6] Java eliminates certain low-level constructs
such as pointers and has a very simple memory model where every object is allocated on the
heap and all variables of object types are references. Memory management is handled
through integrated automatic garbage collection performed by the JVM.

2. JDBC (Java Database Connectivity)

It is an API, which is used for the communication of java programs with different
databases. JDBC is a Java-based data access technology (Java Standard Edition platform)
from Sun Microsystems. It is an acronym as it is unofficially referred to as Java Database
Page 7 of 37
Connectivity, with DB being universally recognized as the abbreviation for database. This
technology is an API for the Java programming language that defines how a client may
access a database. It provides methods for querying and updating data in a database. JDBC is
oriented towards relational databases. A JDBC-to-ODBC bridge enables connections to any
ODBC-accessible data source in the JVM host environment.

3. Windows Programming

Swings in java is a rich set of components for building GUIs and adding interactivity
to java applications.
Swing includes all the components that you would expect from a modern GUI toolkit
that is table controls, list controls, tree controls, buttons and labels. The basic architecture of
swing is MVC, and are entirely made in java.

4. MySQL

MySQL is used as database, used to store data. It is RDBMS.

Page 8 of 37
SOFTWARE REQUIREMENTS
1. JDK 1.7
Net Beans 7.2
2. Database
MySQL Database Server 5.0
3. Reports
Jasper Reports 3.7.6
4. JDBC Driver for MySQL Database Server
mysql-connector-java-5.1.7-bin.jar
5. Operating System
Windows 8/Windows 7/Windows Vista / XP

HARDWARE REQUIREMENTS

1. Intel P4 processor with minimum 2.5 GHz Speed
2. RAM: Minimum 1GB
3. Hard Disk: Minimum 40GB

Page 9 of 37
Project
1. Login page

It authenticates username and password from database.

Page 10 of 37
2. Main menu bar

Any option can be selected for appropriate action.

1 .Logout - back to login page.
2. Stock -further options are Add to Stock, Update Stock, Check Stock.
3. Accounts - further divided into Retailers and Company account
4. Employs - we can add new employee, delete existing, update information of
existing employee, check information of all employees.
5. Order – interface for completing the order of retailers.

Page 11 of 37
3. Add new item to stock

Company name is selected first and then its new product is entered and quantity
is added after clicking submit button.
We can enter cost price and selling price of that product.

Page 12 of 37
4.Add quantity of existing product

Company name is selected first and then its product is selected and quantity is
added after clicking submit button.

Page 13 of 37
5. Update Stock

Cost Price and selling price of a product can be changed according to the
requirement after selecting the company and its product

Page 14 of 37
6.Check Stock

Particular company is selected and all products will be displayed in table.

Page 15 of 37
7.Retailers Account

If some retailer returns back the money to wholesaler, same amount is
subtracted from their account.
First retaile is selected and amount to be deducted is typed in credit field and
SUBMIT button is pressed for successful operation.
We can also see previous transaction of that particular selected retailer in table
on the right hand side of page.

Page 16 of 37
8. Company Account

If wholesaler returns back the money to company, same amount is subtracted
from their account.
Company is selected and amount is typed in Credit text field and SUBMIT
button is pressed for successful transaction.
We can also see previous transaction of that particular selected company in
table on right side of page.

Page 17 of 37
9. Add a new employee

Various fields of new employee is entered and add button is pressed.
Id of new employee will be auto incremented from that of previous employees .

Page 18 of 37
10. Update Employee

Id of employee is selected and new information is entered and update button is
pressed.
Previous information of selected employee will also be shown.

11. Delete Employee
Page 19 of 37
Id is selected and delete button is pressed to delete
particular employee as id unique.

12. Show Employees
Page 20 of 37
Information of all employees is displayed in table format with their id , name,
age and salary .

13. Select Order

Page 21 of 37
First retailer is selected whose order is to be completed and then product is
selected and its quantity is selected and then proceed button is pressed.
User can delete any item from cart by selecting that item and then pressing
delete from cart.
Available quantity of every item is also shown before and after selecting that
item.
If quantity entered is more than typed then it will generate the available quantity
of product as message.

14. Final Order
Page 22 of 37
We can see final order with all fields and total amount of the order.
Press SUBMIT to finish the order.
Press BACK to change the order.

15. Order-Successful

Page 23 of 37
In previous screen after pressing the SUBMIT button , total amount is added to
retailers accounts .
Press OK for another order.

DATABASE DESIGN
We used MYSQL as the backend and used JDBC connectivity to access the database. The
java application access the database using JDBC and output the results according to the
query, which again takes into account the options, selected by the user.

Page 24 of 37
The following gives the various tables and their fields used in our database, which was a
major design decision of our project.

1. Stock tables -

SYNGENTA,IIL,FMC,DUPONT
All above 4 tables contain four fields
Product
Quantity
Cost
Selling

Product_name is primary key in above all tables.

All above 4 tables represent the company names which contain product names, its
quantity cost price and selling price.

2. Transaction tables-

 Companytrans
Name

-

represents name of company.

Amt - transaction amount with that particular company.
Date

-

date of transaction.

 Retailtrans
Name – name of retailer.
Amt- transaction amount.
Date - date of transaction.

No primary key in above both tables.

3. Employee Information table-

Page 25 of 37
 Emp
Empid – this is unique id given to each employee.
ename – name of employee.
Age – age of employee.
Contactno—contact number of employee.
Sal – salary of employees.

Emp_id is primary key and auto increment.

4. Login table –

 Login
Username – username of admin.
Password – password of admin.

Username is primary key.

5. Retailers table  Retailers
Name - name of retailer.
Amt – amount of money given to wholesaler by retailer.

Name is primary key.

6. Company table –

 Company
Name – name of company.

Page 26 of 37
Amt – amount of money given to company by
wholesaler.

Page 27 of 37
Check and verify

DFD Level0

Login

L

Enter id and
password

Page 28 of 37

Error if not

Grant

incorrect

Permission
Adminstrator

Reflect the change

Reflect the change

in database

in database

Retailer
transaction

Company
transaction

Select the company

Select the retailer of

and enter debit

particular city and
enter the credit

AAdminstrator

Page 29 of 37
Receive the
stock list
Add new employee
Retrieve the

to database

stock list
Delete the
employee
from
Add New
employee

A

Update the
employee

database

in database

Delete
employeeh

Update
employee

Select the id of

List of sto

Select empid

displaye

And Enter the new

Enter the information
of new employee

Check the
Stock j

Employee

information of
employee

Select the
company

AAdminstrator

Page 30 of 37
Testing
Case 1:
when user enter incorrect combination of password and id or any field is left empty, it shows
the message accordingly.

Page 31 of 37
Case 2:
During the add to stock, if the entered quantity is negative the it shows the
message.

Page 32 of 37
Case 3:If during upation of stock Cost or selling is negative , then it shows the
message as shown in the image.

Case 4:

If the Delete from cart button is pressed before selecting any item from list then
it shows the message as shown in image.

Page 33 of 37
Case 5:
If quantity entered is negative or zero then message appears “Please enter some
positive quantiy” as shown in image.

Page 34 of 37
Case6:
If the credit is negative value is entered the message appears as shown in image.

Page 35 of 37
Case 7:
For changing password, if confirm password is different from new password
following error is generated.

Case 8:
For changing password, if old password is incorrect following error is
generated.

Page 36 of 37
CONCLUSION

This project is useful to those who have to maintain large stock records with transaction
records with others. This project is particularly for the pesticide shop those deal with different
products of different companies but can be modified for the use of other type of business that
have similar requirements. In routine , operations such addition of items to stock, change of
price of items frequently occur, this project provides easy interface to accomplish this task
and saves the time and there is daily to daily transactions with companies and retailers and to
maintain all records of transactions, this project provides all information.

FUTURE SCOPE OF WORK

Many businessmen who even today maintain all records with the help of pen and paper
It is too tough to maintain the records with the use of paper as it requires lot of space to
maintain and store all the records so chances of error increases as records increases.
In the case to match the stock record with the actual sales it is easy if it is computerized.

REFERENCES
1. Java, The Complete Reference 7th Edition by Herbert Schildt.

2. My notes from 6- week Core Java training at CDAC, Mohali.

Page 37 of 37

More Related Content

Similar to Automate 2

Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Projecthani2253
 
Medical Store Management System Software Engineering 1
Medical Store Management System Software Engineering 1Medical Store Management System Software Engineering 1
Medical Store Management System Software Engineering 1hani2253
 
Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1MEGHA JAIN
 
Business Utility Application
Business Utility ApplicationBusiness Utility Application
Business Utility ApplicationIRJET Journal
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shopViditsingh22
 
Medical Shop - 2.pptx
Medical Shop - 2.pptxMedical Shop - 2.pptx
Medical Shop - 2.pptxsaiproject
 
Hyper market management system project +2 computer science
Hyper market management system   project +2 computer scienceHyper market management system   project +2 computer science
Hyper market management system project +2 computer scienceVaishak AP
 
Super market billing system using webcam
Super market billing system using webcam Super market billing system using webcam
Super market billing system using webcam SahithBeats
 
22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdf22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdfDeepak Malusare
 
22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)Sruthi S
 
payroll management -1.
payroll management -1.payroll management -1.
payroll management -1.DJananiJanani
 
Inventory management system
Inventory  management  systemInventory  management  system
Inventory management systemRavi Vghl
 
College information management system.doc
College information management system.docCollege information management system.doc
College information management system.docKamal Acharya
 
DIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESS
DIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESSDIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESS
DIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESSIRJET Journal
 
Hrms industrial training report
Hrms industrial training reportHrms industrial training report
Hrms industrial training reportNitesh Dubey
 

Similar to Automate 2 (20)

Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Project
 
Medical Store Management System Software Engineering 1
Medical Store Management System Software Engineering 1Medical Store Management System Software Engineering 1
Medical Store Management System Software Engineering 1
 
Blue book
Blue bookBlue book
Blue book
 
Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1
 
Business Utility Application
Business Utility ApplicationBusiness Utility Application
Business Utility Application
 
Final report mobile shop
Final report   mobile shopFinal report   mobile shop
Final report mobile shop
 
ASSIGNMENT
ASSIGNMENT ASSIGNMENT
ASSIGNMENT
 
Gui Report Studio in java
Gui Report Studio in javaGui Report Studio in java
Gui Report Studio in java
 
Medical Shop - 2.pptx
Medical Shop - 2.pptxMedical Shop - 2.pptx
Medical Shop - 2.pptx
 
Hyper market management system project +2 computer science
Hyper market management system   project +2 computer scienceHyper market management system   project +2 computer science
Hyper market management system project +2 computer science
 
Super market billing system using webcam
Super market billing system using webcam Super market billing system using webcam
Super market billing system using webcam
 
22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdf22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdf
 
22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)
 
online marketplace report
online marketplace reportonline marketplace report
online marketplace report
 
payroll management -1.
payroll management -1.payroll management -1.
payroll management -1.
 
Inventory management system
Inventory  management  systemInventory  management  system
Inventory management system
 
Banking java project
Banking java projectBanking java project
Banking java project
 
College information management system.doc
College information management system.docCollege information management system.doc
College information management system.doc
 
DIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESS
DIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESSDIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESS
DIGITAL TWIN FRAMEWORK FOR SUPPLYCHAIN PROCESS
 
Hrms industrial training report
Hrms industrial training reportHrms industrial training report
Hrms industrial training report
 

More from Niharika Arora

More from Niharika Arora (6)

Magus mundus-poster
Magus mundus-posterMagus mundus-poster
Magus mundus-poster
 
Machine translation for Indian Languages
Machine translation for Indian LanguagesMachine translation for Indian Languages
Machine translation for Indian Languages
 
Project: Social Networking Platform
Project: Social Networking PlatformProject: Social Networking Platform
Project: Social Networking Platform
 
Ed fun
Ed funEd fun
Ed fun
 
Edu isfun1
Edu isfun1Edu isfun1
Edu isfun1
 
Edu isfun
Edu isfunEdu isfun
Edu isfun
 

Recently uploaded

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Recently uploaded (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

Automate 2

  • 1. PROJECT REPORT (SIX WEEKS TRAINING) Krishna Pesticides Submitted by Niharika Arora Roll No. 101113032 CDAC, Mohali (Center for advanced Computing) Department of Computer Science and Engineering THAPAR UNIVERSITY, PATIALA (Deemed University) Jun-Jul 2013 Page 1 of 37
  • 2. DECLARATION I hereby declare that the project work entitled (“Krishna Pesticides”) is an authentic record of my own work carried out at(Mohali) as requirements of 6week summer training for the award of degree of B.E.(Computer Science & Engineering), Thapar University, Patiala, under the guidance of Ms.Rajani Pathania from 17 June to 26 July,2013. (Niharika Arora) Roll No. 101113032 Date: ________________ Page 2 of 37
  • 3. ACKNOWLEDGEMENT It is my pleasure to be indebted to various people, who directly or indirectly contributed in the development of this work . I express my sincere gratitude to my teacher Ms.Rajani Pathania for providing me an opportunity to undergo summer training at CDAC ,Mohali. I am thankful to my friends Tanya , Pranav , Sandeep for their support, cooperation, and motivation provided to me during the training . I also extend my sincere appreciation to my friend Puja Kumar who provided his valuable suggestions and precious time in accomplishing my project . Niharika Arora Roll No. 101113032 Page 3 of 37
  • 4. INDEX Summary Of the Project Project’s Motto Intended Audience Features Types of users Introduction to the programming Project DFD Ishikawa Diagram Sequence Diagram Collaboration Diagram Activity Diagram Usecase Diagram Class Diagram Page 4 of 37
  • 5. Details of the work Testing Conclusion References Page 5 of 37
  • 6. SUMMARY 1. PROJECTS MOTTO- The main aim of the project is to develop a java based application which would reduce the burden of businessman for effective handling of stock ,credit , debit employees and records of various transactions. 2. INTENDED AUDIENCE- The project is for the businessmen who find difficulty in maintaining the records for the large stock , credit and debit which help them during filing of sales and income tax and can save the records of various transaction with the different companies and retailers. 3. FEATURES- 1. Stock can be added, checked and updated. 2. Remaining amount of retailers and companies can be checked and credit can be subtracted from retailers account and debit can be added to companies account. 3. Transactions details of retailers and companies can be checked. 4. Employee information can be updated, checked and new employee can be added and old employee can be removed. 5. Interface for completing the order of retailer. 4. TYPES OF USER- Administrator- there are two administrators who have the privileges of system and they will control all the system. Page 6 of 37
  • 7. TECHNOLOGIES USED 1. Java Java is Platform Independent, Secure, Object Oriented, Scalable, and Robust Programming Language. It consists of two parts JVM stands for Java Virtual Machine, which is run time environment to execute the java programs. Java API (Application Programming Interface) that consists of inbuilt classes used in java programs. Java is a set of several computer software products and specifications from Sun Microsystems (which has since merged with Oracle Corporation), that together provide a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones on the low end, to enterprise servers and supercomputers on the high end. While less common on desktop computers, Java applets are sometimes used to provide improved and secure functions while browsing the World Wide Web. Writing in the Java programming language is the primary way to produce code that will be deployed as Java bytecode. There are, however, bytecode compilers available for other languages such as Ada, JavaScript, Python, and Ruby. Several new languages have been designed to run natively on the Java Virtual Machine (JVM), such as Scala, Clojure and Groovy. Java syntax borrows heavily from C and C++, but object-oriented features are modeled after Smalltalk and Objective-C. [6] Java eliminates certain low-level constructs such as pointers and has a very simple memory model where every object is allocated on the heap and all variables of object types are references. Memory management is handled through integrated automatic garbage collection performed by the JVM. 2. JDBC (Java Database Connectivity) It is an API, which is used for the communication of java programs with different databases. JDBC is a Java-based data access technology (Java Standard Edition platform) from Sun Microsystems. It is an acronym as it is unofficially referred to as Java Database Page 7 of 37
  • 8. Connectivity, with DB being universally recognized as the abbreviation for database. This technology is an API for the Java programming language that defines how a client may access a database. It provides methods for querying and updating data in a database. JDBC is oriented towards relational databases. A JDBC-to-ODBC bridge enables connections to any ODBC-accessible data source in the JVM host environment. 3. Windows Programming Swings in java is a rich set of components for building GUIs and adding interactivity to java applications. Swing includes all the components that you would expect from a modern GUI toolkit that is table controls, list controls, tree controls, buttons and labels. The basic architecture of swing is MVC, and are entirely made in java. 4. MySQL MySQL is used as database, used to store data. It is RDBMS. Page 8 of 37
  • 9. SOFTWARE REQUIREMENTS 1. JDK 1.7 Net Beans 7.2 2. Database MySQL Database Server 5.0 3. Reports Jasper Reports 3.7.6 4. JDBC Driver for MySQL Database Server mysql-connector-java-5.1.7-bin.jar 5. Operating System Windows 8/Windows 7/Windows Vista / XP HARDWARE REQUIREMENTS 1. Intel P4 processor with minimum 2.5 GHz Speed 2. RAM: Minimum 1GB 3. Hard Disk: Minimum 40GB Page 9 of 37
  • 10. Project 1. Login page It authenticates username and password from database. Page 10 of 37
  • 11. 2. Main menu bar Any option can be selected for appropriate action. 1 .Logout - back to login page. 2. Stock -further options are Add to Stock, Update Stock, Check Stock. 3. Accounts - further divided into Retailers and Company account 4. Employs - we can add new employee, delete existing, update information of existing employee, check information of all employees. 5. Order – interface for completing the order of retailers. Page 11 of 37
  • 12. 3. Add new item to stock Company name is selected first and then its new product is entered and quantity is added after clicking submit button. We can enter cost price and selling price of that product. Page 12 of 37
  • 13. 4.Add quantity of existing product Company name is selected first and then its product is selected and quantity is added after clicking submit button. Page 13 of 37
  • 14. 5. Update Stock Cost Price and selling price of a product can be changed according to the requirement after selecting the company and its product Page 14 of 37
  • 15. 6.Check Stock Particular company is selected and all products will be displayed in table. Page 15 of 37
  • 16. 7.Retailers Account If some retailer returns back the money to wholesaler, same amount is subtracted from their account. First retaile is selected and amount to be deducted is typed in credit field and SUBMIT button is pressed for successful operation. We can also see previous transaction of that particular selected retailer in table on the right hand side of page. Page 16 of 37
  • 17. 8. Company Account If wholesaler returns back the money to company, same amount is subtracted from their account. Company is selected and amount is typed in Credit text field and SUBMIT button is pressed for successful transaction. We can also see previous transaction of that particular selected company in table on right side of page. Page 17 of 37
  • 18. 9. Add a new employee Various fields of new employee is entered and add button is pressed. Id of new employee will be auto incremented from that of previous employees . Page 18 of 37
  • 19. 10. Update Employee Id of employee is selected and new information is entered and update button is pressed. Previous information of selected employee will also be shown. 11. Delete Employee Page 19 of 37
  • 20. Id is selected and delete button is pressed to delete particular employee as id unique. 12. Show Employees Page 20 of 37
  • 21. Information of all employees is displayed in table format with their id , name, age and salary . 13. Select Order Page 21 of 37
  • 22. First retailer is selected whose order is to be completed and then product is selected and its quantity is selected and then proceed button is pressed. User can delete any item from cart by selecting that item and then pressing delete from cart. Available quantity of every item is also shown before and after selecting that item. If quantity entered is more than typed then it will generate the available quantity of product as message. 14. Final Order Page 22 of 37
  • 23. We can see final order with all fields and total amount of the order. Press SUBMIT to finish the order. Press BACK to change the order. 15. Order-Successful Page 23 of 37
  • 24. In previous screen after pressing the SUBMIT button , total amount is added to retailers accounts . Press OK for another order. DATABASE DESIGN We used MYSQL as the backend and used JDBC connectivity to access the database. The java application access the database using JDBC and output the results according to the query, which again takes into account the options, selected by the user. Page 24 of 37
  • 25. The following gives the various tables and their fields used in our database, which was a major design decision of our project. 1. Stock tables - SYNGENTA,IIL,FMC,DUPONT All above 4 tables contain four fields Product Quantity Cost Selling Product_name is primary key in above all tables. All above 4 tables represent the company names which contain product names, its quantity cost price and selling price. 2. Transaction tables-  Companytrans Name - represents name of company. Amt - transaction amount with that particular company. Date - date of transaction.  Retailtrans Name – name of retailer. Amt- transaction amount. Date - date of transaction. No primary key in above both tables. 3. Employee Information table- Page 25 of 37
  • 26.  Emp Empid – this is unique id given to each employee. ename – name of employee. Age – age of employee. Contactno—contact number of employee. Sal – salary of employees. Emp_id is primary key and auto increment. 4. Login table –  Login Username – username of admin. Password – password of admin. Username is primary key. 5. Retailers table  Retailers Name - name of retailer. Amt – amount of money given to wholesaler by retailer. Name is primary key. 6. Company table –  Company Name – name of company. Page 26 of 37
  • 27. Amt – amount of money given to company by wholesaler. Page 27 of 37
  • 28. Check and verify DFD Level0 Login L Enter id and password Page 28 of 37 Error if not Grant incorrect Permission
  • 29. Adminstrator Reflect the change Reflect the change in database in database Retailer transaction Company transaction Select the company Select the retailer of and enter debit particular city and enter the credit AAdminstrator Page 29 of 37
  • 30. Receive the stock list Add new employee Retrieve the to database stock list Delete the employee from Add New employee A Update the employee database in database Delete employeeh Update employee Select the id of List of sto Select empid displaye And Enter the new Enter the information of new employee Check the Stock j Employee information of employee Select the company AAdminstrator Page 30 of 37
  • 31. Testing Case 1: when user enter incorrect combination of password and id or any field is left empty, it shows the message accordingly. Page 31 of 37
  • 32. Case 2: During the add to stock, if the entered quantity is negative the it shows the message. Page 32 of 37
  • 33. Case 3:If during upation of stock Cost or selling is negative , then it shows the message as shown in the image. Case 4: If the Delete from cart button is pressed before selecting any item from list then it shows the message as shown in image. Page 33 of 37
  • 34. Case 5: If quantity entered is negative or zero then message appears “Please enter some positive quantiy” as shown in image. Page 34 of 37
  • 35. Case6: If the credit is negative value is entered the message appears as shown in image. Page 35 of 37
  • 36. Case 7: For changing password, if confirm password is different from new password following error is generated. Case 8: For changing password, if old password is incorrect following error is generated. Page 36 of 37
  • 37. CONCLUSION This project is useful to those who have to maintain large stock records with transaction records with others. This project is particularly for the pesticide shop those deal with different products of different companies but can be modified for the use of other type of business that have similar requirements. In routine , operations such addition of items to stock, change of price of items frequently occur, this project provides easy interface to accomplish this task and saves the time and there is daily to daily transactions with companies and retailers and to maintain all records of transactions, this project provides all information. FUTURE SCOPE OF WORK Many businessmen who even today maintain all records with the help of pen and paper It is too tough to maintain the records with the use of paper as it requires lot of space to maintain and store all the records so chances of error increases as records increases. In the case to match the stock record with the actual sales it is easy if it is computerized. REFERENCES 1. Java, The Complete Reference 7th Edition by Herbert Schildt. 2. My notes from 6- week Core Java training at CDAC, Mohali. Page 37 of 37