Sunteți pe pagina 1din 65

INTRODUCTION ABSTRACT: Visual Basic is an interesting topic, which has different types.

It has all The methods have their won features with each having merits and demerits which Help in data processing. The topic includes their architecture representing the Elements involved in it and their action is also specified. Visual Basic 6. allows creating o!"ect#oriented applications. Visual Basic 6. profoundly concentrates on the Internet development features, $ctive % technology, enhanced controls, enhanced features of e&isting control, client'server, new language features development, data access, a few design enhancement etc.,

SYSTEM ENVIRONMENT
(ollowing are the technical resources re)uired for developing the system. H$*+,$*E *E-.I*E/E0T1: # 23 456 +& 6 a!ove with 7.8 9.B hard dis:. *$/ capacity of minimum of ;< /B (loppy dis: drive either 8.< /B or 8.77 /B (loppy 8.< /B or 8.77 /B Epson stylus 3=>=* 75

1=(T,$*E *E-.I*E/E0T1: # ,I0+=,1 ?4'?5 E0VI*=0/E0T /1 # $33E11@B$3A E0+B VI1.$> B$1I3 6. @(*=0T E0+B

=THE* *E-.I*E/E0T1: # ..2.1 1tationary /iscellaneous assets.

1E3.*ITC: # 1ecurity measures present unauthoriDed to access the system. $ny system to have a security measure should is provided with login#id and password facility. 1ecurity is provided for !oth the data!ase level and application level. =nly the authoriDed persons can avoid the data corruption to accessed data!ase. The data!ase can accessed only of correct login#id and password is provided.

SOFTWARE CONFIGARATION 9.I : VI1.$> B$1I3 6. ,I0+=,1 ?5 /1 # $33E11

=2E*$TI09 1C1TE/ : B$3A E0+ :

HARDWARE CONFIGARATION $n IB/ personal computer or a close prefera!ly 2entium <;; /HD. $n 1V9$ or !etter +isplay 1ystem. ;< /B of varia!le memory. <46 AB of e&ternal 3ache /emory. $ ;.4E 8.77 /B (loppy +is: +rive. $ 7.; 9B Hard +is:. $n In:"et or +ot /atri& 2rinter. $ /icrosoft mouse or a compati!le pointing device.

About Visual Basic Lan ua !" #

Visual Basic was developed forms the B$1I3 programming language. In 8?F Gs /icrosoft got its start !y developing *=/ !ased interpreted Basic for the early microprocessor !ased computer. In 8?5<, /icrosoft -uic:Basic revolutioniDed Basic and legitimiDed as a serious development language for /1#+=1 environment. >ater on, /icrosoft 3orporation created the enhanced version of B$1I3 called Visual Basic for ,indows. Visual Basic $%&" # Visual Basic 6. allows creating =!"ect =riented $pplication. ,hen Visual Basic originally developed, it allowed to the programmer to create programs using pre#defined o!"ects, forms and controls. It uses some of the ,indows ?4 3ontrols. Visual Basic 6. can !e used to develop !oth standalone systems and 3lient 1erver Based systems. Visual Basic 6. comes in three categories 1tandard Edition 2rofessional Edition Enterprise Edition

F!atu'!s o( Visual Basic $%&" # Visual Basic 6. profoundly concentrates on the Internet development features, $ctive% technology, enhanced controls, enhanced features of e&isting control, client'server, new language features development, data access, a few design enhancement etc.,

Nati)! Co*!: # $ Visual Basic pro"ect is compiled to native code for faster e&ecution. 2rofiles native code using new native code compiler option, and de!ug native code using the Visual 3HH environment. C'!at! Acti)! + Cont'ols: # (eatures of e&isting controls can !e com!ined, or new control can !e created form the scratch. $ctive% controls created with Visual Basic have events, data !inding 1upport, licensing support, property pages, Internet features, and more. Wi,a'*s: # The application ,iDard is new and the 1etup ,iDard has !een enhanced to ena!le creating a dependency file for a standard pro"ect. In the professional Edition, the $ctive % control Interface ,iDard, $ctive % +ocument /igration ,iDard, +ata (orm ,iDard, and property page ,iDard is new. The 1etup ,iDard has !een enhanced to support distri!ution via the Internet. The installation of remote server components using +istri!uted 3=/ @+3=/B and *emote $utomation is an added feature. The a!ility to create dependency files for pro"ects and components created with Visual Basic. E-t!nsibilit. Mo*!l" # The new model allows to programmatically e&tending the development environment and control pro"ects, events, code, and Visual elements.

D!cla'!/ Rais!/ an* Han*l! E)!nts: # =!"ects provided !y the components can raise events that can !e handled in other applications, or !y our o!"ects, using with Events varia!les, Events provide a simple alternative to asynchronous call!ac:s. Multit0'!a*!* DLLs" # +>> components mar:ed for unattended e&ecution can !e used efficiently !y multithreading applications such as Internet Browser. Int!'n!t T'ans(!' Cont'ol: # This control provides HTT2 and (T2 support. Multi1l! 2'o3!ct: # /ultiple pro"ects can !e opened in the same instance of Visual Basic, with is useful for de!ugging $ctive % controls. C'!at! Acti)! + Docu4!nt: # $ctive% document s can !e created that !oosts the Visual Basic application to the Internet Browser ,indows. The data control, +$= or /icrosoft $ccess, you can create that is virtually data!ase independent, !ecause "et automatically performs all synta& and data manipulation translations.

ODBC Di'!ct: #

This feature allows us to access =+B3 data sources throughout the *+= with +$= o!"ects, !y passing the /icrosoft Iet +ata!ase Engine. ,e can also use =+B3 +irect through the data 3ontrol, !y !inding controls to data and setting and =+B3 +irect property. Doc5 abl! an* Lin5abl! Win*o6s/ Toolbo-/ an* Toolba's: # 2ro"ect, properties, +e!ugging, and =!"ect Browser windows can !e doc:ed in the development environment and'or lin:ed to each other. Tool!ars can !e doc:ed, undoc:ed, or lin:ed to each other. Auto4ation: # $ technology that ena!les application to provide o!"ects in a consistent way to other application, development tools and macro languages. (ormerly :nown as =>E $utomation. Class: # 3lass is the formal definition of an o!"ect. The class acts as template which an instance of an o!"ect is created at run time. The class defines the properties of the o!"ect and the methods used to control the o!"ectGs !ehavior. 3lassGs uses can typically !e categoriDed as one of three general types. They are 3reation of Business =!"ects E&: Employee o!"ect Encapsulation of programming functions E&: Encapsulate the code that opens a record set in a class module Visual Basic $dd#Ins E&: 2rogram ,iDard 2ol.4o'10is4" #

2olymorphism relates to the use of the same method name in various o!"ectsJ for e&ample, a print method for the printer, a form, or a picture !o&. ,hile the name of the method is the same, the actual code for the method in each o!"ect can !e different. However, !ecause the code for the method is encapsulated in the o!"ect, each o!"ect :nows how to perform the correct tas: when the method is called, this feature allows classes to support multiple interfaces. .sers of components can early !ind to these interfaces, regardless of the o!"ect that implements them. Enca1sulation: # The data a!out an o!"ect and the code used to manipulate the data are contained within the o!"ect itself. The data is stored as the properties of the o!"ect and the code as the methods of the o!"ect. This feature allows the o!"ect data and code to stand alone, independent of outside routines. T0! Co41on!nt Ob3!ct Mo*!l 7COM8" # The 3omponent =!"ect /odel @3=/B is a specification. It specifies how to !uild components that can !e dynamically interchanged. 3om provides the standard that component and clients follow to ensure that can operate together. 3=/ is /icrosoftGs top#level, all encompassing !inary and wire specification for the interoperation of one app with another, across multiple applications, machines, and hardware types. It provides the following features. 1ingle programming model Binary compati!ility .niform data transfer 1tructured storage 3omponent software, reusa!le functionality

/acro programma!ility 2rogramming language independent +istri!uted operation

A*)anta !s o( Usin COM: # Binary 3ompati!ility and 3ross#platform +evelopment 3ode *eusa!ility Version 3ontrol

Bina'. Co41atibilit. an* C'oss#1lat(o'4 D!)!lo14!nt: # The first ma"or advantage of component technology !inary compati!ility and cross#platforms. 1ince !ecoming an Industry#wide standard, 3=/#compliant client applications and servers are independent of the development language and operating system. Co*! R!usabilit.: # The second ma"or advantage of component technology is an enhancement of +>> technology. 3=/ components e&pose groups of methods, :nown as interfaces, through which clients interact with o!"ects. Because these interfaces are documented, many clients for a variety of different purposes can reuse the code that creates those o!"ects.

V!'sion Cont'ol: # The last ma"or advantage resolves issues related to version control. 3=/ components are said to !e self#versioning. This means that new functionality can !e added to a component without affecting clients that already use the components. (unctionality is not lost when components are upgraded it is always enhanced or added.

MS#ACCESS: ,hen we create a /icrosoft $ccess data!ase, we create one file that contains the data and ta!le structures as well as the )ueries, forms, reports and other o!"ects that ma:e up the data!ase. 2rotecting information can !e an important part of developing a /icrosoft $ccess data!ase. By securing your data!ase, you can control what a user, is a group of users, can do with data!ase o!"ects. /icrosoft $ccess security made up of several pieces that must !e in place !efore security is complete. 1ecurity relies on a relationship !etween /icrosoft $ccess stores account information with the wor: group and permissions assignment in the data!ase @.md!B file /icrosoft $ccess Version F system data!ase includes several internal security enhancements. Encrypting a data!ase ma:es it indeciphera!le !y a utility program or word processor. Encrypting a data!ase compacts the data!ase file and ma:es it indeciphera!le !y a utility program or word processor. +ecrypting a data!ase reverses it indeciphera!le in order to protect it from unauthoriDed viewing or use.

SYSTEM ANALYSIS
SYSTEM DECRI2TION: The proposed system is for ma:ing easier to manage su!scri!er details, post details, money order details, !ills. 1o this will !e developed for helping the post office administrative the a!ove things. The overall system is control through the main menu. The main money contains 6 parts. 8. 1ales details. <. *egister post. ;. 1peed post. 7. /oney order. 4. /oney savings. 6. *eports.

SALES DETAILS"#
This form contains the various types of postcards, stamps which are to sold. 8. 2ostca'*s:# The various types of postcards are li:e envelop, competition postcard, printed cards, etc are their amount. <. Sta41s"# The different stamp cost of 8 to 4 are sold.

;. R! ist!' 1ost:# the register form contains the postage where to !e delivered it contains. 1ender address *eceiver address $c:nowledgement ,eigtage 3ommission 7. S1!!* 1ost:# $s form of register posts the same will !e in the speed post also. The e&tra amount will !e ta:en for urgently. 4. 4on!. o'*!':# money order form contains details of person to whom money is to !e sending, and the sender address. 6. 4on!. sa)in s:# the savings form we have the details on various types of savings li:e short term or long term savings.

E+ISTING SYSTEM:
The present system of 2ostal service does not contain the courier transactions and maintain the details of all other transactions such as maintaining money order details speed post transactions register post transaction saving and recurring !an: transactions all these are carried out manually. This postal system is made into atomiDation in order to render services more )uic:ly and efficiently to the people.

SYSTEM DESIGN

DATA FLOW DIAGRAMS:

1ales form8.

*egister post <.

.1E*

/oney order ;.

.1E*

/oney savings 7.

*eports 4.

SALES FORM"

1tamp details 8.8 .1E*

1tamps

2ostcard details 8.<

2ostcards

REGISTER 2OST"

1ender details <.8

1ender

*eceiver details <.<

*eceiver

.1E* ,attages <.; weight age

3ommission <.7

3ommission

MONEY OREDR"

1ender details ;.8

sender

.1E*

*eceiver details ;.<

*eceive

$mount details ;.;

$mount

MONEY SAVINGS"

*eceiving details 7.8

*eceiving

.1E*

(i&ed deposit 7.<

(i&ed deposit

DATABASE DESIGN:

S2EED 2OST" +$T$ 0$/E 10= +$TE 0$/E $*E$ 3ITC 3=.0T*C 2I03=+E +I1T*I3T 2*E2$I+ ,EI9HT 2=1T$9E (EE $3A+.E T=T$> $/T 0ET$/T 3=.0T +$T$ TC2E +=.B>E +$TE TE%T TE%T TE%T TE%T +=.B>E I0TE9E* +=.B>E 3.**E03C I0TE9E* 3.**E03C 3.**E03C 3.**E03C 3.**E03C 3.**E03C I0TE9* 1IKE 5 5 < < < < 5 5 5 < 5 5 5 5 5 <

SALES"

+$T$ 0$/E 10= +$TE

+$T$ TC2E +=.B>E +$TE

1IKE 5 5

1T$/21 1*E-0= 2=1T3$*+ 2*$TE 2*E-0= $/T 3=.0T

TE%T I0TE9E* TE%T 3.**E03C I0TE9E* 3.**E03C I0TE9E*

< < < 5 < 5 <

MONEY SAVINGS:

+$T$ 0$/E 10= $330= 0$/E $*E$ 3ITC 3=.0T*C

+$T$ TC2E +=.B>E +=.B>E TE%T TE%T TE%T TE%T

1IKE 5 5 < < < <

2I03=+E 13HTC2E I0T* *$TE +E2+$TE +E2$/T T=T$/T 3=.0T

+=.B>E TE%T 3.**E03C +$TE 3.**E03C 3.**E03C I0TE9E*

5 < 5 5 5 5 <

REGISTER 2OST"

+$T$ 0$/E 10= 1+$TE 0$/E $*E$ 3ITC 3=.0T*C 2I03=+E 2*E2$I+ ,EI9HT 2=1T$9E *E9(EE $3A+.E

+$T$ TC2E +=.B>E +$TE TE%T TE%T TE%T TE%T +=.B>E 3.**E03C I0TE9E* 3.**E03C 3.**E03C 3.**E03C

1IKE 5 5 < < < < 5 5 < 5 5 5

T=T$/T 0ET$/T 3=.0T

3.**E03C 3.**E03C I0TE9E*

5 5 <

SYSTEM IM2LEMENTATION:

FORM DESCRI2TION:

The proposed system is for ma:ing easier to manage su!scri!er details, post details, money order details, !ills. 1o this will !e developed for helping the post office administrative the a!ove things. The overall system is control through the main menu.

The main money contains 6 parts.

8. 1ales details. <. *egister post.

;. 1peed post. 7. /oney order. 4. /oney savings. 6. *eports.

SALES DETAILS:#

This form contains the various types of postcards, stamps which are to sold. 2ostca'*s:# The various types of postcards are li:e envelop, competition postcard, printed cards, etc are their amount. Sta41s:# The different stamp cost of 8 to 4 are sold. R! ist!' 1ost:# the register form contains the postage where to !e delivered it contains.

1ender address *eceiver address $c:nowledgement ,eigtage 3ommission S1!!* 1ost:# $s form of register posts the same will !e in the speed post also. The e&tra amount will !e ta:en for urgently. Mon!. o'*!':# money order form contains details of person to whom money is to !e sending, and the sender address.

Mon!. sa)in s:#

the savings form we have the details on various types of

savings li:e short term or long term.

SCREENS"
REGISTER 2OST:

S2EED 2OST"

MONEY ORDER "

SALES"

MONEY SAVINGS:

SOURCE CODE
LLLLLLLLLLLLLLLLLLLLLLLL /=0EC =*+E* LLLLLLLLLLLLLLLLLL =ption E&plicit +im d! $s +ata!ase +im rs, rs8 $s *ecordset +im a, : $s Integer 2rivate 1u! 3om!o8M3lic:@B rs./ove(irst ,hile 0ot rs.E=( If 3om!o8.Te&t N rs@ B Then 3all data End If rs./ove0e&t ,end End 1u! 2rivate 1u! 3ommand4M3lic:@B 3all save rs./ove>ast 3om!o8.$ddItem rs@ B /sgBo& Orecord savedO 3all clear End 1u! 2rivate 1u! 3ommand7M3lic:@B rs./ove>ast a N rs@ B 3all clear

3om!o8.Te&t N a H 8 Te&t8.Te&t N +ate Te&t<.1et(ocus 3ommand4.Ena!led N True End 1u! 2rivate 1u! 3ommand;M3lic:@B (orm6.1how End 1u! 2rivate 1u! 3ommand6M3lic:@B (orm6.1how >oad (orm6 End 1u! 2rivate 1u! 3ommandFM3lic:@B 3all clear End 1u! 2rivate 1u! (ormM>oad@B 1et d! N =pen+ata!ase@O3:P/C +=3./E0T1P1E1H.P2=1T=((./+BOB 1et rs N d!.=pen*ecordset@OmoneyorderOB rs./ove(irst ,hile 0ot rs.E=( 3om!o8.$ddItem rs@ B rs./ove0e&t ,end End 1u! 2rivate 1u! Te&tFMlostfocus@B

+im l, i, I $s Integer If @@Te&t4.Te&t N OindiaO =r Te&t4.Te&t N OI0+I$OB $nd Te&tF.Te&t QN 4 lN4 IN8 (or i N 8 To Val@Te&tF.Te&tB Te&t5.Te&t N l INIH8 iNIL8 lNlH4 0e&t Te&t?.Te&t N Val@Te&tF.Te&tB H Val@Te&t5.Te&tB ElseIf @@Te&t4.Te&t N OindiaO =r Te&t4.Te&t N OI0+I$OB $nd Te&tF.Te&t R 4 /sgBo& O$/=.0T 1H=.>+ BE Q4 Te&tF.Te&t N OO Te&tF.1et(ocus ElseIf @@Te&t4.Te&t QR OindiaO =r Te&t4.Te&t QR OI0+I$OB $nd Te&tF.Te&t QN 4 Then l N 84 IN8 (or i N 8 To Val@Te&tF.Te&tB Te&t5.Te&t N l INIH8 iNIL8 l N l H 84 0e&t Te&t?.Te&t N Val@Te&tF.Te&tB H Val@Te&t5.Te&tB ElseIf @@Te&t4.Te&t QR OindiaO =r Te&t4.Te&t QR OI0+I$OB $nd Te&tF.Te&t R 4 Then /sgBo& O$/=.0T 1H=.>+ BE Q4 Te&tF.Te&t N OO Te&tF.1et(ocus O B B O B Then B Then

End If rs./ove>ast If Te&t8.Te&t N rs@8B Then : N rs@8 B Te&t8 .Te&t N : H 8 Else Te&t8 .Te&t N 8 End If End 1u! 2u!lic 1u! clear@B 3om!o8.Te&t N OO Te&t8.Te&t N OO Te&t<.Te&t N OO Te&t;.Te&t N OO Te&t7.Te&t N OO Te&t4.Te&t N OO Te&t6.Te&t N OO Te&tF.Te&t N OO Te&t5.Te&t N OO Te&t?.Te&t N OO Te&t8 .Te&t N OO End 1u! 2u!lic 1u! save@B rs.$dd0ew rs@ B N 3om!o8.Te&t rs@8B N Te&t8.Te&t rs@<B N Te&t<.Te&t rs@;B N Te&t;.Te&t rs@7B N Te&t7.Te&t

rs@4B N Te&t4.Te&t rs@6B N Te&t6.Te&t rs@FB N Te&tF.Te&t rs@5B N Te&t5.Te&t rs@?B N Te&t?.Te&t rs@8 B N Te&t8 .Te&t rs..pdate End 1u! 2u!lic 1u! data@B 3om!o8.Te&t N rs@ B Te&t8.Te&t N rs@8B Te&t<.Te&t N rs@<B Te&t;.Te&t N rs@;B Te&t7.Te&t N rs@7B Te&t4.Te&t N rs@4B Te&t6.Te&t N rs@6B Te&tF.Te&t N rs@FB Te&t5.Te&t N rs@5B Te&t?.Te&t N rs@?B Te&t8 .Te&t N rs@8 B End 1u!

LLLLLLLLLLLLLLLLLLLLLL*E9I1TE* 2=1T LLLLLLLLLLLLLLLLLLL


=ption E&plicit +im d! $s +ata!ase +im rs $s *ecordset +im a $s Integer 2rivate 1u! 3om!o8M3lic:@B rs./ove(irst ,hile 0ot rs.E=( If 3om!o8.Te&t N rs@ B Then Te&t8.Te&t N rs@8B Te&t<.Te&t N rs@<B Te&t;.Te&t N rs@;B Te&t7.Te&t N rs@7B Te&t4.Te&t N rs@4B Te&t6.Te&t N rs@6B Te&tF.Te&t N rs@FB Te&t5.Te&t N rs@5B Te&t?.Te&t N rs@?B Te&t8 .Te&t N rs@8 B Te&t88.Te&t N rs@88B Te&t8<.Te&t N rs@8<B Te&t8;.Te&t N rs@8;B Te&t87.Te&t N rs@87B End If rs./ove0e&t ,end End 1u!

2rivate 1u! 3ommand<M3lic:@B rs.$dd0ew rs@ B N 3om!o8.Te&t rs@8B N Te&t8.Te&t rs@<B N Te&t<.Te&t rs@;B N Te&t;.Te&t rs@7B N Te&t7.Te&t rs@4B N Te&t4.Te&t rs@6B N Te&t6.Te&t rs@FB N Te&tF.Te&t rs@5B N Te&t5.Te&t rs@?B N Te&t?.Te&t rs@8 B N Te&t8 .Te&t rs@88B N Te&t88.Te&t rs@8<B N Te&t8<.Te&t rs@8;B N Te&t8;.Te&t rs@87B N Te&t87.Te&t rs..pdate rs./ove>ast 3om!o8.$ddItem rs@ B /sgBo& Orecord savedO End 1u! 2rivate 1u! 3ommand8M3lic:@B If 0ot rs.B=( Then rs./ove>ast a N rs@ B 3om!o8.Te&t N a H 8 Te&t<.Te&t N OO Te&t;.Te&t N OO

Te&t7.Te&t N OO Te&t4.Te&t N OO Te&t6.Te&t N OO Te&tF.Te&t N OO Te&t5.Te&t N OO Te&t?.Te&t N OO Te&t8 .Te&t N OO Te&t88.Te&t N OO Te&t8<.Te&t N OO Te&t8;.Te&t N OO Te&t87.Te&t N OO Else 3om!o8.Te&t N 8 8 End If Te&t8.Te&t N +ate Te&t<.1et(ocus 3ommand<.Ena!led N True End 1u! 2rivate 1u! 3ommand;M3lic:@B .nload /e (orm6.1how End 1u! 2rivate 1u! (ormM>oad@B 1et d! N =pen+ata!ase@O3:P/C +=3./E0T1P1E1H.P2=1T=((./+BOB 1et rs N d!.=pen*ecordset@OregisterpostOB If rs.B=( Then /sgBo& Ono record e&istsO Else rs./ove(irst

,hile 0ot rs.E=( 3om!o8.$ddItem rs@ B rs./ove0e&t ,end End If 3ommand<.Ena!led N (alse 3ommand7.Visi!le N (alse S3ommand4.Visi!le N (alse End 1u! 2rivate 1u! Te&t5Mlostfocus@B +im :, l $s Integer If Te&t4.Te&t N OindiaO Then aN7 Else: a N 84 End If If Val@Te&t5.Te&tB QN < Then Te&t?.Te&t N a ElseIf Val@Te&t5.Te&tB QN 7 Then Te&t?.Te&t N < L a ElseIf Val@Te&t5.Te&tB QN 6 Then Te&t?.Te&t N ; L a ElseIf Val@Te&t5.Te&tB QN 5 Then Te&t?.Te&t N 7 L a ElseIf Val@Te&t5.Te&tB QN 8 Te&t?.Te&t N 4 L a Else: /sgBo& Oweight e&ceeded O End If Te&t8 .Te&t N 8F Te&t88.Te&t N ; Te&t8<.Te&t N Val@Te&t?.Te&tB H Val@Te&t8 .Te&tB H Val@Te&t88.Te&tB Then

Te&t8;.Te&t N Val@Te&t8<.Te&tB # Val@Te&tF.Te&tB rs./ove>ast If Te&t8.Te&t N rs@8B Then : N rs@8 B Te&t8 .Te&t N : H 8 Else Te&t8 .Te&t N 8 End If rs./ove>ast If Te&t8.Te&t N rs@8B Then l N rs@87B Te&t87.Te&t N l H 8 Else Te&t87.Te&t N 8 End If End 1u!

LLLLLLLLLLLLLLLLLLLLL 12EE+ 2=1T LLLLLLLLLLLLLLLLLLLLL


=ption E&plicit +im d! $s +ata!ase +im rs $s *ecordset +im a $s Integer 2rivate 1u! 3om!o8M3lic:@B rs./ove(irst ,hile 0ot rs.E=( If 3om!o8.Te&t N rs@ B Then Te&t8.Te&t N rs@8B Te&t<.Te&t N rs@<B Te&t;.Te&t N rs@;B Te&t7.Te&t N rs@7B Te&t4.Te&t N rs@4B Te&t6.Te&t N rs@6B Te&tF.Te&t N rs@FB Te&t5.Te&t N rs@5B Te&t?.Te&t N rs@?B Te&t8 .Te&t N rs@8 B Te&t88.Te&t N rs@88B Te&t8<.Te&t N rs@8<B Te&t8;.Te&t N rs@8;B Te&t87.Te&t N rs@87B Te&t84.Te&t N rs@84B End If rs./ove0e&t ,end End 1u! 2rivate 1u! 3ommand<M3lic:@B rs.$dd0ew

rs@ B N 3om!o8.Te&t rs@8B N Te&t8.Te&t rs@<B N Te&t<.Te&t rs@;B N Te&t;.Te&t rs@7B N Te&t7.Te&t rs@4B N Te&t4.Te&t rs@6B N Te&t6.Te&t rs@FB N Te&tF.Te&t rs@5B N Te&t5.Te&t rs@?B N Te&t?.Te&t rs@8 B N Te&t8 .Te&t rs@88B N Te&t88.Te&t rs@8<B N Te&t8<.Te&t rs@8;B N Te&t8;.Te&t rs@87B N Te&t87.Te&t rs@84B N Te&t84.Te&t rs..pdate rs./ove>ast 3om!o8.$ddItem rs@ B /sgBo& Orecord savedO 3ommand<.Ena!led N (alse End 1u! 2rivate 1u! 3ommand8M3lic:@B If 0ot rs.B=( Then rs./ove>ast a N rs@ B 3om!o8.Te&t N a H 8 Te&t8.Te&t N +ate Te&t<.Te&t N OO Te&t;.Te&t N OO Te&t7.Te&t N OO

Te&t4.Te&t N OO Te&t6.Te&t N OO Te&tF.Te&t N OO Te&t5.Te&t N OO Te&t?.Te&t N OO Te&t8 .Te&t N OO Te&t88.Te&t N OO Te&t8<.Te&t N OO Te&t8;.Te&t N OO Te&t87.Te&t N OO Te&t84.Te&t N OO Else 3om!o8.Te&t N 8 8 Te&t<.1et(ocus End If 3ommand<.Ena!led N True End 1u! 2rivate 1u! 3ommand;M3lic:@B .nload /e (orm6.1how End 1u! 2rivate 1u! (ormM>oad@B 1et d! N =pen+ata!ase@O3:P/C +=3./E0T1P1E1H.P2=1T=((./+BOB 1et rs N d!.=pen*ecordset@OspeedpostOB If rs.B=( Then /sgBo& Ono record e&istsO Else rs./ove(irst ,hile 0ot rs.E=( 3om!o8.$ddItem rs@ B rs./ove0e&t

,end End If 3ommand<.Ena!led N (alse 3ommand7.Visi!le N (alse S3ommand4.Visi!le N (alse End 1u! 2rivate 1u! Te&t?Mlostfocus@B +im : $s Integer If Te&t4.Te&t N OindiaO Then If Te&tF.Te&t QN 4 $nd Te&t?.Te&t QN 4 Then Te&t8 .Te&t N 84 ElseIf Te&tF.Te&t QN < Te&t8 .Te&t N < ElseIf Te&tF.Te&t QN 4 Te&t8 .Te&t N ; ElseIf Te&tF.Te&t R 4 Te&t8 .Te&t N 74 ElseIf Te&tF.Te&t QN 4 $nd Te&t?.Te&t QN < Te&t8 .Te&t N < ElseIf Te&tF.Te&t QN < Te&t8 .Te&t N ; ElseIf Te&tF.Te&t QN 4 Te&t8 .Te&t N ;4 ElseIf Te&tF.Te&t R 4 Te&t8 .Te&t N 4 ElseIf Te&tF.Te&t QN 4 $nd Te&t?.Te&t QN 4 Te&t8 .Te&t N <4 ElseIf Te&tF.Te&t QN < Te&t8 .Te&t N 7 ElseIf Te&tF.Te&t QN 4 Te&t8 .Te&t N 74 $nd Te&t?.Te&t QN 4 Then $nd Te&t?.Te&t QN 4 Then Then $nd Te&t?.Te&t QN < Then $nd Te&t?.Te&t QN < Then $nd Te&t?.Te&t QN < Then Then $nd Te&t?.Te&t QN 4 Then $nd Te&t?.Te&t QN 4 Then $nd Te&t?.Te&t QN 4 Then

ElseIf Te&tF.Te&t R 4 Te&t8 .Te&t N 44 End If Else

$nd Te&t?.Te&t QN 4

Then

If Te&t?.Te&t QN 4 Then Te&t8 .Te&t N 4 ElseIf Te&t?.Te&t QN < Te&t8 .Te&t N 6 ElseIf Te&t?.Te&t QN 4 Te&t8 .Te&t N 5 ElseIf Te&t?.Te&t QN 8 Te&t8 .Te&t N 8 ElseIf Te&t?.Te&t R 8 /sgBo& O not possi!le O End If End If Te&t88.Te&t N <4 Te&t8<.Te&t N 4 Te&t8;.Te&t N Val@Te&t8 .Te&tB H Val@Te&t88.Te&tB H Val@Te&t8<.Te&tB Te&t87.Te&t N Val@Te&t8;.Te&tB # Val@Te&t5.Te&tB rs./ove>ast If Te&t8.Te&t N rs@8B Then : N rs@84B Te&t84.Te&t N : H 8 Else Te&t84.Te&t N 8 End If End 1u! LLLLLLLLLLLLLLLLLLLLLLLL /=0EC 1$VI091 LLLLLLLLLLLLLLLLLLLLLLLL Then Then Then Then

=ption E&plicit +im d! $s +ata!ase +im rs $s *ecordset +im a $s Integer 2rivate 1u! 3om!o8M3lic:@B rs./ove(irst ,hile 0ot rs.E=( If 3om!o8.Te&t N rs@ B Then 3all data End If rs./ove0e&t ,end End 1u! 2rivate 1u! 3om!o<M>ost(ocus@B Te&t5.Te&t N ?.5 Te&t?.Te&t N +ate End 1u! 2rivate 1u! 3ommand8M3lic:@B .nload /e (orm6.1how End 1u! 2rivate 1u! 3ommand<M3lic:@B If 0ot rs.B=( Then rs./ove>ast a N rs@ B 3all clear

3om!o8.Te&t N a H 8 Else 3om!o8.Te&t N 8 8 End If Te&t?.Te&t N +ate Te&t8.1et(ocus 3ommand;.Ena!led N True End 1u! 2rivate 1u! 3ommand;M3lic:@B 3all save rs./ove>ast 3om!o8.$ddItem rs@ B /sgBo& Orecord savedO 3all clear 3ommand;.Ena!led N (alse End 1u! 2rivate 1u! 3ommand7M3lic:@B 3all clear End 1u! 2rivate 1u! (ormM>oad@B 1et d! N =pen+ata!ase@O3:P/C +=3./E0T1P1E1H.P2=1T=((./+BOB 1et rs N d!.=pen*ecordset@OmoneysavingsOB If rs.B=( $nd rs.E=( Then /sgBo& Ono record e&istsO Else rs./ove(irst ,hile 0ot rs.E=( 3om!o8.$ddItem rs@ B

rs./ove0e&t ,end End If 3ommand;.Ena!led N (alse End 1u! 2u!lic 1u! clear@B 3om!o8.Te&t N OO Te&t8.Te&t N OO Te&t<.Te&t N OO Te&t;.Te&t N OO Te&t7.Te&t N OO Te&t4.Te&t N OO Te&t6.Te&t N OO Te&tF.Te&t N OO 3om!o<.Te&t N OO Te&t5.Te&t N OO Te&t?.Te&t N OO Te&t8 .Te&t N OO Te&t88.Te&t N OO Te&t8<.Te&t N OO Te&t8;.Te&t N OO Te&t87.Te&t N OO Te&t84.Te&t N OO End 1u! 2u!lic 1u! save@B rs.$dd0ew rs@ B N 3om!o8.Te&t rs@8B N Te&t8.Te&t rs@<B N Te&t<.Te&t

rs@;B N Te&t;.Te&t rs@7B N Te&t7.Te&t rs@4B N Te&t4.Te&t rs@6B N Te&t6.Te&t rs@FB N Te&tF.Te&t rs@5B N 3om!o<.Te&t rs@?B N Te&t5.Te&t rs@8 B N Te&t?.Te&t rs@88B N Te&t8 .Te&t rs@8<B N Te&t88.Te&t rs@8;B N Te&t8<.Te&t rs@87B N Te&t8;.Te&t rs@84B N Te&t87.Te&t rs@86B N Te&t84.Te&t rs..pdate End 1u! 2u!lic 1u! data@B 3om!o8.Te&t N rs@ B Te&t8.Te&t N rs@8B Te&t<.Te&t N rs@<B Te&t;.Te&t N rs@;B Te&t7.Te&t N rs@7B Te&t4.Te&t N rs@4B Te&t6.Te&t N rs@6B Te&tF.Te&t N rs@FB 3om!o<.Te&t N rs@5B Te&t5.Te&t N rs@?B Te&t?.Te&t N rs@8 B Te&t8 .Te&t N rs@88B Te&t88.Te&t N rs@8<B

Te&t8<.Te&t N rs@8;B Te&t8;.Te&t N rs@87B Te&t87.Te&t N rs@84B Te&t84.Te&t N rs@86B End 1u! 2rivate 1u! Te&t8 Mlostfocus@B +im i, : $s Integer +im amt, inte $s +ou!le If Te&t8 .Te&t R 4 Then If 3om!o<.Te&t N O8CE$*O Then Te&t88.Te&t N *ound@Val@Te&t8 .Te&tB ' 8<B a N 8< Te&t8;.Te&t N +ate$dd@OmO, 8<, +ateB ElseIf 3om!o<.Te&t N O<CE$*1O Then Te&t88.Te&t N *ound@Val@Te&t8 .Te&tB ' <7B a N <7 Te&t8;.Te&t N +ate$dd@OmO, <7, +ateB ElseIf 3om!o<.Te&t N O;CE$*1O Then Te&t88.Te&t N *ound@Val@Te&t8 .Te&tB ' ;6B a N ;6 Te&t8;.Te&t N +ate$dd@OmO, ;6, +ateB ElseIf 3om!o<.Te&t N O4CE$*1O Then Te&t88.Te&t N *ound@Val@Te&t8 .Te&tB ' 6 B aN6 Te&t8;.Te&t N +ate$dd@OmO, 6 , +ateB End If Else /sgBo& O minimum deposited amount should !e 4 Te&t8 .Te&t N OO Te&t88.Te&t N OO *s.O

End If inte N

amt N Val@Te&t88.Te&tB (or i N 8 To a inte N *ound@@amt H inteB L @8. 8BB S/sgBo& inte S/sgBo& i 0e&t Te&t8<.Te&t N inte # Val@Te&t8 .Te&tB Te&t87.Te&t N inte rs./ove>ast If Te&t?.Te&t N rs@8 B Then : N rs@86B Te&t84.Te&t N : H 8 Else Te&t84.Te&t N 8 End If End 1u!

LLLLLLLLLLLLLLLLLLLLLLLLLLLLL 1$>E1 LLLLLLLLLLLLLLLLLLLLLLLLL

=ption E&plicit +im d! $s +ata!ase +im rs $s *ecordset +im a $s Integer 2rivate 1u! 3om!o8M3lic:@B rs./ove(irst ,hile 0ot rs.E=( If 3om!o8.Te&t N rs@ B Then Te&t8.Te&t N rs@8B 3om!o<.Te&t N rs@<B Te&t<.Te&t N rs@;B 3om!o;.Te&t N rs@7B Te&t;.Te&t N rs@4B Te&t7.Te&t N rs@6B Te&t4.Te&t N rs@FB Te&t6.Te&t N rs@5B End If rs./ove0e&t ,end 3ommand;.Ena!led N (alse End 1u! 2rivate 1u! 3om!o;Mlostfocus@B If 3om!o;.Te&t N OsingleO Then Te&t;.Te&t N .4 ElseIf 3om!o;.Te&t N OreplyO Then Te&t;.Te&t N 8 ElseIf 3om!o;.Te&t N OprintO Then Te&t;.Te&t N ; ElseIf 3om!o;.Te&t N OcompetitionO Then

Te&t;.Te&t N 4 ElseIf 3om!o;.Te&t N OenvolopO Then Te&t;.Te&t N ; ElseIf 3om!o;.Te&t N OenglandcoverO Then Te&t;.Te&t N < End If Te&t7.1et(ocus End 1u! 2rivate 1u! 3ommand<M3lic:@B rs./ove>ast a N rs@ B 3om!o8.Te&t N a H 8 Te&t8.Te&t N +ate 3om!o<.Te&t N OO Te&t<.Te&t N OO 3om!o;.Te&t N OO Te&t;.Te&t N OO Te&t7.Te&t N OO Te&t4.Te&t N OO Te&t6.Te&t N OO 3om!o<.1et(ocus 3ommand;.Ena!led N True End 1u! 2rivate 1u! 3ommand;M3lic:@B

rs.$dd0ew rs@ B N 3om!o8.Te&t

rs@8B N Te&t8.Te&t rs@<B N 3om!o<.Te&t rs@;B N Te&t<.Te&t rs@7B N 3om!o;.Te&t rs@4B N Te&t;.Te&t rs@6B N Te&t7.Te&t rs@FB N Te&t4.Te&t rs@5B N Te&t6.Te&t rs..pdate /sgBo& Orecord savedO rs./ove>ast 3om!o8.$ddItem rs@ B 3ommand;.Ena!led N (alse End 1u! 2rivate 1u! 3ommand6M3lic:@B .nload /e (orm6.1how End 1u! 2rivate 1u! (ormM>oad@B 1et d! N =pen+ata!ase@O3:P/C +=3./E0T1P1E1H.P2=1T=((./+BOB 1et rs N d!.=pen*ecordset@OsalesOB 3ommand8.Visi!le N (alse 3ommand7.Visi!le N (alse 3ommandF.Visi!le N (alse 3ommand;.Ena!led N (alse rs./ove(irst ,hile 0ot rs.E=( 3om!o8.$ddItem @rs@ BB

rs./ove0e&t ,end

3ommand;.Ena!led N (alse End 1u! 2rivate 1u! Te&t7M>ost(ocus@B +im : $s Integer Te&t4.Te&t N Val@3om!o<.Te&tB L Val@Te&t<.Te&tB H Val@Te&t;.Te&tB L Val@Te&t7.Te&tB rs./ove>ast If Te&t8.Te&t N rs@8B Then : N rs@5B Te&t6.Te&t N : H 8 Else Te&t6.Te&t N 8 End If End 1u!

LLLLLLLLLLLLLLLLLLLLL /$I0 (=*/ LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 2rivate 1u! EM3lic:@B

End End 1u! 2rivate 1u! moM3lic:@B >oad (orm8 (orm8.1how End 1u! 2rivate 1u! msM3lic:@B >oad (orm7 (orm7.1how End 1u! 2rivate 1u! *M3lic:@B >oad (ormF (ormF.1how End 1u! 2rivate 1u! rpM3lic:@B >oad (orm< (orm<.1how End 1u! 2rivate 1u! sM3lic:@B >oad (orm4 (orm4.1how End 1u! 2rivate 1u! spM3lic:@B >oad (orm; (orm;.1how End 1u!

RE2ORTS"

CONCLUSION

$ computeriDed postal department system has !een developed and the system was tested with sample data. The system results in regular timely preparations of re)uired outputs. In comparison with manual system the !enefits under a computer system are considera!le in the saving of man power wor:ing hours and Eiffel. 2rovision for addition and deletion of customers is there in the system it is possi!le to view that proper filling system has !een adopted to slate date for future. The entire pro"ect runs on windows environments. The system can !e used to ma:e !etter management descri!ed at appropriate time. The user gets amount and timely information system.

13=2E =( E0H$03E/E0T
The system may !e further updated or modified at will owing to its simple structure. If the organiDation willing the add a new module that would allow the vendor to the post office system. /ore over the developed system does not provide any :ind of facility for ma:ing of the information.

BIBLIOGRA2HY

aB !B cB dB

/1 T $33E11 VI1.$> B$1E V=>./E 8688

####### IV$0 B$C *=11 ###### 1.1.I 2*E11

+$T$ B$1E /$0$9E/E0T 1C1TE/1 ##### A=*TH 1C1TE/ $0$>C1I1 $0+ +E1I90 ###### I$/E1 $.1E00

S-ar putea să vă placă și