This action might not be possible to undo. Are you sure you want to continue?
BANK MANAGEMENT SYSTEM
( In the fulfillment of one and a half month summer training )
Submitted to :
Asst. Prof. H.P.S. Dhami
(H.O.D., Department of CSE &IT)
Submitted by :
Class – Btech(CSE) – 5th sem
TABLE OF CONTENTS
SR. NO : (1) (i) (ii) (iii) (2) (i) (ii) (iii) (iv) (3) (i) (ii) (iii) (4) (5) (6) (7) (8)
PAGE NO :
INTRODUCTION TO PROJECT Platform used Objective Synopsis SYSTEM ANALYSIS Identification of Need Project Planning Project Scheduling System Requirements Specifications SYSTEM DESIGN Logical Design Form Layout ER Diagram CODING TESTING 1. Test Cases 2. Test Logs REPORT FUTURE SCOPE BIBLIOGRAPHY
4 SYNOPSIS CONTENTS 1) Organization Profile 2) Organization chart 3) Project Guide and Team 4) Introduction to project 5) Hardware and Software Required 6) Problem area .
it was converted into a public limited company. . A significant milestone in our transition from a hardware maintenance company to a complete end-to-end IT solutions provider was 'Project Interact' (International Education and Research for Applications of Computer Technology). On August 19.In 1978. 1975. a UN project involving design. maintenance of computers supplied by other foreign manufacturers as well. development and systems-engineering of real-time. including many of its employees. helped the company to imbibe a service-oriented culture. 1977. We aligned our focus with the government's thrust on IT development activities. subsequently. when IBM wound up its operations in India. and acquired a 'solutions' orientation. we perceived the need for total IT system solutions in India.5 Organization Profile CMC was incorporated on December 26. Taking over the activities of IBM in India. CMC took over the maintenance of IBM installations at over 800 locations around India and. The Government of India held 100 per cent of the equity share capital. In 1980. as the 'Computer Maintenance Corporation Private Limited'. This is demonstrated by our long-standing customer associations and our ability to provide high-quality and reliable service.
….6 ORGANIZATION CHART President Vice President Human Resources Vice President Development Vice President Quality management Group Leader 1 Group Leader 2 Project Leader 1 Project leader 2 Senior manager(Project) Senior manager(Project) Software Engg1..…. Software Engg1. Manjinder Singh . Software Engg2. Software Engg2.
7 PROJECT GUIDE AND TEAM .
8 INTRODUCTION TO PROJECT .
hierarchical.NET builds on the programming classes of the . from JScript to C++. error handling. the common language runtime enables cross-language inheritance. the runtime is responsible for managing memory allocation. because it automates so much (for example. especially when compared to COM as it is today. and extensible set of class libraries (APIs). deploying. as well as satisfying any dependencies that the component might have on other components.NET Framework The .NET framework VB.NET Framework. ASP.NET ASP. By creating a common set of APIs across all programming languages. Unified programming classes The framework provides developers with a unified. starting up and stopping threads and processes. object-oriented.NET Framework is a multi-language environment for building. All programming languages. the runtime makes the developer's experience very simple.9 Platform used BANK MANAGEMENT SYSTEM being developed using: . and enforcing security policy. While the component is running. C++ developers use the Microsoft Foundation Classes and Java developers use the Windows Foundation Classes. have similar access to the framework and developers are free to choose the language that they want to use. At development time. and running XML Web services and applications. It consists of three main parts: • • • Common Language Runtime Despite its name. In particular. providing a Web application model with a set of controls and . and debugging. the runtime's role changes slightly. Currently. The framework unifies these disparate models and give Visual Basic and JScript programmers access to class libraries as well. the runtime actually has a role in both a component's runtime and development time experiences. memory management). features such as reflection dramatically reduce the amount of code a developer must write in order to turn business logic into a reusable component.NET SQL Server 2000 .
When you run the application. The . and your VB . such as session state management and process recycling. In this way. much like bytecodes in Java. And it is specially designed to make working with the Internet easy. In this way. menus. your programs can be very small compared to earlier Windows applications. that IL code is translated into the binary code your computer can understand by some special compilers built into the CLR. and all the rest-all . that further reduce the amount of code a developer must write and increase application reliability. and push their user interface as HTML to the browser. and your VB .NET applications. In addition.NET applications. buttons.NET infrastructure to deliver that service via SOAP.NET framework.NET also provides infrastructure services.NET Framework class library. because you can rely on the millions of lines of code already written in the class library. and other Visual Studio languages build on.NET application. ASP. Visual C++.NET Framework and the Common Language Runtime VB . Microsoft can one day create a CLR for operating systems other than Windows. All this assumes that you're working on a machine that has the .NET application-forms. The .NET Framework class library is the second major part of the . such as text boxes and drop-down menus. Using XML Web services features. This framework provides the new support for software development and operating system support in Windows. The class library gives your program the support it needs-for example. will run on them. your program may create several forms. or IL for short). The code for all elements we use in a VB .NET framework. All your code has to do is declare a new form. When you create a VB . however. and as there is a class for forms in the class library.NET Framework class library.NET developers can write their business logic and use the ASP. your program doesn't have to perform all the details of creating those forms from scratch. installed.NET framework. Compilers translate your code into something that your machine's hardware. and the CLR compilers can get the actual code that supports forms from the .10 infrastructure that make it simple to build ASP Web applications.NET framework is the Common Language Runtime (CLR). ASP. compiled into IL.NET programs actually deal with . The . The class library holds an immense amount of prewritten code that all the applications you create with Visual Basic. and it's more extensive than anything we've seen in Windows before. At the base of the .NET includes a set of controls that encapsulate common HTML user interface elements. can deal with directly. These controls run on the Web server. On the server. ASP.NET uses these same concepts to enable developers to deliver software as a service.NET is only one component of a revolution in Windows-the . The CLR is the module that actually runs your VB . what really happens is that your code is compiled into the CLR's Intermediate Language (named MSIL. the controls expose an object-oriented programming model that brings the richness of object-oriented programming to the Web developer. and therefore the CLR and the . not everything has to be in your application's executable (EXE) file. or other software. see Soap Community Links. For more information.NET code instead of dealing with the operating system itself. ASP.NET framework wraps the operating system with its own code. C#.
because there will be a number of advanced topics here that you've probably never seen before—you might want to refer back to this section as these topics become more clear. VB. you might just want to skip this section. for example. unsettling many programmers. This change will take some time for many accomplished VB programmers to come to terms with. Web applications. because all the support you need is already on the machine you're installing your application to. and programmers coming from C++ sometimes looked down on VB programmers. as it is in Java. We'll note the details of these changes throughout the book. and console applications. As we've also seen. Those are the three application types with user interfaces: Windows applications. There's . aside from Windows development. as it is in Java. and so on. so you get an idea of how things are different. distributing applications is easier. The changes are extensive. it might prove useful to at least simply skim this section. however. if you know Java. as we'll see in this chapter.NET? Rather than asking what's new. giving the Visual Basic language the same rigor as any other programming language. there's a third alternative now—in addition to Windows applications and Web applications.NET is far bigger. it also gives you an outline of the kind of programming we'll see in this book. you can create console applications. Not only has how you design applications and what types of projects you can create changed. One longstanding complaint about Visual Basic has been that it didn't offer a serious programming syntax. We can't cover all the changes from Visual Basic 6. everything in Visual Basic is object-oriented now. Also. In fact. However. And other Visual Studio applications use the same class library. and you must declare your variables. Now. Be warned: if you are relatively new to Visual Basic. you'll see what that means throughout the book in dozens of places. Some programmers have complained that Microsoft is trying to turn Visual Basic into Java. in one place. but the very syntax of the language has changed a great deal too. Version 4. because besides giving you an outline of what's changed from VB6.0 of Visual Basic was a big change.NET. you can also create Web applications in VB . as you can in Java. Microsoft has changed all that. are command-line oriented applications that run in DOS windows. and what's possible. as what was standard in Java has become standard in Visual Basic. it would almost be easier to ask what's not new in VB . even in the same application.NET. as you do in Java. making it easy to mix languages in your programming.NET What's New in VB .0 in a single chapter. Console applications.11 comes from the class library. and the built-in VB functionality is encapsulated in a namespace called System. but the change from VB6 to VB . but it's worth taking a look at them in overview here.
You can build Web applications that use standard HTML controls. the very data types you can use have changed in VB . and often will explain how to make it right.NET. Here's an overview: • • • • • • Web forms let you create Web-based applications with user interfaces. as we'll see in this chapter. you can send and process data using HTTP and XML messaging standards on the Internet. as the middle tier of distributed database applications on the Internet. Using Web services. The two major types of Web applications are Web forms and Web services.NET framework that underlies VB . but execute code on the server. that are handled on the Web server. You can also now check the data a user enters into a Web form using validation controls. many old controls are gone and new ones have appeared. and other half-hearted attempts. but VB . starting with Web Development Changes. you must always use parentheses when calling procedures. In fact. There are two ways to create your own Web server controls: you can create user controls—Web form pages that are then embedded in other Web form pages. strict data typing is now enforced. there are restrictions on declaring arrays.NET. there are plenty of changes in VB . . Or. These applications are based on ASP. or new Server controls. you now have to declare all variables and objects.12 also an additional new type of application—one that doesn't have a built-in user interface: Web services. Changes in Web Development The big change in Web development is that you can do it at all. because these types have to be the same as you use in other languages like Visual C++ and Microsoft's C#. Microsoft's Web server technology). but there are a thousand other issues as well—for example. The reason for this. Web services may be used. is that the . and so on. I'll list them in overview in more detail here. You can bind the controls on a Web form to all kinds of different data sources. As you can see. Web development is now an integral part of VB .NET. All this takes a great deal of effort to get used to.NET uses a Common Language Runtime (CLR) module that applications written in these languages all use. and we'll see them later in this book. One of the biggest hurdles that VB6 programmers will have to overcome is the great change in Visual Basic syntax. however. As you can see. You can view these applications in any browser—the application will tailor itself to the browser's capabilities. Web services are made up of code that can be called by other components on the Internet or applications that use Internet protocols. but they never caught on. many keywords are either gone or renamed.NET itself will usually tell you what you're doing wrong.NET (ASP stands for Active Server Pages. which you can add to a Web form while designing it. Web services are applications that run on Web servers and that communicate with other programs. and we'll cover them both in this book. Previous versions of Visual Basic had support for DHTML applications. for example. Not only has the fundamental structure of Visual Basic projects like Windows applications become different. simply by dragging those sources onto Web forms and setting a few properties. Server controls are displayed using HTML.
you no longer use record sets. has to be replaced with the corresponding ADO.NET.NET is a new data-handling model that makes it easy to handle data on the Internet. then RDO. Datasets are based on XML schema.NET Framework. ADO.NET now supports such OOP features as inheritance. Instead. There are many new tools and a wizard for handling data in VB . Things have changed again. if you're a VB6 programmer. Note that ADO is no longer built into Visual Basic. You can use the data classes provided in the . including tools to generate datasets from data connections. You can now bind any control property to data from a data source.NET calls COM interoperability. You can still work with ADO using the COM interoperability supported in the . It's also what VB . Changes in the Visual Basic Language As mentioned earlier. and overloading that make it a strong OOP language. ADO.NET can use XML schema to make sure your data is checked for validity before use. but rather datasets. followed by ADO (ActiveX Data Objects). connection objects. At the heart of ADO. for compatibility's sake.NET Framework to create and manipulate datasets in code. now you handle data with ADO. .NET uses XML to exchange data. A dataset is a collection of one or more tables or record sets as well as the relationships between those tables or record sets. interfaces. This means that much of what you know about ADO. You can now create multithreaded applications. if you take special steps to implement it. starting with the simple DAO protocol.NET. so they can be strongly typed. VB . custom attributes. This means you can use and create disconnected. and more.NET versions (although. Changes in Data Handling There have been many ways of handling data in previous versions of Visual Basic. For example. and COM (as well as DCOM) is no longer built into Visual Basic either.NET Framework. local datasets. all data is represented in XML format and exchanged that way. ADO was based on COM protocols.13 you can create custom server controls using a Software Development Kit (SDK) provided with the . as well as creating data adapters. there are many changes to the Visual Basic language itself. you can still use ADO if you need to).NET is built on a disconnected data model that uses snapshots of data that are isolated from the data source. which facilitates development of Web applications. VB . You can use the connection wizard or the server explorer to drag and drop whole tables from data sources. Here is an overview of what's new in data handling: • • • • • • • Data is handled through ADO.NET is XML.NET uses on your local machine to communicate with local databases.NET. Both COM and distributed COM (DCOM) technology has been replaced by the . and more. ADO. although you still have access to COM through what VB . and make use of structured exception handling.NET framework.
the Microsoft.14 Probably the biggest single change is that everything is object oriented now. Even integers and other primitive data types are based on this class. you make its code internal and not accessible to the outside except through a well-defined interface. much as Java does. and can extend. and we'll see more on this later in this chapter. if both person and employee objects have a last_name property.Chr. and is called System. and methods into hierarchies. overloaded procedures allow you to provide as many implementations as necessary to handle different kinds of data while giving the appearance of a single procedure. All data items are objects now.NET now supports all these key OOP essentials. The biggest namespace comes from the . based on the System. the derived class will inherit all the base's class's functionality. methods. The Microsoft. methods.Windows.VisualBasic. You can now create classes that serve as the base class for derived classes. CrLf. a class for a specific Visual Basic form and then derive a new type of form from that class. VB . Derived classes inherit. Encapsulation—This has to do with the separation between implementation and interface. Beep. Visual Basic now supports structured exception handling. for example. and so on. Visual Basic handles polymorphism with late binding and multiple interfaces. Overloading means you can define properties. interfaces. Chapter 12 is all about inheritance in Visual Basic. Inheritance—Inheritance is the process by which you can derive new classes from other classes. .VisualBasic. Generally speaking. VB .: • • • • It's all OOP now. using an enhanced version of the Try…Catch…Finally syntax supported by other languages (such as C++). even before you start to customize the derived class by adding new functionality. Here's an overview of some of the changes to the language—there are too many to list them all here. this is called inheritance. For example. or procedures that have the same name but use different data types. and so on. and it's become a true OOP language. a language is object oriented if it supports the following : • • • • Abstraction—The ability to create an abstract representation of a concept in code (as an object named employee is an abstraction of a real employee). both of which we'll cover in this book.Forms.ControlChars namespace gives you access to common Visual Basic constants like Cr.Compatibility.Form. You can import various namespaces to gain access to its classes.NET framework itself. For example. and so on.Object class. this is the ability to create procedures that can operate on objects of different types. You can now overload properties.VB6 namespace gives you access to obsolete VB6 keywords such as Open. the class that supports Windows forms is System. when you encapsulate an object. a polymorphic procedure can use that property of both objects.NET now uses namespaces to prevent naming conflicts by organizing classes. interfaces. Close. the properties and methods of the base class. And all code has to be enclosed in a class. the idea here is that if you were to create. For example. The Microsoft. that is.CreateObject. For example. As mentioned above. and procedures. Polymorphism—Broadly speaking. VisualBasic namespace gives you access to common Visual Basic keywords like Asc. and methods.
NET: The Char data type is an unsigned 16-bit type used to store Unicode characters.NET. The bitwise versions are BitAnd. Arrays can no longer be 1-based in VB . Finally. you now always need to use parentheses to enclose the arguments you're passing to a procedure. you could type TextBox1 = "Hello from Visual Basic" instead of TextBox1. this means you must declare all variables by default. instead. There are three new data types in VB . In VB6. in VB . however. objects had a default property.NET. The Variant type no longer exists. and BitXor. and you can't usually assign one data type to another.\=.Text = "Hello from Visual Basic". -=.^=. is now supported. and &=. There are other changes as well. as in Java. VB . •=. for example. That is. The Gosub keyword has been removed. default properties are no longer supported. Event-handling procedures have changed. now event handlers are passed only two parameters. the default property of a TextBox control was the Text property. If…Then statements are now short-circuited. which only work on true/false values. for example. In VB6 most parameters were passed by reference. In Visual Basic 6.NET now supports multithreaded applications.15 • • • • • • • • • • • • • • • • • • • • VB . There are also changes in the way you declare variables. The And. User-defined types are no longer defined with the Type keyword. optional parameters now require default values. /=.Collections namespace. You use the CType statement to convert between types. in Visual Basic . the Option Base statement no longer exists.NET is now strongly typed. Also. You no longer need to use the Set statement to assign objects to variables. The DefType keyword has been removed.NET.NET now supports constructors and destructors for use when initializing an object of a specific class. In VB . . Not. The syntax for use with procedures has changed—for example. the Currency data type has been replaced by the Decimal type. including Try…Catch…Finally blocks. The Short data type is a signed 16bit integer (named Integer in earlier Visual Basic versions). the default is passing by value. they come from the Systems. and Xor operators have changed from being bitwise operators to being Boolean operators. BitOr. More on this in Chapter 3. VB . collections were part of the language itself. BitNot. the Object type is the catch-all type. so Visual Basic will evaluate only the operands it needs to determine the result of the statement (see Chapter 2 for more information).NET. There are a number of new compound arithmetic operators. y += 5 adds 5 to the value in y and assigns the result to y.0. as in Java. Or. These operators combine two operations in one. The syntax for writing property procedures has changed (including the fact that Get and Let have become Get and Set). the Decimal data type is a 96-bit signed integer (only available as Variants in earlier versions of Visual Basic). but rather with the Structure keyword. Structured exception handling. so we have to use the ones available in that namespace instead. such as +=. For example.
DateAdd. QBColor. DateValue. Visual Basic . Rename. Width. there are a great many changes going on in VB .Color. EOF. and common language specification (CLS) compliance. Although VB .NET components can work with.NET is the end of COM. WriteLine have been replaced by elements in System. TimeSerial.NET (as they say in the documentation. is a fast and easy way to create . including XML Web Services and Web applications. and some people think that VB . In VB6. COM components also can use .NET-based applications. As you can see.DateTime Close. Line Input. scalable applications using explicit multithreading.16 Many functions.IO.NET components.NET components by . LOF. Input. Reset. DatePart. Visual Basic . Here's a partial list.NET components. although that's not necessarily so. FreeFile. and overloading — that make it a powerful object-oriented programming language. Write.").net are: . and collections from VB6 are now obsolete. the next generation of the Visual Basic language. Other new language features in Visual Basic . Seek. The way programs handle COM components has also changed. As a Visual Basic developer. That's all changed now. Lock. it integrates with COM components well.NET include structured exception handling. COM components (such as ActiveX controls and documents) were very big. Unlock.NET represents a major departure from previous versions of Visual Basic in several ways.NET has many new and improved language features — such as inheritance. TAB. SPC. and has made some efforts to make upgrading from VB6 easier.NET framework encloses COM components in a .NET. TimeValue have been replaced by elements in System. And. using COM interoperability. FileAttr. Put. DateSerial. Loc. keywords. RGB have been replaced by System.punjabpolice. interfaces.Drawing. custom attributes. Microsoft is aware that the sheer magnitude of all these differences can present a serious obstacle to the adoption of VB . DateDiff. COM components can be treated as . because the .NET wrapper that .NET does not use COM components internally. "Visual Basic . Print Line. Print. Get.Collections. we can now create multithreaded.NET. The features which are used to develop www. along with replacements: • • • • Collection has been replaced by System. Open.
Overloaded procedures allow a developer to provide as many implementations as necessary to handle different kinds of data.NET supports structured exception handling. while giving the appearance of a single. Conversely. A member's new implementation can call the original implementation in the parent class by preceding the member name with Constructors and Destructors Constructors are procedures that control initialization of new instances of a class. Overloading Overloading is the ability to define properties. Structured exception handling combines a modern control structure (similar to Select Case or While) with exceptions. protected blocks of code.NET supports constructors and destructors using the Sub New and Sub Finalize procedures Data Types .Finally syntax supported by other languages such as C++. destructors are methods that free system resources when a class leaves scope or is set to Nothing .Catch. comprehensive error handlers. versatile procedure. but different implementations.NET supports inheritance by allowing a programmer to define classes that serve as the basis for derived classes. All classes created with Visual Basic .17 Inheritance Visual Basic .NET are inheritable by default. Derived classes inherit and can extend the properties and methods of the base class. programmer can use inheritance to define new forms based on existing ones Exception Handling Visual Basic .... or procedures that have the same name but use different data types. Overriding Properties and Methods The Overrides keyword allows derived objects to override characteristics inherited from parent objects. They can also override inherited methods with new implementations. Overridden members have the same arguments as the members inherited from the base class. methods. and filters.. Visual Basic . using an enhanced version of the Try. Because the forms a programmer design are really classes. Structured exception handling makes it easy to create and maintain programs with robust.
security permissions. Building VB . Shared Members Shared members are properties. assemblies are now the building blocks of the . The Decimal data type is a 96-bit signed integer scaled by a variable power of 10. it was available only within a Variant. The Short data type.NET. was named Integer in earlier versions of Visual Basic. we have to get some terminology under our belts. interfaces.NET Framework System.NET framework requires a new structure for applications. references point to assemblies instead of type libraries Namespaces Namespaces prevent naming conflicts by organizing classes. and fields that are shared by all instances of a class. because the . a signed 16bit integer. In particular. Char data type. procedures. It is equivalent to the . An assembly can contain one or more namespaces.NET Framework. describing all the required files for a particular component or application. much as EXE files did for Windows in VB6. In Visual Basic . . version control.NET introduces three new data types. Assemblies Assemblies replace and extend the capabilities of type libraries by. Shared class methods can be used without first creating an object from a class References References allow programmers to use objects defined in other assemblies.NET Applications To build applications in VB . and more.NET. Shared data members are useful when multiple objects need to use information that is common to all.18 Visual Basic . The Char data type is an unsigned 16-bit quantity used to store Unicode characters. they form the fundamental unit of deployment. and methods into hierarchies. reuse. In earlier versions of Visual Basic. An assembly provides the CLR with the information and compiled code it needs to know how to run your code.
but when your program is ready to go and to be used by others. or whatever else you wanted to build. we need to get the terminology down. you created a project group.NET creates one or more assemblies. contains types-the classes and interfaces that your code has defined.19 Assemblies You combine assemblies to form . Visual Basic will create a new solution first. you created projects. of course. you hardly want them to have to launch your program from Visual Basic.NET applications. ActiveX control. in modules inside assemblies. ready to run. In a debug version of your program. which are run by the CLR.NET and run it. VB . those new projects would appear in the Solution Explorer as part of the current solution. When you create an application in VB . Solutions and Projects When you created applications in Visual Basic 6. and these in turn contain items.NET. WinHello. In that case. but also slower. we've created our Visual Basic project called WinHello. So the terminology here is that solutions contain projects. For example. project groups have become far more integral to the development process. assemblies are how your applications interact with the . and then add a project to that solution. at right in Figure 1.8. By default.NET assembly: first is the manifest-similar to a table of contentsgiving the name and version of the assembly. however. Each module. If we were to add new projects to the current solution (which you can do with the New Project dialog box). not project groups. when you create a new project in VB . if there's a problem. and this not only makes the corresponding assembly larger. If you wanted to combine projects together. It's also worth noting that Microsoft calls the files in each project. That's where the difference between debug and release versions of your program comes in. An assembly holds the Intermediate Language modules for your application. Visual Basic stores a great deal of data needed to interface with the debugger in your program when it runs. look at the Solution Explorer window. Here's what's in a . where you created projects by default. This is a change from VB6. Debug and Release Versions Note that so far we've started our programs from the Debug menu's Start item. That is.NET. . In VB . In the release version of your program. The manifest also lists the other assemblies needed to support this one. which are internal files of IL code. and although we won't deal with them directly very often. The actual meat of the assembly is made up of modules. That's useful for development.NET framework instead of the EXE or DLL files of VB6. That's how VB .0. Visual Basic will reappear to let you debug the program's code. items. and you can see that project in the Solutions Explorer-but note that Visual Basic has also placed that project inside a solution with the same name. such as the files for a form. This causes Visual Basic to launch the program while staying in the background. and that the assembly has to know about to let the various modules interact with each other. Each project held the code and data for an application.NET stores the IL it creates. in turn. and explains how to handle security issues. and now they're called solutions. above the Properties window.
However. and can run as a stand-alone program. and the Configuration item in that folder. Probably the easiest way to set the solution mode to release or debug is simply to use the drop-down list box that appears in the Visual Basic .Windows.NET solutions and projects as we head into the following chapters. However. to force it to compile all items in the solution.NET Framework. choose the Rebuild All item instead of Build). This builds the solution in a way that others can use it. they represent the windows that will appear in your application. as we'll do later in the book). I'll also take a look at the Visual Basic Integrated Development Environment-the VB IDE. Select the solution you want to set the mode for by clicking it in the Solution Explorer. then select Release in the Active Solution Configuration list box and click OK.NET. adding controls and other items from the toolbox. forms are what you work with in forms designers. Select the solution you want to set the mode for by clicking it in the Solution Explorer. When you create a new solution. and select the Properties item in the Project menu.20 the program doesn't have all that added data. When you create a new solution or project. and all you need to do to switch to release mode is to select Release instead. Now we have the background we need on VB . and you can deploy your program this way (usually with the help of a deployment project that you build in Visual Basic. at the top of the IDE. you build it using the Build menu's Build item (the Build menu item causes Visual Basic to compile only items it thinks have been newly changed. of course). this list box displays the word Debug. and the form class is System. it's become common to refer to both the windows under design and the windows in your running application as forms in Visual Basic applications. Visual Basic creates it in debug mode. When you've set the mode for a solution to Release. where we'll assume this knowledge and put it to work. you can switch to release mode in several ways (like many things in VB .Windows. there's more than one way to do it): • • • • Select the Configuration Manager item in the Build menu. without needing to be launched from Visual Basic (although it still needs the . The Form class itself is based on the Control class. .NET itself.Forms namespace. meaning that you launch it from the Debug menu as we've been doing. Then select Release from the dropdown list box in the configuration column of the table that appears. opening the solution's property pages. so in this introductory chapter. the support for Windows forms is in the System. a dropdown list box will appear. In VB . and find its Active Config property in the properties window.NET standard toolbar. All About Windows Forms Technically speaking.Form. The whole power of Visual Basic has been that you can develop forms visually. Select the Configuration Properties folder in the box at left. select Release in that list box. We'll also take for granted that you know your way around Visual Basic . When you click the right-hand column in the properties window next to this property.Forms.NET. and click OK.
much as an integer variable is an instance of the Integer type. (We'll see how to work with menus in the next chapter). where you do need an object.1. as you see in the IDE itself. if there is one. I've added a control-a command button-to the form.) In Figure 4. As I mentioned in Chapter 2.) As we also know. For these members-called Static. In other words. or just ActiveForm. Under the title bar comes the menu bar.BackColor. The important class for Windows forms is the Form class in the System. the client area is itself a window. At right in the title bar is the control box.Forms namespace. As mentioned in Chapter 2. as we'll see when working with dialog boxes and using the fixed. methods (built-in procedures). (You can think of a class as a type you create objects from. every level is derived from the one above it (note that all classes are derived from the Object class): Object MarshalByRefObject Component Control ScrollableControl ContainerControl Form You can see a form in a form designer in the Visual Basic Integrated Development Environment (IDE) in Figure 4. that are built into objects. Then there are those members. which shows several aspects of forms. Shared. First. With this type. These are controls the user takes for granted in most windows. forms can have toolbars. classes can have members-fields (data items). Each form in this namespace is an instance (that is. you don't need an object of that class to work with. such as MyForm1.Windows. Here's what the class hierarchy looks like for the Form class. such as dialog boxes.ActiveForm. it's important to realize-now that we're actually starting to work with classes such as the Form class-that there are two kinds of class members. In general. the difference is that to use class members. there are those members inherent to the class itself (accessed through the class).1. the whole form is surrounded by a border. an object) of that class. objects are instances of classes. The main area of a form-the area where everything takes place-is called the client area.21 which means that forms share a lot of the properties and methods that controls do. or class members-you don't need an object. Visual Basic code works with controls in the client area and leaves the rest of the form to Visual Basic. here that's just Form1. although we'll see that they are inappropriate in others. There are several types of borders that you can use. you do: . including the minimizing/maximizing buttons and the close button. At the top of the form is the title bar. and properties (data items accessed through an interface based on methods). called instance or object members. (In fact. which displays the form's title. and with object members. MyForm1 is an instance of the Form class. In form has one menu-the File menu. nonresizable borders appropriate to them. Under the menu bar. Finally. such as Form.
SQL Server 2000 builds upon the modern. relational database with integrated XML support for Internet applications. scalable. accessed by using an instance of a class (an object) like this: objectname. The RDBMS organizes data into related rows and columns within the database. No object needed. Additionally. performance and availability features to ensure uptime. and advanced management and tuning functionality to automate routine tasks and lower the total cost of ownership. accessed directly using the class like this: classname. SQL Server 2000 Overview of SQL Server 2000 Microsoft SQL Server 2000 is a complete database and analysis solution for rapidly delivering the next generation of scalable Web applications. Instance members are object members. line-of-business. The RDBMS is responsible for enforcing the database structure. What Is SQL Server 2000? SQL Server 2000 is an RDBMS that uses Transact-SQL to send requests between a client computer and a SQL Server 2000 computer. An RDBMS includes databases.membername. SQL Server 2000 takes full advantage of Microsoft Windows 2000 by integrating with Active Directory Services and supporting up to 32 processors and 64 gigabytes (GB) of Random Access Memory (RAM). dynamic environments. SQL Server 2000 includes rich support for Extensible Markup Language (XML) and other Internet language formats. and data warehousing applications. including the following tasks: • • • Maintaining the relationships among data in the database Ensuring that data is stored correctly and that the rules defining data relationships are not violated Recovering all data to a point of known consistency in case of system failures The database component of SQL Server 2000 is a Structured Query Language (SQL)compatible.membername. and the applications that are necessary to manage the data and the components of the RDBMS. the database engine. while offering the scalability necessary to support growing. extensible foundation of SQL . SQL Server 2000 is a key component in supporting e-commerce.22 • • Static/Shared members are class members.
Databases A database is similar to a data file in that it is a storage place for data. Each table is built from columns and rows (attributes and tuples. A relational database system uses mathematical set theory to effectively organize data. and job title. Each row represents an instance of the object class represented by the table. rather. and you can define relationships among these structures and records. The following sections introduce you to the fundamentals of databases. in relational database theory). an application must be coded to work with the specific structure of each data file.0. relational databases. which ensures that the set of tables you define will organize your data effectively. a relational database is one of the most effective systems. employee ID. Database systems are more powerful than data files because the data is more highly organized. department. a database contains a catalog that applications use to determine how data is organized. In a relational database. a database does not present information directly to a user. the user runs an application that accesses data from the database and presents it to the user in an understandable format. A table represents some class of objects that are important to an organization. respectively. there are no duplicate pieces of data that the user or application has to update at the same time. When working with data files. one row in the employees' table might represent an employee who has employee ID 12345. a table for customers. In a well-designed database. Each column represents an attribute of the object class represented by the table. such that the employees' table might have columns for attributes such as first name. last name. data is collected into tables (called relations in relational database theory). pay grade.23 Server 7. Like most types of data files. You can usually find many different ways to organize data into tables. without being tied to a specific data format. a company might have a database with a table for employees. Relational database theory defines a process called normalization. SQL. and another table for stores. . Relational Databases Although there are different ways to organize data in a database. For example. In contrast. and XML. Generic database applications can use the catalog to present users with data from different databases dynamically. For example. Related pieces of data are grouped together in a single structure or record.
XML is a set of tags that can be included in a text document in order to define the structure of the document. You can use several different languages with relational databases. The dialect of SQL supported by SQL Server is called Transact-SQL. the most common is SQL. SQL Server 2000 is also capable of operating efficiently on a small.24 SQL To work with data in a database. SQL Server 2000 provides database administrators with all of the tools that are required to fine-tune SQL Server 2000 installations that run production online systems. the SQL standard published by ANSI and ISO in 1992. SQL Server 2000 also supports XPath queries from Internet and intranet applications. You can add XML documents to SQL Server databases. you must use a set of commands and statements (a language) supported by the database management system (DBMS) software. managing. SQL Server 2000 Features SQL Server 2000 includes a number of features that support ease of installation. Ease of Installation. and system integration with other server software. including standards for SQL. and Use SQL Server 2000 includes many tools and features that simplify the process of installing. single-user system with minimal administrative overhead. scalability. The American National Standards Institute (ANSI) and the International Organization for Standardization (ISO) define software standards. and using databases. and use. deploying. deployment. XML XML is the emerging standard format for data on the Internet. the SQL Server 2000 database component supports a FOR XML clause that causes the results to be returned as an XML document. The installation or upgrade of SQL Server 2000 is driven by a Graphical User Interface (GUI) application that guides users in providing the information that SQL Server 2000 . SQL Server 2000 supports Entry Level SQL-92. data warehousing. Although most SQL statements return their results in a relational (tabular) result set. and Transact-SQL is the primary language used by SQL Server applications. Deployment.
it can dynamically acquire additional resources. Each part can be run on a different Central Processing Unit (CPU). SQL Server 2000 includes several features that extend the scalability of the system. A data mart tends to contain data that is focused at the department level. such as SQL Server Enterprise Manager and SQL Profiler. The Setup program itself automatically detects whether an earlier version of SQL Server is present. SQL Server 2000 frees the resources back to the system. SQL Server 2000 reconfigures itself automatically and dynamically while running. As the workload falls. If other applications are started on the server. In addition. or on a specific business area. when running at its default settings. such as memory. Scalability The SQL Server 2000 database engine is a robust server that can manage terabyte databases being accessed by thousands of users. SQL Server 2000 dynamically adjusts the granularity of locking to the appropriate level for each table referenced by a query and has high-speed optimizations that support Very Large Database (VLDB) environments. SQL Server 2000 includes several components that improve the capability to build data warehouses that effectively support decision support processing needs: . SQL Server 2000 can also increase or decrease the size of a database automatically as data is inserted or deleted. Data Warehousing A data warehouse is a database that is specifically structured to enable flexible queries of the data set and decision-making analysis of the result set. SQL Server 2000 can build parallel execution plans that split the processing of a SQL statement into several parts. SQL Server 2000 offers database administrators several tools for managing their systems. For example. it asks users whether they want to launch the SQL Server 2000 Upgrade wizard to quickly guide them through the upgrade process.25 Setup needs. and after SQL Server 2000 is installed. and the complete result set is built more quickly than if the different parts were executed serially. At the same time. A data warehouse typically contains data representing the business history of an organization. As more users connect to SQL Server 2000. SQL Server 2000 will detect the additional allocations of virtual memory to those applications and reduce its use of virtual memory in order to reduce paging overhead. SQL Server 2000 has features such as dynamic self-tuning that enable it to work effectively on laptops and desktops without burdening users with administrative tasks. A data mart is a subset of the contents of a data warehouse. The entire installation or upgrade process is accomplished quickly and with minimal input from the users.
rather than in a computer language such as SQL. System Integration SQL Server 2000 works with other products to form a stable and secure data store for Internet and intranet systems: • • • • SQL Server 2000 works with Windows 2000 Server and Windows NT Server security and encryption facilities to implement secure data storage. This function enables SQL Server 2000 batches. SQL Server 2000 can send and receive e-mail and pages from Microsoft Exchange or other Message Application Programming Interface (MAPI)-compliant mail servers. which can be granted only if they have been validated by Windows NT or Windows 2000. . stored procedures. SQL Server 2000 events and alerts can be set to send e-mail or pages automatically to the server administrators in case of severe or pending problems. then. A schema is a method for defining and organizing data. Users are not required to have separate logins and passwords for each SQL Server system to which they connect. SQL Server 2000 forms a high-performance data storage service for Web applications running under Microsoft Internet Information Services.26 • • • • • Data Warehousing Framework. Meta Data Services. which enables Windows NT and Windows 2000 user and domain accounts to be used as SQL Server 2000 login accounts. English Query. A set of services that aids in building a data warehouse or data mart. A set of services that provide OLAP processing capabilities against heterogeneous OLE DB data sources. An application development product that enables users to ask questions in English. SQL Server 2000 is scalable to levels of performance capable of handling extremely large Internet sites. The SQL Server 2000 TCP/IP Sockets communications support can be integrated with Microsoft Proxy Server to implement secure Internet and intranet communications. sophisticated e commerce Web sites. Analysis Services. SQL Server 2000 can be used with Site Server to build and maintain large. SQL Server supports Windows Authentication. does not have to validate users separately. the SQL Server client software requests a trusted connection. A set of components and Application Programming Interfaces (APIs) that implement the data warehousing features of SQL Server 2000. Data Transformation Services (DTS). A set of ActiveX interfaces and information models that define the database schema and data transformations implemented by the Data Warehousing Framework. and the Web Assistant Wizard helps you to generate Hypertext Markup Language (HTML) pages from SQL Server 2000 data and to post SQL Server 2000 data to Hypertext Transport Protocol (HTTP) and File Transfer Protocol (FTP) locations. In addition. or triggers to send email. the SQL Server 2000 database engine includes native support for XML. When a connection is formed with SQL Server. SQL Server. Users are validated by Windows 2000 when they connect to the network. which is also called metadata.
27 INTRODUCTION TO PROJECT .
2 tier for banking officials and 3 tier for customers so as to ensure that customers should not interact directly with the database for data security and data consistency reasons.28 Objective The objective of the software is to create easy access interfaces for bank officials and customers . .Net for customers so as they should interact with the database through web server only and for query purpose only.B. The software serves the purpose for every requirement whether it is generation of new account or query for the personal information and account details.Net is used for bank official's interfaces and ASP.In short a complete solution for all advanced banking needs. The software is a combination of 2 and 3 tier architecture. therefor V. Above all the conditions should be met only after ensuring data security and consistency.
29 Project Requirements • Hardware Requirements • • • • 3 Pentium Processor Machines 2. 40 GB HDD for Database Server 1. 40 GB HDD for Database Server 2.1 GHz. 128 RAM.7 GHz. 10 GB HDD for client machine • Software Requirements • • • Microsoft Windows Operating System (XP Professional) with IIS Microsoft Visual Studio. 256 RAM.1 GHz. 256 RAM.2003) Microsoft SQL Server • Time Limitation • The Bank Management System is to be completed in 2 weeks.Net (V. .
• It has problem in finishing work by a certain time.e.It is difficult to keep them up to date and will have to be revised from time to time. • The software is platform dependent as it functions on . At this very first stage. • This software cannot be easily transformed to Web Applications and cannot be accessed using Internet. preliminary survey or initial investigation is done regarding the system in question. • It is expensive to prepare manual .30 PROBLEM DESCRIPTION This is the first step of software development.NET Framework. Here problem is investigated and fully understood i. . • Bad methods of working and bad handwriting can lead to misleading results. Hence cannot be used in other various branches of the Bank. the need of existing system is recognized.
The developer should progress from one stage to another methodically. answering key questions & achieving results in each stage. gives the different steps that must be followed to develop a candidate system.31 Overview of system study System study also called system development life cycle (SDLC). Table below shows the steps/stages of SDLC. Stage Goal .
32 Recognition of need To understand problem Feasibility study Redefine problem & to search alternative candidate system Data collection & detailed evaluation of current system Design specifications for candidate system Analysis Design There are mainly 5 SDLC models used in the development of a software projects – .
Iterative/Incremental model. re-work is much faster since the functional areas have been greatly reduced. and searching etc of a student record. Iterative processes are preferred by commercial developers because it allows a potential of reaching the design goals of a customer who does not know how to define what they want. as designs are only done on the items in the current release.33 1) 2) 3) 4) 5) Waterfall model/Linear Sequential Model V-shaped model. It is provided with all basis facilities like addition. Instead. deletion. producing a new version of the software for each cycle of the model. development begins by specifying and implementing just part of the software. This process is then repeated. Spiral model. Prototype model. We have used iterative or incremental model of SDLC in the development of this software project. We will provide different components of a software in increments. In second iteration we will provide a component for managing students fee and so on. If major design flaws are found.0 for example). it is provided with facilities to manage Personal Information and Academics records of students. Below are the advantages of the Iterative Life Cycle: • • The Design phase goes much faster. Coding and Testing go much faster because there are less items to code and test. which can then be reviewed in order to identify further requirements. . (Release 1. Iterative development prescribes the construction of initially small but ever larger portions of a software project to help all those involved to uncover important issues early before problems or faulty assumptions can lead to disaster. updation. An iterative lifecycle model does not attempt to start with a full specification of requirements. In first iteration.
allowing them to begin earning revenue or reducing expenses quicker with their product. As the software is implemented. If market conditions change for the client. changes can be incorporated in the next iterative release. the client can make recommendations for the next iteration due to experiences learned in the past iteration.34 • • • The client gets into production in less than 3 months. allowing the software to be much more nimble. SYSTEM ANALYSIS .
Due to this. First of all. Another problem was manual ways for keying balance sheet information into a database that usually result in imperfections. manual ways for keying attendee information into a database.35 Analysis Before designing Bank Management System . It leads to puzzlement and needed to be care. and has limited access to information. Identification of Need .e. One important hurdle that harms most conventional Banking systems was limited access to information at a given time. Secondly. On the other hand. they depend on man power/will. these problems were drawn. Final but also very noteworthy dilemma was revenue expenditure on men. it was found that most of the systems work manually i. a technologically bank management system can handle many processes concurrently. This slows down the working of various components and increases misapprehension. This course also use more time. the interconnectivity between various independent components was harmed or affected badly. While analyzing various enterprises. these enterprises have conventional means of dealing with data/information which takes lot of time and were still bungling. the conventional Banking systems were studied in detailed and gathered utmost information and data from resources usually Banks have traditional means of processing information. These things make a system inefficient. for every small process one had to appoint a person. which need to be handled.
At this very first stage. 2. 3. The following problems were found in existing traditional Punjab police systems: Most of the systems were manually dependent i.e. Manual ways for keying attendee information into a database results in imperfections and time consumption. This slows down the working of various components of Banking systems and increases misunderstanding. Revenue expenditure on manpower. 5. 4.e. information retrieving etc takes lot of time and were still inefficient. preliminary survey or initial investigation is done regarding the system in question. the need of existing system is recognized. they depend on man power/will. Traditional means of processing. 1. Project Planning .36 This is the first step of software development. Here problem is investigated and fully understood i. Limited access to information at a given time.
use the feature and also remove the drawback of the last system. .37 According to the given drawbacks of last ‘Bank Management System’ we planned that why not prepare a new system for bank management in which.
...........0 Prepared by-: ............NET Framework.......................... 10 ..9 The ...NET Framework and the Common Language Runtime.................................................................................................38 SYSTEM REQUIRMENT SPECIFICATIONS Software Requirements Specification for BANK MANAGEMENT SYSTEM Version 1.........
..........................................................................................................................................................................................................................11 What's New in VB ................................................................................................................................................................................................ 40 This document contains Software Requirements Specification for a Web application named as Bank Management System.............................23 SQL........................................................................................................................................................................................................................................................................................... 40 Project Scope. 41 Overall Description.......................................................................................................... 43 BLACK BOX TESTING..............................NET Applications...........25 System Integration.25 Data Warehousing.......................................................................................................................................................................................................................................................................................................................................................... ........................................ This is SRS for the first release of the product...............12 Changes in Data Handling............................................................................................................. 42 Hardware Interfaces..24 SQL Server 2000 Features.....................................................................31 Introduction...............................................................................13 Building VB ......................NET..................................................... and Use...................................................... 42 User Interfaces................................19 Debug and Release Versions....40 Document Conventions........................................................................................................................................................................................................................... 41 User Classes and Characteristics.......................................................................................Hence can be used in other various branches of the Bank.............................................. 22 What Is SQL Server 2000?............................................39 VB................................................................................................................ 41 This software can be easily transformed to Web Applications and can be accessed using Internet...............................................24 XML.................................................................................. 43 Software Interfaces............................................................................................................................. 41 ........................................................................The software is platform independent as it functions on .40 Purpose...............................26 INTRODUCTION TO PROJECT.....................................................................24 Ease of Installation................................................... 20 Overview of SQL Server 2000........................................................................................................................................19 Solutions and Projects.................... The first release of this product will produce partially functional version of Bank Management System............................................................................. Deployment...................................NET Framework................................................................ 18 Assemblies............................................................................................................19 All About Windows Forms...............NET?.......24 Scalability.................................................................. 42 Operating Environment...........................................................................................................................................................................13 Changes in the Visual Basic Language............................................................................................................................................... 11 Changes in Web Development................................................ 40 Intended Audience and Reading Suggestions......................................................................... 27 Overview of system study.................................................................................. 41 Product Features..........22 Databases...........................................................23 Relational Databases.........................................................78 .............................................................................
40 Introduction Purpose This document contains Software Requirements Specification for a Web application named as Bank Management System. The first release of this product will produce partially functional version of Bank Management System.. Document Conventions No special or standard convention was followed while writing this SRS. This is SRS for the first release of the product. Intended Audience and Reading Suggestions The SRS is for the reading of product client and users. .
o Instant result: The changed balance in the account will be reflected there and then.The software is platform independent as it functions on .41 Project Scope This software can be easily transformed to Web Applications and can be accessed using Internet.Hence can be used in other various branches of the Bank. Overall Description Product Features The system will have following features o Menu driven: this system will have a graphical interface. o o . Combination of two and three tier Architecture: The two tier architecture is designed or planned for officials and three tier for customers for data security and consistency. o Database access: Officials can view database anytime they want but the customers .NET Framework. which will be easy to use and understand Security: A password-protected feature will be included upon accessing sensitive information to ensure desired level of security in the final product. Consistency: The Data of the customers and other transaction details remain Consistent.
HOD’s. Operating Environment Hardware Requirements • 3 Pentium Processor Machines • 2.42 User Classes and Characteristics The product can be made available for use to any institute’s official (Staff members. 256 RAM. 10 GB HDD for client machine Software Requirements • Microsoft Windows Operating System (XP Professional) with IIS • Microsoft Visual Studio. . teachers.Net (V. 40 GB HDD for Database Server • 2.1 GHz. 40 GB HDD for Database Server • 1. Training and placement department. 128 RAM.2003) • Microsoft SQL Server User Interfaces There will be user interfaces as given below – 1) Login form – Here the user name & password will be checked. . Accounts department etc) depending on the security levels. 256 RAM.7 GHz.1 GHz.
1 GHz. 10 GB HDD for client machine Software Interfaces Microsoft Windows Operating System (XP Professional) with IIS Microsoft Visual Studio.2003) Microsoft SQL Server SYSTEM DESIGN Logical Design Tables Account_desc Column Name Account Type Data type Length Constriants Varchar 20 Primary Key .Net (V. 40 GB HDD for Database Server 2. 256 RAM. 256 RAM. 128 RAM. • Create an account • Transaction • Queries • Open for modification • Close an account • Exit Hardware Interfaces 3 Pentium Processor Machines:: 2.1 GHz. 40 GB HDD for Database Server 1.7 GHz.43 2) Index page – This will provide user with basic five options.
44 Account Description Varchar Minimum Balance Rate int int 30 4 4 Account_master Column Name ac_no Balance Account_type Account_open_date Atm_card_no Guarantor_id Last_interest_date Fd_amount Fd_expiry_date Fd_rate Cheque _tran Column name Tran_id Ac_no Data type Length Constraint int int 4 4 20 20 8 8 4 8 Primary key Foreign key(account_master) Data type int float Varchar int int datetime float float Length Constriants 15 9 15 8 15 8 15 8 8 Foreign_key(account_desc) Primary Key Datetime 8 Last_passbook_entry datetime Datetime 8 Account_holder_name Varchar ch_holder_name amount balance Cheque_no Tran_date varchar float float int date Customer .
45 Column name Ac_no Customer_name sex D_o_b Data type Varchar Varchar Varchar Datetime Length 20 20 6 8 30 30 20 20 6 15 15 20 20 15 Constraint Primary Key Residential_adress Varchar Official_address city state Pin_code Home_p_no Office_p_no Email_id Atm_card_no Mobile_no Customer_query Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar varchar Column name Data type Length constraint Query_id Ac_no Query_type Date_recieved Query_text Varchar Varchar Varchar Datetime Varchar 10 20 20 8 30 Primary key Draft_issue Column name Draft_no Data type int Length 4 constraint Primary key .
46 In_favour_of Payable_at Holder_name amount Date_issue Date_expiry Draft_tran Column name Data type length Constraint Draft_no Ac_no Branch amount date Transaction_master column name Tran_id Tran_date Tran_type cust_ac_no other_ac_no Draft_no Cheque_no amount balance Other_balance Data type length int Datetime Varchar int Varchar Varchar varchar float float float 4 8 15 8 8 20 9 8 8 8 Foreign key(account_master) Foreign key(account_master) constraint Primary key varchar Varchar varchar Numeric Datetime 20 20 20 9 8 Primary key Foreign_key(account_master) Varchar Varchar Varchar float Datetime Datetime 30 20 20 8 8 8 .
47 Form Layout 1. Login Form .
48 2. Menu Form .
49 3. Create an Account .
Transaction .50 4.
51 5. Queries .
52 6. Open for modification .
Close an Account .53 7.
54 ER diagram .
Coding for Login form .55 Dam t Camt Bal Acn o Cdate Ddate Acbrnc h Add city BRANCH nam e ACCOUNT Acno Fname Acn o Fnam e Gender TRA NSA CT HAS HA S CUSTOMER BANK Add Phone Name CODING 1.
Show("INCORRECT USERNAME OR PASSSWORD". ByVal e As System.RetryCancel.Forms.Object. ByVal e As System. ByVal e As System.Windows. "LOGIN ERROR".Forms.Focus() Else Me.Text = "" TextBox2.Error) If r = DialogResult.Windows.Show() Me.Form New Form3 New Form4 New Form5 New Form6 New Form7 Private Sub Button1_Click(ByVal sender As System. ByVal e As System.Close() End If End If End Sub End Class 2.show() End Sub Private Sub Button3_Click(ByVal sender As System.EventArgs) Handles Button3.Click If TextBox1. MessageBoxIcon.Object.Object.Hide() Else r = MessageBox.Retry Then TextBox1.EventArgs) Handles Button1.show() End Sub Private Sub Button2_Click(ByVal sender As System.Text = "" TextBox1. MessageBoxButtons.56 Public Class Inherits Dim r As Dim a As Form1 System.Hide() b.EventArgs) Handles Button2.Click . Coding for Menu form Public Class Inherits Dim a As Dim b As Dim c As Dim d As Dim f As Form2 System.Text = "human" Then a.Text = "intel" AndAlso TextBox2.EventArgs) Handles Button1.Object.Click Me.Form Integer New Form2 Private Sub Button1_Click(ByVal sender As System.Hide() a.Click Me.
57 Me.Hide() d. k As String Dim s3.Object.Load End Sub End Class 3. r. m3. m10.Click CheckBox1.Hide() End Sub Private Sub Button3_Click(ByVal sender As System. ByVal e As System.Checked = False CheckBox3.Click Dim f2 As New Form2 f2.Exit() End Sub Private Sub Form2_Load(ByVal sender As System. r7.Click Me. m2. c As Integer Dim m1. r5.Text = "" TextBox4. m9. m5.EventArgs) Handles Button4. m8. i.EventArgs) Handles Button3.Object.EventArgs) Handles Button5. s4.Windows.Object. r4.show() End Sub Private Sub Button4_Click(ByVal sender As System. s2.Form Dim str. str1. r10 As Integer Dim dr As SqlDataReader Private Sub Button5_Click(ByVal sender As System.EventArgs) Handles MyBase.Object.Show() Me. r2. r9.Click Application.Text = "" .Checked = False CheckBox2.show() End Sub Private Sub Button5_Click(ByVal sender As System.EventArgs) Handles Button5. a. r1. ac. Coding for create an account public Class Form3 Inherits System.EventArgs) Handles Button6.Click Me. m4. s.Text = "" TextBox2.Text = "" TextBox3. ByVal e As System. ByVal e As System. m11. j.Show() End Sub Private Sub Button6_Click(ByVal sender As System.Text = "" TextBox5.Hide() f. m7.Object. m6. ByVal e As System.Hide() c. r3.Checked = False TextBox1.Forms. r0. ByVal e As System. s1. r6.Object. b. r8. ByVal e As System.
OK Then Me.Add("5") ComboBox2.Items.Add("3") ComboBox2.Add("Joint") ComboBox4.Text = "" TextBox18. "EXIT".Click r = MessageBox.Items.Text = "" TextBox7.Text = "" TextBox16.EventArgs) Handles Button4.Question) If r = DialogResult. MessageBoxButtons.Text = "" TextBox17.Text = "" TextBox8.Show("ARE YOU SURE YOU WANT TO EXIT".Object.Add("M") ComboBox5.Text = "" TextBox14.Text = "" ComboBox1.Text = "" TextBox12.Items. ByVal e As System.Items.Text = "" ComboBox3.Items.Items.Checked = True Then str = "current" .Text = "" ComboBox6.Add("No") ComboBox2.Text = "" TextBox9. ByVal e As System.Object.58 TextBox6.Add("M") ComboBox6.Text = "" TextBox10.Items.Add("6") ComboBox3.Add("No") End Sub Private Sub Button4_Click(ByVal sender As System.Add("Single") ComboBox3.Items.EventArgs) Handles CheckBox1.OKCancel.Items.Items.Items.CheckedChanged If CheckBox1.Text = "" TextBox13.Items.EventArgs) Handles MyBase.Text = "" ComboBox5.Items.Items.Items.Text = "" TextBox19.Text = "" TextBox15.Add("F") ComboBox4.Load ComboBox1.Object.Add("F") ComboBox5.Add("1") ComboBox2. MessageBoxIcon.Add("4") ComboBox2.Add("Yes") ComboBox1.Add("Yes") ComboBox6.Items.Text = "" End Sub Private Sub Form3_Load(ByVal sender As System.Text = "" TextBox11.Text = "" ComboBox2.Close() End If End Sub Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Text = "" ComboBox4. ByVal e As System.Add("2") ComboBox2.
Object.59 End If End Sub Private Sub CheckBox2_CheckedChanged(ByVal sender As System.SelectedText Case 1 s3 = 1 Case 2 s3 = 2 Case 3 s3 = 3 Case 4 s3 = 4 Case 5 s3 = 5 Case 6 s3 = 6 End Select End Sub Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Checked Then str = "savings" End If End Sub Private Sub CheckBox3_CheckedChanged(ByVal sender As System. ByVal e As System. ByVal e As System.Checked Then str = "advanced" End If End Sub Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System. ByVal e As System.SelectedText = "single" Then s4 = "single" Else s4 = "joint" .Object.SelectedText = "yes" Then s2 = "yes" Else s2 = "no" End If End Sub Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.EventArgs) Handles ComboBox3.EventArgs) Handles ComboBox2.SelectedIndexChanged If ComboBox1.CheckedChanged If CheckBox3.EventArgs) Handles CheckBox3.SelectedIndexChanged Select Case ComboBox2.Object.CheckedChanged If CheckBox2.Object.EventArgs) Handles CheckBox2.EventArgs) Handles ComboBox1.Object. ByVal e As System. ByVal e As System.SelectedIndexChanged If ComboBox3.
tot_amt integer not null.ExecuteReader() While dr.SelectedIndexChanged If ComboBox5.de_time varchar(20).EventArgs) Handles Button2.Text = str1 i = str1 a = ac CON. CON) com1.Object.EventArgs) Handles ComboBox5.fname varchar(100) not null.SelectedText = "F" Then s = "F" Else s = "M" End If End Sub Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System. user id=sa. CON) dr = com.de_amt integer.") CON.EventArgs) Handles ComboBox4.cr_time varchar(20).ExecuteNonQuery() CON.Click Try Dim CON As SqlConnection CON = New SqlConnection("server=SHAILESH.dd_no integer)". password=sa.Object.de_date varchar(20).database=bank.Close() If CheckBox1.ch_no integer.Checked = True Then ac = ac + 1 str1 = "acc" & ac TextBox5.cr_date varchar(20).ce_amt integer. ByVal e As System.Read() ac = dr(0) End While CON.Open() Dim com1 As SqlCommand com1 = New SqlCommand("CREATE TABLE " & str1 & "(acc_no integer not null.60 End If End Sub Private Sub ComboBox4_SelectedIndexChanged(ByVal sender As System.SelectedText = "F" Then s1 = "F" Else s1 = "M" End If End Sub Private Sub Button2_Click(ByVal sender As System.Object. ByVal e As System.Close() End If .Open() Dim com As SqlCommand com = New SqlCommand("select * from users1". ByVal e As System.SelectedIndexChanged If ComboBox4.
"ERROR". MessageBoxButtons.EventArgs) Handles Button6. ByVal e As System. CON) com3.ce_amt integer.dd_no integer)".fname varchar(100) not null.ExecuteNonQuery() CON.Text = "NA" End If If CheckBox2.Error) .Checked = True Then ac = ac + 1 str1 = "acc" & ac TextBox12.tot_amt integer not null.Text = str1 k = str1 c = ac CON.ExecuteNonQuery() CON.Open() Dim com3 As SqlCommand com3 = New SqlCommand("CREATE TABLE " & str1 & "(acc_no integer not null. CON) com2.Checked = False Then TextBox12.Checked = True Then ac = ac + 1 str1 = "acc" & ac TextBox7.Text) = True Then r0 = MessageBox. MessageBoxIcon.de_amt integer.fname varchar(100) not null.de_amt integer.Click If IsNumeric(TextBox1.cr_date varchar(20).cr_time varchar(20).ce_amt integer.Close() End If If CheckBox3.Show("INVALID FIRST NAME".de_time varchar(20).Object.RetryCancel.cr_time varchar(20).ch_no integer.de_date varchar(20).cr_date varchar(20).ch_no integer.de_time varchar(20).61 If CheckBox2.Message) End Try End Sub Private Sub Button6_Click(ByVal sender As System.Close() End If If CheckBox1.Checked = False Then TextBox5.Checked = False Then TextBox7.Text = "NA" End If If CheckBox3.dd_no integer)".Open() Dim com2 As SqlCommand com2 = New SqlCommand("CREATE TABLE " & str1 & "(acc_no integer not null.Exception MsgBox(ex.Text = "NA" End If Catch ex As System.de_date varchar(20).tot_amt integer not null.Text = str1 j = str1 b = ac CON.
RetryCancel.Close() End If Else m1 = 1 End If If IsNumeric(TextBox2. MessageBoxButtons.Retry Then TextBox2.Close() End If Else m2 = 1 End If If IsNumeric(TextBox3. MessageBoxButtons. "ERROR".Retry Then TextBox3.Show("INVALID MOTHER NAME".Show("INVALID FATHER NAME". "ERROR".RetryCancel. MessageBoxButtons.Retry Then TextBox4.Focus() Else .Focus() Else Me.Error) If r2 = DialogResult.Close() End If Else m3 = 1 End If If IsNumeric(TextBox4.Text) = True Then r3 = MessageBox.62 If r0 = DialogResult.Text = "" TextBox1.Show("INVALID LAST NAME".Focus() Else Me.RetryCancel. "ERROR".Error) If r1 = DialogResult.Error) If r4 = DialogResult. MessageBoxButtons.Close() End If Else m4 = 1 End If If IsNumeric(TextBox8. MessageBoxIcon. MessageBoxIcon.Text) = False Then r4 = MessageBox.Focus() Else Me.Text = "" TextBox8.Text = "" TextBox3.Text = "" TextBox2.Text) = True Then r1 = MessageBox. MessageBoxIcon.Text) = True Then r2 = MessageBox.Focus() Else Me.Text = "" TextBox4.Retry Then TextBox1.RetryCancel. "ERROR". MessageBoxIcon.Retry Then TextBox8.Error) If r3 = DialogResult.Show("INVALID PHONE(res)".
Error) If r8 = DialogResult.Text) = True Then r8 = MessageBox.Close() End If Else m6 = 1 End If If IsNumeric(TextBox10.Error) If r7 = DialogResult.Retry Then TextBox16.Focus() Else Me. "ERROR".Text) = True Then r7 = MessageBox. "ERROR".Show("INVALID INTRODUCER'S FIRST NAME)".Text) = False Then r6 = MessageBox.Retry Then TextBox15. MessageBoxButtons.Text) = False Then r5 = MessageBox. MessageBoxIcon. MessageBoxIcon. "ERROR".63 Me.Focus() Else Me.RetryCancel. MessageBoxButtons.RetryCancel.Close() End If Else .Focus() Else Me.Show("INVALID PHONE(off)".RetryCancel.Close() End If Else m5 = 1 End If If IsNumeric(TextBox9.Show("INVALID INTRODUCER'S LAST NAME)".Text = "" TextBox15.Error) If r6 = DialogResult.Focus() Else Me.Close() End If Else m7 = 1 End If If IsNumeric(TextBox15.Text = "" TextBox10.Text = "" TextBox16.Retry Then TextBox9. MessageBoxIcon.Retry Then TextBox10. MessageBoxIcon. MessageBoxButtons.RetryCancel. MessageBoxButtons.Error) If r5 = DialogResult.Text = "" TextBox9.Show("INVALID PHONE(mob)".Close() End If Else m8 = 1 End If If IsNumeric(TextBox16. "ERROR".
Click Try Dim CON As SqlConnection CON = New SqlConnection("SERVER=SHAILESH. '" & TextBox19.'" & TextBox1. com6 As SqlCommand com4 = New SqlCommand("insert into users1 values ('" & CheckBox1.Text & "'. PWD=SA. MessageBoxButtons. '" & TextBox16.Text) = False Then r10 = MessageBox.Show("INVALID PHONE(res))".Checked = True And CheckBox3." & TextBox17. UID=SA.Text & "'.RetryCancel. '" & TextBox11.Checked = True And CheckBox2.Text & "'. '" .Retry Then TextBox18.'" & ComboBox4.'" & TextBox13.Object.Close() End If Else m11 = 1 End If If m1 = 1 And m2 = 1 And m3 = 1 And m4 = 1 And m5 = 1 And m6 = 1 And m7 = 1 And m8 = 1 And m9 = 1 And m10 = 1 And m11 = 1 Then MsgBox("INFORMATION VALIDATED") End If End Sub Private Sub Button1_Click(ByVal sender As System. CON) com5 = New SqlCommand("insert into users1 values ('" & CheckBox2.Error) If r10 = DialogResult.Text & "')".Text & "'.Text & ".Text & ".Text & ".'" & ComboBox1. "ERROR". '" & TextBox3.Text & ".'" & TextBox4.Text & "'.EventArgs) Handles Button1.Text & "'.Text & ".Show("INVALID PHONE(mob))".'" & TextBox1.'" & TextBox15.Text & "'. ByVal e As System. MessageBoxIcon.Text & "'." & TextBox6.Text & "'.Error) If r9 = DialogResult." & TextBox18. com5.Open() If CheckBox1.") CON. "ERROR"." & TextBox10.RetryCancel.Text & "'.Text & "'.Retry Then TextBox17.Checked = True Then Dim com4.Text = "" TextBox18.Text & "'.Text & "'.DATABASE=BANK.Text & ".'" & ComboBox2. '" & ComboBox3. MessageBoxIcon.'" & TextBox2.Text & "'.Text = "" TextBox17. MessageBoxButtons.Focus() Else Me." & TextBox9." & TextBox14.Text & "'.Text & "'.Focus() Else Me.'" & ComboBox6.'" & ComboBox5." & TextBox8.'" & TextBox2.Close() End If Else m10 = 1 End If If IsNumeric(TextBox17.Text & "'.Text & ".Text) = False Then r9 = MessageBox.64 m9 = 1 End If If IsNumeric(TextBox18.Text & "'.
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com6 = New SqlCommand("insert into users1 values ('" & CheckBox3.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com4.ExecuteNonQuery() com5.ExecuteNonQuery() com6.ExecuteNonQuery() ElseIf CheckBox1.Checked = True And CheckBox2.Checked = True Then Dim com7, com8 As SqlCommand com7 = New SqlCommand("insert into users1 values ('" & CheckBox1.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com8 = New SqlCommand("insert into users1 values ('" & CheckBox2.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com7.ExecuteNonQuery() com8.ExecuteNonQuery() ElseIf CheckBox1.Checked = True And CheckBox3.Checked = True Then Dim com9, com10 As SqlCommand com9 = New SqlCommand("insert into users1 values ('" & CheckBox1.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com10 = New SqlCommand("insert into users1 values ('" & CheckBox3.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '"
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com9.ExecuteNonQuery() com10.ExecuteNonQuery() Then ElseIf CheckBox2.Checked = True And CheckBox3.Checked = True
Dim com11, com12 As SqlCommand com11 = New SqlCommand("insert into users1 values ('" & CheckBox2.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com12 = New SqlCommand("insert into users1 values ('" & CheckBox3.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com11.ExecuteNonQuery() com12.ExecuteNonQuery() Else Dim com13 As SqlCommand
com13 = New SqlCommand("insert into users1 values ('" & str & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '" & TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "'," & TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," & TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" & ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "'," & TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text & "','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text & ", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON) com13.ExecuteNonQuery() End If CON.Close() MessageBox.Show("NEW ACCOUNT CREATED", "CREATED", MessageBoxButtons.OK, MessageBoxIcon.Asterisk) If CheckBox1.Checked = True Then CON.Open() Dim com14 As SqlCommand com14 = New SqlCommand("insert into " & i & "(acc_no,fname,tot_amt)values(" & a & ",' " & TextBox1.Text & " '," & TextBox14.Text & " )", CON)
com14.ExecuteNonQuery() CON.Close() End If If CheckBox2.Checked = True Then CON.Open() Dim com15 As SqlCommand com15 = New SqlCommand("insert into " & j & "(acc_no,fname,tot_amt)values(" & b & ",' " & TextBox1.Text & " '," & TextBox14.Text & " )", CON) com15.ExecuteNonQuery() CON.Close() End If If CheckBox3.Checked = True Then CON.Open() Dim com16 As SqlCommand com16 = New SqlCommand("insert into " & k & "(acc_no,fname,tot_amt)values(" & c & ",' " & TextBox1.Text & " '," & TextBox14.Text & " )", CON) com16.ExecuteNonQuery() CON.Close() End If Catch ex As Exception MsgBox(ex.Message) End Try End Sub End Class
4. Coding for Transaction
Public Class Inherits Dim a As Dim b As Dim c As Dim d As Dim f As Dim g As Dim h As Dim i As Dim j As Form4 System.Windows.Forms.Form New Form12 New Form13 New Form14 New Form15 New Form16 New Form17 New Form18 New Form19 New Form20
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim f2 As New Form2 f2.Show() Me.Hide() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Me.Close()
Enabled = False GroupBox2.Load GroupBox1. ByVal e As System.Enabled = True End Sub Private Sub Button3_Click(ByVal sender As System.EventArgs) Handles Button1.Object.Enabled = True RadioButton2.Click GroupBox3.Click GroupBox4.Hide() a.EventArgs) Handles MyBase.Enabled = False RadioButton9. ByVal e As System.Show() End Sub .Enabled = False RadioButton1. ByVal e As System.Enabled = False GroupBox4.EventArgs) Handles RadioButton1.EventArgs) Handles Button2.Enabled = False GroupBox3.Enabled = True RadioButton7.Enabled = True RadioButton1.Enabled = True RadioButton5.Object.Enabled = True End Sub Private Sub Button2_Click(ByVal sender As System.Enabled = False End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Enabled = True RadioButton3.Enabled = False RadioButton7.Enabled = False RadioButton3.Enabled = False RadioButton8.Enabled = False RadioButton5. ByVal e As System. ByVal e As System.Enabled = False RadioButton2.EventArgs) Handles Button4.Enabled = True End Sub Private Sub Form4_Load(ByVal sender As System.68 End Sub Private Sub Button1_Click(ByVal sender As System.Enabled = True RadioButton4.Object.EventArgs) Handles Button3.Object.Enabled = False RadioButton4.Enabled = True RadioButton6.CheckedChanged Me.Enabled = False RadioButton6. ByVal e As System.Enabled = True End Sub Private Sub Button4_Click(ByVal sender As System.Object.Click GroupBox1.Click GroupBox2.Enabled = True RadioButton8.Enabled = True RadioButton9.Object.
ByVal e As System.CheckedChanged Me. ByVal e As System.EventArgs) Handles RadioButton5.EventArgs) Handles RadioButton9. ByVal e As System.Hide() f.Hide() i.Object.69 Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Show() End Sub Private Sub RadioButton5_CheckedChanged(ByVal sender As System.CheckedChanged Me.Object.EventArgs) Handles RadioButton6.EventArgs) Handles RadioButton4.Show() End Sub Private Sub RadioButton4_CheckedChanged(ByVal sender As System.Show() End Sub Private Sub RadioButton7_CheckedChanged(ByVal sender As System.Object.EventArgs) Handles RadioButton8.Show() End Sub Private Sub RadioButton8_CheckedChanged(ByVal sender As System.CheckedChanged Me.EventArgs) Handles RadioButton3.Object.Hide() h.EventArgs) Handles RadioButton2. ByVal e As System.Show() End Sub Private Sub RadioButton9_CheckedChanged(ByVal sender As System.CheckedChanged Me.Object.Hide() c.Object.CheckedChanged Me.CheckedChanged Me.CheckedChanged Me.Hide() j.Object.EventArgs) Handles RadioButton7.CheckedChanged Me.Hide() d.Show() End Sub End Class . ByVal e As System. ByVal e As System.Object. ByVal e As System.Hide() g.Show() End Sub Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Show() End Sub Private Sub RadioButton6_CheckedChanged(ByVal sender As System. ByVal e As System.Hide() b.
ByVal e As System.Object.EventArgs) Handles Button3.Enabled = True TextBox2.Object. ByVal e As System.Text = "AUTHENTICATED " Button2.Queries Public Class Form5 Inherits System.Form Dim Dim Dim Dim Dim a.Visible = False TextBox2.Object. ByVal e As System.Click Me.Enabled = True TextBox2.Click Me.70 5. r.Enabled = False Label4.Text = "human" Then Label4.Click If TextBox1.Visible = True Label4.Show() End Sub Private Sub Button5_Click(ByVal sender As System.EventArgs) Handles Button5.EventArgs) Handles MyBase.Enabled = False Label3.Focus() .Object. ByVal e As System.Enabled = False Button2. ByVal e As System.Enabled = False End Sub Private Sub Button1_Click(ByVal sender As System.EventArgs) Handles Button1.Click Me.Load Button3.Show() End Sub Private Sub Button4_Click(ByVal sender As System.Show() End Sub Private Sub Form5_Load(ByVal sender As System.Windows. m As Integer str As String dr As SqlDataReader f8 As New Form8 f9 As New Form9 Private Sub Button3_Click(ByVal sender As System.Hide() f8.Forms.Object.Hide() Dim f2 As New Form2 f2.EventArgs) Handles Button4.Hide() f9.Enabled = False Button4.
ByVal e As System. MessageBoxButtons.Enabled() = False Else Me.EventArgs) Handles Button2.Click a = CInt(TextBox2.Error) If r = DialogResult.Close() End If End If End Sub Private Sub Button2_Click(ByVal sender As System.RetryCancel.Open() Dim com As SqlCommand com = New SqlCommand("select * from users1".Text = "" TextBox1.Enabled = True Button4.Object. MessageBoxIcon.Show("INCORRECT PASSWORD". con) dr = com.DATABASE=BANK.Retry Then TextBox1.Text = a f9.Error) If r = DialogResult.Text = a Dim con As SqlConnection con = New SqlConnection("SERVER=SHAILESH.RetryCancel.Enabled = True Button3. MessageBoxButtons.Text) f8.Text = "" TextBox2.Close() End If Else Label3.Retry Then TextBox1. "ERROR".Read() If dr(0) = a Then m = 1 End If End While con.Show("ACCOUNT DOES NOT EXIST".") con.TextBox1.Close() If m = 0 Then r = MessageBox. "ERROR".Focus() Else Me.ExecuteReader() While dr.Text = "" TextBox1. UID=SA.71 Else r = MessageBox. PWD=SA.Focus() Button2.TextBox1.Enabled = True End If End Sub End Class . MessageBoxIcon.
Text = "human" Then Label3.Forms.Hide() End Sub Private Sub Button1_Click(ByVal sender As System.Error) If r = DialogResult.EventArgs) Handles Button2.Focus() Else r = MessageBox. MessageBoxButtons.Close() End If End If End Sub Private Sub Button2_Click(ByVal sender As System.Text = "AUTHENTICATED" TextBox2.Enabled = True TextBox2. "ERROR".EventArgs) Handles Button3.RetryCancel.") CON.Object.Click Dim f As New Form2 f.ExecuteReader() While dr.Show("INCORRECT PASSWORD".Show() Me.Enabled = True Button2.Enabled = True TextBox2.Retry Then TextBox1.Text = "" TextBox1. ByVal e As System.Text Try Dim CON As SqlConnection CON = New SqlConnection("SERVER=SHAILESH.DATABASE=BANK. ByVal e As System. acc As Integer Dim dr As SqlDataReader Dim m As Integer = 0 Private Sub Button3_Click(ByVal sender As System.Visible = True Label2.Open() Dim com As SqlCommand com = New SqlCommand("select * from users1".Click If TextBox1.Focus() Else Me. PWD=SA.72 6. Coding for open for modification Public Class Form6 Inherits System.Object.Windows. UID=SA.Read() If dr(0) = acc Then m = 1 Exit While End If . MessageBoxIcon. ByVal e As System.Object.Enabled = True Label2.EventArgs) Handles Button1. CON) dr = com.Click acc = TextBox2.Form Dim r.
Form Dim r.Object.73 End While If m = 0 Then r = MessageBox.Retry Then TextBox2. k As Integer Dim m As Integer = 0 Dim dr As SqlDataReader Dim str As String Private Sub Form7_Load(ByVal sender As System.Show("ACCOUNT DOES NOT EXIST".Text = acc Me.Hide() obj.RetryCancel.Load Label2.EventArgs) Handles Button2.Enabled = False TextBox2.TextBox1.Show() End If Catch ex As Exception End Try End Sub Private Sub Form6_Load(ByVal sender As System.Object. ByVal e As System.Error) If r = DialogResult.Forms.Load Label2.Enabled = False End Sub End Class 7. MessageBoxIcon.Focus() CON. j.Enabled = False Button3. Coding for Close an Account Public Class Form7 Inherits System.Visible = False End Sub Private Sub Button2_Click(ByVal sender As System.Windows.Object.Text = "" TextBox2. "ERROR".Click If TextBox1.EventArgs) Handles MyBase.Close() End If Else Dim obj As New Form10 obj.Close() Else Me. ByVal e As System.Text = "human" Then . MessageBoxButtons. ByVal e As System.EventArgs) Handles MyBase.Enabled = False Label3.Visible = False TextBox2.
Text) com1.Exit() . MessageBoxButtons. con) com1.Close() End If End If End Sub Private Sub Button3_Click(ByVal sender As System.Click Try Dim con As SqlConnection con = New SqlConnection("SERVER=SHAILESH.Close() MsgBox("ACCOUNT DELETED") Me.Focus() Else r = MessageBox. MessageBoxButtons. TextBox2.RetryCancel.Close() Application.74 Label2. con) com2. MessageBoxIcon.Enabled = True TextBox2.OK.Open() j = TextBox2. "ERROR".Text = "AUTHENTICATED" TextBox2. ByVal e As System.Visible = True Label3.") con.Enabled = True Button3.Focus() Else Me.Text = "" TextBox1. UID=SA.ExecuteNonQuery() Dim com2 As SqlCommand str = "acc" & TextBox2. PWD=SA.ExecuteNonQuery() con.Show("ACCOUNT DOES NOT EXIST".ExecuteReader() While dr.EventArgs) Handles Button3. "ERROR".Text Dim com As SqlCommand com = New SqlCommand("select * from users1".Retry Then TextBox1.Error) Else If m = 1 Then con.Error) If r = DialogResult.Open() Dim com1 As SqlCommand com1 = New SqlCommand("delete from users1 where acc_no=@a".Add("@a".Object.Parameters.Enabled = True Label3. MessageBoxIcon.Read() k = dr(0) If k = j Then m = 1 End If End While con.Close() If m = 0 Then MessageBox.DATABASE=BANK.Text com2 = New SqlCommand("drop table " & str & "".Show("INCORRECT PASSWORD". con) dr = com.
Object.EventArgs) Handles Button1.Message) End Try End Sub Private Sub Button1_Click(ByVal sender As System.75 End If End If Catch ex As Exception MsgBox(ex. ByVal e As System.Close() End Sub End Class Testing .Show() Me.Click Dim f1 As New Form2 f1.
Ultimately these errors are reflected in the code. the emphasis being on the testing interfaces between modules. errors can be injected at any stage during the development.76 TESTING Testing is a process of executing a program with intentions of finding an error. Unit testing is necessary for verification of the code produced during the coding phase and hence the goal is to test the integral logic of the modules. Proper test cases are selected to carry on integrated testing. Error may occur at any level or during any phase of the development. In software development. Since code is frequently the only product that can be observed. In this above tested modules are combined into subtypes. which are then tested. 2) Integrated Testing: It is the next level of testing. . testing is the phase where the errors remaining from the earlier phase must be detected LEVELS OF TESTING: 1) Unit Testing: It is the first level of testing. different modules are tested against the specifications produced during design for the modules. The goal is to see the modules can be integrated properly. It is essential for a good system that it is properly being tested before transferring it to the ultimate user. so that in early stages the program bugs could be set right and probability of system failure could be reduced. In this.
In the software system it is essential that white box testing should be done for the program of vital importance because this is very tedious and time consuming. BLACK BOX TESTING. WHITE BOX TESTING In white box testing approach the close examination of procedure detail is done. The status of program may be examined at various points to determine if the expected status corresponds to the actual status. all logical decisions on their boundaries within their operational bound were exercised and internal data structures to assure their validity was exercised once. Logical path through software is tested by test cases that exercise specific set of conditions and/or loops. The reference document for this is the requirement document. It gives effect of demolishing his efforts of building software but it is constructive task for building perfect software. WHITE BOX TESTING. Two testing approaches have been adopted for testing and expenditure handling system. Thus through white box testing we are able to test all the independent paths with in a module.77 3) System Testing: Here the entire software system is tested. and a goal is to see if the software meets its requirements. Acceptance testing is sometimes performed with the realistic data of the client to demonstrate that the software is working properly Testing is a Herculean task for programmer. .
78 After the successful completion of white box testing method the black box testing method. If an input condition requires specific values one valid & two invalid equivalence classes are defined. If an input condition specifies a member of set one valid equivalence class & one invalid are defined. After testing the module it is important to test software as a whole for which we have chosen the top down integration . Equivalence classes are according to the following guidelines: If an input condition specifies range. This method divides the input domain of a program into classes of data from which test cases can be derived. then one valid & two invalid equivalence classes are defined. BLACK BOX TESTING The black box testing method enables the engineer to drive sets of input condition that will fully exercise all functional requirements for a program. one valid and one invalid class are defined. was considered. If an input condition is Boolean. which is complementary method. In black box testing we have chosen an equivalence partitioning.
79 approach. which is an incremental approach to construction of program structure. beginning with main control module. Through the top down module we have first checked the integration of the main menu with the subordinate menus and the integration of the sub menus with their subordinate menus. Modules are integrated by moving down through the control hierarchy. module subordinate to main control module incorporated into data structure in either depth first manner. .
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.