Sie sind auf Seite 1von 124

TABLE OF CONTENTS

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

The title of the project is “ONLINE BANKING MANAGEMENT


SYSTEM”. The purpose of this project is to handles Customer Account,
Transaction of Money, Loan etc. management in a Bank. I have
developed this software in most popular front-end Microsoft Visual
Basic.Net and powerful RDBMS Microsoft SQL Server 7.0 on Windows
2000 or XP professional environments. The purpose of using this software
is to reduce complexity and enhance accessibility and make it user
friendly.

The current scenario of advanced society follows up the application of


information technology as the key to achieve the target with less effort and
high performance. A system that runs without the implementation of IT is
treated to be an old era. The Technology is ready to provide all the aspects
of advanced communication and infotainment to the new generation,
where people should make the effort to achieve it.

Some important features for this project to support for users requirement
are:-

 Controlling entire project through Administrator.

 Maintaining details regarding Customer’s details

 Maintaining Transaction regarding Customer Account

 Maintaining details regarding loan details

 Maintaining details reports regarding Daily and Monthly

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.

Banking is a powerful stand-alone system designed for ease of use and


comprehensive Customer Money transition and reporting. It is user
friendly and just asks the user to follow step-by-step operation by
giving him little option. It is fast, flexible and can operate a number of
sections of a any Bank company like opening of new Customer accounts,
closing of accounts, calculate Debit or Credit, issue of loans and ever
calculation of interest.

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.

The purpose of computerization has been identified as improvement in


computer service, business keeping decisions making and profitability.

Page 3 of 3
COMPLETE ANALYSIS DESIGN DOCUMENT
REQUIREMENT ANALYSIS

Mostly in several organization works is done manually which could have


many built in problems, which can create many large problems. It
becomes very cumbersome and laborious when the number of records
grows significantly. When the data grows in size, it becomes increasingly
unmanageable; moreover there is lot of difficulty in opening new accounts
and closing old accounts in current manual system. We have to search all
there files for finding various detail about that Customer. During this
process clerk has to waste several hours.

Maintaining the record of various accounts, reports and other details


manually also force the organization to keep the numbers of Customer for
this. Moreover there are many other task as preparing reports, calculations
of Money, Loan, taxes in accounts. Since all there work are mostly
handled manually there is bound to some manual error because of
carelessness due to extra load of work. Since error does play upon the
reputation, economic losses of the organization a lot of this work needs to
be computerized with proper support. Software has to be developed which
could efficiently and easily handle all management work of the
organization, which leads to an increase in output of organization.
So there are lots of problems and the chances for an error is greater are as
follows:

1 For the employee it becomes very difficult to say how many


Customer have different types of accounts.
2 monthly reports for each accounts take more time and there is a

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.

1 Easy to learn /easy to use.


2 Powerful: Process Customer pay for one or multiple business.
3 Network compatible.
4 Updated regularly to keep up with Government/ Public sector
regulations.
5 Flexible: The obvious advantage is far better speed, flexible
and accuracy of calculations involved in its operation e.g.:-
calculation of, Credit and Debit Amount, Loan amount
updating of current balance in accounts
6 Throughcomputers we can easily see the list of account
holder’s detail.
7 Reports: Generation of Daily, monthly reports is easily
possible.

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.

The computerization of this setup will be done in the following manner.


Opening New Customer’s Accounts: - We will start from the beginning
i.e. opening of Customer account. In this all the account holder will have
his or her own unique account number which will be generated
automatically as we open any new account. Besides this all accounts will
have other details about account holders like name, address, city, phone
number, type of account (as per grade) which they have to open.
Accessing Customer Account : - In this, whose Account holder that
access the account that have the account in the bank. It takes Account
Number and Password. If you have Account Number and Password, then
Customer can access these Account, Otherwise customer cannot access.
After the access the Login then it provides many types of work such as
follows ;-
Debit and Credit Amount :- in this, The account holder will directly
Deposit and Credit the amount. When you Credit or Debit Amount it

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.

Report Generation:-we will generate all types of reports according to the


requirement of user. Here we will also calculate the other
Transaction/Loan.
 Customer Register.
 Loan details
 Cheque Book Request details
 Transaction details

VALUE ADDED FEATURES

Our project aims at solving certain problem concerning Transaction


Money, Loan, taxes with the help of computer. Our project provides the
flexibility of the accounts opening and also to maintain it as long as the
employee works in the Bank.
It provides timely information to the user so that he/she can maintain his
record well.
It can produce different report according to the user requirement.
It can calculate the Tranaction Amount and Loan of different Customer
accounts without any mistake.

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.

Daily and Monthly Reports of Tranaction.


 Customer Register.
 Loan details
 Cheque Book Request details
 Transaction details

APPLICATION AREA

As the project name “ONLINE BANKING MANAGEMENT


SYSTEM” suggest that it would help for accounting management, it can
apply on any organization with similar operation or with little alteration
Bank is a powerful stand-alone system designed for ease of use and
comprehensive Customer Transaction processing and reporting. It is user
friendly and just asks the user to follow step-by-step operation by

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

Processor PIII-2.0 GHZ


Motherboard Intel – Original
RAM 256MB SD RAM
Hard Disk Drive 40 GB Segate
Floppy Drive Samsung 1.44 FDD
CD Rom Drive 48X Read Write
Monitor Samsung 15” or 17” Flat Color
Monitor
Keyboard Samsung Multimedia Keyboard
Mouse Logitech Mouse
Multimedia Kits
Printer HP Printer
Modem 64 Kbps Modem(Intex)
External

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

3.2 3 StopPayment Table


Stop Payment

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

3.2 3 StopPayment Table


Stop Payment

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

ChequeBookDetails Details of ChequeBook


RegistrationLoanDetail Customer Loan Details
Loan Details of Loan
DepositLoan Details of Deposit Loan
BankerLogin Details of Banker Login

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

Customer StopPayment Form

Page 25 of 25
ChequeBookRequest Form

ChequeBook Obtain Form

Page 26 of 26
Credit Amount Form

Debit Amount Form

Page 27 of 27
Balance Detail Form

Banker Module Form

Page 28 of 28
Banker StopPayment Request Form

Transaction Details 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

I have developed this software in most popular and powerful Front,


Database and Operating System. I have used Microsoft Visual Basic .Net
as a front-end, Microsoft SQL Server 7.0 as a Backend on Windows 2000
Server environment.

Windows2000 Server

In the current situation of advanced IT windows 2000 server is a best


platform to support both desktop as well as distributed application. This is
the only Microsoft based server version environment having all advanced
features of networking and database administration with all security
supports. So I selected this platform for my project to have a good support
for my MS-SQL Server backend. It permits different levels of security to
provide accessing permission for the project and to use the database.
Different user’s can be created at platform level and after validating the
password it will allow user to work on the project. There are a series of
features that is supported by the platform (windows 200 server) is given
below: -

Windows2000 server features:-


Business Value: The Windows 2000 Server Family goes beyond
providing the essentials, such as file, print, and communications. It
is engineered specifically to let companies reliably and
economically use emerging technologies to improve business
profitability and increase their agility in an ever-changing
marketplace.
Flexible Integration:-

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:-

Significant improvements in the Windows 2000 system architecture


help deliver higher uptime than either Windows NT or competitive
systems. Businesses can obtain 99.999 percent uptime with
Windows 2000 Datacenter Server on qualified systems from
Microsoft OEM partners. This level of uptime is also known as
"five nines," and it equates to less than 5 minutes of downtime a
year.

Availability:-

For critical applications, businesses often require a fallback


mechanism to make sure users aren't interrupted if a server is
unavailable. The Advanced Server and Datacenter Server editions
of the Windows 2000 Server Family let you increase your system's
availability using the clustering technologies included with the
operating system, which let you couple servers together to support
specific tasks.

Performance:-

Faster is better, but it doesn't have to be more expensive. According


to the Transaction Processing Council, Windows 2000 Advanced
Server delivers industry-leading performance for less than half the
cost of the most scalable UNIX-based solution. Windows 2000
Advanced Server currently holds the top four TPC-C benchmark

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

Windows NT Server 4.0.


Scalability:-

The Windows 2000 Server Family includes three versions, each


able to reliably and affordably handle larger loads. Start with
Windows 2000 Server, and move up as needed to Windows 2000
Advanced Server and companion products.
Manageability:-

The Windows 2000 Server Family makes it easier to deploy,


configure, and use advanced networking capabilities by providing
centralized, customizable management services. You can easily
manage servers remotely by taking advantage of increased
performance in the integrated Terminal Services. You can
dynamically manage storage on file servers without interrupting end
users. You can also use Active Directory to centrally manage users
and devices across your entire network. The result is lower costs;
the move to the Windows 2000 platform can potentially reduce
overall total cost of ownership by 17 percent, reduce end-user down
time costs by 50 percent, and reduce direct costs by approximately
13 percent.
Internet-Ready:-

Windows 2000 Server provides a well-integrated package


containing the application development environment, Web services,
security, and scalability you need to get more out of your

Page 37 of 37
applications. Plus, you can build new and versatile solutions using
the most complete set of Internet technologies available.

Hardware:-

Windows 2000 supports a wide range of hardware and peripherals.


of particular interest for Windows 2000 Advanced and Datacenter
Server users is support for the latest Intel®-based multi-processor
hardware, which provides a cost-effective and flexible alternative to
proprietary solutions for supporting extremely large applications.
Visual Basic .Net Features:-

Microsoft .Net initiative is broad based and very ambitious. It


includes the .Net Framework, which encompasses the languages
and execution platform, plus extensive class libraries providing rich
build in functionality. Besides the core .Net Framework, the .Net
imitative includes protocols (such as the Simple Object Access
Protocol, commonly known as SOAP) to provide a new level of
software integration over the internet, via a standard known as Web
services.

An Overview of the .Net Framework:-


The .Net infrastructure consists of all the technologies that help in
creating and running robust, scalable and distributed application.
The core of the .Net infrastructure is the .Net Framework, which is a
collection of services and classes. It exists as a layer between .Net
applications and the underlying operating System.

The CLR (Common Language Runtime) :-

The Common Language Runtime is one of the most essential


component of the .Net Framework. The CLR or runtime provides
some functionality such as exception handling, security, debugging,

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.

Simpler, Faster Development:-

A broad, consistent framework allows developers to write less code


and reuse code more. Less code is possible because the system
provides a rich set of underling functionality. Programs in .Net
access this functionality in a standard, consistent way, requiring
less “hardwiring” and customization logic to interface with the
functionality than is typically needed today.

Scalability:-

Since most of the system level execution functions are concentrated


in the CLR, they can be optimized and architected to allows a wide
range of scalability for applications produced in the .Net
Framework.

Metadata:-

The .Net Framework needs lot of information about an application


to carry out several automatic functions. The design of .Net requires
applications to carry that information within them, That is,
application s are self describing. The collected information that
describes an application is called metadata.

A Common Type System:-

A key piece of functionality that enables multiple languages support


is a common type system, in which all commonly used data types,
even base types such as Long and Boolean, are actually
implemented as object.

Page 39 of 39
Namespaces:-

Namespaces help you to create logical groups of related classes and


interfaces that can be used by any languages targeting the .Net
framework. Namespaces allow you to organize your classes so that
they can be easily accessed in other application. Namespaces can
also be used to avid any having conflicts between classes that have
the same names.

User and Program Interface:-

.Net provides three ways to render and manage user interfaces:

 Windows Forms

 Web Forms

 Console Application

Windows Form:- it is a more advanced and integrated way to do


standard Win32 screens. All languages that work on the .Net
Framework, including new versions of Visual Studio languages, use
the Window Form engine, which duplicates the functionality of the
VB forms engine.

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

A Template, which contains HTML based layout information for all


user interface elements.

A Component, which contains all logic to be hooked to the user


interface.

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.

Web Services:- Application development is mobbing into the next


stage of decentralization. The oldest idea of the application is a
piece of software that accesses basic operating system services,
such as the file system and graphics system.

Multi Language support:-

The CLR is designed to support multiple languages and allow


unprecedented levels of integration among those languages. By
enforcing a common type system , and by having complete control
over interface call the CLR allows languages to wok together more
transparently than ever before. The cross language integration issues
of COM simply don’t exist in .Net.

Easier Deployment:-

A major design goal in Microsoft .Net is to simplify installation and


configuration of software. With “DLL Hell” mostly gone and with
installation of compiled modules a matter of simple file copy,
developers should be able to spend less time worrying about
deployment of their application, and more time concentrating on the
functionality of their systems. The budget for the deployment
technology needed by a typical application will be significantly
smaller.

.Net Drives Changes in Visual Basic 6.0:-


No capability for multithreading

Lack of implementation inheritance and other object features.

Poor error handling ability

Page 41 of 41
Poor integration with other languages such as C++

No effective users interface for Internet based applications.

The Future of .Net:-

At the Professional Developers Conference (PDC) in Los Angleses


in October 2003, Microsoft gave the first public look at their net
generation operating system, code named longhorn, It was clear
from even this early glimpse that .Net is at the heart f Microsoft’s
operating system strategy going forward.

SQL Server 2000 Server Features

Rich Web Support:-

Simplify the integration of your back-end systems and data transfer


across firewalls using mark up languages.

Integration with Windows Server System:-

SQL Server 2000, in conjunction with other Microsoft Windows


Server System integrated server software, provides even more
power for your e-business.

Web-Enabled Analysis:-

Analyze data from remote OLAP cubes that are Web accessible.

Web Access to Data:-

Connect to your SQL Server 2000 databases and OLAP cubes


flexibly, by using the Web with no additional programming.

Application Hosting:-

With multi-instance support, SQL Server enables you to take full


advantage of your hardware investments so that multiple
applications can be run on a single server, or outsourced.

Click stream Analysis:-

Page 42 of 42
Gain a deep understanding of online customer behavior, so that you
can make better business decisions.

Security

Ensure your applications are secure in any networked environment,


with role-based security and file and network encryption.

Full-Text Search

Use and manage both your structured and unstructured data,


including searching through Microsoft Office documents.

High Availability

Maximize the availability of your business applications with log


shipping, online backups, and failover clusters.

Scalability

Scale your applications up to 32 CPUs and 64 gigabytes (GB) of


RAM. SQL Server 2000 has demonstrated record-breaking
performance that you can leverage.

Distributed Partitioned Views

Partition your workload among multiple servers for additional


scalability.

Indexed Views

Gain performance from your existing hardware by storing query


results and reducing response times.

Replication

With SQL Server 2000 you can implement merge, transactional,


and snapshot replication with heterogeneous systems.

Simplified Database Administration

Page 43 of 43
Automatic tuning and maintenance features enable administrators to
focus on other critical tasks.

Improved Developer Productivity

User-defined functions, cascading referential integrity, and the


integrated Transact-SQL debugger allow you to reuse code to
simplify the development process.

Extend Applications

Support for access by devices, such as Microsoft Windows CE


handheld units, provides broader access to applications and extends
your user base.

Web and Application Hosting

Have your e-commerce solution hosted by a third party, with SQL


Server 2000 support for multiple instances.

Data Mining

Discover patterns and trends with data mining, and make


predictions about future trends in your business.

Page 44 of 44
PROGRAM CODE

Login form coding:

Imports AppComponent

Public Class Form2


Inherits System.Windows.Forms.Form
Dim val As New Login
Dim str, str1, msg As String

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Dim fobj As New Form1
fobj.Show()
Me.Hide()
End Sub

Private Sub Button4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click
Dim loanobj As New LoanFrm
loanobj.Show()
Me.Hide()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim fobj As New Form4

If Trim(TextBox1.Text) = "" Then


GroupBox3.Visible = True
Label3.Text = "Please Enter the Account Number"
TextBox1.Text = ""
TextBox1.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox1.Text), " ") > 0 Then
GroupBox3.Visible = True
Label3.Text = "Please Enter the Account Number without
Space"
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.MaxLength
TextBox1.Focus()
Exit Sub
End If

If Trim(TextBox2.Text) = "" Then


GroupBox3.Visible = True
Label3.Text = "Please Enter the Password"
TextBox2.Text = ""

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

Private Sub Button3_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button3.Click

Dim cobjs As New BankerModules

If Trim(TextBox3.Text) = "" Then


GroupBox7.Visible = True
Label9.Text = "Please Enter the User Name"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf InStr(Trim(TextBox3.Text), " ") > 0 Then
GroupBox7.Visible = True
Label9.Text = "Please Enter the User Name without Space"
TextBox3.SelectionStart = 0
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If

If Trim(TextBox4.Text) = "" Then

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

Private Sub LinkLabel1_LinkClicked(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs)
Handles LinkLabel1.LinkClicked

Dim objl As New ChangeLogin

objl.Show()
Me.Hide()
End Sub

Private Sub Button5_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button5.Click
Me.Close()
End Sub

Private Sub Form2_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
GroupBox3.Visible = False
GroupBox7.Visible = False

Page 47 of 47
val.conn()
End Sub
End Class

Registration Form Coding


Imports AppComponent
Imports System.DateTime
Public Class Form1
Inherits System.Windows.Forms.Form
Dim clen, ctr, flag, acc As Integer
Dim str, strval, var1, var2, gender, accounttype As String
Dim dr As DataRow
Dim dt As DataTable
Dim account As String
Dim bm As BindingManagerBase
Dim c3 As New AppComponent.RegistrationForms

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click

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

If var1 = var2 Then


gender = ComboBox1.Text
accounttype = ComboBox2.Text
Call Updatedata()
Else
GroupBox4.Visible = True
Label22.Text = "Your Both Password Does Not each Other"
flag = 0
End If
End Sub

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

Dim varatmNumber As String


Dim atmnumber As String
varatmNumber = Mid(account, 2)
atmnumber = "46584924351" + varatmNumber
Label18.Text = atmnumber

Dim varcardno As String


Dim CreditCard As String
varcardno = Mid(account, 2)
CreditCard = "56345976842" + varcardno
Label19.Text = CreditCard

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

Private Sub Updatedata()

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

Private Sub Button3_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button3.Click
Dim fobj As New Form2
fobj.Show()
Me.Hide()
End Sub

Private Sub Button4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click

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

Private Sub save()


c3.savebalance(Label17.Text,accounttype,acc,extBox11.Text)
c3.ad.Fill(c3.dt)
MessageBox.Show("Your Data Successfyully Saved",
"Updated", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Sub
End Class

changeLoginfrm Coding

Page 53 of 53
Public Class ChangeLogin
Inherits System.Windows.Forms.Form

Dim dt As New DataTable


Dim dr As DataRow
Dim str As String
Dim flag As Integer

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click

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

If TextBox4.Text = "" Then


MsgBox("Please Enter the Re-Type Password")
TextBox4.Focus()
TextBox4.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

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim obj As New Form2
obj.Show()
Me.Hide()
End Sub
End Class

CustomerModule Form Coding:


Imports AppComponent
Public Class Form4
Inherits System.Windows.Forms.Form

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

Private Sub Form4_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
c2.conn()
End Sub

Private Sub MenuItem1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MenuItem1.Click

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

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click

Dim obj As New CheckRequestBook


str = Label4.Text
If c2.personalDetailValidity(str) = True Then
obj.Label5.Text = c2.accno
obj.Label6.Text = c2.fname
obj.Show()
Me.Hide()
Else
MsgBox("error in your program")
End If
End Sub

Private Sub Button12_Click_1(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button12.Click
str = Label4.Text
If c2.personalDetailValidity(str) = True Then
fobj5.Label17.Text = c2.accno
Me.Hide()
fobj5.Show()
fobj5.GroupBox7.Visible = False
fobj5.Button4.Visible = False
Else
MsgBox("error in your program")
End If
End Sub

Private Sub Button4_Click_1(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click
Dim fobj As New StopPayment
str = Label4.Text
If c2.personalDetailValidity(str) = True Then
fobj.Label5.Text = c2.accno
fobj.Label9.Text = Label2.Text
Me.Hide()
fobj.Show()
fobj.GroupBox3.Visible = False
fobj.GroupBox4.Visible = False
Else
MsgBox("error in your program")

Page 56 of 56
End If
End Sub

Private Sub Button13_Click_1(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button13.Click

Dim objcredit As New Credit


str = Label4.Text
If c2.balavalidity(str) = True Then
objcredit.Label5.Text = c2.accno1
objcredit.Label11.Text = Label2.Text
objcredit.Label6.Text = c2.bal
Me.Hide()
objcredit.Show()
Else
MsgBox("error in your program")
End If
End Sub

Private Sub Button14_Click_1(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button14.Click

Dim objdebit As New Debit


str = Label4.Text
If c2.balavalidity(str) = True Then
objdebit.Label5.Text = c2.accno1
objdebit.Label11.Text = Label2.Text
objdebit.Label6.Text = c2.bal
Me.Hide()
objdebit.Show()
Else
MsgBox("error in your program")
End If
End Sub

Private Sub Button15_Click_1(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button15.Click
Dim objbalance As New Balance
str = Label4.Text
If c2.balavalidity(str) = True Then
objbalance.Label8.Text = c2.accno1
objbalance.Label9.Text = c2.fname
objbalance.Label5.Text = c2.bal
Me.Hide()
objbalance.Show()
Else
MsgBox("Your Accout is Zero Please Contact The
Administrator")
End If

Page 57 of 57
End Sub

Private Sub Button18_Click_1(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
Button18.Click
Dim fobj As New Report
str = Label4.Text
If c2.personalDetailValidity(str) = True Then
fobj.Label1.Text = c2.accno
fobj.Label2.Text = Label2.Text
Me.Hide()
fobj.Show()
Else
MessageBox.Show("you have not any traction,So it will not
generate the report", "Warning Message",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End If
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim obj As New Form2
obj.Show()
Me.Hide()
End Sub
End Class

Registration Detail form Coding


Imports AppComponent
Public Class Form5
Inherits System.Windows.Forms.Form

Dim cust As String


Dim dt As DataTable
Dim dr As DataRow
Dim customerobj As New AppComponent.RegistrationForms

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click

Dim fobj2 As New Form4


fobj2.Show()
Me.Hide()

Page 58 of 58
fobj2.Label4.Text = Label17.Text
fobj2.Label2.Text = TextBox1.Text
End Sub

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
'...............Office Address Validity...................
If Trim(TextBox6.Text) = "" Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Office Address"
TextBox6.Text = ""
TextBox6.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox6.Text)) Then
GroupBox4.Visible = True
Label26.Text = "Please Enter valid Office Address"
TextBox6.SelectionStart = 0
TextBox6.SelectionLength = TextBox6.MaxLength
TextBox6.Focus()
Exit Sub
End If
'...............Home Address Validity...................
If Trim(TextBox7.Text) = "" Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Home Address"
TextBox7.Text = ""
TextBox7.Focus()
Exit Sub
ElseIf IsNumeric(Trim(TextBox7.Text)) Then
GroupBox4.Visible = True
Label26.Text = "Please Enter valid Home Address"
TextBox7.SelectionStart = 0
TextBox7.SelectionLength = TextBox7.MaxLength
TextBox7.Focus()
Exit Sub
End If
If Trim(TextBox8.Text) = "" Then
GroupBox4.Visible = True
Label26.Text = "Please Enter the Office Phone No"
TextBox8.Text = ""
TextBox8.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox8.Text)) Then
GroupBox4.Visible = True
Label26.Text = "Please Enter valid Office Phone No"
TextBox8.SelectionStart = 0
TextBox8.SelectionLength = TextBox8.MaxLength
TextBox8.Focus()
Exit Sub
ElseIf (Trim(TextBox8.Text)) < 5 Then
GroupBox4.Visible = True

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

If TextBox10.Text = TextBox11.Text Then


customerobj.up(Label17.Text, TextBox6.Text, TextBox7.Text,
TextBox8.Text, TextBox9.Text, TextBox10.Text)
GroupBox10.Visible = True
GroupBox4.Visible = False
Button1.Enabled = False
Else
GroupBox4.Visible = True
Label26.Text = "Your Both Passwords Do Not Match"
End If
End Sub

Private Sub Form5_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
customerobj.conn()

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

Private Sub Button3_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button3.Click

Dim fobj As New DataGridDetail


Dim str As String = "Provider=SQLOLEDB;Integrated
Security=sspi;Initial Catalog=Northwind;Data Source=local"
Dim con As New OleDb.OleDbConnection(str)
con.Open()
Dim com As New OleDb.OleDbCommand("select * from customer
where CAccountNumber='" & Label17.Text & "'", con)
Dim dr As OleDb.OleDbDataReader
dr = com.ExecuteReader
If dr.Read = True Then
fobj.Label2.Text = Label17.Text
fobj.Show()
Me.Hide()
Else
MsgBox("Please Enter the Correct ID")
End If
End Sub

Private Sub Button4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click

Dim str As Integer


Dim con As New
OleDb.OleDbConnection("Provider=SQLOLEDB;Integrated
Security=sspi;Initial Catalog=Northwind;Data
Source=local")
con.Open()
Dim com1 As New OleDb.OleDbCommand("delete from customer
where cAccountNumber='" & Label17.Text & "'", con)
Dim com2 As New OleDb.OleDbCommand("delete from
creditdebitamount where cAccountNumber='" & Label17.Text &
"'", con)
Dim com3 As New OleDb.OleDbCommand("delete from balance
where cAccountNumber='" & Label17.Text & "'", con)
Dim com4 As New OleDb.OleDbCommand("delete from
chequeBookDetails where cAccountNumber='" & Label17.Text &
"'", con)

Dim res As Integer


If TextBox12.Text = "Y" Then
str = MsgBox("Do You want to delete own Account....",
MsgBoxStyle.YesNo + MsgBoxStyle.Information +
MsgBoxStyle.SystemModal, "Confirm Dialog")
Else

Page 62 of 62
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)
Button4.Visible = False
Button3.Visible = False
Else
com1.Dispose()
End If
End Sub

Private Sub Button6_Click_1(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button6.Click

Dim obj As New Form2


obj.Show()
Me.Close()
End Sub
End Class

Credit Form Coding

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

Dim c5 As New AppComponent.CreditValidity


Private Sub Transactionform_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load

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

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim fobj2 As New Form4
fobj2.Show()
Me.Hide()
fobj2.Label4.Text = Label5.Text
fobj2.Label2.Text = Label11.Text
fobj2.Label4.Text = Label5.Text
End Sub

Private Sub Debit()


If Trim(TextBox3.Text) = "" Then
Label13.Text = "Please Enter the Amount"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox3.Text)) Then
Label13.Text = "Please Enter valid Amount"
TextBox3.SelectionStart = 0
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If

If TextBox3.Text >= 15000 Then


Label13.Text = "You Cannot Debit Money greater then 15000
at a time"
Label13.Text = ""
Else
Dim faa As String
c5.ins1(Label5.Text, varlocal4, Label12.Text,
TextBox3.Text)
Label14.Text = "Transaction successfully"
Button1.Visible = False
End If
End Sub

Private Sub Balance()


If Trim(TextBox3.Text) = "" Then
Label13.Text = "Please Enter the Amount"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox3.Text)) Then
Label13.Text = "Please Enter valid Amount"
TextBox3.SelectionStart = 0

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

Credit Form Coding

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

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Call balance()
Call credit()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim fobj2 As New Form4
fobj2.Show()

Page 65 of 65
Me.Hide()
fobj2.Label4.Text = Label5.Text
fobj2.Label2.Text = Label11.Text
End Sub

Private Sub Credit_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
c5.conn()
GroupBox5.Visible = False
Label12.Text = Format(Now, "MM/dd/yyyy")
End Sub

Private Sub credit()


If Trim(TextBox3.Text) = "" Then
Label13.Text = "Please Enter the Amount"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox3.Text)) Then
Label13.Text = "Please Enter valid Amount"
TextBox3.SelectionStart = 0
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If

If TextBox3.Text >= 15000 Then


Label13.Text = "You Cannot credit Money greater then 15000
at a time"
Else
c5.ins(Label5.Text, varlocal4, Label12.Text,
TextBox3.Text)
GroupBox5.Visible = True
Button1.Visible = False
End If
End Sub

Private Sub balance()


If Trim(TextBox3.Text) = "" Then
Label13.Text = "Please Enter the Amount"
TextBox3.Text = ""
TextBox3.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox3.Text)) Then
Label13.Text = "Please Enter valid Amount"
TextBox3.SelectionStart = 0
TextBox3.SelectionLength = TextBox3.MaxLength
TextBox3.Focus()
Exit Sub
End If

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

Stop Payment Form Coding

Imports AppComponent
Public Class StopPayment
Inherits System.Windows.Forms.Form

Dim data As New DataSet


Dim dt As New DataTable
Dim dr As DataRow
Dim StopPay As New AppComponent.StopPayments

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim fobj2 As New Form4
fobj2.Show()
Me.Hide()
fobj2.Label4.Text = Label5.Text
fobj2.Label2.Text = Label9.Text
End Sub

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
'...............Cheque Number Validity...................
If Trim(TextBox1.Text) = "" Then
GroupBox4.Visible = True
Label8.Text = "Please Enter the Cheque Number"
TextBox1.Text = ""
TextBox1.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox1.Text)) Then
GroupBox4.Visible = True
Label8.Text = "Please Enter valid Cheque Number"
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.MaxLength
TextBox1.Focus()

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

Private Sub StopPayment_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
StopPay.conn()
GroupBox3.Visible = False
GroupBox4.Visible = False
End Sub
End Class

ChequeRequestBook Form Coding

Imports AppComponent
Public Class CheckRequestBook
Inherits System.Windows.Forms.Form

Public varnumber As String


Dim cheqrequest As New AppComponent.CustomerModules

Private Sub CheckRequestBook_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load

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

Private Sub RadioButton1_Click(ByVal sender As Object,


ByVal e As System.EventArgs) Handles RadioButton1.Click
varnumber = "10"
End Sub

Private Sub RadioButton2_Click(ByVal sender As Object,


ByVal e As System.EventArgs) Handles RadioButton2.Click
varnumber = "20"
End Sub
End Class

ChequeBookabtain Form Coding

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

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Dim fobj2 As New Form4
fobj2.Show()
Me.Hide()
fobj2.Label4.Text = Label13.Text
fobj2.Label2.Text = Label2.Text

Page 69 of 69
Me.Hide()
End Sub

Private Sub checkbookattain_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
checkbook.conn()
Dim cbook As New CheckRequestBook
Label3.Visible = False
localvar = cbook.varnumber
insert()
End Sub

Private Sub insert()


Dim account As String
Adapter3.Fill(DataSet)
dt = DataSet.Tables("chequebookdetails")
i = (dt.Rows.Count - 1)
dr = dt.Rows(i)
str = dr("cChequeBookNumber")
strcat = Mid(str, 2, 3)
ctr = CInt(strcat)
If ctr >= 1 And ctr < 9 Then
ctr = ctr + 1
account = "B00" & ctr
ElseIf ctr >= 9 And ctr < 100 Then
ctr = ctr + 1
account = "B0" & ctr
ElseIf ctr >= 100 And ctr < 1000 Then
ctr = ctr + 1
account = "B" & ctr
End If
Label8.Text = account
Dim startNumber As String
Dim strnumber As String
If localvar = "10" Then
startNumber = Mid(account, 2)
strnumber = "S001" + startNumber
Label10.Text = strnumber
Dim endno As String
Dim endnumber As String
endno = Mid(account, 2)
endnumber = "E010" + endno
Label11.Text = endnumber
Label3.Text = "Please Note your detail about your check
book.,It will be deliver at your place at 10 days"
Else
startNumber = Mid(account, 2)
strnumber = "S001" + startNumber
Label10.Text = strnumber
Dim endno As String
Dim endnumber As String

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

Private Function saves()


Try
checkbook.ins(Label8.Text, Label13.Text, Label9.Text,
Label10.Text, Label11.Text)
Label3.Visible = True
MessageBox.Show("Your Cheque requeset has been accept and
your number is :", "Request Cheque Book",
MessageBoxButtons.OK, MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show("Your requested has not been accepted,
Please Try again", "Warning Message",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Function
End Class

Loan Form Coding

Imports AppComponent
Public Class LoanFrm
Inherits System.Windows.Forms.Form

Dim dt As New DataTable


Dim dr As DataRow
Dim clen, flag As Integer
Dim str, strval As String
Dim loanobj As New AppComponent.LoanFrm

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click

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

Private Sub LoanFrm_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load

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

Dim Number As String


Dim loannumber As String
Number = Mid(account, 2)
loannumber = "FLC-" + Number
loannotxt.Text = loannumber

GroupBox3.Visible = False
GroupBox4.Visible = False
GroupBox5.Visible = False

Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

Private Sub LinkLabel1_LinkClicked(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs)
Handles LinkLabel1.LinkClicked
Dim loandetobj As New LoanDetail
loandetobj.Show()
Me.Hide()
End Sub
End Class

BankerModule Form Coding

Public Class BankerModules


Inherits System.Windows.Forms.Form

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

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim obj1 As New BankerStopPayment
obj1.Show()
Me.Hide()
End Sub

Private Sub Button3_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button3.Click
Dim obj3 As New MoneyDeposit
obj3.Show()
Me.Hide()
End Sub

Private Sub Button4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click
Dim fobj2 As New Form2
fobj2.Show()
Me.Hide()
End Sub

Private Sub Button5_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button5.Click
Dim loan As New CLoanForm
loan.Show()
Me.Hide()
End Sub

Private Sub Button6_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button6.Click
Dim simplerepobj As New SimpleReport
simplerepobj.Show()
Me.Hide()
End Sub

Private Sub BankerModules_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Label2.Text = Format(Now, "MM/dd/yyyy")
End Sub

Private Sub Button7_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button7.Click
Dim loandep As New LoanDeposit

Page 77 of 77
loandep.Show()
Me.Hide()
End Sub
End Class

Account Details form Coding

Imports AppComponent
Public Class AccountDetail
Inherits System.Windows.Forms.Form

Dim adapter As New OleDb.OleDbDataAdapter


Dim data As New DataSet
Dim flag As Integer
Dim ctr As Integer
Dim accountdet As New AppComponent.Accountdetails

Private Sub RadioButton1_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton1.CheckedChanged
If RadioButton1.Checked = True Then
Label27.Visible = True
TextBox13.Visible = True
Button1.Visible = True
ComboBox1.Visible = False
TextBox13.Clear()
End If
clear()
End Sub

Private Sub RadioButton2_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton2.CheckedChanged
If RadioButton2.Checked = True Then
Label27.Visible = True
ComboBox1.Visible = True
TextBox13.Visible = False
Button1.Visible = False
ComboBox1.Text = ""
End If
clear()

End Sub

Private Sub AccountDetail_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
accountdet.conn()
GroupBox10.Visible = False
TextBox13.Focus()
ComboBox1.Visible = False

Page 78 of 78
accountdet.conn()
combo()
End Sub

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim str As String
str = TextBox13.Text
accountdet.disp(str)
TextBox1.Text = accountdet.s1
TextBox2.Text = accountdet.s2
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

Private Sub Button4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button4.Click
Dim str As Integer
Dim com1 As New OleDb.OleDbCommand("delete from customer
where cAccountNumber='" & TextBox13.Text & "'", Con)
Dim com2 As New OleDb.OleDbCommand("delete from
creditdebitamount where cAccountNumber='" & TextBox13.Text
& "'", Con)
Dim com3 As New OleDb.OleDbCommand("delete from balance
where cAccountNumber='" & TextBox13.Text & "'", Con)
Dim com4 As New OleDb.OleDbCommand("delete from
chequeBookDetails where cAccountNumber='" & TextBox13.Text
& "'", Con)

Dim res As Integer


If TextBox12.Text = "Y" Then
str = MsgBox("Do You want to delete own Account....",
MsgBoxStyle.YesNo + MsgBoxStyle.Information +
MsgBoxStyle.SystemModal, "Confirm Dialog")
Else

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

Public Sub combo()


adapter = New OleDb.OleDbDataAdapter("select
CAccountNumber from Customer", Con)
adapter.Fill(data, "StopPayment")
With data.Tables(0)
For ctr = 0 To .Rows.Count - 1
ComboBox1.Items.Add(.Rows(ctr).Item("CAccountNumber").ToSt
ring)
Next
End With
adapter.Dispose()
data.Dispose()
End Sub

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As


Object, ByVal e As System.EventArgs) Handles
ComboBox1.SelectedIndexChanged
Try
Dim str As String
str = ComboBox1.SelectedItem
accountdet.disp(str)
TextBox1.Text = accountdet.s1
TextBox2.Text = accountdet.s2

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

Private Sub clear()


TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
Label17.Text = ""
Label18.Text = ""
Label19.Text = ""
Label20.Text = ""
Label21.Text = ""
End Sub
End Class

BankerStoppayment from Coding

Imports System.Data.SqlClient
Imports AppComponent
Public Class BankerStopPayment
Inherits System.Windows.Forms.Form

Dim ctr As Integer


Dim stoppay As New AppComponent.StopPayments

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

Public Sub combo()


Dim adapter1 As New OleDb.OleDbDataAdapter("select
CChequeNumber from StopPayment", Con)
Dim data1 As New DataSet
adapter1.Fill(Data1, "StopPayment")

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

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
ListBox1.SelectedIndexChanged
stoppay.disp(ListBox1.SelectedItem)
TextBox1.Text = stoppay.s2
TextBox2.Text = stoppay.s1
TextBox3.Text = stoppay.s3
TextBox4.Text = stoppay.s4
End Sub

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
If TextBox4.Text = "C" Then
stoppay.ad.Fill(stoppay.dt)
stoppay.update(TextBox2.Text, TextBox4.Text)
MsgBox("Request has been Confirmed")
Else
MessageBox.Show("Please Change the status with C",
"Warning Message", MessageBoxButtons.OK,
MessageBoxIcon.Question)
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

Page 82 of 82
fobj2.Show()
Me.Hide()
End Sub
End Class

Moneydepositamount from Coding

Public Class MoneyDeposit


Inherits System.Windows.Forms.Form

Dim data As DataSet


Dim adapter As New OleDb.OleDbDataAdapter
Dim var1 As String
Dim var2 As String
Dim var3 As Long
Dim var4 As Long
Dim cust As String
Dim flag As Integer

Private Sub MoneyDeposit_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Adapter1.Fill(DataSet, "Balance")
cust = TextBox1.Text
Con.Open()
Label9.Text = Format(Now, "MM/dd/yyyy")
End Sub

Private Sub debitfunction()


var3 = TextBox3.Text
var4 = TextBox5.Text
If var3 < var4 Then
MessageBox.Show("Amount not in Your Account", "Warning",
MessageBoxButtons.OK, MessageBoxIcon.Question)
Else
var3 = var3 - var4
Call updates()
End If
End Sub

Private Sub creditfunction()


var3 = TextBox3.Text
var4 = TextBox5.Text
var3 = var3 + var4
Call updates()

End Sub

Private Sub updates()


Dim dr As DataRow
Dim dt As DataTable

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

Private Sub saves()


Dim dr As DataRow
Dim dt As DataTable
Dim adapter As New OleDb.OleDbDataAdapter("select * from
creditdebitamount", Con)
Dim bul As New OleDb.OleDbCommandBuilder(adapter)
Dim data As New DataSet
adapter.Fill(data, "creditdebitamount")
dt = data.Tables("CreditDebitAmount")
dr = dt.NewRow
dr.Item("CAccountNumber") = TextBox1.Text
dr.Item("Tdate") = CDate(Label9.Text)
dr.Item("mbalance") = TextBox3.Text
If RadioButton1.Checked = True Then
dr.Item("DebitAmount") = CInt(TextBox5.Text)
Else
dr.Item("CreditAmount") = CInt(TextBox5.Text)
End If
dt.Rows.Add(dr)
adapter.Update(data, "CreditDebitAmount")
MessageBox.Show("Your Data Successfyully Saved",
"Updated", MessageBoxButtons.OK,
MessageBoxIcon.Information)
adapter.Dispose()
data.Dispose()
End Sub

Private Sub RadioButton1_Click1(ByVal sender As Object,


ByVal e As System.EventArgs) Handles RadioButton1.Click
flag = 1
End Sub

Private Sub RadioButton2_Click(ByVal sender As Object,


ByVal e As System.EventArgs) Handles RadioButton2.Click
flag = 0
End Sub

Page 84 of 84
Private Sub clear()
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
End Sub

Private Sub Button1_Click_1(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click

Dim comm As New OleDb.OleDbCommand("select


b.CAccountNumber,b.MBalance,b.cAccountType,b.rRate,c.Tdate
from Balance b,CreditDebitAmount c where
b.CAccountNumber='" & TextBox1.Text & "' and
c.CAccountNumber='" & TextBox1.Text & "'", Con)
Dim rs As OleDb.OleDbDataReader
rs = comm.ExecuteReader
If rs.Read() Then
TextBox1.Focus()
MessageBox.Show("Data is Found", "Congratulation",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
TextBox2.Text = rs.Item("cAccountType")
TextBox3.Text = rs.Item("mbalance")
TextBox4.Text = rs.Item("rrate")
Else
MessageBox.Show("Data is Not Found", "Warning",
MessageBoxButtons.OK, MessageBoxIcon.Question)
Call clear()
End If
comm.Dispose()
rs.Close()

End Sub

Private Sub Button3_Click_1(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button3.Click
Dim fobj2 As New BankerModules
fobj2.Show()
Me.Hide()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click

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

Dim principal As Double


Dim data As New DataSet
Dim dt As New DataTable
Dim dr As DataRow
Dim loanobj As New AppComponent.LoanCom

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim obj As New BankerModules
obj.Show()
Me.Hide()
End Sub

Private Sub CLoanForm_Load(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles MyBase.Load
con.Open()
loanobj.conn()
Adapter.Fill(data, "Loan")
Label19.Text = Format(Now, "MM/dd/yyyy")
GroupBox1.Visible = False
GroupBox2.Visible = False
GroupBox3.Visible = False

End Sub

Private Sub TextBox11_LostFocus1(ByVal sender As Object,


ByVal e As System.EventArgs) Handles TextBox11.LostFocus
Try
Dim str As String
str = TextBox11.Text
loanobj.disp(str)
TextBox1.Text = loanobj.s1
TextBox2.Text = loanobj.s2
TextBox3.Text = loanobj.s3
TextBox4.Text = loanobj.s4
TextBox5.Text = loanobj.s5
TextBox6.Text = loanobj.s6
TextBox7.Text = loanobj.s7
TextBox8.Text = loanobj.s8

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

Public Sub CalculateIntrest()


Dim principal As Double
Dim intrest As Double
Dim year As Long
Dim monthpay As Double
Dim monthintrest As Double
Dim lngN As Long

If TextBox15.Text = "" Then


MsgBox("Please Enter the Year in Number")
TextBox15.Focus()
Else
principal = CDbl(Me.TextBox14.Text)
intrest = CDbl(Me.Label20.Text)
year = CLng(Me.TextBox15.Text)
monthintrest = (intrest / (12 * 100))
lngN = year * 12
monthpay = (principal * (monthintrest / (1 - (1 +
monthintrest) ^ (-lngN))))
Me.Label24.Text = Format(monthpay, "$#,##0.00")
End If

End Sub

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
If TextBox15.Text = "" Then
MsgBox("Please Enter the Year in Number")
TextBox15.Focus()
Else
CalculateIntrest()
saves()
Amountsaves()
End If

End Sub

Private Sub TextBox14_LostFocus(ByVal sender As Object,


ByVal e As System.EventArgs) Handles TextBox14.LostFocus

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

Private Function saves()


If TextBox15.Text = "" Then
MsgBox("Please Enter the Year in Number")
TextBox15.Focus()
End If
Label3.Visible = True
loanobj.ins(TextBox1.Text, TextBox11.Text, TextBox10.Text,
TextBox14.Text, Label20.Text, TextBox15.Text,
Label19.Text, TextBox14.Text, Label24.Text,
TextBox14.Text)
MessageBox.Show("Your Loan is Accepted Successfully:",
"Request Loan", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End Function
Private Function Amountsaves()
Label3.Visible = True
loanobj.Ins1(TextBox1.Text, TextBox11.Text,
TextBox10.Text, TextBox14.Text)
End Function
End Class

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

Private Sub LoanDeposit_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load

deploan.conn()
Con.Open()
'Adapter1.Fill(DataSet, "loan")
Adapter2.Fill(DataSet, "DepositLoan")
disables()
TextBox1.Focus()
cust = TextBox1.Text
Label9.Text = Date.Today

End Sub

Private Sub disables()


TextBox2.ReadOnly = True
TextBox3.ReadOnly = True
TextBox4.ReadOnly = True
TextBox5.ReadOnly = True
TextBox6.ReadOnly = True
TextBox7.ReadOnly = True
TextBox8.ReadOnly = True

End Sub

Private Sub TextBox1_LostFocus(ByVal sender As Object,


ByVal e As System.EventArgs) Handles TextBox1.LostFocus

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

Private Sub Balance()


If Trim(TextBox9.Text) = "" Then
Label13.Text = "Please Enter the Amount"
TextBox9.Text = ""
TextBox9.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox9.Text)) Then
Label13.Text = "Please Enter valid Amount"
TextBox9.SelectionStart = 0
TextBox9.SelectionLength = TextBox9.MaxLength
TextBox9.Focus()
Exit Sub
End If
'........................................................
Adapter2.Fill(DataSet, "DepositLoan")
cust = TextBox1.Text
dt = DataSet.Tables("DepositLoan")
dr = dt.Rows.Find(cust)
dr.BeginEdit()
varlocal1 = dr("BalanceAmount")
varlocal2 = TextBox9.Text
If varlocal1 < varlocal2 Then
MsgBox("Please Enter the valid Amount")
Con.Close()
End If

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

Private Sub Button1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Balance()
credit()
CalculateIntrest()
End Sub
Private Sub credit()

If Trim(TextBox9.Text) = "" Then


Label13.Text = "Please Enter the Amount"
TextBox9.Text = ""
TextBox9.Focus()
Exit Sub
ElseIf Not IsNumeric(Trim(TextBox9.Text)) Then
Label13.Text = "Please Enter valid Amount"
TextBox9.SelectionStart = 0
TextBox9.SelectionLength = TextBox9.MaxLength
TextBox9.Focus()
Exit Sub
End If
Try
deploan.ins(TextBox1.Text, TextBox3.Text, TextBox2.Text,
TextBox9.Text, TextBox6.Text, TextBox7.Text, Label9.Text,
varlocal3, TextBox8.Text, TextBox4.Text)
Label13.Text = ""
Catch ex As Exception
MsgBox(ex.Message)
End Try

End Sub

Public Sub CalculateIntrest()


Dim principal As Double
Dim intrest As Double

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

Public Sub PayGrid(ByVal pAmount As Double, ByVal


minterest As Double, ByVal mPayment As Double)

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")

monthintrestpaid = (pAmount * minterest)

dr(3) = Format(monthintrestpaid, "$#,##0.00")


dr(4) = Format(mPayment - monthintrestpaid, "$#,##0.00")
dr(5) = Format(pAmount - (mPayment - monthintrestpaid),
"$#,##0.00")
If newbalance >= 0 Then
dr(6) = Format(sliceamount, "$#,##0.00")
dr(7) = Format(sliceamount - monthintrestpaid,
"$#,##0.00")
dr(8) = Format(newbalance - (sliceamount -
monthintrestpaid), "$#,##0.00")
Else
dr(6) = "PAID"
dr(7) = "IN"
dr(8) = "FULL"
End If
dt.Rows.Add(dr)
datmonthyear = DateAdd(DateInterval.Month, 1,
datmonthyear)
pAmount = (pAmount - (mPayment - monthintrestpaid))
newbalance = (newbalance - (sliceamount -
monthintrestpaid))
Loop

With DataGrid1
.Visible = True
.DataSource = New DataView(dt)
End With
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim obj As New BankerModules
obj.Show()
Me.Hide()

End Sub
End Class

SimpleReportform Coding

Public Class SimpleReport


Inherits System.Windows.Forms.Form
Dim flag As Integer

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

Private Sub RadioButton1_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton1.CheckedChanged
flag = 1
End Sub

Private Sub RadioButton2_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton2.CheckedChanged
flag = 2
End Sub

Private Sub RadioButton3_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton3.CheckedChanged
flag = 3
End Sub

Private Sub RadioButton6_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton6.CheckedChanged
flag = 4
Label1.Text = "Please Enter The Customer Code"
End Sub

Private Sub TextBox1_LostFocus(ByVal sender As Object,


ByVal e As System.EventArgs) Handles TextBox1.LostFocus

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()

ElseIf flag = 2 Then


Dim fobj1 As New CheuqBookReport
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
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()

ElseIf flag = 3 Then


Dim fobj1 As New Report
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
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

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

Private Sub SimpleReport_Load(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
GroupBox1.Visible = False
GroupBox2.Visible = False
GroupBox4.Visible = False
End Sub

Private Sub RadioButton4_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton4.CheckedChanged
If RadioButton4.Checked = True Then
GroupBox1.Visible = True
GroupBox2.Visible = True
GroupBox4.Visible = False
End If
End Sub

Private Sub RadioButton5_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
RadioButton5.CheckedChanged
If RadioButton5.Checked = True Then
GroupBox1.Visible = False
GroupBox2.Visible = False
GroupBox4.Visible = True

Page 96 of 96
End If
End Sub

Private Sub Button2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button2.Click
Dim fobj1 As New DateWiseReport
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='" & TextBox2.Text & "' and DDate>='"
& TextBox3.Text & "' and DDate<= '" & TextBox4.Text & "'
", con)
Dim rs As OleDb.OleDbDataReader
rs = comm.ExecuteReader
If rs.Read = True Then
fobj1.Label1.Text = TextBox2.Text
fobj1.Label2.Text = TextBox3.Text
fobj1.Label3.Text = TextBox4.Text
Me.Hide()
fobj1.Show()
Else
MsgBox("Error in your generating report")
End If
con.Close()
comm.Dispose()
rs.Close()
End Sub

End Class

Component Coding

Login Coding

Imports System.Data.SqlClient
Public Class Login
Inherits System.ComponentModel.Component

Public con As SqlConnection


Public adapter As SqlDataAdapter
Public dt As DataTable
Public com As SqlCommand
Dim data As New DataSet
Public FName, PassName As String

Public Function conn() As DataTable

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

Public Function validusername(ByVal Uname As String, ByVal


Pname As String) As Boolean

con = New SqlConnection("Integrated Security=SSPI;Packet


Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
com = New SqlCommand("select * from customer where
CAccountNumber='" & Uname & "' and CPassword='" & Pname &
"'", con)
Dim rs As SqlDataReader
rs = com.ExecuteReader
If rs.Read = True Then
FName = rs.Item("VFirstName")
PassName = Uname
Return True
Else
Return False
End If
rs.Close()
com.Dispose()
con.Close()
End Function

Public Function Admin(ByVal Uname As String, ByVal Pname


As String) As Boolean

con = New SqlConnection("Integrated Security=SSPI;Packet


Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")

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

Public con As SqlConnection


Public ad As SqlDataAdapter
Public dt As DataTable
Public dc As SqlCommand
Dim data As New DataSet
Public s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12,
s13, s14, s15, s16 As String

Public Function conn() As DataTable

con = New SqlConnection("Integrated Security=SSPI;Packet


Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
dc = New SqlCommand("ProCustomerret")
dc.CommandType = CommandType.StoredProcedure
dc.Connection = con
dc.ExecuteNonQuery()
ad = New SqlDataAdapter(dc)
dt = New DataTable
ad.Fill(dt)
Return dt
End Function

Public Function ins(ByVal Acc As String, ByVal Fname As


String, ByVal Lname As String, ByVal offadd As String,
ByVal hoadd As String, ByVal DOb As String, ByVal AccType
As String, ByVal Gen As String, ByVal OffPh As String,
ByVal HoPh As String, ByVal pass As String, ByVal ATM As

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)

Page 100 of 100


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.Connection = con
dc.ExecuteNonQuery()
Catch ex As SqlException
MsgBox("Please Enter The Correct Account Number")
End Try
End Function

Public Function savebalance(ByVal Acc As String, ByVal


acctype As String, ByVal bal As String, ByVal rate As
String)

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

Page 101 of 101


End Function

Public Function up(ByVal acno As String, ByVal offadd As


String, ByVal hoadd As String, ByVal offph As String,
ByVal hoph As String, ByVal pass As String)
Try
Dim s1 As New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 6)
Dim s2 As New SqlParameter("@vOfficeAddress",
SqlDbType.VarChar, 50)
Dim s3 As New
SqlParameter("@vHomeAddress",SqlDbType.VarChar, 50)
Dim s4 As New SqlParameter("@cOfficePhone", SqlDbType.Int)
Dim s5 As New SqlParameter("@cHomePhone", SqlDbType.Int)
Dim s6 As New
SqlParameter("@cPassword",SqlDbType.VarChar,10)
s1.Value = acno
s2.Value = offadd
s3.Value = hoadd
s4.Value = offph
s5.Value = hoph
s6.Value = pass

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

Public Function disp(ByVal acno As String)

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")

Page 102 of 102


s4 = rs.Item("cGender")
s5 = rs.Item("cAccountType")
s6 = rs.Item("VOfficeAddress")
s7 = rs.Item("VHomeAddress")
s8 = rs.Item("COfficePhone")
s9 = rs.Item("CHomePhone")
s10 = rs.Item("CPassword")
s11 = rs.Item("CPassword")
s12 = rs.Item("CAccountNumber")
s13 = rs.Item("CATMCardNumber")
s14 = rs.Item("CcreditCardNumber")
s15 = rs.Item("DDateofopened")
s16 = rs.Item("DDateofExpiry")
Else
MsgBox("Please Enter the Correct Account Number")
End If
Catch ex As Exception
MsgBox("You Cannot Access the Data..." & ex.Message)
End Try
End Function
End Class

LoanCom coding

Imports System.Data.SqlClient
Public Class LoanCom
Inherits System.ComponentModel.Component

Public con As SqlConnection


Public adapter As SqlDataAdapter
Public dt As DataTable
Public com As SqlCommand
Dim data As New DataSet
Public s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12,
s13, s14, s15, s16 As String
Public array As String

Public Function conn() As DataTable

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

Page 103 of 103


MsgBox("Connection Error the Server or Table does not
exist" & ex.Message)
End Try
com.Dispose()
adapter.Dispose()
dt.Dispose()
con.Close()
End Function

Public Function disp(ByVal acno As String)

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

Public Function ins(ByVal ccode As String, ByVal lid As


String, ByVal AcNo As String, ByVal d As String, ByVal
iint As String, ByVal DTime As String, ByVal ddate As
String, ByVal bal As String, ByVal mamount As String,
ByVal LAmount As String)

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)

Page 104 of 104


s2 = New SqlParameter("@CLoanID", SqlDbType.VarChar, 50)
s3 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar,6)
s4 = New SqlParameter("@DepositAmount", SqlDbType.Float)
s5 = New SqlParameter("@IIntrest", SqlDbType.Float)
s6 = New SqlParameter("@DurationTime", SqlDbType.Int)
s7 = New SqlParameter("@DDate", SqlDbType.VarChar, 12)
s8 = New SqlParameter("@balanceAmount", SqlDbType.Float)
s9 = New SqlParameter("@MonthlyAmount", SqlDbType.Float)
s10 = New SqlParameter("@LoanAmount", SqlDbType.Float)

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

Public Function Ins1(ByVal ccode As String, ByVal lid As


String, ByVal AcNo As String, ByVal bal As String)

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)

Page 105 of 105


s3 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar,6)
s4 = New SqlParameter("@balanceAmount", SqlDbType.Float)

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

Public Class CustomerModules


Inherits System.ComponentModel.Component
Dim con As New OleDb.OleDbConnection
Dim com As OleDb.OleDbCommand
Dim adapter As OleDb.OleDbDataAdapter
Dim dt As DataTable
Public accno As String
Public accno1 As String
Public fname As String
Public firstname As String
Public bal As String

Public Function conn() As DataTable

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

Page 106 of 106


adapter.Fill(dt)
Return dt

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

Public Function personalDetailValidity(ByVal uname As


String)

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()
Dim comm As New OleDb.OleDbCommand("select * from customer
where CAccountNumber='" & uname & "'", con)
Dim rs As OleDb.OleDbDataReader
rs = comm.ExecuteReader
If rs.Read Then
accno = uname
fname = rs.Item("VFirstName")
Return True
Else
Return False
End If
rs.Close()
com.Dispose()
con.Close()
End Function

Public Function balavalidity(ByVal uname As String)

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()

Page 107 of 107


Dim comm As New OleDb.OleDbCommand("select
c.CAccountNumber,c.vFirstName,b.mBalance from Customer
c,balance b where c.CAccountNumber='" & uname & "' and
b.CAccountNumber='" & uname & "'", con)
Dim rs As OleDb.OleDbDataReader
rs = comm.ExecuteReader
If rs.Read Then
accno1 = uname
fname = rs.Item("VFirstName")
bal = rs.Item("mbalance")
Return True
Else
Return False
End If
rs.Close()
com.Dispose()
con.Close()
End Function
End Class

Creditvalidity coding

Imports System.Data.SqlClient
Public Class CreditValidity
Inherits System.ComponentModel.Component

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
Public fname As String

Public Function conn() As DataTable

con = New SqlConnection("Integrated Security=SSPI;Packet


Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
dc = New SqlCommand("procreditamount")
dc.CommandType = CommandType.StoredProcedure
dc.Connection = con
dc.ExecuteNonQuery()
ad = New SqlDataAdapter(dc)
dt = New DataTable
ad.Fill(dt)
Return dt

Page 108 of 108


End Function

Public Function ins(ByVal Acc As String, ByVal mbal As


String, ByVal tdate As String, ByVal camount As String)

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

Public Function ins1(ByVal Acc As String, ByVal mbal As


String, ByVal tdate As String, ByVal damount As String)

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

Page 109 of 109


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

Public Function update(ByVal Acno As String, ByVal bal As


String)

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

Page 110 of 110


Public fname, k As String
Public s1, s2, s3, s4 As String

Public Function conn() As DataTable

con = New SqlConnection("Integrated Security=SSPI;Packet


Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
dc = New SqlCommand("ProSelectStopPayment")
dc.CommandType = CommandType.StoredProcedure
dc.Connection = con
dc.ExecuteNonQuery()
ad = New SqlDataAdapter(dc)
dt = New DataTable
ad.Fill(dt)
Return dt
End Function

Public Function ins(ByVal CNo As String, ByVal AcNo As


String, ByVal Inst 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

Page 111 of 111


Public Function update(ByVal cno As String, ByVal status
As String)

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

Public Function disp(ByVal cno As String)

dc = New SqlCommand("select * from StopPayment where


CChequeNumber='" & cno & "' ", con)
Dim rs As SqlDataReader
rs = dc.ExecuteReader
If rs.Read Then
s1 = rs.Item("cchequeNumber")
s2 = rs.Item("CAccountNumber")
s3 = rs.Item("VInstruction")
s4 = rs.Item("CStatus")
Else
MsgBox("Please Enter the Correct Account Number")
End If
dc.Dispose()
rs.Close()
End Function
End Class

ChequeBookObtain coding

Imports System.Data.SqlClient
Public Class ChequeBookObtains

Page 112 of 112


Inherits System.ComponentModel.Component
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
Public fname As String

Public Function conn() As DataTable

con = New SqlConnection("Integrated Security=SSPI;Packet


Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
dc = New SqlCommand("ProSelChequBookObtains")
dc.CommandType = CommandType.StoredProcedure
dc.Connection = con
dc.ExecuteNonQuery()
ad = New SqlDataAdapter(dc)
dt = New DataTable
ad.Fill(dt)
Return dt
End Function

Public Function ins(ByVal CBNo As String, ByVal AcNo As


String, ByVal Dissue As String, ByVal sNum As String,
ByVal lNum As String)

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)

Page 113 of 113


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)
' 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

Public Function conn() As DataTable


con = New SqlConnection("Integrated Security=SSPI;Packet
Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
com = New SqlCommand("proloandet")
com.CommandType = CommandType.StoredProcedure
com.Connection = con
com.ExecuteNonQuery()
ad = New SqlDataAdapter(com)
dt = New DataTable
ad.Fill(dt)
Return dt
End Function

Public Function ins(ByVal ccode As String, ByVal lid As


String, ByVal AcNo As String, ByVal dep As String, ByVal
iint As String, ByVal DTime As String, ByVal ddate As
String, ByVal bal As String, ByVal mamount As String,
ByVal LAmount As String)

Page 114 of 114


Try
com = New SqlCommand("ProLoan")
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)
s3 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 6)
s4 = New SqlParameter("@DepositAmount", SqlDbType.Float)
s5 = New SqlParameter("@IIntrest", SqlDbType.Float)
s6 = New SqlParameter("@DurationTime", SqlDbType.Int)
s7 = New SqlParameter("@DDate", SqlDbType.VarChar, 12)
s8 = New SqlParameter("@balanceAmount", SqlDbType.Float)
s9 = New SqlParameter("@MonthlyAmount", SqlDbType.Float)
s10 = New SqlParameter("@LoanAmount", SqlDbType.Float)

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

Page 115 of 115


Imports System.Data.SqlClient
Public Class LoanFrm
Inherits System.ComponentModel.Component
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
Public fname As String

Public Function conn() As DataTable


con = New SqlConnection("Integrated Security=SSPI;Packet
Size=4096;Data Source=local;Initial
Catalog=Northwind;Workstation ID=LOCAL")
con.Open()
dc = New SqlCommand("registrationdet")
dc.CommandType = CommandType.StoredProcedure
dc.Connection = con
dc.ExecuteNonQuery()
ad = New SqlDataAdapter(dc)
dt = New DataTable
ad.Fill(dt)
Return dt
End Function

Public Function ins(ByVal ccode As String, ByVal lno As


String, ByVal Acc As String, ByVal Fname As String, ByVal
Lname As String, ByVal offadd As String, ByVal hoadd As
String, ByVal DOb As String, ByVal gen As String, ByVal
offph As String, ByVal hoPh As String, ByVal ltype As
String, ByVal state As String, ByVal count As String,
ByVal zip As String, ByVal email As String)
Try
dc = New SqlCommand("proregistrationdet")
dc.CommandType = CommandType.StoredProcedure
Dim s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12,
s13, s14, s15, s16 As SqlParameter
s1 = New SqlParameter("@cCustomerCode", SqlDbType.VarChar,
10)
s2 = New SqlParameter("@cLoanID", SqlDbType.VarChar, 10)
s3 = New SqlParameter("@cAccountNumber",
SqlDbType.VarChar, 6)
s4 = New SqlParameter("@vFirstName", SqlDbType.VarChar,
50)
s5 = New SqlParameter("@vLastName", SqlDbType.VarChar, 50)
s6 = New SqlParameter("@vOfficeAddress",
SqlDbType.VarChar, 50)
s7 = New SqlParameter("@vHomeAddress", SqlDbType.VarChar,
50)

Page 116 of 116


s8 = New SqlParameter("@dDateOfBirth",
SqlDbType.VarChar,8)
s9 = New SqlParameter("@cGender", SqlDbType.VarChar, 9)
s10 = New SqlParameter("@cOfficePhone", SqlDbType.VarChar,
20)
s11 = New SqlParameter("@cHomePhone",
SqlDbType.VarChar,20)
s12 = New SqlParameter("@cLoanType", SqlDbType.VarChar,
10)
s13 = New SqlParameter("@state", SqlDbType.VarChar, 15)
s14 = New SqlParameter("@Country", SqlDbType.VarChar, 20)
s15 = New SqlParameter("@ZipCode", SqlDbType.Float)
s16 = New SqlParameter("@EmailID", SqlDbType.VarChar, 50)

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)

Page 117 of 117


End Try
End Function
End Class

Page 118 of 118


FUTURE SCOPE OF THE PROJECT

Mostly in several organization works is done manually which could have


many built in problems, which can create many large problems. It
becomes very cumbersome and laborious when the number of records
grows significantly. When the data grows in size, it becomes increasingly
unmanageable; moreover there is lot of difficulty in opening new accounts
and closing old accounts in current manual system. We have to search all
there files for finding various detail about that Customer. During this
process Bank employee has to waste several hours.
Maintaining the record of various accounts, reports and other details
manually also force the organization to keep the numbers of employee for
this. Moreover there are many other task as preparing reports, calculations
of pay, bonus, taxes, Provident Fund in accounts. Since all there work are
mostly handled manually there is bound to some manual error because of
carelessness due to extra load of work. Since error does play upon the
reputation, economic losses of the organization a lot of this work needs to
be computerized with proper support. Software has to be developed which
could efficiently and easily handle all management work of the
organization, which leads to an increase in output of organization.
This Bank System may require a changes if we want to use it in a real life
situation as per the different requirement of the different organizations.
The system created can be of great use. The system created can be
modified to handle more operation of the organization and generate more
reports.
The enhancement to be made in the presented software would be in
respect to the facility to make the desired Banking. Various types of
conditions can be applied to the generated model and tested for
robustness.

Page 119 of 119


This project is suitable for the future because as the organization changes
their operation project support their changes with little alteration.
All these problem can be avoided if the whole setup is computerized that
is one 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.

SUITABLE SUGGESTIONS FOR FUTURE

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

This part includes the testing of correctness, completeness and consistency


of the system in each stages of the System Development Life Cycle. In
project verification, (after a system the have been developed) it is seen
whether the system is meeting all the satisfactory requirements or not.
There are various types of tests, which are used to test the system. These
includes: -

Block Box Testing: -


It includes testing the functionalities without checking the inner coding. It
include test data that will cover all the functional aspects of the system,

Page 120 of 120


this applied during later stages of SDLC. The Block Box Testing is done
by Susant sir (Guide) as well as Israt Sir of NSIC Study Centre.

For example: - Initially, our project do not fetch the appropriate


guarantor form by giving detail in the customer form during Block Box
Testing, our guide trace this problem & give appropriate suggestion for
the problem.

White Box Testing: -


During this testing, each and every statement in the coding of project is
tested for its correctness. This test doesn’t check the functionally of the
program. Our project guide Mr. Susant Kumar Sahu done the White Box
Testing & gave the suggestion for the right coding
For example: - During the white box testing our guide point out the
problem arises when the customer paid either more amounts or fewer
amounts than the required installment. This problem can be solving out by
calculating the balance with the help of proper calculation and coding.

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

Page 121 of 121


where errors are easier to isolate correct. It can be further divided into two
approaches.

Top Down Testing: -


In this testing, main control module and its sun module are identified and
testing is done in the module at higher position in hierarchy and late, to the
lower one.
Bottom Testing: -
This testing is done at lower module first and then process to high
modules. This testing is also done by or guide.
For example: - During integration testing, guide feels that there is a
separate module for the closing if account. He suggests the appropriate
method require for closing the balance which is are of the improper
feature of a successful project.

Page 122 of 122


TEST CASE
This project made under the guidance of my guide “Mr. Susant Kumar
Sahu”. He checks the project and tested at his end and gives some more
advices to make my project more flexible and more users friendly.
Following are the advices given:
Prevoiusly I had not used the Component in .Net, But they advice me to
create a component and use the application form.
Point 1. As the Customer whose are account holder in the bank.
calculate the Transaction of Money.
According to his annual salary Provides Loan.

Point 2. Issue a form to every Customer:


Any Customer can access the Own Account through the
directly.

Point 3. Payment of Loan:


Monthly Installment
Company should also store the information of the Account holder who
Close own Account. Deletion of Customer details is strictly avoided.
Initially when I started to develop this facility there was no facility of auto
creation of Loan no and Customer Code number and its details. Guide
helped me to introduce the same.

BIBLIOGRAPHY
1. Visual Basic .Net 2003

2. IGNOU Reference book

3. NIIT Technical Reference and Skill base book

4. www.Microsoft.com

Page 123 of 123


5. www.google.com

Page 124 of 124

Das könnte Ihnen auch gefallen