Академический Документы
Профессиональный Документы
Культура Документы
BANKING ADMINISTRATION
Submitted in fulfillment of the requirements of the degree of
BACHELOR Of Computer Application(BCA)
(Bangalore University)
BY
2010-2011
CERTIFICATE
This is to certify that Rohit jain (08NASB3054) Sanchit goyal (08NASB3055), are bonafide
students of Sri Bhagawan Mahaveer Jain College and have carried out a project entitled
“BANKING ADMINISTRATION” . This project report has been submitted during the academic
year 2010-2011 in partial fulfillment of the requirements of the Degree of Bachelor Of computer
Application (BCA) of Bangalore University.
Guided By:
………………………………..
Mrs. SMITHA
Lecturer, HOD
Department of BCA Department of BCA
SBMJC SBMJC
...................................
EXTERNAL EXAMINERS
Date :……………………
1. ………………………..
Place :……………………
2. …………………………
2
DECLARATION
carried out by us under the guidance of Mrs. Smita. This project as presented in this
report is our original work and has not been presented for any other University
award. This project has been submitted as part fulfillment of requirements for the
University.
3
ACKNOWLEDGEMENT
We, the student of third year B.C.A (2010-2011), Sri Bhagawan Mahaveer Jain
College have developed software on BANKING ADMINISTRATION.
We are thankful to Mrs. Smita under whose guidance this project was carried out.
We thank Mr. Manjunath.B (H.O.D of BCA department) and all the BCA
department for their co-operation without whom we would not had completed our
project.
Finally we take the pleasure in acknowledging gratefully all of them who helped us
directly or indirectly in the preparation of this software package.
4
SI.NO CONTENTS
1 INTRODUCTION
2 SYNOPSIS
3 SRS
4 E-R DIAGRAM
6 TABLE DESIGN
7 SOURCE CODE
8 SCREEN SHOTS
10 CONCLUSION
11 BIBLIOGRAPHY
5
INTRODUCTION
The definition of our problem lies in manual system and a fully automated system.
Manual System : The system is very time consuming and lazy. This system is
more prone to errors and sometimes the approach to various problems is
unstructured.
Technical System : With the advent of latest technology if we do not update our
system then our business result in losses gradually with time. The technical
systems contains the tools of latest trend i.e. computers printers, fax, Internet
etc. The systems with this technology are very fast, accurate, user-friendly and
reliable.
A few factors that directs us to develop a new system are given below -:
1) Faster System
2) Accuracy
3) Reliability
4) Informative
6
SYNOPSIS
SAVINGS ACCOUNT
Under this module the savings account of the customers are handled. Interest
will be calculated and the board of directors decides the rate.
The tasks implemented here are:
• Create new accounts for customers
• Enter the deposit, withdrawal i.e., transaction and retrieval information
• Edit any customer information
• Calculated interest
7
• Generate daily reports, particular account number’s report, report of
transaction between the two dates etc.
CURRENT ACCOUNT
Under this model current accounting is handled. No interest is awarded here.
The tasks implemented here are:
• Create new accounts for customers
• Enter the deposit, withdraw i.e., transaction and retrieval information
• Edit new customer information
• Generate daily reports, particular account the two dates etc.
RECURRING DEPOSIT
Under this module only recurring deposit comes. There will be interest for
which the board of directors will decide the rate. In this the customer for which
he/she didn’t pay the installments correctly should pay a penalty. The board of
directors will fix this penalty rate.
In this interface the user in charge will be able to:
• Create new recurring deposits
• Enter the information of customer, the deposit
• Edit any customer information
• Calculate interest
8
SRS-(SYSTEM REQUIREMENT SPECIFICATIONS)
The SRS is a means of translating the ideas in the minds of the client into formal
document i.e. input to output requirements of the phase. Thus the output of the phase
is a set of formally specified requirements which hopefully are completed and
consistent. A good SRS provides many benefits. Some of the goals it accomplishes
are:-
9
The SRS assists the client in determining if the software meets the requirement.
Hardware Requirements
Software Requirements
Communication Interface:
• Mouse.
10
• Keyboard.
SYSTEM DESIGN
ER DIAGRAM
Weak Entity
A weak entity is an entity that must defined by a foreign key relationship with
another entity as it cannot be uniquely identified by its own attributes alone.
Key attribute
A key attribute is the unique, distinguishing characteristic of the entity. For example,
an employee's social security number might be the employee's key attribute.
11
ER DIAGRAM-1
12
ER-DIAGRAM-2
13
ER-DIAGRAM-3
14
ER-DIAGRAM-4
15
DATAFLOW DIAGRAM
16
Data flow diagram is a picture of the movement of data between external entities and
the process and data stored within a system.It allows us to model how data flows
through an information system,the relationships among data flows and how data is to
be stored at specific locations.data flow diagram is an efficient tool that is used for
process modeling.Process modeling is an analysis technique used to capture the flow
of inputs through a system(or a group of processes)to their resulting output.
1.A/C TYPE
17
User Verification
Add
new List of
Delete
a/c Modify a/c
record
types details types
s
a/c type
2.CUSTOMER ENTRY
User Verification
customer entry
3.AMOUNT DEPOSIT
18
User Verification
Amount deposit
4.AMOUNT WITHDRAWAL
User Verification
Amount withdrawal
19
5.CHEQUE ISSUE
User Verification
Cheque issue
20
TABLE DESIGN
1.Bank details:
21
2.CA A/C TYPES:
22
3.CABookIssue:
23
4.CA Main:
24
5.CA TRAN:
25
6.RD A/C DET:
26
7.RDACPerDet:
8.RD TRAN:
27
NAME TYPE NULL VALUE
28
NAME TYPE NULL VALUE
10.SBActype:
29
NAME TYPE NULL VALUE
30
NAME TYPE NULL VALUE
12.SB TRAN:
31
NAME TYPE NULL VALUE
13.LOGIN:
SOURCE CODE
32
• FLASH SCREEN FORM:
Public Class FlashScreen
Dim I As Integer
Private Sub FlashScreen_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
• LOGIN FORM:
Imports System.Data.SqlClient
Public Class LoginForm
33
Dim Cmd0 As New SqlCommand("select * from loginUserTab where
uName='" & UCase(UsernameTextBox.Text) & "' and pword='" &
PasswordTextBox.Text & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
RiMDI.Show()
Me.Close()
If Conn.State = ConnectionState.Open Then Conn.Close()
Else
MsgBox("Username or Password is not correct please check")
End If
End Sub
34
TextBox2.Text = D1(0).ToString
TextBox3.Text = D1(1).ToString
TextBox4.Text = D1(2).ToString
TextBox5.Text = D1(3).ToString
TextBox6.Text = D1(4).ToString
TextBox7.Text = D1(5).ToString
TextBox8.Text = D1(6).ToString
TextBox9.Text = D1(7).ToString
End If
End Sub
Conn.Open()
q1Var = "insert into BankDetailsTab("
q2Var = " values("
q1Var = q1Var & "RegNo" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "BankName" & ","
q2Var = q2Var & "'" & UCase(TextBox2.Text) & "',"
q1Var = q1Var & "Add1" & ","
35
q2Var = q2Var & "'" & TextBox3.Text & "',"
q1Var = q1Var & "Add2" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Add3" & ","
q2Var = q2Var & "'" & TextBox5.Text & "',"
q1Var = q1Var & "PinCode" & ","
q2Var = q2Var & "'" & TextBox6.Text & "',"
q1Var = q1Var & "PhoneNo" & ","
q2Var = q2Var & "'" & TextBox7.Text & "',"
q1Var = q1Var & "eMail" & ","
q2Var = q2Var & "'" & TextBox8.Text & "',"
q1Var = q1Var & "website" & ")"
q2Var = q2Var & "'" & TextBox9.Text & "')"
End Sub
36
End Sub
End Class
End Sub
37
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acName from SbAcTypeTab where
acName='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
38
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select acName,MinBal From
SbAcTypeTab order by acName", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
39
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
40
End Sub
End Sub
41
End Sub
• SB CUST FORM:
Imports System.Data.SqlClient
Public Class SBCustForm
Dim pkVar As String
Private Sub BuyerForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acName from sbacTypeTab order by
acName", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
While D1.Read
ComboAcType.Items.Add(D1(0))
End While
End Sub
42
ClearTxtControls(Me, 1)
TextBox1.Focus()
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acNo from sbacMainTab where
acNo='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
43
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
q1Var = "insert into sbacMainTab("
q2Var = " values("
q1Var = q1Var & "acNo" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "custName" & ","
q2Var = q2Var & "'" & TextBox2.Text & "',"
q1Var = q1Var & "Add1" & ","
q2Var = q2Var & "'" & TextBox3.Text & "',"
q1Var = q1Var & "Add2" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Add3" & ","
q2Var = q2Var & "'" & TextBox5.Text & "',"
q1Var = q1Var & "PinCode" & ","
q2Var = q2Var & "'" & TextBox6.Text & "',"
q1Var = q1Var & "PhoneNo" & ","
q2Var = q2Var & "'" & TextBox7.Text & "',"
q1Var = q1Var & "eMail" & ","
q2Var = q2Var & "'" & TextBox8.Text & "',"
q1Var = q1Var & "Dob" & ","
q2Var = q2Var & "'" & DDate.Value & "',"
q1Var = q1Var & "Gender" & ","
q2Var = q2Var & "'" & ComboGender.Text & "',"
q1Var = q1Var & "acType" & ")"
q2Var = q2Var & "'" & ComboacType.Text & "')"
End Sub
Sub disRecords()
44
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select acNo,custName From sbacMainTab
order by acNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
45
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
46
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Customer details modified", MsgBoxStyle.OkOnly)
End Sub
End Sub
47
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub
• SB DEPOSIT FORM:
Imports System.Data.SqlClient
Public Class sbDepForm
Dim pkVar As Long
Private Sub SbTranTabForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
48
End While
vDate.Value = Today.Date
End Sub
TextBox1.Focus()
End Sub
49
TextBox1.Focus()
MsgBox("Record saved", MsgBoxStyle.OkOnly)
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
50
disRecords()
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select TranNo,SbAcNO,tranAmt From
SbTranTab where tranType=1 order by TranNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
butNew.Enabled = True
butSave.Enabled = False
51
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
52
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record modified", MsgBoxStyle.OkOnly)
End Sub
End Sub
53
Conn.Open()
Dim Cmd0 As New SqlCommand("select max(TranNo) from SbTranTab",
Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = IIf(IsDBNull(D1(0)), 0, D1(0)) + 1
Else
TextBox1.Text = "1"
End If
ComboBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub
• SB WITHDRAW FORM:
Imports System.Data.SqlClient
Public Class SbWithdrawForm
Dim pkVar As Long
54
Dim amnt As Integer
Private Sub SbTranTabForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
vDate.Value = Today.Date
End Sub
TextBox1.Focus()
55
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
56
q2Var = q2Var & "'" & vDate.Value & "',"
q1Var = q1Var & "TranType" & ","
q2Var = q2Var & "2,"
q1Var = q1Var & "SbAcNo" & ","
q2Var = q2Var & "'" & ComboBox1.Text & "',"
q1Var = q1Var & "TranAmt" & ","
q2Var = q2Var & "" & Val(TextBox3.Text) & ","
q1Var = q1Var & "TranDet" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Rem1" & ")"
q2Var = q2Var & "'" & TextBox5.Text & "')"
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select TranNo,SbAcNO,tranAmt From
SbTranTab where tranType=2 order by TranNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
57
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from SbTranTab where TranNo="
& pkVar & "", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
vDate.Value = D1(1)
ComboBox1.Text = D1("SbAcNo").ToString
TextBox3.Text = D1("tranAmt").ToString
TextBox4.Text = D1("TranDet").ToString
TextBox5.Text = D1("Rem1").ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
58
End Sub
End Sub
59
disRecords()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record deleted", MsgBoxStyle.OkOnly)
End Sub
End Sub
60
Private Sub butList_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butList.Click
disRecords()
End Sub
61
End Class
vDate.Value = Today.Date
End Sub
62
If D1.HasRows Then
D1.Read()
TextBox1.Text = IIf(IsDBNull(D1(0)), 0, D1(0)) + 1
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
TextBox1.Focus()
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
63
q1Var = q1Var & "vNo" & ","
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "vDate" & ","
q2Var = q2Var & "'" & vDate.Value & "',"
q1Var = q1Var & "TranType" & ","
q2Var = q2Var & "1,"
q1Var = q1Var & "SbAcNo" & ","
q2Var = q2Var & "'" & ComboBox1.Text & "',"
q1Var = q1Var & "FromNo" & ","
q2Var = q2Var & "" & Val(TextBox3.Text) & ","
q1Var = q1Var & "toNo" & ","
q2Var = q2Var & "" & Val(TextBox2.Text) & ","
q1Var = q1Var & "ReqNo" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Rem1" & ")"
q2Var = q2Var & "'" & TextBox5.Text & "')"
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select vNo,SbAcNO,FromNo From
SbBookIssueTab order by vNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
64
Private Sub DG1_CellContentClick(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles
DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from SbBookIssueTab where
vNo=" & pkVar & "", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
vDate.Value = D1(1)
ComboBox1.Text = D1("SbAcNo").ToString
TextBox3.Text = D1("FromNo").ToString
TextBox2.Text = D1("toNo").ToString
TextBox4.Text = D1("ReqNo").ToString
TextBox5.Text = D1("Rem1").ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
65
End Sub
End Sub
66
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from SbBookIssueTab where vNo="
& pkVar & "", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record deleted", MsgBoxStyle.OkOnly)
End Sub
67
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub
68
Private Sub butSave_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butSave.Click
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("CA type saved", MsgBoxStyle.OkOnly)
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acName from CAAcTypeTab where
acName='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
69
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "Facility" & ","
q2Var = q2Var & "'" & TextBox2.Text & "',"
q1Var = q1Var & "Minbal" & ","
q2Var = q2Var & "" & Val(TextBox3.Text) & ","
q1Var = q1Var & "Rem1" & ")"
q2Var = q2Var & "'" & TextBox4.Text & "')"
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select acName,MinBal From
CAAcTypeTab order by acName", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
70
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
TextBox2.Text = D1(1).ToString
TextBox3.Text = D1(2).ToString
TextBox4.Text = D1(3).ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
71
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from CAAcTypeTab where
acName='" & pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("CA type modified", MsgBoxStyle.OkOnly)
End Sub
72
MsgBox("CA type deleted", MsgBoxStyle.OkOnly)
End Sub
73
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acName from caacTypeTab order by
acName", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
While D1.Read
ComboAcType.Items.Add(D1(0))
End While
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
74
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acNo from CAMainTab where
acNo='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
75
q1Var = q1Var & "Gender" & ","
q2Var = q2Var & "'" & ComboGender.Text & "',"
q1Var = q1Var & "acType" & ")"
q2Var = q2Var & "'" & ComboAcType.Text & "')"
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select acNo,custName From CAMainTab
order by acNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
76
TextBox2.Text = D1(1).ToString
TextBox3.Text = D1(2).ToString
TextBox4.Text = D1(3).ToString
TextBox5.Text = D1(4).ToString
TextBox6.Text = D1(5).ToString
TextBox7.Text = D1(6).ToString
TextBox8.Text = D1(7).ToString
DDate.Value = D1(8).ToString
ComboGender.Text = D1(9).ToString
ComboAcType.Text = D1(10).ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
77
If vbNo = MsgBox("Are you sure you want modify this record",
MsgBoxStyle.YesNo, "Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from CAMainTab where acNo='" &
pkVar & "'", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Customer details modified", MsgBoxStyle.OkOnly)
End Sub
78
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Customer details deleted", MsgBoxStyle.OkOnly)
End Sub
79
Private Sub CATranTabForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
vDate.Value = Today.Date
End Sub
80
TextBox1.Focus()
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
81
q2Var = q2Var & "'" & ComboBox1.Text & "',"
q1Var = q1Var & "TranAmt" & ","
q2Var = q2Var & "" & Val(TextBox3.Text) & ","
q1Var = q1Var & "TranDet" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Rem1" & ")"
q2Var = q2Var & "'" & TextBox5.Text & "')"
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select TranNo,AcNO,tranAmt From
CATranTab where tranType=1 order by TranNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
82
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
vDate.Value = D1(1)
ComboBox1.Text = D1("AcNo").ToString
TextBox3.Text = D1("tranAmt").ToString
TextBox4.Text = D1("TranDet").ToString
TextBox5.Text = D1("Rem1").ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
83
If vbNo = MsgBox("Are you sure you want modify this record",
MsgBoxStyle.YesNo, "Delete") Then Exit Sub
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim cmd1 As New SqlCommand("Delete from CATranTab where TranNo="
& pkVar & "", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
SaveRecord()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record modified", MsgBoxStyle.OkOnly)
End Sub
84
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record deleted", MsgBoxStyle.OkOnly)
End Sub
End Sub
85
End Sub
vDate.Value = Today.Date
End Sub
86
ClearTxtControls(Me, 1)
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select max(TranNo) from CATranTab",
Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = IIf(IsDBNull(D1(0)), 0, D1(0)) + 1
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
TextBox1.Focus()
End Sub
87
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
End Sub
Sub disRecords()
88
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select TranNo,AcNO,tranAmt From
CATranTab where tranType=2 order by TranNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
89
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
90
End Sub
End Sub
91
If D1.HasRows Then
D1.Read()
TextBox1.Text = IIf(IsDBNull(D1(0)), 0, D1(0)) + 1
Else
TextBox1.Text = "1"
End If
ComboBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub
92
t1 = IIf(IsDBNull(D1(0)), 0, D1(0))
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd1 As New SqlCommand("select sum(tranAmt) from caTranTab
where acNo='" & UCase(ComboBox1.Text) & "' and trantype=2", Conn)
Dim D2 As SqlDataReader = Cmd1.ExecuteReader()
If D2.HasRows Then
D2.Read()
t2 = IIf(IsDBNull(D2(0)), 0, D2(0))
End If
amnt = t1 - t2
LabelName.Text = "Balance Amount : " & amnt
End Sub
End Class
Imports System.Data.SqlClient
Public Class CAChequeIssueForm
Dim pkVar As Long
Private Sub CABookIssueTabForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
93
End While
vDate.Value = Today.Date
End Sub
TextBox1.Focus()
End Sub
94
TextBox1.Focus()
MsgBox("Record saved", MsgBoxStyle.OkOnly)
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
95
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select vNo,SbAcNO,FromNo From
CABookIssueTab order by vNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
96
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
97
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record modified", MsgBoxStyle.OkOnly)
End Sub
End Sub
98
Dim Cmd0 As New SqlCommand("select max(vNo) from CABookIssueTab",
Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = IIf(IsDBNull(D1(0)), 0, D1(0)) + 1
Else
TextBox1.Text = "1"
End If
ComboBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record modified", MsgBoxStyle.OkOnly)
End Sub
99
Imports System.Data.SqlClient
Public Class RDCustEntryForm
Dim pkVar As String
Private Sub BuyerForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
100
Exit Sub
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select acNo from RDAcDetTab where
acNo='" & UCase(TextBox1.Text) & "'", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
MsgBox("This record is allready present in the database")
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
101
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select acNo,achName From RDAcDetTab
order by acNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
102
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
TextBox2.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
103
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record modified", MsgBoxStyle.OkOnly)
End Sub
End Sub
104
TextBox1.Focus()
butNew.Enabled = False
butSave.Enabled = True
butModify.Enabled = False
ButDelete.Enabled = False
End Sub
TextBox6.Text = Math.Round(tAmt, 0)
End Sub
End Class
105
• RD DEPOSIT FORM:
Imports System.Data.SqlClient
Public Class RDDepForm
Dim pkVar As Long
Private Sub RDTranTabForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.WindowState = FormWindowState.Maximized
disRecords()
vDate.Value = Today.Date
End Sub
106
D1.Read()
TextBox1.Text = IIf(IsDBNull(D1(0)), 0, D1(0)) + 1
If Conn.State = ConnectionState.Open Then Conn.Close()
Exit Sub
End If
TextBox1.Focus()
End Sub
End Sub
Sub SaveRecord()
If TextBox1.Text = "" Then
MsgBox("Please enter the necessary details")
Exit Sub
End If
107
q2Var = q2Var & "'" & UCase(TextBox1.Text) & "',"
q1Var = q1Var & "TranDate" & ","
q2Var = q2Var & "'" & vDate.Value & "',"
q1Var = q1Var & "TranType" & ","
q2Var = q2Var & "1,"
q1Var = q1Var & "SbAcNo" & ","
q2Var = q2Var & "'" & ComboBox1.Text & "',"
q1Var = q1Var & "TranAmt" & ","
q2Var = q2Var & "" & Val(TextBox3.Text) & ","
q1Var = q1Var & "TranDet" & ","
q2Var = q2Var & "'" & TextBox4.Text & "',"
q1Var = q1Var & "Rem1" & ")"
q2Var = q2Var & "'" & TextBox5.Text & "')"
End Sub
Sub disRecords()
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim DS1 As New DataSet
Dim adp As New SqlDataAdapter("Select TranNo,SbAcNO,tranAmt From
RDTranTab where tranType=1 order by TranNo", Conn)
adp.Fill(DS1)
DG1.DataSource = DS1.Tables(0)
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
108
Private Sub DG1_CellContentClick(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles
DG1.CellContentClick
pkVar = DG1.CurrentRow.Cells(0).Value
If Conn.State = ConnectionState.Open Then Conn.Close()
Conn.Open()
Dim Cmd0 As New SqlCommand("select * from RDTranTab where TranNo="
& pkVar & "", Conn)
Dim D1 As SqlDataReader = Cmd0.ExecuteReader()
If D1.HasRows Then
D1.Read()
TextBox1.Text = D1(0).ToString
vDate.Value = D1(1)
ComboBox1.Text = D1("SbAcNo").ToString
TextBox3.Text = D1("tranAmt").ToString
TextBox4.Text = D1("TranDet").ToString
TextBox5.Text = D1("Rem1").ToString
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = True
ButDelete.Enabled = True
Else
TextBox1.Text = ""
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
End If
If Conn.State = ConnectionState.Open Then Conn.Close()
End Sub
109
Private Sub butClose_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butClose.Click
Me.Close()
End Sub
End Sub
110
Dim cmd1 As New SqlCommand("Delete from RDTranTab where TranNo="
& pkVar & "", Conn)
cmd1.ExecuteNonQuery()
If Conn.State = ConnectionState.Open Then Conn.Close()
disRecords()
butNew.Enabled = True
butSave.Enabled = False
butModify.Enabled = False
ButDelete.Enabled = False
ClearTxtControls(Me, 1)
TextBox1.Focus()
MsgBox("Record deleted", MsgBoxStyle.OkOnly)
End Sub
111
ButDelete.Enabled = False
End Sub
112
SCREEN SHOTS
113
• LOGIN FORM:
114
• COMPANY DETAILS FORM:
115
116
SBCUSTFORM:
117
• SB DEPOSIT FORM:
118
• SB WITHDRAW FORM:
119
• SB CHEQUE ISSUE FORM:
120
• CA A/C TYPE FORM:
121
• CA CUST ENTRY FORM:
122
• CA A/C DEPOSIT FORM:
123
124
• CA A/C WITHDRAWL FORM:
125
• CA CHEQUE ISSUE FORM:
126
• RD CUST ENTRY FORM:
127
128
• RD DEPOSIT FORM:
DATA REPORT
129
• SB CUST REPORT:
130
• SB DEPOSIT REPORT:
131
• SB WITHDRAWAL REPORT:
132
• CA A/C WITHDRAWAL REPORT:
133
• CA A/C WITHDRAWAL REPORT:
134
TESTING DEBUGGING AND VALIDATION
135
In this phases we have tried to check all the modules separately for there proper
formatting.
After this step we have performed a unit test to check the functionality of the
whole system.
When we enter number in the form then it show wrong .Because it is not
number type
It is a character. So it shows wrong value.
When we put any any character it will not accept and we can enter only 10
numbers.
When we Put any other value or character then it will not accept.
CONCLUSION
136
The automated system, which has the current manual system, has reduced a lot of
work load. Our main intention was to provide user-friendly interface and reduce
redundancy inn data. Documentation being done manually involves a lot of
manpower, but for the implementation of records in our project, documentation
becomes an easier task. The paper work has been reduced tremendously as most of
the transactions are performed through soft copies.
Since security is the most sought option in this computer era a lot of protection has
been provided to the package thus making it a lot more secure.
BIBLIOGRAPHY
137
SOFTWARE ENGINEERING
138