Professional Documents
Culture Documents
INTRODUCTION
1.1 ABSTRACT
1
CHAPTER 2
SYSTEM ANALYSIS AND MODULE DESCRIPTION
2.1 EXISTING SYSTEM
The existing system contains the bank details but does not have the clear details
separately. It contains the all account type details in single module that was very
inconvenient to administrator. The existing system contains the loan details but not
in separate manner. The Banking system contains different loan details but does
not contain the individual details of each loan, this will very inconvenient to view
the each loan transaction details separately. And also it does not have any monthly
report of each transaction for saving account, loan accounts, this may cause burden
to administrator to view the report.
2
2.3 MODULES DESCRIPTION
1. Bank Module
2. Employee Module
3. Account Module
4. Customer Module
7. Reports details
Bank details:
This module describes the bank is the place where customers feel the sense for
the sense for the property. In the Bank, customers deposit and withdraw their
money. The bank management system user can manage a money from single
account. Today's world is a genuine computer world and is getting faster and faster
day-by-day. Thus, considering above necessities, the software for bank has became
necessary which would be useful in managing the bank more efficiently.
Employee details:
This module represents to the employee details to work at the bank workers.
The bank management are useful to the customer information, account details,
transfer details, etc. The bank employees can verify the account is very useful for
the customers of saving money of the security.
3
Account Details:
By using this functionality user can create a new account in any bank by
selecting bank name option. Using this functionality user view all his account
details, this can be viewed by users who are having account in any bank.
Saving account:
Closing account:
This module represents logout the banking organization. These accounts are
designed to help II: individuals to inculcate the habit of single person decision to
the system. The individual’s customer decision from our account.
Customer Details:
Create customer: By using this functionality user can create a new account
in any bank by selecting bank name option.
Existing Customer: By using this functionality user can close a account in
any bank by selecting bank name option.
4
Transfer Money Details:
This module represents to the money transaction to the bank. Bank transfer is
when money is send form one bank to another. Transferring money from your
bank account is usually fast, free and safer to withdrawing and paying in cash.
Payments made using Faster Payment will sometimes be received immediately
after leaving your account, but cash sometimes take up to 2 hours. This option is
free, available 24 hours day and typically used in online mobile apps, over the
phone or internet. Most banks let you transfer at least l0,000,00 but some have
mush high limits.
Education loan:
By using this functionality useful only for the studying students. This
loan available to the purpose of college students, the students mark list and
ration card, college admission fees Xerox, and Aathar card time consuming
formalities involved. Pay interest for the exact period of loan, and to the
exact number of days.
Gold Loan:
By using this functionality only one recent ID-voter ID/ration
card/Driving license/passport.No time-consuming formalities involved. Pay
interest only the exact period of loan, and to the exact number of days.
Different schemes for different needs, to suit all income groups. Pay interest
only for the exact period of loan, and to the exact number of days.
5
Housing loan:
By using this functionality only one recent ID-voter ID/ration
card/Driving license/passport.No time-consuming formalities involved.
Agriculture loan:
By using this functionality useful only for the for formers. This loan
available to the purpose of garden. These are available new facilities in the
bank management.
Reports Details:
This module contains the report for all modules which contains the
saving account, joint account, loan available details. These are help to
analyze the whole bank information with up to date report. The report for
these modules can be export to anywhere and also can take Wont of that
report.
6
CHAPTER 3
Hard Disk : 50 GB
RAM : 2GB
7
3.3 About the Software
3.3.1 Vb.Net
Microsoft .NET is a set of Microsoft software technologies for rapidly
building and integrating XML Web services, Microsoft Windows-based
application and Web solutions. The .NET Framework is a language-neutral
platform for writing programs that can easily and securely inter-operate. There’s
no language barrier with .NET: there are numerous language available to the
developer including Managed C++, C#, Visual Basic and Java Script. The .NET
framework provides the foundation for components to interact seamlessly, whether
locally or remotely on different platform. It standardizes common data types and
communications protocol so that components created in different languages can
easily inter operate.
8
Memory management, notably including garbage collection.
Checking and enforcing security restrictions on the running code.
Loading and executing programs, with version control and other such
features.
The following features of the .NET framework are also worth
description
Managed Code
The code that targets .NET and which contains certain extra information -
“meta data”- to describe itself. Whilst both managed and unmanaged code can run
in the runtime, only managed code contains the information that allows the CLR to
guarantee, for instance, safe execution and interoperability.
Managed Data
The CLR uses something called the Common Type System (CTS) to strictly
enforce type-safely. This ensures that all classes are compatible with each other, by
describing types in a common way. CTS define how types work within the
9
runtime, which enables types in one language to inter operate with types in another
language, including cross-language exception handling. As well as ensuring that
types are only used in appropriate ways, the runtime also ensures that code does
not attempt to access memory that has not been allocated to it.
10
LANGUAGES SUPPORTED BY .NET
Visual Basic .NET has been updated to include many new and improved
language features that make it a powerful object-oriented programming language.
These features include inheritance, interface and overloading among others. Visual
Basic also now supports structured exception handling, customer attributes and
also supports multi-threading. Visual Basic .NET is also CLS compliant, which
means that any CLS-compliant language can use the classes, objects and
components you create in Visual Basic .NET.
Managed Extension for C++ and attributed programming are just some of
the enhancements made to the C++ language. Managed Extension simplify the task
of migrating existing C++ applications to the new .NET Framework.
11
OBJECTIVES OF .NET FRAMEWORK
3.3.2 SQL
The OLAP services feature available in SQL server version 7.0 is now called
SQL Server 2005 Analysis Services. The term OLAP services has been replaced
with the term Analysis services. Analysis services also include a new data mining
component. The Repository components available in SQL server version 7.0 is
now called Microsoft SQL server 2005 Meta Data Services. References to the
component now use the term Meta Data Services. The term repository is used only
in reference to the repository engine within Meta Data Services
They are
1. TABLE
2. QUERY
3. FORM
4. REPORT
5. MACRO
12
TABLE
VIEWS OF TABLE
1. Design view
2. Data sheet view
DESIGN VIEW
To build or modify the structure of a table we work in the table design view.
We can specify what kind of data will be hold.
To add, edit or analyses the data itself we work in tables data sheet view
mode
QUERY
A query is a question that has to be asked the data. Access gathers data that
answer the questions from one or more table. The data that make up the answer is
either dynast (if you edit it) or a snapshot (it cannot be edited). Each time we run
query, we get latest information in the dynast. Access either displays the dynast set
or snapshot for us to view or perform and action on it, such as deleting or updating.
13
CHAPTER 4
SYSTEM DESIGN
4.1 ARCHITECTURAL DIAGRAM
14
ARCHITECTURE VIEW MODEL
15
It should be suitable for tasks of architecture creation, refinement
and validation
It should provides a basic for further implementation, so it must be
able to add information to the ADL specification to enable the final
system specification to be derived from the ADL.
It should have the ability to represent most of the common
architectural styles.
It should support analytical capabilities or provide quick generating
prototype implementations
16
ARCHITECTURAL DIAGRAM
start
Login
Banking
system
Existing Agriculture
customer loan
Housing
loan
Gold loan
Reports details
Store the
data
End
17
4.2 DATA FLOW DIAGRAM
A DFA shows what kind of information will be input to and output from the
system, where the data will come from and go to, and where the data will be
stored. It does not show information about the timing of process or information
about whether processes will operate in sequence or in parallel.
Data flow diagrams are also know as bubble charts. DFD is a designing tool
used in the top-down approach to system design. This context-level DFD is next
“exploded”, to product a level 1 DFD that shows some of the detail of the system
being modeled. The level 1 DFD shows how the system is divided into sub-system
(process), each of which deals with one or more of the data flows to or from an
external agent, and which together provide all of the functionality of the system as
a whole. It also identifies internal data stores that must be present in order for the
system to do its job, and shows the flow of data between the various parts of the
system.
Data flow diagrams are one of the three essential perspectives of the structured
system analysis and design method SSADM. The support of a project and the end
users will need to be briefed and consulted through all stages of a system’s
evolution. With a data flow diagram users are able to visualize how the system will
operate, what the system will accomplish and how the system will be implemented.
The old system’s data flow diagram can be drawn up and compared with the new
system’s data flow diagrams to draw comparison to implement a more efficient
18
system. Data flow diagrams can be used to provide the end user with a physical
idea of where the data they input ultimately has an effect upon the structure of the
whole system from order to dispatch to report. How any system is developed can
be determined through a data flow diagram model.
A logical DFD captures the data flows that are necessary for a system to
operate. It describes the processes that are undertaken, the data required and
produced by each process and the stores needed to hold the data. On the other
hand, a physical DFD shows how the system is actually implemented either at the
moment (current physical DFD), or how the designer intends it to be in the future
(Required physical DFD). Thus a physical DFD may be used to describe the set of
data items that appear on each piece of paper that move around an office and the
fact that a particular set of pieces of paper are stored together in a filing cabinet. It
is quite possible that a physical DFD will include reference to data that are
duplication or redundant and that the data stores, if implementation as a set of
database tables, would constitute an un-normalized (or de-normalized) relational
database. In contrast a logical DFD attempts to capture the data flow aspects of a
system in a form that has neither redundancy nor duplication.
19
DATA FLOW DIAGRAM SYMBOLS
- Terminator
- Process
- Data
- Delay
- Document
- Multiple Documents
20
- Subroutine
- Preparation
- Display
- Manual Input
- Manual Loop
- Stored Data
- Database
21
- Connector
- Or
- Summing Junction
- Collate
- Sort
- Merge
22
- Data Base
- Internal Storage
Strengths
DFDs have diagrams that are easy to understand, check and change
data.
DFDs help tremendously in depicting information about how an
organization operations.
They give a very clear and simple look at the organization of the
interfaces between an application and the people or other applications
that use it.
Weaknesses
23
ability to access the data is passed explicitly from one component to the
other. This is why changes are impractical to be made on DFDs
especially in large system.
The DFD may be used for any levels of data abstraction. DFD can be
partitioned into levels. Each level has more information flow and data functional
details than the previous level.
RULES
24
DATA FLOW DIAGRAM
LEVEL 0
System
Administrator
Bank
Information
display
Bank
details
Get view
Username, password
Protected
Login
25
LEVEL 1
Worker details
database
Store the data
Store the
worker details
Get view
Details
No
Worker
Yes
details Report
26
LEVEL 2
System
Account store
Get the data the database
Account
details Report
27
LEVEL 3
Existing system
customer details
Customer
details stored
Customer
details Report
28
LEVEL 4
Get view
29
4.3 TABLE DESIGN
WORKER DETAIS:
LOAN ACCOUNT:
30
SAVING ACCOUNT:
31
JOINT ACCOUNT:
HOUSING LOAN:
CLOSE ACCOUNT:
32
AGRICULTURE ACCOUNT:
33
CHAPTER 5
SYSTEM IMPLEMENTATION
Easy program is test individually at time of development using the data has
certified that this program linked together in the way specified it the programs
specification. The computer system and its environment tested to the satisfaction of
the user. The system that has been developed is accepted and proved to be
satisfactory for the user. And so the system is going to be implemented very soon.
A simple operating procedure is included so that user can understand the different
functions clearly and quickly.
35
CHAPTER 6
SYSTEM TESTING
TYPES OF TESTING
UNIT TESTING
Unit testing involves the design of test cases that validate that the internal
program logic is functioning properly and that program inputs produce valid
outputs. All decision branches and internal code flow should be validated. It is the
testing of individual software units of the application. It is done after the
completion of an individual unit before integration. This is a structural testing, that
relies on knowledge of its construction and is invasive. Unit tests perform basic
tests at components level and test a specific business process, application, and/or
system configuration. Unit test ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined
inputs and expected results.
36
Unit testing is usually conducted as part of a combined code and unit test
phase of the software lifecycle. Although it is not uncommon for coding and unit
testing to be conducted as two distinct phase.
Field testing will be performed manually and functional tests will be written
in details
Test Objectives
Features to be tested
INTEGRATION TESTING
37
Software integration testing is the incremental integration testing of two or
more integrated software components on a single platform to produce failures
caused by interface defects.
TEST RESULTS: All the test cases mentioned above passed successfully. No
defects encountered.
FUNCTIONAL TEST
38
processes must be considered for testing. Before functional testing is complete,
additional tests are identified and the effective value of current tests is determined.
SYSTEM TESTING
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An
example of system testing is the configuration oriented system integration test.
System testing is based on process descriptions and flows, emphasizing pre-driven
process links and integration points.
White Box Testing is a testing in which in the software tester has knowledge
of the inner workings, structure and language of the software, or at least its
purpose. It is used to test areas that cannot be reached from a black box level.
Black Box Testing is the testing software without any knowledge of the
inner workings, structure or language of the module being tested. Black box tests,
as most other kinds of tests, must be written from a definitive source document,
such as specification or requirements document, such as specification or
requirements document, such as specification or requirements document. It is a
testing in which the software under test is treated, as a black box you cannot “see”
into it. The test provides inputs and responds to outputs without considering how
software works.
ACCEPTANCE TESTING
39
TEST RESULTS:
40
CHAPTER 7
CONCLUTION
41
BIBLIOGRAPHY
Visual Studio team foundation server 2012 adapting software agile software
practices by Sam (ruckenhenimer & nenoloje)
REFERENCES
http://searchoracle.techtarget.com/answer/SQL -query-for-co-authored-books
http://www.amotlpaa .org/misc/sql.html
http://sqlblog.com/blogs/tibor_karaszi/archive/2016/06/30/books -online-for-sql-
server-2016.aspx
http://www.goodread.com/book/show/8314563-microsoft-visual-basic-2010-steps-
by-step
http://www.amazon.com/murachs-Visual -Basic-2005-Reference/dps/890774383
42
A.Sample source Code:
LOGIN:
Public Class login
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If TextBox1.Text = "sa" And TextBox2.Text = "sa" Then
MsgBox("valid user")
Form1.Show()
Else
MsgBox("invalid user")
End If
End Sub
Private Sub login_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
End Class
EMPLOYEE DETAILS:
Imports System.Data.SqlClient
Imports System.Data
43
Dim i As Integer
Private Sub employee_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
Disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from worker", con)
ad.Fill(ds, "worker")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "worker"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into worker values('" & TextBox1.Text &
"','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" &
TextBox8.Text & "','" & TextBox9.Text & "','" & TextBox10.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
44
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
cmd = New SqlCommand("update worker set LastName='" & TextBox3.Text
& "'where DateofBrith=" & Val(TextBox6.Text) & "", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from worker where Password='" &
TextBox9.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("select * from worker where BankName='" &
TextBox4.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
45
TextBox6.Text = re.GetValue(5)
TextBox7.Text = re.GetValue(6)
TextBox8.Text = re.GetValue(7)
TextBox9.Text = re.GetValue(8)
TextBox10.Text = re.GetValue(9)
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
End Sub
End Class
46
SAVING ACCOUNT:
Imports System.Data.SqlClient
Imports System.Data
Public Class save
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Private Sub save_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from save1", con)
ad.Fill(ds, "save1")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "save1"
End Sub
47
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into save1 values('" & TextBox1.Text &
"','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("update save1 set UserName='" & TextBox1.Text
& "'where AccountType='" & TextBox3.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from save1 where BranchName='" &
TextBox5.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
48
cmd = New SqlCommand("select * from save1 where DateofDeposit='" &
TextBox4.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
TextBox6.Text = re.GetValue(5)
TextBox7.Text = re.GetValue(6)
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
49
Me.Hide()
End Sub
End Class
JOINT ACCOUNT:
Imports System.Data.SqlClient
Imports System.Data
Public Class jaint
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
Private Sub jaint_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from join1", con)
ad.Fill(ds, "join1")
50
DataGridView1.DataSource = ds
DataGridView1.DataMember = "join1"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into join1 values('" & TextBox1.Text & "','"
& TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
cmd = New SqlCommand("update join1 set JointCustomerName='" &
TextBox5.Text & "'where DateofJoining=" & Val(TextBox3.Text) & "", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from join1 where Purpose='" &
TextBox6.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
disp()
51
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("select * from join1 where UserName='" &
TextBox1.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
TextBox6.Text = re.GetValue(5)
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub
52
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
End Sub
SEnd Class
LOAN ACCOUNT:
Imports System.Data.SqlClient
Imports System.Data
Public Class Loan
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Private Sub Loan_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from loanacc", con)
53
ad.Fill(ds, "loanacc")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "loanacc"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into loanacc values('" & TextBox1.Text &
"','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("update loanacc set LoanProductName='" &
TextBox2.Text & "'where LoanPurpose='" & TextBox5.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from loanacc where InterestAmount='" &
TextBox4.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
54
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
cmd = New SqlCommand("select * from loanacc where AccountStatus='" &
TextBox3.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
55
End Sub
End Class
CREATE NEW ACCOUNT:
Imports System.Data.SqlClient
Imports System.Data
Public Class newacc
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Private Sub newacc_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
Disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from newacc1", con)
ad.Fill(ds, "newacc1")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "newacc1"
56
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into newacc1 values('" & TextBox1.Text &
"','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" &
TextBox8.Text & "','" & TextBox9.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("update newacc1 set Name='" & TextBox1.Text &
"'where AccountType='" & TextBox4.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from newacc1 where Date='" &
TextBox5.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
End Sub
57
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
cmd = New SqlCommand("select * from newacc1 where Dateofopening='" &
TextBox4.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
TextBox6.Text = re.GetValue(5)
TextBox7.Text = re.GetValue(6)
TextBox8.Text = re.GetValue(7)
TextBox9.Text = re.GetValue(8)
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
58
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
End Sub
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object,
ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
End Sub
End Class
Imports System.Data.SqlClient
Imports System.Data
Public Class transfer
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
Private Sub transfer_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
59
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from trans1", con)
ad.Fill(ds, "trans1")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "trans1"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into trans1 values('" & TextBox1.Text &
"','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
cmd = New SqlCommand("update trans1 set BranchName='" &
TextBox2.Text & "'where DateofClosing=" & Val(TextBox5.Text) & "", con)
60
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from trans1 where Address='" &
TextBox4.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("select * from trans1 where NameoftheBank='" &
TextBox1.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)s
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
TextBox6.Text = re.GetValue(5)
Else
MsgBox("Record not found")
End If
61
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
End Sub
End Class
HOUSING LOAN:
Imports System.Data.SqlClient
Imports System.Data
Public Class Housing
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
62
Private Sub Housing_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from house1", con)
ad.Fill(ds, "house1")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "house1"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into house1 values('" & TextBox1.Text &
"','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
disp()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
63
cmd = New SqlCommand("update house1 set Name='" & TextBox1.Text &
"'where Date=" & Val(TextBox3.Text) & "", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from house1 where AccountNumber='" &
TextBox2.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("select * from house1 where TotalAmount='" &
TextBox7.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
TextBox6.Text = re.GetValue(5)
TextBox7.Text = re.GetValue(6)
64
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
End Sub
End Class
AGRICALTURE LOAN:
Imports System.Data.SqlClient
Imports System.Data
Public Class Agri
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim re As SqlDataReader
65
Dim ad As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
Private Sub Agri_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
con = New SqlConnection("Data Source=yamuna-pc;initial
catalog=ACCOUNT3;user id=sa;password=sa")
con.Open()
disp()
End Sub
Sub disp()
ad.Dispose()
ds.Clear()
DataGridView1.Refresh()
ad = New SqlDataAdapter("select * from agri1", con)
ad.Fill(ds, "agri1")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "agri1"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cmd = New SqlCommand("insert into agri1 values('" & TextBox1.Text & "','"
& TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" &
TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "','" &
TextBox8.Text & "','" & TextBox9.Text & "')", con)
cmd.ExecuteNonQuery()
MsgBox("Values Add")
66
disp()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
cmd = New SqlCommand("update agri1 set CandidateName='" &
TextBox5.Text & "'where Date=" & Val(TextBox4.Text) & "", con)
cmd.ExecuteNonQuery()
MsgBox("Values Updated")
disp()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
cmd = New SqlCommand("delete from agri1 where AccountNumber='" &
TextBox2.Text & "'", con)
cmd.ExecuteNonQuery()
MsgBox("Values Deleted")
disp()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
cmd = New SqlCommand("select * from agri1 where NameoftheBank='" &
TextBox1.Text & "'", con)
re = cmd.EndExecuteReader()
If re.Read Then
TextBox1.Text = re.GetValue(0)
TextBox2.Text = re.GetValue(1)
TextBox3.Text = re.GetValue(2)
67
TextBox4.Text = re.GetValue(3)
TextBox5.Text = re.GetValue(4)
TextBox6.Text = re.GetValue(5)
TextBox7.Text = re.GetValue(6)
TextBox8.Text = re.GetValue(7)
TextBox9.Text = re.GetValue(8)
Else
MsgBox("Record not found")
End If
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Me.Hide()
End Sub
End Class
68
B. Screen Shorts:
Login:
Main Form:
69
Employee Details:
70
Joint Account:
71
Agriculture Loan:
Saving Account:
72
Loan Account:
Housing Loan:
73
Report
Saving Account Report:
74
Agriculture Report:
75
Create New Account:
76