Beruflich Dokumente
Kultur Dokumente
1. INTRODUCTION 02
2. OBJECTIVE 03
3. REQUIREMENT ANALYSIS 04
4. VALUE ADDED FEATURES 08
5. ABOUT PROJECT 08
6. APPICATION AREA 09
7. SECURITY 09
8. LIMITATIONS 10
9. FUTURE APPLICATION 11
10. HARDWARE CONFIGURATION 12
11. PURPOSE OF THE PROJECT 13
12. DATA FLOW DIAGRAM 14
13. INPUT DETAILS 18
14. OUTPUT DETAILS 22
15. TOOLS USED 34
16. PROGRAM CODE 44
17. FUTURE PROJECT SCOPE 114
18. SYSTEM TESTING 115
19. TEST CASE 118
20. BIBLIOGRAPHY 118
Page 1 of 1
INTRODUCTION
Some important features for this project to support for users requirement
are:-
Page 2 of 2
OBJECTIVE
The idea of the project was to simplify the procedures of Banking and
there operation. It can manage any number of accounts. It is simple to
understand and can be used by anyone who is not familiar with VB.Net or
computers.
Single person can to operate the accounts of the Customer held by it for
the needs to have a system which can handle all its accounts fluently. The
account management of the organization with little modification can use
the system. It can handle large number of operation of the organization.
Page 3 of 3
COMPLETE ANALYSIS DESIGN DOCUMENT
REQUIREMENT ANALYSIS
Page 4 of 4
possibility of and error
3 Calculation of Loan, Intrest etc of each account is very difficult and
takes more time.
4 Finding details about closed accounts becomes very difficult
All these problem can be avoided if the whole setup is computerized that
is few person can easily perform the job. So computerization is more
suited for data base application because of two reasons one first it can hold
large amount of data in its storage devices and second it operated at a very
high speed.
These two factors make it ideal for database application.
The accounts management system is created in user friendly and easy to
use environment. It can manage any number of accounts and reduce labor
and increase the speed of operation.
So we can draw many advantages computerized Online Banking account
management system over the manual system.
Page 5 of 5
8 Use the Procedure in the all Application, that increase the
Performance of the query.
9 Possibilities of wrong calculation can be avoided very
efficiently.
10 Modification in old details of account can be done efficiently.
11 Automatic account number generation, avoid the duplication
of
account number.
12 Automatic Loan number generation, avoid the duplication of
Loan number.
13 Maintenance of database like the Northwind and transaction
file
is far easier in the computerized system.
Page 6 of 6
maintain through the database.
Stop Payment :- in this, The Account holder can request for the Stop
Payment.
Cheque Book Request :- in this, The account holder can request for the
Cheque Book
Tranaction Report :- in this, The account holder can quickly generate
the report.
Accessing Banker Employee :- In This, if Employee enter the correct
User name and Password then any employee access the Bank Module.
There are many types operation that bank employee can access operation.
Closing of Accounts:- In this we will close the accounts when an
Customer Close own Account but simultaneously we will show the
contents of the all previous details of But all the details are stored in the
database. which have only deleted details ,so that we can see all the details
of those accounts holder’s who are not account holder in the bank.
Banker Stop Payment :- in this, we will confirm the Cheque Book
Request .
Installment of loan or advance:- In this we will withdraw the money of
installment of loan or advances for the existing account but
simultaneously it will check for the previous payment details as required
at the time of payment if it finds not paid previous installment then it will
show the a message that the employee must have to pay particular sum of
money and easy to less amount of money in the account.
Calculation of Loan Intrest:- In this we will calculate the loan intrest of
different account at different time period according to the Customer Code.
Depending upon the organization we can define our own earning and
deduction as per Customer Code structure similarly we can define loan
and leave structure as per Customer Code.
Customer Module:-In this we will have four options,
Page 7 of 7
1 The first option will be complete detail of Customer as
AccountNumber, Name , Address, Phone number, Gender, Office
Address, Home Address etc.
2 The Second option will show us all the details of Account holder.
3 The Third Option provides request for the Cheque Book.
4 The Four option will help for Transaction Money.
5 The Fifth option will show the details of Daily/monthly report of
employee.
Page 8 of 8
ABOUT THE PROJECT
The idea of the project was to simplify the procedures of Transaction and
their operation. It can manage any number of accounts. It is simple to
understand and be used by any one who is not familiar with any computer
language or ever computers. It is user friendly and just asks the user to
follow step-by-step operation by giving him little operation. It id fast and
can operate any number of operation issues:-
Withdrawal of money
Deposit of money
Calculation of Loan intrest
Loan structure as per Customer Code.
Employee detail and Generate Transaction Money Details.
APPLICATION AREA
Page 9 of 9
giving him little option. It is fast, flexible and can operate a number of
sections of a any business, industries and trading company like opening of
new Customer, maintaining the Transaction amount, closing of accounts,
issue of loans, taxes, unlimited earning and deduction categories ,advances
and ever
calculation of interest.
SECURITY IMPLEMENTATION
For any software security is the main things. I have used security at user
level and application level. In this project I have given security at user
level that only the authorized user can be accessed this software. Different
users have the different right to access this software. Only the authorized
person of the company can edit the department details, employee details,
Grade details and company information.
When the project is run login form is open at first and it will asked to enter
the login id and password if the user will enter correct login id and
password then user will go to access the software in which area where
they have a right provided by their Managers of that departments.
If the user enter the correct login id and password then they can
access this software other wise message will be display invalid login id
and password, enter correct login id and password.
LIMITATION
After a qualitative analysis of the project, it is seem that, the project takes
a no. of high end software for front end back end connecting. So the
platform each and every above topic is restricted to be a version of client
Page 10 of 10
server supporting system. So precisely we have to take such a high
configured tools and environment topics. As far as our requirement is
concerned in this application we need not to be precise to take such high
configured software i.e. We should have taken lower grade connectivity or
low level platform or back end. But to give a future scope to the
organization to extend there project up to E-Commerce supporting tool to
have a distributed system, we feel better to take such advantages and
secured tools and environment for this project.
Page 11 of 11
FUTURE APPLICATION OF PROJECT
This project uses visual basic as front end, MS-SQL Server as back end
and Windows 2000 server as the platform these three combinations of
software has a powerful capacity to serve for the task starting from
desktop application area up to distrusted e-commerce project. One of these
projects is to extend this application to e-commerce project for a better
business development. The back end tool used in this project supports a
series of extraordinary feature to support client server based system. It
also supports multi-user networking projects by making a number of
instances in it. As far as front end is concerned visual basic has its
extended capability to develop project up to COM & DCOM level with
the help of Active X feature of this front end.
Along this connectivity feature, i.e., provided with this project by using
ADO to connect through DSN with MS-SQL Server helps to support the
future application of e-commerce with database handling & business
development by a suitable interaction with the client, to make the
organization famous in the market and to take the query from the
customers of the market.
I hope the future application will definitely help the organization to
improve productivity in statistical analysis of the business development.
Page 12 of 12
HARDWARE CONFIGURATION
Page 13 of 13
PURPOSE OF THE PROJECT
Till now whole of the work is done manually and sometimes the operation
are not properly checked and calculated. Because of these mistakes the
whole job is done again and again and the organization suffers. Now it is
require computerizing the organization of the work and less efforts with
efficiency.
Computerizing the system will aid in maintaining the master
records for the customer for the bank. Providing a better and cheaper
medium to control the operation along with user-friendly interface to ease
the job.
Page 14 of 14
Data Flow Daigram
1
Log Form
1 Log form
2
Customer Module
3.1
Personal Detail
2 Customer Table
4
4 ChequeBookRequest
Cheque Book
.
5 Table
5 CreditdebitAmount .
Credit … Table
6
6 Creditdebit Amount
Debit ….. Table
7 Page 15 of 15
7 Balance Table
Balance
1
Log Form 1 Log form
2
Banker Module
3.1
Personal Detail
2 Customer Table
4
4 CreditdebitAmount .
Transactin Detail
… Table
5
5 CreditdebitAmount .
Loan Detail
… Table
Page 16 of 16
A
A 2 personal.dat
employee table
3 department.dat
department table
4 attandance.dat
attendance table
8
5 loan.dat
loan table
Transaction
6 bonuslta.dat
bonus table
7 incometax.dat
itax table
8 salary.dat
salary table
2 employee table
3 department table
4 attendance table
5 loan table
8 6 bonus table
Monthly Report
7 incometax.dat
Page 17 of 17
8 salary.dat
B
B 2 personal table
3 department table
4 attendance table
8
Annual Report 5 loan table
6 bonus table
7 itax table
8 salary table
Page 18 of 18
INPUT DETAILS
The input is the main part of any system; computer system is also worked
on input-process-output. When we give wrong input or unambiguous input
to the database then it cannot return the right output to us. So our main
concern is to provide right input so that we can achieve the right goal. We
have to enter the data according to the database design and structure. So,
that we are using here the structure of the database. Here I am discussing
the main module of the database that is database entity and its attributes in
details.
Name of entity
Entity Name Entity Description
Customer Details of Customer
DebitAmount Details of DebitAmount
CreditAmount Details of CreditAmount
Balance Details of BalanceAmount
Page 19 of 19
Customer
S No Attributes Description Constraints/ Data Type
validation
1 cAccountNumber Account Number Primary Key Varchar
2 vFirstName First Name of Customer Varchar
3 vLastName Last Name of Customer Char
4 vOfficeAddress Office Address of Customer Varchar
5 cHomeAddress Home Address of Customer Varchar
6 dDateofBirth Date of Birth of Customer DateTime
7 cAccountType Account type Varchar
8 cGender Gender Varchar
9 cOfficePhone Office Phone of Customer Int
10 cHomePhone Home Phone of Customer Char
11 cPassword Password Char
12 dDateOfOpened Date of Open Char
13 cATMCardNumber ATM Card Number Varchar
14 cCreditCardNumber Credit Card Number Varchar
15 dDateOfExpiry Date Of Expiry Varchar
DebitCreditAmount
S No Attributes Description Constraints/v Data Type
alidation
1 CAccountNumber Account Number Foreign Key Varchar
2 TDate Date of Transaction Varchar
3 CreditAmount Credit Amount NULL Float
4 Debit Amount Debit Amount NULL Float
Balance
S No Attributes Description Constraints/validat Data Type
ion
1 CAccount Number Account Number Primary Key Varchar
2 cAccounttype Account Type Varchar
3 mBalance Balance Amount Varchar
4 rRate Rate Varchar
ChequeBookDetails
S No Attributes Description Constraints/validat Data Type
Page 20 of 20
ion
1 cChequeBookNum Cheque Book Number Primary Key Varchar
ber
2 CAccount Number Account Number Foreign Key Varchar
3 dDateIssued Issue Date Varchar
4 cStartNumber Start Number Varchar
5 cLastNumber Last Number Varchar
RegistrationloanDetail
S No Attributes Description Constraints/validat Data Type
ion
1 cCustomerCode CustomerCode Primary Key Varchar
2 cLoanID Loan No Primary Key Varchar
3 CAccountNumber Account Number Foreign Key Varchar
4 VFirstName First Name Varchar
5 VLastName Last Name Varchar
6 vOfficeAddress Office Address Varchar
7 vHomeAddress Home Address Varchar
8 dDateofBirth Date Of Birth Varchar
9 cGender Gender Varchar
10 cOfficePhone Office Phone Varchar
11 cHomePhone Home Phone Varchar
12 cLoanType Loan Type Varchar
13 State State Varchar
14 Country Country Varchar
15 ZipCode Pin Code Float
16 EmailID Email ID Varchar
,
Loan
S No Attributes Description Constraints/validat Data Type
ion
1 cCustomerCode Customer Code Foreign Key Varchar
2 cLoanID Loan ID Foreign Key Varchar
3 CAccountNumber Account Number Foreign Key Varchar
4 DepositAmount Loan Deposit Float
5 interest Intrest Float
6 DurationTime Duration Time Int
7 dDate Date Varchar
8 BalanceAmount Balance Loan Float
Page 21 of 21
9 MonthlyAmount Monthly Amount Float
10 LoanAmount Loan Amount Float
DepositLoan
S No Attributes Description Constraints/validat Data Type
ion
1 cCustomerCode Customer Code Primary Key Varvhar
2 CLoanID Loan No Foreign key Varchar
3 cAccountNumber Account Number Foreign key Varchar
4 BalanceAmount Balance Amount Float
BankerLogin
S No Attributes Description Constraints/validat Data Type
ion
1 LoginName Login Name Primary Key Varchar
2 cPassword password Varchar
OUTPUT DETAILS
Output is the one of the main object of any system. The main goal of any
system to achieve the desired output. When we enter/give right input data
to any system/computer system then after processing of this data it will
return the output according to their input details. If either the input is
incorrect or the processing is incorrect then we can get the wrong
unambiguous output otherwise we will get the desired output. Now I am
going to show all the output form and report of this project.
Page 22 of 22
Splash Form
Registration Form
Page 23 of 23
CustomerModule Form
Page 24 of 24
Customer Details Form
Page 25 of 25
ChequeBookRequest Form
Page 26 of 26
Credit Amount Form
Page 27 of 27
Balance Detail Form
Page 28 of 28
Banker StopPayment Request Form
Page 29 of 29
Loan Detail Form
Loan Form
Page 30 of 30
DepositLoan Form
Page 31 of 31
Report Form
Report Form
Page 32 of 32
Balance Report
Login Form
Page 33 of 33
Change Login
Page 34 of 34
TOOLS USED
Windows2000 Server
Page 35 of 35
You can deploy new servers into your existing network one at a
time, upgrade individual NT 4.0 servers, upgrade top-down
throughout your organization; or anywhere in between. You can add
Windows 2000 servers to your existing Windows NT 4.0-, Novell
NetWare-, or UNIX-based environments and see immediate
improvements in performance, reliability and manageability.
Reliability:-
Availability:-
Performance:-
Page 36 of 36
results. Microsoft tests show that Windows 2000 Server is up to 49
percent faster when deployed as a file server. Windows 2000
performance scales even better when additional CPUs are added;
providing a performance improvement of up to 125 percent over
Page 37 of 37
applications. Plus, you can build new and versatile solutions using
the most complete set of Internet technologies available.
Hardware:-
Page 38 of 38
and versioning support any language the target it. This means the
runtime can host a variety of language and offer a set of tool across
these language, ensuring interpretability between the codes.
Scalability:-
Metadata:-
Page 39 of 39
Namespaces:-
Windows Forms
Web Forms
Console Application
Web Form:- The part of .Net that handles communications with the
Internet is called ASP.NET. It includes a forms engine called Web
Forms, which can be used to create browser based user interfaces.
There are two parts
Page 40 of 40
Console Application:-Although Microsoft doesn’t emphasize the
ability to write character based application, the .Net Framework
does include an interface for such console application.
Easier Deployment:-
Page 41 of 41
Poor integration with other languages such as C++
Web-Enabled Analysis:-
Analyze data from remote OLAP cubes that are Web accessible.
Application Hosting:-
Page 42 of 42
Gain a deep understanding of online customer behavior, so that you
can make better business decisions.
Security
Full-Text Search
High Availability
Scalability
Indexed Views
Replication
Page 43 of 43
Automatic tuning and maintenance features enable administrators to
focus on other critical tasks.
Extend Applications
Data Mining
Page 44 of 44
PROGRAM CODE
Imports AppComponent
Page 45 of 45
TextBox2.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox2.Text), " ") > 0 Then
GroupBox3.Visible = True
Label3.Text = "Please Enter the Password Without Spacing"
TextBox2.SelectionStart = 0
TextBox2.SelectionLength = TextBox2.MaxLength
TextBox2.Focus()
Exit Sub
End If
str = TextBox1.Text
str1 = TextBox2.Text
If val.validusername(str, str1) = True Then
fobj.Label2.Text = val.FName
fobj.Label4.Text = val.PassName
Me.Hide()
GroupBox3.Visible = False
fobj.Show()
Else
msg = MsgBox("Please Enter the Correct Information in the
Both Field", MsgBoxStyle.OKOnly)
If msg = DialogResult.OK Then
TextBox1.Text = ""
TextBox2.Text = ""
GroupBox3.Visible = False
TextBox1.Focus()
End If
End If
End Sub
Page 46 of 46
GroupBox7.Visible = True
Label9.Text = "Please Enter the Password"
TextBox4.Text = ""
TextBox4.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox4.Text), " ") > 0 Then
GroupBox7.Visible = True
Label9.Text = "Please Enter the Password Without Spacing"
TextBox4.SelectionStart = 0
TextBox4.SelectionLength = TextBox4.MaxLength
TextBox4.Focus()
Exit Sub
End If
str = TextBox3.Text
str1 = TextBox4.Text
If val.Admin(str, str1) = True Then
GroupBox7.Visible = False
cobjs.Show()
Me.Hide()
Else
msg = MsgBox("Please Enter the Correct Information in the
Both Field", MsgBoxStyle.OKOnly)
If msg = DialogResult.OK Then
TextBox3.Text = ""
TextBox4.Text = ""
GroupBox7.Visible = False
TextBox3.Focus()
End If
End If
End Sub
objl.Show()
Me.Hide()
End Sub
Page 47 of 47
val.conn()
End Sub
End Class
flag = 1
‘...............First Name Validity...................
If Trim(TextBox1.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the First Name"
TextBox2.Text = ""
TextBox2.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox1.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Valid First Name"
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.MaxLength
TextBox1.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox1.Text), " ") > 0 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Name Without Space"
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.MaxLength
TextBox1.Focus()
Exit Sub
End If
'...............Last Name Validity...................
If Trim(TextBox2.Text = "") Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Last Name"
TextBox2.Text = ""
TextBox2.Focus()
Exit Sub
Page 48 of 48
ElseIf IsNumeric(Trim(TextBox2.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Valid Last Name"
TextBox2.SelectionStart = 0
TextBox2.SelectionLength = TextBox2.MaxLength
TextBox2.Focus()
Exit Sub
End If
'...............Office Address Validity...................
If Trim(TextBox3.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Office Address"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox3.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Office Address"
TextBox3.SelectionStart = 0
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If
'...............Home Address Validity...................
If Trim(TextBox4.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Home Address"
TextBox4.Text = ""
TextBox4.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox4.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Home Address"
TextBox4.SelectionStart = 0
TextBox4.SelectionLength = TextBox4.MaxLength
TextBox4.Focus()
Exit Sub
End If
‘...............Date Of Birth Validity...................
If Trim$(TextBox5.Text) = "" Then
GroupBox4.Visible() = True
Label22.Text = "Please Enter the Date of Birth."
TextBox5.Text = ""
TextBox5.Focus()
Exit Sub
ElseIf Not IsDate(Trim(TextBox5.Text)) Then
GroupBox4.Visible() = True
Label22.Text = "Please Enter the Valid Date of Birth."
TextBox5.SelectionStart = 0
TextBox5.SelectionLength = TextBox5.MaxLength
TextBox5.Focus()
Exit Sub
Page 49 of 49
End If
'...............Office Phone Validity...................
If Trim(TextBox6.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Office Phone No"
TextBox6.Text = ""
TextBox6.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox6.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Office Phone No"
TextBox6.SelectionStart = 0
TextBox6.SelectionLength = TextBox6.MaxLength
TextBox6.Focus()
Exit Sub
ElseIf (Trim(TextBox6.Text)) < 5 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Office Phone
No between 5 and 7 digit"
TextBox6.SelectionStart = 0
TextBox6.SelectionLength = TextBox6.MaxLength
TextBox6.Focus()
Exit Sub
End If
'...............Home Phone Validity...................
If Trim(TextBox7.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Home Phone No"
TextBox7.Text = ""
TextBox7.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox7.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Home Phone No"
TextBox7.SelectionStart = 0
TextBox7.SelectionLength = TextBox7.MaxLength
TextBox7.Focus()
Exit Sub
ElseIf Len(Trim(TextBox7.Text)) < 5 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Home Phone No
between 5 and 7 digit"
TextBox7.SelectionStart = 0
TextBox7.SelectionLength = TextBox7.MaxLength
TextBox7.Focus()
Exit Sub
End If
'...............Password Validity...................
If Trim(TextBox8.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Password"
TextBox8.Text = ""
Page 50 of 50
TextBox8.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox8.Text), " ") > 0 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Password
Without Space"
TextBox8.SelectionStart = 0
TextBox8.SelectionLength = TextBox8.MaxLength
TextBox8.Focus()
Exit Sub
End If
'...............Re Type Password Validity.................
If Trim(TextBox9.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the ReType Password"
TextBox9.Text = ""
TextBox9.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox9.Text), " ") > 0 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the ReType
Password Without Space"
TextBox9.SelectionStart = 0
TextBox9.SelectionLength = TextBox9.MaxLength
TextBox9.Focus()
Exit Sub
End If
'...............Gender Validity...................
If ComboBox1.Text = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter your Gender"
End If
'...............Account Type Validity...................
If ComboBox2.Text = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter your Account Type"
End If
var1 = TextBox8.Text
var2 = TextBox9.Text
Page 51 of 51
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Try
flag = 1
Adapter1.Fill(DataSet)
dt = DataSet.Tables("Customer")
clen = (dt.Rows.Count - 1)
dr = dt.Rows(clen)
str = dr("CAccountNumber")
strval = Mid(str, 2, 3)
ctr = CInt(strval)
If ctr >= 1 And ctr < 9 Then
ctr = ctr + 1
account = "C00" & ctr
ElseIf ctr >= 9 And ctr < 100 Then
ctr = ctr + 1
account = "C0" & ctr
ElseIf ctr >= 100 And ctr < 1000 Then
ctr = ctr + 1
account = "C" & ctr
End If
Label17.Text = account
Label20.Text = Date.Today
Label21.Text = Date.Today.AddDays(1826)
c3.conn()
c3.ad.Fill(c3.dt)
GroupBox2.Visible = False
GroupBox5.Visible = False
Catch ex As OleDb.OleDbException
MsgBox(ex.ToString)
End Try
End Sub
If flag = 1 Then
c3.ad.Fill(c3.dt)
Page 52 of 52
c3.ins(account, TextBox1.Text,
TextBox2.Text,TextBox3.Text, TextBox4.Text, TextBox5.Text,
accounttype, gender, TextBox6.Text, TextBox7.Text,
TextBox8.Text, Label18.Text, Label19.Text, Label20.Text,
Label21.Text)
GroupBox2.Visible = True
GroupBox4.Visible = False
GroupBox5.Visible = True
GroupBox7.Visible = True
Button1.Visible = False
Label30.Text = Label17.Text
Label31.Text = accounttype
Else
MsgBox("You cannot access")
End If
End Sub
acc = TextBox10.Text
If acc < 10000 Then
GroupBox4.Visible = True
Label22.Text = "You cannot Enter Less Than 10000"
Else
Call save()
GroupBox4.Visible = False
TextBox10.Enabled = False
TextBox11.Enabled = False
Button4.Enabled = False
Button3.Visible = True
End If
End Sub
changeLoginfrm Coding
Page 53 of 53
Public Class ChangeLogin
Inherits System.Windows.Forms.Form
flag = 1
If TextBox1.Text = "" Then
MsgBox("Please Enter the Old User Name")
TextBox1.Focus()
TextBox1.Text = ""
Exit Sub
End If
If TextBox2.Text = "" Then
MsgBox("Please Enter the New User Name")
TextBox2.Focus()
TextBox2.Text = ""
Exit Sub
End If
If TextBox3.Text = "" Then
MsgBox("Please Enter the Password")
TextBox3.Focus()
TextBox3.Text = ""
Exit Sub
End If
Try
Adapter.SelectCommand.Parameters("LoginName").Value =
TextBox1.Text
Adapter.Fill(Data, "BankersLogin")
dt = Data.Tables("BankersLogin")
dr = dt.Rows.Find(TextBox1.Text)
If dr("LoginName") = TextBox1.Text Then
If TextBox3.Text = TextBox4.Text Then
dr.BeginEdit()
dr("LoginName") = TextBox2.Text
dr("cPassword") = TextBox3.Text
dr.EndEdit()
Page 54 of 54
Adapter.Update(Data, "BankersLogin")
MsgBox("Your Data has been Successfully Updated")
Else
MsgBox("New Password and Re-Typed password does not
match")
End If
Else
MsgBox("Enter the Correct User name")
End If
Catch ex As Exception
MsgBox("Please Enter The Correct Old User Name")
TextBox1.Text = ""
TextBox1.Focus()
End Try
End Sub
Dim rs As DataRow
Dim dt As DataTable
Dim fobj As New Form2
Dim fobj5 As New Form5
Dim con As New
OleDb.OleDbConnection("Provider=SQLOLEDB;Integrated
Security=sspi;Initial Catalog=Northwind;Data
Source=local")
Dim c2 As New AppComponent.CustomerModules
Dim str As String
Page 55 of 55
Dim ans As String = MsgBox("Do You want Exit Own Program",
MsgBoxStyle.YesNo)
If ans = DialogResult.Yes Then
Me.Dispose()
Else
Exit Sub
End If
End Sub
Page 56 of 56
End If
End Sub
Page 57 of 57
End Sub
Page 58 of 58
fobj2.Label4.Text = Label17.Text
fobj2.Label2.Text = TextBox1.Text
End Sub
Page 59 of 59
Label26.Text = "Please Enter the Office Phone No between 5
and 7 digit"
TextBox8.SelectionStart = 0
TextBox8.SelectionLength = TextBox8.MaxLength
TextBox8.Focus()
Exit Sub
End If
'...............Home Phone Validity...................
If Trim(TextBox9.Text) = "" Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Home Phone No"
TextBox9.Text = ""
TextBox9.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox9.Text)) Then
GroupBox4.Visible = True
Label26.Text = "Please Enter valid Home Phone No"
TextBox9.SelectionStart = 0
TextBox9.SelectionLength = TextBox9.MaxLength
TextBox9.Focus()
Exit Sub
ElseIf Len(Trim(TextBox9.Text)) < 5 Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Home Phone No between 5
and 7 digit"
TextBox9.SelectionStart = 0
TextBox9.SelectionLength = TextBox9.MaxLength
TextBox9.Focus()
Exit Sub
End If
'...............Password Validity...................
If Trim(TextBox10.Text) = "" Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Password"
TextBox10.Text = ""
TextBox10.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox10.Text), " ") > 0 Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Password Without Space"
TextBox10.SelectionStart = 0
TextBox10.SelectionLength = TextBox8.MaxLength
TextBox10.Focus()
Exit Sub
End If
'...............Re Type Password
Validity...................
If Trim(TextBox11.Text) = "" Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the ReType Password"
TextBox11.Text = ""
Page 60 of 60
TextBox11.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox11.Text), " ") > 0 Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the ReType Password Without
Space"
TextBox11.SelectionStart = 0
TextBox11.SelectionLength = TextBox11.MaxLength
TextBox11.Focus()
Exit Sub
End If
Try
cust = Label17.Text
customerobj.disp(cust)
TextBox1.Text = customerobj.s1
TextBox2.Text = customerobj.s2
TextBox3.Text = customerobj.s3
TextBox4.Text = customerobj.s4
TextBox5.Text = customerobj.s5
TextBox6.Text = customerobj.s6
TextBox7.Text = customerobj.s7
TextBox8.Text = customerobj.s8
TextBox9.Text = customerobj.s9
TextBox10.Text = customerobj.s10
TextBox11.Text = customerobj.s11
Label17.Text = customerobj.s12
Label18.Text = customerobj.s13
Label19.Text = customerobj.s14
Label20.Text = customerobj.s15
Label21.Text = customerobj.s16
Catch ex As Exception
MsgBox(ex.Message)
End Try
GroupBox10.Visible = False
Page 61 of 61
GroupBox4.Visible = False
End Sub
Page 62 of 62
MsgBox("Please enter the correct Character (Y) ",
MsgBoxStyle.OKOnly + MsgBoxStyle.Question +
MsgBoxStyle.SystemModal, "Confirm Dialog")
End If
Imports AppComponent
Public Class Debit
Inherits System.Windows.Forms.Form
Dim dr As DataRow
Dim dt As New DataTable
Dim cust As String
Dim flag As Integer
Dim varlocal1, varlocal2, varlocal3, varlocal4, varlocal5
As Long
c5.conn()
Label12.Text = Format(Now, "MM/dd/yyyy")
GroupBox5.Visible = False
End Sub
Page 63 of 63
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Call Balance()
Call Debit()
End Sub
Page 64 of 64
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If
'........................................................
cust = Label5.Text
varlocal1 = Label6.Text
varlocal2 = TextBox3.Text
If varlocal1 < varlocal2 Then
GroupBox5.Visible = True
c5.con.Close()
ElseIf varlocal2 >= 15000 Then
Label13.Text = "You Cannot credit Money greater then 15000
at a time"
Else
GroupBox5.Visible = False
Label13.Text = ""
varlocal4 = varlocal1 - varlocal2
c5.update(cust, varlocal4)
Label6.Text = varlocal4
Label14.Text = "Transaction successfully"
End If
End Sub
End Class
Imports AppComponent
Public Class Credit
Inherits System.Windows.Forms.Form
Dim dr As DataRow
Dim dt As DataTable
Dim cust As String
Dim varlocal1 As Long
Dim varlocal2 As Long
Dim varlocal3 As Long
Dim varlocal4 As Long
Dim varlocal5 As Long
Dim c5 As New AppComponent.CreditValidity
Page 65 of 65
Me.Hide()
fobj2.Label4.Text = Label5.Text
fobj2.Label2.Text = Label11.Text
End Sub
cust = Label5.Text
Page 66 of 66
varlocal1 = Label6.Text
varlocal2 = TextBox3.Text
If varlocal2 >= 15000 Then
Label13.Text = "You Cannot credit Money greater then 15000
at a time"
Else
Label13.Text = ""
varlocal4 = varlocal1 + varlocal2
c5.update(cust, varlocal4)
Label6.Text = varlocal4
GroupBox5.Visible = True
End If
End Sub
End Class
Imports AppComponent
Public Class StopPayment
Inherits System.Windows.Forms.Form
Page 67 of 67
Exit Sub
End If
'...............Instruction Validity...................
If Trim(TextBox2.Text) = "" Then
GroupBox4.Visible = True
Label8.Text = "Please Enter the Instruction"
TextBox2.Text = ""
TextBox2.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox2.Text)) Then
GroupBox4.Visible = True
Label8.Text = "Please Enter the Valid Instruction"
TextBox2.SelectionStart = 0
TextBox2.SelectionLength = TextBox2.MaxLength
TextBox2.Focus()
Exit Sub
End If
StopPay.ins(TextBox1.Text, Label5.Text, TextBox2.Text)
MsgBox("Your Requested has been Accepted Please Confirm to
the Administrator")
GroupBox3.Visible = True
GroupBox4.Visible = True
End Sub
Imports AppComponent
Public Class CheckRequestBook
Inherits System.Windows.Forms.Form
cheqrequest.conn()
End Sub
Page 68 of 68
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim fobj5 As New checkbookattain
Dim str As String
str = Label5.Text
cheqrequest.personalDetailValidity(str)
fobj5.Label13.Text = cheqrequest.accno
fobj5.Label2.Text = cheqrequest.fname
Me.Hide()
fobj5.Show()
Catch ex As Exception
MsgBox("Sorry, You cannot Access the Cheque Book Request"
& ex.Message)
End Try
End Sub
Imports AppComponent
Public Class checkbookattain
Inherits System.Windows.Forms.Form
Dim dr As DataRow
Dim dt As New DataTable
Dim str As String
Dim strcat As String
Dim i As Integer
Dim ctr As Integer
Dim localvar As String
Dim checkbook As New AppComponent.ChequeBookObtains
Page 69 of 69
Me.Hide()
End Sub
Page 70 of 70
endno = Mid(account, 2)
endnumber = "E020" + endno
Label11.Text = endnumber
Label3.Text = "Please Note your detail about your check
book.,It will be deliver at your place at 20 days"
End If
Label9.Text = Date.Today
saves()
End Sub
Imports AppComponent
Public Class LoanFrm
Inherits System.Windows.Forms.Form
flag = 1
If Trim(AcNoText.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Account No"
TextBox2.Text = ""
TextBox2.Focus()
Exit Sub
End If
'...............First Name Validity...................
If Trim(TextBox1.Text) = "" Then
Page 71 of 71
GroupBox4.Visible = True
Label22.Text = "Please Enter the First Name"
TextBox2.Text = ""
TextBox2.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox1.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Valid First Name"
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.MaxLength
TextBox1.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox1.Text), " ") > 0 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Name Without Space"
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.MaxLength
TextBox1.Focus()
Exit Sub
End If
'...............Last Name Validity...................
If Trim(TextBox2.Text = "") Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Last Name"
TextBox2.Text = ""
TextBox2.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox2.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Valid Last Name"
TextBox2.SelectionStart = 0
TextBox2.SelectionLength = TextBox2.MaxLength
TextBox2.Focus()
Exit Sub
End If
'...............Office Address Validity...................
If Trim(TextBox3.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Office Address"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox3.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Office Address"
TextBox3.SelectionStart = 0
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If
'...............Home Address Validity...................
If Trim(TextBox4.Text) = "" Then
Page 72 of 72
GroupBox4.Visible = True
Label22.Text = "Please Enter the Home Address"
TextBox4.Text = ""
TextBox4.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox4.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Home Address"
TextBox4.SelectionStart = 0
TextBox4.SelectionLength = TextBox4.MaxLength
TextBox4.Focus()
Exit Sub
End If
'...............Date Of Birth Validity...................
If Trim$(TextBox5.Text) = "" Then
GroupBox4.Visible() = True
Label22.Text = "Please Enter the Date of Birth."
TextBox5.Text = ""
TextBox5.Focus()
Exit Sub
ElseIf Not IsDate(Trim(TextBox5.Text)) Then
GroupBox4.Visible() = True
Label22.Text = "Please Enter the Valid Date of Birth."
TextBox5.SelectionStart = 0
TextBox5.SelectionLength = TextBox5.MaxLength
TextBox5.Focus()
Exit Sub
End If
'...............Office Phone Validity...................
If Trim(TextBox6.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Office Phone No"
TextBox6.Text = ""
TextBox6.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox6.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Office Phone No"
TextBox6.SelectionStart = 0
TextBox6.SelectionLength = TextBox6.MaxLength
TextBox6.Focus()
Exit Sub
ElseIf (Trim(TextBox6.Text)) < 5 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Office Phone No between 5
and 7 digit"
TextBox6.SelectionStart = 0
TextBox6.SelectionLength = TextBox6.MaxLength
TextBox6.Focus()
Exit Sub
End If
'...............Home Phone Validity...................
Page 73 of 73
If Trim(TextBox7.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Home Phone No"
TextBox7.Text = ""
TextBox7.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox7.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Home Phone No"
TextBox7.SelectionStart = 0
TextBox7.SelectionLength = TextBox7.MaxLength
TextBox7.Focus()
Exit Sub
ElseIf Len(Trim(TextBox7.Text)) < 5 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Home Phone No between 5
and 7 digit"
TextBox7.SelectionStart = 0
TextBox7.SelectionLength = TextBox7.MaxLength
TextBox7.Focus()
Exit Sub
End If
'.........State Validatity.........................
If Trim(TextBox8.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the State"
TextBox8.Text = ""
TextBox8.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox8.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid State"
TextBox8.SelectionStart = 0
TextBox8.SelectionLength = TextBox8.MaxLength
TextBox8.Focus()
Exit Sub
End If
'...........Country Validity.........................
If Trim(TextBox9.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Country"
TextBox9.Text = ""
TextBox9.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox9.Text)) Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Country"
TextBox9.SelectionStart = 0
TextBox9.SelectionLength = TextBox9.MaxLength
TextBox9.Focus()
Exit Sub
End If
Page 74 of 74
'...............Gender Validity...................
If ComboBox1.Text = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter your Gender"
End If
'...............Account Type Validity...................
If ComboBox2.Text = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter your Loan Type"
End If
'...............Email Validity...................
If Trim(TextBox11.Text) = "" Then
GroupBox4.Visible = True
Label22.Text = "Please Enter the Email ID"
TextBox11.Text = ""
TextBox11.Focus()
Exit Sub
ElseIf InStr(Trim$(TextBox11.Text), "@") < 2 Or
InStr(Trim$(TextBox11.Text), ".") < 2 Or InStr(Len(Trim$
(TextBox11.Text)), Trim$(TextBox11.Text), ".") = Len(Trim$
(TextBox11.Text)) Or InStr(Trim$(TextBox11.Text), "@.") >
0 Or InStr(Trim$(TextBox11.Text), ".@") > 0 Then
GroupBox4.Visible = True
Label22.Text = "Please Enter valid Email ID"
TextBox11.SelectionStart = 0
TextBox11.SelectionLength = TextBox11.MaxLength
TextBox11.Focus()
Exit Sub
End If
If flag = 1 Then
loanobj.ins(Custcodetxt.Text, loannotxt.Text,
AcNoText.Text, TextBox1.Text, TextBox2.Text,
TextBox3.Text, TextBox4.Text, TextBox5.Text,
ComboBox1.SelectedItem, TextBox6.Text, TextBox7.Text,
ComboBox2.SelectedItem, TextBox8.Text, TextBox9.Text,
TextBox10.Text, TextBox11.Text)
GroupBox5.Visible = True
GroupBox4.Visible = False
GroupBox3.Visible = True
Else
MessageBox.Show("Sorry, You Cannot Access The Data",
"Error Message", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End If
End Sub
Try
flag = 1
loanobj.conn()
Page 75 of 75
Adapter1.Fill(DataSet, "RegistrationLoanDetail")
Dim ctr As Integer
Dim account As String
dt = DataSet.Tables("RegistrationLoanDetail")
clen = (dt.Rows.Count - 1)
dr = dt.Rows(clen)
str = dr("CCustomerCode")
strval = Mid(str, 3, 4)
ctr = CInt(strval)
If ctr >= 1 And ctr < 9 Then
ctr = ctr + 1
account = "LC00" & ctr
ElseIf ctr >= 9 And ctr < 100 Then
ctr = ctr + 1
account = "LC0" & ctr
ElseIf ctr >= 100 And ctr < 1000 Then
ctr = ctr + 1
account = "LC" & ctr
End If
Custcodetxt.Text = account
GroupBox3.Visible = False
GroupBox4.Visible = False
GroupBox5.Visible = False
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Page 76 of 76
Public str As String
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim obj As New AccountDetail
obj.Show()
Me.Hide()
End Sub
Page 77 of 77
loandep.Show()
Me.Hide()
End Sub
End Class
Imports AppComponent
Public Class AccountDetail
Inherits System.Windows.Forms.Form
End Sub
Page 78 of 78
accountdet.conn()
combo()
End Sub
Page 79 of 79
MsgBox("Please enter the correct Character (Y) ",
MsgBoxStyle.OKOnly + MsgBoxStyle.Question +
MsgBoxStyle.SystemModal, "Confirm Dialog")
End If
If str = MsgBoxResult.Yes Then
'res = com1.ExecuteNonQuery
'res = com2.ExecuteNonQuery
'res = com3.ExecuteNonQuery
'res = com4.ExecuteNonQuery
'MessageBox.Show("Your Account is Success Fully Deleted",
"Confirm Dialog", MessageBoxButtons.OK)
GroupBox10.Visible = True
Else
MessageBox.Show("Sorry, you cannot delete the data, Please
Try Again", "Confirm Dialog", MessageBoxButtons.OK)
com1.Dispose()
com2.Dispose()
com3.Dispose()
com4.Dispose()
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
Dim fobj2 As New BankerModules
fobj2.Show()
Me.Hide()
End Sub
Page 80 of 80
TextBox3.Text = accountdet.s3
TextBox4.Text = accountdet.s4
TextBox5.Text = accountdet.s5
TextBox6.Text = accountdet.s6
TextBox7.Text = accountdet.s7
TextBox8.Text = accountdet.s8
TextBox9.Text = accountdet.s9
TextBox10.Text = accountdet.s10
TextBox11.Text = accountdet.s11
Label17.Text = accountdet.s12
Label18.Text = accountdet.s13
Label19.Text = accountdet.s14
Label20.Text = accountdet.s15
Label21.Text = accountdet.s11
Catch ex As Exception
MsgBox("You Cannot Access the Data..." & ex.Message)
End Try
End Sub
Imports System.Data.SqlClient
Imports AppComponent
Public Class BankerStopPayment
Inherits System.Windows.Forms.Form
Page 81 of 81
Private Sub BankerStopPayment_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Con.Open()
stoppay.conn()
combo()
End Sub
With data1.Tables(0)
For ctr = 0 To .Rows.Count - 1
ListBox1.Items.Add(.Rows(ctr).Item("CChequeNumber").ToStri
ng)
Next
End With
adapter1.Dispose()
data1.Dispose()
Con.Close()
End Sub
Page 82 of 82
fobj2.Show()
Me.Hide()
End Sub
End Class
End Sub
Page 83 of 83
dt = DataSet.Tables("Balance")
dr = dt.Rows.Find(TextBox1.Text)
dr.BeginEdit()
dr.Item("CAccountNumber") = TextBox1.Text
dr.Item("cAccountType") = TextBox2.Text
dr.Item("mbalance") = var3
dr.Item("rRate") = TextBox4.Text
dr.EndEdit()
Adapter1.Update(DataSet, "Balance")
MessageBox.Show("Your Balance Is" & var3, "Checking
Balance", MessageBoxButtons.OK,
MessageBoxIcon.Information)
TextBox3.Text = var3
End Sub
Page 84 of 84
Private Sub clear()
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
End Sub
End Sub
If flag = 1 Then
Call debitfunction()
saves()
TextBox5.Clear()
Call clear()
Else
Call creditfunction()
Page 85 of 85
saves()
TextBox5.Clear()
Call clear()
End If
End Sub
End Class
cLoanForm Coding
Imports AppComponent
Public Class CLoanForm
Inherits System.Windows.Forms.Form
End Sub
Page 86 of 86
TextBox9.Text = loanobj.s9
TextBox10.Text = loanobj.s10
TextBox13.Text = loanobj.s11
TextBox12.Text = loanobj.s12
GroupBox1.Visible = True
GroupBox2.Visible = True
GroupBox3.Visible = True
Catch ex As Exception
MsgBox("Please Enter the Correct Loan ID")
End Try
End Sub
End Sub
End Sub
Page 87 of 87
Try
principal = CDbl(Me.TextBox14.Text)
If principal >= 1000 And principal < 50000 Then
Label20.Text = "2.5"
ElseIf principal >= 50000 And principal < 100000 Then
Label20.Text = "3.5"
ElseIf principal >= 100000 And principal < 150000 Then
Label20.Text = "3.9"
ElseIf principal >= 150000 And principal < 200000 Then
Label20.Text = "4.5"
ElseIf principal >= 200000 And principal < 250000 Then
Label20.Text = "4.9"
ElseIf principal >= 250000 And principal < 300000 Then
Label20.Text = "5.5"
ElseIf principal >= 300000 And principal < 400000 Then
Label20.Text = "5.9"
ElseIf principal >= 400000 And principal <= 500000 Then
Label20.Text = "6.5"
End If
Catch ex As Exception
MsgBox("Please Enter the Amount")
End Try
End Sub
Page 88 of 88
LoanDepositform Coding
Imports AppComponent
Public Class LoanDeposit
Inherits System.Windows.Forms.Form
Dim cust As String
Dim dt As New DataTable
Dim dr As DataRow
Dim varlocal1 As Long
Dim flag As Integer
Dim varlocal2 As Long
Dim varlocal3 As Long
Dim varlocal4 As Long
Dim varlocal5 As Long
Dim deploan As New AppComponent.LoanDeposits
deploan.conn()
Con.Open()
'Adapter1.Fill(DataSet, "loan")
Adapter2.Fill(DataSet, "DepositLoan")
disables()
TextBox1.Focus()
cust = TextBox1.Text
Label9.Text = Date.Today
End Sub
End Sub
Try
Page 89 of 89
Dim comm As New OleDb.OleDbCommand("select
l.CCustomerCode,l.CAccountNumber,l.CLoanID,l.BalanceAmount
,l1.DepositAmount,l1.IIntrest,l1.Durationtime,l1.DDate,l1.
monthlyAmount,l1.LoanAmount from Depositloan l, Loan l1
where l1.CCustomerCode='" & TextBox1.Text & "' and
l.CCustomerCode='" & TextBox1.Text & "'", Con)
Dim rs As OleDb.OleDbDataReader
rs = comm.ExecuteReader
If rs.Read Then
TextBox2.Text = rs.Item("CAccountNumber")
TextBox3.Text = rs.Item("CLoanID")
TextBox4.Text = rs.Item("LoanAmount")
TextBox5.Text = rs.Item("BalanceAmount")
TextBox6.Text = rs.Item("IIntrest")
TextBox7.Text = rs.Item("DurationTime")
TextBox8.Text = rs.Item("MonthlyAmount")
Else
MsgBox("error in your program")
End If
comm.Dispose()
rs.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Page 90 of 90
If varlocal2 >= TextBox5.Text Then
Label13.Text = "You Cannot deposit Money grether then your
loan amount"
End If
'GroupBox5.Visible = False
Label13.Text = ""
varlocal3 = varlocal1 - varlocal2
dr.Item("BalanceAmount") = varlocal3
TextBox5.Text = varlocal3
dr.EndEdit()
Adapter2.Update(DataSet, "DepositLoan")
Adapter2.Fill(DataSet, "DepositLoan")
Label13.Text = "Loan Successfully Deposit"
End Sub
End Sub
Page 91 of 91
Dim year As Long
Dim monthpay As Double
Dim monthintrest As Double
Dim lngN As Long
principal = CDbl(Me.TextBox4.Text)
intrest = CDbl(Me.TextBox6.Text)
year = CLng(Me.TextBox7.Text)
monthintrest = (intrest / (12 * 100))
lngN = year * 12
monthpay = (principal * (monthintrest / (1 - (1 +
monthintrest) ^ (-lngN))))
Me.TextBox8.Text = monthpay
PayGrid(principal, monthintrest, monthpay)
End Sub
Dim dr As DataRow
Dim dt As New DataTable
Dim datmonthyear As Date
Dim newbalance As Double
Dim monthintrestpaid As Double
Dim sliceamount As Double
sliceamount = CDbl(TextBox9.Text)
If sliceamount = 0 Then
sliceamount = mPayment + (mPayment / 12)
End If
Me.TextBox9.Text = CStr(sliceamount)
dt.Columns.Add(New DataColumn("Month/Year",
GetType(String())))
dt.Columns.Add(New DataColumn("Loan Amount",
GetType(String())))
dt.Columns.Add(New DataColumn("Original Payment",
GetType(String())))
dt.Columns.Add(New DataColumn("Intreset Paid",
GetType(String())))
dt.Columns.Add(New DataColumn("Principal Paid",
GetType(String())))
dt.Columns.Add(New DataColumn("Balance Amount",
GetType(String())))
dt.Columns.Add(New DataColumn("New Payment",
GetType(String())))
dt.Columns.Add(New DataColumn("New Payment Paid",
GetType(String())))
dt.Columns.Add(New DataColumn("New Balance Amount",
GetType(String())))
newbalance = pAmount
datmonthyear = Now
Do While pAmount > 0
dr = dt.NewRow
Page 92 of 92
dr(0) = MonthName(Month(datmonthyear)) & ", " &
Year(datmonthyear)
dr(1) = Format(pAmount, "$#,##0.00")
dr(2) = Format(mPayment, "$#,##0.00")
With DataGrid1
.Visible = True
.DataSource = New DataView(dt)
End With
End Sub
End Sub
End Class
SimpleReportform Coding
Page 93 of 93
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim obj As New BankerModules
obj.Show()
Me.Hide()
End Sub
If flag = 1 Then
If TextBox1.Text = "" Then
MessageBox.Show("Please Enter the Account Number",
"Warning Message", MessageBoxButtons.OK,
MessageBoxIcon.Information)
TextBox1.Text = ""
TextBox1.Focus()
End If
Dim fobj As New CustomerReport
Dim con As New
OleDb.OleDbConnection("Provider=SQLOLEDB;Integrated
Security=sspi;Initial Catalog=Northwind;Data
Source=local")
con.Open()
Dim comm As New OleDb.OleDbCommand("select * from Customer
where caccountnumber = '" & Me.TextBox1.Text & "'", con)
Dim rs As OleDb.OleDbDataReader
Page 94 of 94
rs = comm.ExecuteReader
If rs.Read = True Then
fobj.Label1.Text = TextBox1.Text
Me.Hide()
fobj.Show()
Else
MsgBox("Error in your generating report")
End If
con.Close()
comm.Dispose()
rs.Close()
Page 95 of 95
con.Close()
comm.Dispose()
rs.Close()
ElseIf flag = 4 Then
Dim fobj1 As New LoanCrystalReport
Dim con As New
OleDb.OleDbConnection("Provider=SQLOLEDB;Integrated
Security=sspi;Initial Catalog=Northwind;Data
Source=local")
con.Open()
Dim comm As New OleDb.OleDbCommand("select * from Loan
where CCustomerCode = '" & TextBox1.Text & "'", con)
Dim rs As OleDb.OleDbDataReader
rs = comm.ExecuteReader
If rs.Read = True Then
fobj1.Label1.Text = TextBox1.Text
Me.Hide()
fobj1.Show()
Else
MsgBox("Error in your generating report")
End If
con.Close()
comm.Dispose()
rs.Close()
End If
End Sub
Page 96 of 96
End If
End Sub
End Class
Component Coding
Login Coding
Imports System.Data.SqlClient
Public Class Login
Inherits System.ComponentModel.Component
Page 97 of 97
Try
con = New SqlConnection("Integrated Security=SSPI;Packet
Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
adapter = New SqlDataAdapter("Select * from Customer",
con)
dt = New DataTable
adapter.Fill(dt)
Return dt
Catch ex As Exception
MsgBox("Connection Error the Server or Table does not
exist" & ex.Message)
End Try
com.Dispose()
adapter.Dispose()
dt.Dispose()
con.Close()
End Function
Page 98 of 98
con.Open()
com = New SqlCommand("select * from BankersLogin where
LoginName='" & Uname & "' and CPassword='" & Pname & "'",
con)
Dim rs As SqlDataReader
rs = com.ExecuteReader
If rs.Read = True Then
Return True
Else
Return False
End If
rs.Close()
com.Dispose()
con.Close()
End Function
End Class
Registrationfrms Coding
Imports System.Data.SqlClient
Public Class RegistrationForms
Inherits System.ComponentModel.Component
Page 99 of 99
String, ByVal Cno As String, ByVal DOpen As String, ByVal
DExp As String)
Try
dc = New SqlCommand("ProCustomer")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12,
s13, s14, s15 As SqlParameter
s1 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 30)
s2 = New SqlParameter("@vFirstName", SqlDbType.VarChar,
30)
s3 = New SqlParameter("@vLastName", SqlDbType.VarChar, 30)
s4 = New SqlParameter("@vOfficeAddress",
SqlDbType.VarChar, 50)
s5 = New SqlParameter("@vHomeAddress", SqlDbType.VarChar,
50)
s6 = New SqlParameter("@dDateOfBirth",
SqlDbType.DateTime,12)
s7 = New SqlParameter("@cAccountType", SqlDbType.VarChar,
20)
s8 = New SqlParameter("@cGender", SqlDbType.VarChar, 7)
s9 = New SqlParameter("@cOfficePhone", SqlDbType.Int)
s10 = New SqlParameter("@cHomePhone", SqlDbType.Int)
s11 = New SqlParameter("@cPassword", SqlDbType.VarChar,
16)
s12 = New SqlParameter("@cATMCardNumber",
SqlDbType.VarChar, 16)
s13 = New SqlParameter("@cCreditCardNumber",
SqlDbType.VarChar, 16)
s14 = New SqlParameter("@dDateOfOpened",
SqlDbType.VarChar, 10)
s15 = New SqlParameter("@dDateOfExpiry",
SqlDbType.VarChar, 10)
s1.Value = Acc
s2.Value = Fname
s3.Value = Lname
s4.Value = offadd
s5.Value = hoadd
s6.Value = DOb
s7.Value = AccType
s8.Value = Gen
s9.Value = OffPh
s10.Value = HoPh
s11.Value = pass
s12.Value = ATM
s13.Value = Cno
s14.Value = DOpen
s15.Value = DExp
dc.Parameters.Add(s1)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox("Please Enter The Correct Account Number")
End Try
End Function
Try
dc = New SqlCommand("ProBalance")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4 As SqlParameter
s1 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 6)
s2 = New SqlParameter("@cAccountType", SqlDbType.VarChar,
8)
s3 = New SqlParameter("@mBalance", SqlDbType.VarChar, 15)
s4 = New SqlParameter("@rRate", SqlDbType.VarChar, 4)
s1.Value = Acc
s2.Value = acctype
s3.Value = bal
s4.Value = rate
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Parameters.Add(s3)
dc.Parameters.Add(s4)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
' MsgBox("The Pressestimate no and Bill no are not same",
MsgBoxStyle.Information)
End Try
dc = New SqlCommand("proupdatecustomer")
dc.CommandType = CommandType.StoredProcedure
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Parameters.Add(s3)
dc.Parameters.Add(s4)
dc.Parameters.Add(s5)
dc.Parameters.Add(s6)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As Exception
MsgBox("Record Does Not Exist or trying to modify no ",
MsgBoxStyle.Information)
End Try
End Function
Try
dc = New SqlCommand("select * from Customer where
CAccountNumber='" & acno & "' ", con)
Dim rs As SqlDataReader
rs = dc.ExecuteReader
If rs.Read Then
s1 = rs.Item("VFirstName")
s2 = rs.Item("VLastName")
s3 = rs.Item("ddateofbirth")
LoanCom coding
Imports System.Data.SqlClient
Public Class LoanCom
Inherits System.ComponentModel.Component
Try
con = New SqlConnection("Integrated Security=SSPI;Packet
Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
adapter = New SqlDataAdapter("Select * from
registrationloandetail", con)
dt = New DataTable
adapter.Fill(dt)
Return dt
Catch ex As Exception
Try
com = New SqlCommand("select * from registrationloandetail
where CLoanId='" & acno & "' ", con)
Dim rs As SqlDataReader
rs = com.ExecuteReader
If rs.Read Then
s1 = rs.Item("cCustomerCode")
s2 = rs.Item("VFirstName")
s3 = rs.Item("vHomeAddress")
s4 = rs.Item("vOfficeAddress")
s5 = rs.Item("cHomePhone")
s6 = rs.Item("COfficePhone")
s7 = rs.Item("cGender")
s8 = rs.Item("ZipCode")
s9 = rs.Item("State")
s10 = rs.Item("CAccountNumber")
s11 = rs.Item("cLoanType")
s12 = rs.Item("EmailID")
Else
MsgBox("Please Enter the Correct Account Number")
End If
com.Dispose()
rs.Close()
Catch ex As Exception
MsgBox("You Cannot Access the Data..." & ex.Message)
End Try
End Function
Try
com = New SqlCommand("ProLoan")
com.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5, s6, s7, s8, s9, s10 As
SqlParameter
s1 = New SqlParameter("@CCustomerCode",
SqlDbType.VarChar,10)
s1.Value = ccode
s2.Value = lid
s3.Value = AcNo
s4.Value = d
s5.Value = iint
s6.Value = DTime
s7.Value = ddate
s8.Value = bal
s9.Value = mamount
s10.Value = LAmount
com.Parameters.Add(s1)
com.Parameters.Add(s2)
com.Parameters.Add(s3)
com.Parameters.Add(s4)
com.Parameters.Add(s5)
com.Parameters.Add(s6)
com.Parameters.Add(s7)
com.Parameters.Add(s8)
com.Parameters.Add(s9)
com.Parameters.Add(s10)
com.Connection = con
com.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
End Try
End Function
Try
com = New SqlCommand("ProDepositAmount")
com.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12,
s13, s14, s15 As SqlParameter
s1 = New SqlParameter("@CCustomerCode",
SqlDbType.VarChar,10)
s2 = New SqlParameter("@CLoanID", SqlDbType.VarChar, 50)
s1.Value = ccode
s2.Value = lid
s3.Value = AcNo
s4.Value = bal
com.Parameters.Add(s1)
com.Parameters.Add(s2)
com.Parameters.Add(s3)
com.Parameters.Add(s4)
com.Connection = con
com.ExecuteNonQuery()
Catch ex As SqlException
MsgBox("please Enter the Correct Account No")
End Try
End Function
End Class
Customermodule Coding
Try
con = New OleDb.OleDbConnection("Integrated
Security=SSPI;Packet Size=4096;Data Source=local;Tag with
column collation when possible=False;Initial
Catalog=Northwind;Use Procedure for Prepare=1;Auto
Translate=True;Persist Security
Info=False;Provider=SQLOLEDB.1;Workstation ID=LOCAL;Use
Encryption for Data=False")
con.Open()
com = New OleDb.OleDbCommand("select * from customer",
con) ' adapter = New OleDb.OleDbDataAdapter(com)
dt = New DataTable
Catch ex As Exception
MsgBox("Connection Error the Server or Table does not
exist")
End Try
com.Dispose()
adapter.Dispose()
dt.Dispose()
con.Close()
End Function
Creditvalidity coding
Imports System.Data.SqlClient
Public Class CreditValidity
Inherits System.ComponentModel.Component
Try
dc = New SqlCommand("procreditdebitamount")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5 As SqlParameter
s1 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar,6)
s2 = New SqlParameter("@mBalance", SqlDbType.Int)
s3 = New SqlParameter("@Tdate", SqlDbType.VarChar, 11)
s4 = New SqlParameter("@CreditAmount", SqlDbType.Float)
s5 = New SqlParameter("@DebitAmount", SqlDbType.Float)
s1.Value = Acc
s2.Value = mbal
s3.Value = tdate
s4.Value = camount
s5.Value = "0"
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Parameters.Add(s3)
dc.Parameters.Add(s4)
dc.Parameters.Add(s5)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
End Try
End Function
Try
dc = New SqlCommand("procreditdebitamount")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5 As SqlParameter
s1 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar,6)
s2 = New SqlParameter("@mBalance", SqlDbType.Int)
s3 = New SqlParameter("@Tdate", SqlDbType.VarChar, 11)
s4 = New SqlParameter("@DebitAmount", SqlDbType.Float)
s5 = New SqlParameter("@creditAmount", SqlDbType.Float)
s1.Value = Acc
s2.Value = mbal
s3.Value = tdate
s4.Value = damount
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Parameters.Add(s3)
dc.Parameters.Add(s4)
dc.Parameters.Add(s5)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
End Try
End Function
Try
dc = New SqlCommand("Proupdatebal")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2 As SqlParameter
s1 = New SqlParameter("@CAccountNumber",
SqlDbType.VarChar,6)
s2 = New SqlParameter("@mBalance", SqlDbType.VarChar, 15)
s1.Value = Acno
s2.Value = bal
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
End Try
End Function
End Class
StopPayments Coding
Imports System.Data.SqlClient
Public Class StopPayments
Inherits System.ComponentModel.Component
Public acno, inss, status As String
Public con As SqlConnection
Public ad As SqlDataAdapter
Public dt As DataTable
Public dc As SqlCommand
Dim data As New DataSet
Public accno As String
Public bal As String
Try
dc = New SqlCommand("prostoppayment")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5 As SqlParameter
s1 = New SqlParameter("@cChequeNumber", SqlDbType.VarChar,
8)
s2 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 6)
s3 = New SqlParameter("@VInstruction", SqlDbType.VarChar,
50)
s4 = New SqlParameter("@CStatus", SqlDbType.VarChar, 11)
s1.Value = CNo
s2.Value = AcNo
s3.Value = Inst
s4.Value = "P"
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Parameters.Add(s3)
dc.Parameters.Add(s4)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
End Try
End Function
Try
dc = New SqlCommand("proupdateStopPay")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2 As SqlParameter
s1 = New SqlParameter("@cChequeNumber", SqlDbType.VarChar,
8)
s2 = New SqlParameter("@CStatus", SqlDbType.VarChar, 11)
s1.Value = cno
s2.Value = status
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox(ex.ToString)
' MsgBox("The Pressestimate no and Bill no are not same",
MsgBoxStyle.Information)
End Try
End Function
ChequeBookObtain coding
Imports System.Data.SqlClient
Public Class ChequeBookObtains
Try
dc = New SqlCommand("ProChequeBookObtains")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5 As SqlParameter
s1 = New SqlParameter("@cChequeBookNumber",
SqlDbType.VarChar, 8)
s2 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 6)
s3 = New SqlParameter("@dDateIssued", SqlDbType.VarChar,
10)
s4 = New SqlParameter("@cStartNumber", SqlDbType.VarChar,
15)
s5 = New SqlParameter("@cLastNumber", SqlDbType.VarChar,
15)
s1.Value = CBNo
s2.Value = AcNo
s3.Value = Dissue
s4.Value = sNum
s5.Value = lNum
dc.Parameters.Add(s1)
Catch ex As SqlException
MsgBox(ex.ToString)
' MsgBox("The Pressestimate no and Bill no are not same",
MsgBoxStyle.Information)
End Try
End Function
End Class
LoanDeposit coding
Imports System.Data.SqlClient
Public Class LoanDeposits
Inherits System.ComponentModel.Component
Public con As SqlConnection
Public ad As SqlDataAdapter
Public dt As DataTable
Public com As SqlCommand
Dim data As New DataSet
Public accno As String
Public bal As String
Public fname As String
s1.Value = ccode
s2.Value = lid
s3.Value = AcNo
s4.Value = dep
s5.Value = iint
s6.Value = DTime
s7.Value = ddate
s8.Value = bal
s9.Value = mamount
s10.Value = LAmount
com.Parameters.Add(s1)
com.Parameters.Add(s2)
com.Parameters.Add(s3)
com.Parameters.Add(s4)
com.Parameters.Add(s5)
com.Parameters.Add(s6)
com.Parameters.Add(s7)
com.Parameters.Add(s8)
com.Parameters.Add(s9)
com.Parameters.Add(s10)
com.Connection = con
com.ExecuteNonQuery()
Catch ex As SqlException
MsgBox("Please enter the Correct Account Number",
MsgBoxStyle.Information)
End Try
End Function
End Class
Loanfrm coding
s1.Value = ccode
s2.Value = lno
s3.Value = Acc
s4.Value = Fname
s5.Value = Lname
s6.Value = offadd
s7.Value = hoadd
s8.Value = DOb
s9.Value = gen
s10.Value = offph
s11.Value = hoPh
s12.Value = ltype
s13.Value = state
s14.Value = count
s15.Value = zip
s16.Value = email
dc.Parameters.Add(s1)
dc.Parameters.Add(s2)
dc.Parameters.Add(s3)
dc.Parameters.Add(s4)
dc.Parameters.Add(s5)
dc.Parameters.Add(s6)
dc.Parameters.Add(s7)
dc.Parameters.Add(s8)
dc.Parameters.Add(s9)
dc.Parameters.Add(s10)
dc.Parameters.Add(s11)
dc.Parameters.Add(s12)
dc.Parameters.Add(s13)
dc.Parameters.Add(s14)
dc.Parameters.Add(s15)
dc.Parameters.Add(s16)
dc.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox("Please Enter the Correct Account Number",
MsgBoxStyle.Information)
User has advice to add a module in this project for more flexible.
Any Customer can transaction through the Internet.
Any customer can access easily.
Any Customer can apply Loan through Internet.
Any Customer can generate the report of current transaction.
SYSTEM TESTING
Unit Testing: -
In module testing, all modules are tested module is the smallest unit of
software design. Since the module are very small in the project, so
individually test them within the proper guidance of Susant Sahu (guide)
obvious.
Integration Testing: -
After unit testing the modules are combined together for proper function.
The aim is to see if the modules when integrate work properly or not. The
integration testing may be excretal where test are first conducted on parts
BIBLIOGRAPHY
1. Visual Basic .Net 2003
4. www.Microsoft.com