A Project Report On "College Pay Roll Management System": Department of Computer Science G.C.W Parade, Jammu (2012-2013)
A Project Report On "College Pay Roll Management System": Department of Computer Science G.C.W Parade, Jammu (2012-2013)
A Project Report On "College Pay Roll Management System": Department of Computer Science G.C.W Parade, Jammu (2012-2013)
A Project Report submitted to partial fulfillment of the requirement for the degree of Bachelors of Computer Sciences.
SUBMITTED TO:-
CERTIFICATE
This is to certify that PRITI BAGAL, MONI!A S"ARMA, RAD"I!A "ANDA, NE"A GUPTA have prepared the report on the project entitled "COLLEGE PAY ROLL MANAGEMENT SYSTEM" under my supervision and guidance .Further they have fulfilled all the statutory requirements for the submission of the project. the project report is found worthy of acceptance for the award of Bachelor of Computer Application.
AC!NOWLEDGEMENT
,e are con-inced that it is -irtuall. impossible for us to underta/e and complete a project of this /ind 0ithout the encouragement1 guidance and assistance from teachers and friends. At the -er. outset 0e e2press our heartfelt gratitude to persons1 our guide Mr. Bharat Mahajan for his sincere ad-ice1 inspiring guidance1 constructi-e criticism 1 fruitful suggestions 1 useful super-ision and importantl.1 for allo0ing us to ta/e up this project. %o 0ords of gratitude are sufficient to appreciate the encouragement 0e ha-e been recei-ing from time to time from our teachers1 in all our .ears of learning. *ast but not the least 0e remain grateful to our parents and our classmates for their moral support and inspiration in the completion of this stud.. PR!! I BA'A* M(%I+A S&ARMA RA"&I+A &A%"A
G.C.W PARADE 3
%!&A 'UP A
INDEX
S%(.
3. 5. 35 9. 3: ;. 5= >. 55 7. 5; 8. 95
C(% !% S
I% R("UC I(%
PA'! %(.
3 567 86 396 3<6 536 596 5>6
S#S !M "!4!*(PM!% S RA !R'# S#S !M A%A*#SIS S#S !M "!SI'% "A A )*(, "IA'RAM !R6"IA'RAM ,(R+I%' !%4IR(%M!% !C&%(*('# ?4B.%! @
G.C.W PARADE
G.C.W PARADE
INTRODUCTION
Every employee ee!" #o $e p%&! 'or #(e "erv&)e" (e*"(e prov&!e"+ For #(&" #(e employer m,"# (%ve % p%yroll "y"#em+ T(e p%yroll "y"#em &" % ',ll 'e%#,re! "y"#em #(%# m% %-e" '& % )&%l & 'orm%#&o o' every employee & % or-% &.%#&o + I %))o, #& - p%yroll re'er" #o #(e %mo, # p%&! #o #(e employee #(%# &" #(e /%-e"0 $o ,"e" % ! #(e !e!,)#&o "+ T(e pr&m%ry m&""&o o' #(e p%yroll !ep%r#me # &" #o e ",re #(%# %ll employee" %re p%&! %)),r%#ely % ! #&mely /&#( #(e )orre)# /&#((ol!& -" % ! !e!,)#&o " % ! #o e ",re #(e /&#((ol!& -" % ! !e!,)#&o " %re reem&##e! & % #&mely m% er+ T(&" & )l,!e" "%l%ry p%yme #"0 #%1 /&#((ol!& -" % ! !e!,)#&o " ",)( %" 2PF0 I ",r% )e"0 % ! 3o% #%4e % ! "o o 'rom % p%y )(e)4
SI2NIFICANCE:T(e p,rpo"e o' #(&" pro5e)# &" #o prov&!e #(e p%y pro)e""& - "y"#em #(%# /&ll m%& #%& employee !%#% % ! )%l),l%#e #(e "%l%ry o' %ll employee" o' o,r )olle-e % ! #o "e%r)( #(e employee $y employee )o!e+
G.C.W PARADE
C"ARTER 1
G.C.W PARADE
INTRODUCTION
Before developing any software product* there must be a deep consideration related to its cycle and optimum choice of the software development model. 'election of appropriate model for the project or software product* guarantee the completion of the project a wor+ proceeds in systematic fashion. There are different software process models are available in the software engineering. These are ,inear 'equential -odel or .aterfall -odel* The /rototype -odel* The !A -odel* The 0ncremental -odel* The 'piral -odel etc. Among these the .aterfall -odel is the oldest and the most widely used paradigm for software engineering. 0t is also best suits to the project. That1s why we had started project +eeping view of this model in the mind. The waterfall model suggests a systematic sequential approach to software development that begins at the system level and progress through analysis* design* coding* testing and maintenance. This is shown in the figure as follows2
G.C.W PARADE
System/Informatio n Engineering
Analysis
Design
Code
Test
A$A!%SIS
FEASIBILTY STUDY
.e evaluate the e5isting system and procedures analysis of alternative candidate system. Feasibility of the proposed system is studied ta+ing consideration of different factors* such as cost estimation of the project* technical specification etc.
ANALYSIS
etailed evaluation and data collection are the main issue at this stage . iagnosis of the situations is done with a fine aim* with the boundaries of the system in the mind to produce a report based on the findings. The requirements of both system 6 software are documented 6 revived with the user.
DESIGN
G.C.W PARADE
CODING
The coding step performs the translations of the design representations into an artificial language e.g. C* C77* $0'#A, BA'0C* 8A$A etc. !esulting in instructions that can be e5ecuted by the computer. 0t* thus involves developing computer programs that meet the system specification of the design stage.
TESTING
The Testing process focuses on the logical internals of the software* ensuring that all statements have been tested on functional e5ternals* that is* conducting tests using various test data to uncover errors 6 ensure that defined input will produce actual results that agree with required results. The various types of testing done on the system are 9 #nit Testing* 0ntegration Testing* $alidation Testing* :utput Testing 6 #ser Acceptance Testing* /erformance Testing* Alpha and beta Testing etc.
IMPLEMENTATION
0mplementation is primarily concerned with user training* site preparations and file conversion. The new system may be totally new system replacing an e5isting manual system or automated system* or it may be major modification to the e5isting system. 0t involves the of the design specifications into source code 6 debugging* documentation 6 unit testing of the source code.
MAINTENANCE
Again factor of software 6 hardware causes maintenance. The software product will undoubtedly undergo changes after is has been delivered to the customers. 'oftware maintenance reapplies each of the preceding steps to an e5isting program rather than
G.C.W PARADE
C"APTER 2
S#S !M A%A*#SIS
G.C.W PARADE )
SYSTEM ANALYSIS
OBJECTI6ES OF STUDYIN2 MAN2EMENT SYSTEM PAYRO33
T*is st+dy aims to de,elo- a relia.le and managea.le /om-+teri0ed -ayroll management system for t*e .etter management of t*e organi0ation1 T*e o.2e/ti,e of t*e st+dy is to a//ess t*e -resent -ayroll system i1e1 11 To find o+t t*e +nderlying -ro.lems in t*e -resent system1 21 To find o+t t*e -ro/ed+re of t*e -resent system1
G.C.W PARADE 3
PRESENT SYSTEM45
In a go,ernment /ollege of 678 go,ernment e,ery tea/*ing and non5 tea/*ing em-loyee is -aid as -er t*e &'C APPRO9ED ( T: PA% CO""ISSIO$ in a /ollege ; <*en an em-loyee is sele/ted ; a ser,i/e .oo= is maintained in <*i/* *is initial -ay is <ritten <it* all allo<an/es and grade -ay and finally *is salary is /al/+lated1 T*e /on/erned /ollege <*ere *e or s*e is -osted -la/es t*e detail of t*e em-loyee in t*e -ayroll register and -ays a//ordingly e,ery mont*1 :e or s*e *as to sign in t*e register after salary is -aid1
RE7UIREMENT ANA3YSIS
G.C.W PARADE @
PROPOSED SYSTEM
T*e system <*i/* <e are designing to maintain t*e salary is soft<are <it* t*e name College Payroll management system <*i/* at initial stage <ill =ee- t*e re/ord of all t*e em-loyees1 It <ill add t*e -ersonal details and -ay details in t*e data files and on t*at .asis at t*e end of e,ery mont*; it <ill /al/+late t*e salary and generate t*e -ay sli-1 Any alteration or modifi/ation <ill also .e allo<ed in t*is system1 It <ill also =ee- t*e re/ord of 'P# ded+/ted and any loan ad,an/es1
G.C.W PARADE
1A
BENEFITS
OF
11 T*e -ro-osed system <ill re/ord all data in all re-orts at t*e same time; 21 Em-loyers <ill ne,er *a,e to s-end m+/* time in =ee-ing +- to date <it* ta?es and ded+/tions .e/a+se t*e system <ill .e designed +-dated to s+/* ded+/tions1 31 Storage of files <ill .e safe and se/+red <it* B&ser name and Pass<ordsC and easily /an .e a//essed1 41 D+i/= retrie,al of any re-ort1 51 Self des/ri.ing Pay sli-1 (1 !ess man -o<er1
FEASIBI3ITY STUDY
G.C.W PARADE
11
T*e main o.2e/ti,e of t*e feasi.ility st+dy is to test t*e te/*ni/al; o-erational and e/onomi/al feasi.ility of de,elo-ing a /om-+ter system a--li/ation1
T*e follo<ing feasi.ility st+dies <ere /arried o+t for t*e -ro-osed system45
ECONOMIC FEASIBI3ITY: 5 An e,al+ation of de,elo-ment /ost <eig*ed against t*e in/ome of .enefit deri,ed from t*e de,elo-ed system1 :ere t*e de,elo-ment /ost is e,al+ated .y <eig*ing it against t*e +ltimate .enefits from t*e ne< system1 T*e -ro-osed system is e/onomi/ally feasi.le if t*e .enefits o.tained in t*e long r+n /om-ensate rat*er t*an o,erdo t*e /ost in/+rred in designing and im-lementing1 In t*is /ase t*e .enefits o+t<eig* t*e /ost t*at ma=es t*e system e/onomi/ally feasi.le1
G.C.W PARADE
12
TECHNICA3 FEASIBI3ITY: 5 A st+dy of f+n/tion -erforman/e and /onstraints t*at may affe/t t*e a.ility to a/*ie,e t*e a//e-ta.le system1 A system is te/*ni/ally feasi.le; if it /an .e designed and im-lemented <it*in t*e limitations of t*e a,aila.le reso+r/es li=e f+nds; *ard<are; soft<are et/1 T*e /onsiderations t*at are normally asso/iated <it* te/*ni/al feasi.ility in/l+de de,elo-ment ris= reso+r/es a,aila.ility and te/*nology1 "anagement -ro,ides latest *ard<are and soft<are fa/ilities for s+//essf+l /om-letion of t*e -ro2e/t1
T*e -ro-osed system is te/*ni/ally feasi.le as t*e te/*nology <e are +sing E,.1netF is f+lly /a-a.le to im-lement o+r -ro2e/ts re>+irement analysis t*at <as -erformed in t*e analysis se/tion1
OPERATIONA3 FEASIBI3ITY: 5 T*e -ro2e/t is o-erational feasi.le as it /an .e im-lemented easily also <e /an see t*at it is somet*ing for general -+.li/ t*at <ill ma=e it more -o-+lar1
BEHA6IORA3 FEASIBI3ITY: - BAn e,al+ation of t*e .e*a,ior of t*e end +sers; <*i/* may affe/t t*e de,elo-ment of t*e system1C T*e +ser s*o< minimal resistan/e to /*ange; .+t t*ey are satisfied <it* f+n/tionality -ro,ided in t*e -ro-osed system1
G.C.W PARADE
13
SCHEDU3E FEASIBI3ITY: - BE,al+ates t*e time ta=en in t*e de,elo-ment of t*e -ro2e/tC1 T*e system *as s/*ed+le feasi.ility1
C"APTER 3
S#S !M "!SI'%
G.C.W PARADE 14
INTRODUCTION
'oftware design* the most creative and challenging phase of 'ystem ,ife Cycle* follows system analysis. Blueprint of the project and its implementation is prepared at this stage. $arious steps proceed in these steps are2 etermine of output to be produced and its format specification. 0nput* data and master files are designed. etails related to justification of the system and an estimation of impact of the proposed system on the user and the organi;ation are documented and evaluated by the management.
G.C.W PARADE
15
SYSTEM DESIGN
'ystem design is a solution* >":. T: A//!:AC"? to the creation of a new system. This important phase is composed of several steps. 0t provides the understanding and procedural details necessary to implement the system. This may be referred as a system development methodology* which is a vital part of software engineering. There are several methodologies* which can be used for the development of the system. These are !A * .aterfall model* 0ncremental model etc.
G.C.W PARADE
1(
Test programs
2o #o &mpleme #%#&o
DETAILED DESIGN uring this phase the database and the program modules are designed and detailed user procedure is documented. The interface between the system user and the computer are also defined. etailed design involves adaption of e5isting code* modification of standard algorithms* and invention of new algorithms and design of data representation. etailed design is strongly influenced by the programming languages used to implement the system* but it is not concerned with the synthetic aspect of implementation language.
G.C.W PARADE
1)
ARCHITECTURAL DESIGN
Architectural design involves identification the software components* decoupling them and decomposing them in to processing modules and conceptual data structures and specifying the interconnection among components. (ood notation can clarify the
G.C.W PARADE 13
:ne of the best<+nown design approaches is widely followed in designing projects normally +nown as >&%T0T) = !&,AT0:%'"0/ 0A(!A- 3&! 4?. &! helps in capturing the business rules governing the data relationship of the system and is a convention aid for communicating with ends users in the conceptual design stages. &! consist of2 &ntity2 it is the ten used to describe any object* place* person and concept* activity that the enterprise recogni;es in the area under investigation and store data about it. 0t is diagrammatically represented as bo5es Attribute2 they are the data elements used to describe the properties @qualities that distinguish the entities. !elationship2 it is an association or connection between two or more entities. They are diagrammatically represented as arrowhead. A unary relationship is a relationship between instances of same entity. A binary relationship is a relationship between two entities. An %< array relationship is a relationship among An entities. 0t is defined only when the relationship doesnBt have a meaning without the participation of all the An1 entities.
INPUT DESIGN >0nput design is a process of converting user oriented inputs to a computeri;ed format?. 0nput design is the basic thing to be considered in the system design. 0n this process the input screens for the data entry. 0n such an interfaced design* the user inputs the data by filling the ban+s basis on the screens. &ach entry from has its own command button* which provides users the facility to insert a new world record* delete
G.C.W PARADE 1@
OUTPUT DESIGN This is based on user requirements and the format is designed +eeping views of hose necessities. thus2?the output design emphasi;es on providing a hard copy of information required or displaying the output on a C!T screen in a predefined format?. FORMS DESIGN Computer out Cput is the most important and direct source of information to the user. "ence* an intelligent and efficient output design improves the system relationship with the user and helps in decision = ma+ing. A major forms of output is the hard copy from the printer >.forms design elaborates on the way output is presented and the layouts available for capturing information >. The data available in any system is vital to that system. 'o1 the data must be provided in the right forms for input and the information produced must be in a format acceptable to the user. >A form is a tool with a message2 it is a physical carrier of data of information >. A poorly designed form is a poor administration tool. The suffecient space has been provided in all forms to avoid comple5ity and over crowing of data. "ence F:!-' must be attractive and graphical user interface. USER INTERFACE DESIGN Any software product in addition to being effective and fast in functionality should also be user friendly. For designing a good (#0 developer should consider the following principles2 Clarity $isual feedbac+ (ood response Audible feedbac+ Traceable paths
G.C.W PARADE
2A
PROCESS DESIGN The process design gives insight into the way in which the processing is done in the system. "ere* the processing is done through menus and application is complete event driven.
C&AP !R ;
G.C.W PARADE
22
C"APTER #
!R6"IA'RAM
G.C.W PARADE
23
G.C.W PARADE
24
G.C.W PARADE
25
C"APTER $
WOR!ING EN%IRONMENT
8OR9IN2 EN6IRONMENT
TECHNICA3 SPECIFICATIONS:-
HARD8ARE EN6IRONMENT
G.C.W PARADE 2(
SOFT8ARE EN6IRONMENT
OPERATIN2 SYSTEM: - M&)ro"o'# 8& !o/" >P*6&"#%+ BAC9 END: - M&)ro"o'# S73 Server (<==?) FRONT END: - 6B+NET CASE TOO3: - M&)ro"o'# /or! <==@
G.C.W PARADE
2)
C"APTER &
TEC"NOLOGY (%B.NET
-icrosoft $isual 'tudio is a suite or collection of software development tools. 0n DEED* -icrosoft released $isual 'tudio.%&T* an edition of visual studio designed with unique coding applications. $isual Basic.%&T is an object oriented computer language that can be viewed as an evolution of -icrosoft1s.
$isual Basic 3$B4 implemented on the -icrosoft .%&T framewor+ .The framewor+ contains a virtual machine called Common 0ntermediate ,anguage3C0,4.$isual 'tudio .%&T includes a source code editor with which you can edit program language codes .$isual 'tudio.%&T includes a source code editor *with which you can edit program language codes .$isual studio.%&T code is also compiled via the -icrosoft 0ntermediate ,anguage 3-'0,4 format .-'0, complies coding language native to the platform on which it is e5ecuted * enabling cross<platform code portability.
.NET FRAMEWOR!
G.C.W PARADE 2@
Framewor+ is a set of utilities or can say building bloc+s of our application system. .%&T framewor+ provides (#0 in a (#0 manner. .%&T is a platform independent but with a help of -:%:<C:-/0,AT0:% ')'T&- 3-C<'4.-C<' is a middle level interface. .%&T framewor+ provides interperoribility between languages i.e.* Common Type 'ystem 3CT'4. .%&T Framewor+ also includes the .%&T Common ,anguage !untime 3C,!4 which is responsible for maintaining the e5ecution of all application developed using the .%&T ,ibrary. The .%&T framewor+ consists primarily library of code. 0n short .%&T framewor+ includes no restrictions on the type of applications that are possible .The .%&T framewor+ allows the creation of windows applications *web applications and web services and a lot more .The .%&T framewor+ has been designed so that it can be used from any language including CF*C77*$isual basic *8<'cript and even older.
G.C.W PARADE
3A
ARC"ITECTURE
G.C.W PARADE 31
G.C.W PARADE
32
8INDO8S PRINTIN2
FORMS0
DRA8IN2
AND
&$&!)T"0%( ):# "&A! AB:#T $B.%&T development in the maga;ines or online seems to focus on features such as web services* using the browser as the delivery platform* A'/.%&T and other web based topics. The many improvements made to client side windows (#0 development under .%&T using the visual studio 0 & are barely mentioned. This may sound strange to say of a -icrosoft product* but (#0 development in visual studio is under<hyped9 there are in fact many improvements that $B programmers have long awaitedH Although we agree that using the browser as delivery platform is clearly becoming more and more important* we also feel pretty strongly that the traditional windows based client is not going away. 0n this chapter* we hope to counterbalance this general trend by showing you the fundamentals of the programming needed to build (#0s in $B.%&T. .e will not spend much time on how to use the !A 3!apid Application evelopment4 features of the 0 & * or the properties* methods and events for various controls in the te5tbo5< doing this justice would ta+e a boo+ at least as long as this one. 0nstead by concentrating on the programming issues involved* we hope to show you how (#0 development in .%&T wor+s. At that point* you can loo+ at the documentation as needed or wait for a complete boo+ on (#0 development to learn more. After discussing how to program with forms and controls* we ta+e up the basics of graphics programming in $B.%&T* which is quite a bit different than it was.
D. /osition it by clic+ing inside it and then dragging it to the correct location. J. !esi;e it by dragging one of the small square si;ing bo5es that the cursor points to.
33
G.C.W PARADE
MDI FORMS
0n earlier versions of $B* -ultiple ocument 0nterface 3- 04 applications required you to decide which form was the - 0 parent form at the design time. 0n .%&T you need only set is the - 0 container property of the form to true. )ou create the child forms at the design time or at run time via code* and then set their - 0 parent properties to reference a form whose is - 0 container property is true. This lets you do something that was essentially impossible in earlier versions of $B2 change a - 0 parent@child relationship at run time. 0t also allows an application to contain multiple - 0 parent forms.
G.C.W PARADE
34
J. 0s G-, based I. L. 0s part of the .%&T 'ystem. ata. ll assembly* rather than being language basedK M. 0s unli+ely to support legacy .indows NM clients. The other interesting point is that in order to have essential features such as two<phase commit* you need to use &nterprise 'ervices. 0n $BIE* a typical database application opened a connection to the database and then used that connection for all queries for the life of the program. 0n $B.%&T database access through A :.%&T usually depends upon disconnected data access 3detached data access4. This is a fancy way of saying that you most often as+ for the data from a database and then* after your program retrieves the data* the connection is dropped. .ith A :.%&T you are very* li+ely to have persistent connections to a data source. Because data is usually disconnected* a typical .%&T database application has to reconnect to the database for each query it e5ecutes. At first* this seems li+e a big step bac+ward but it really is not. The old way of maintaining the connection is not really practical for a distributed world2 if your application opens a connection to a database and leaves it open* the server has to maintain that connection until the client closes it. .ith heavily loaded servers pushing (oogle of bits of data* maintaining all those per<client connections is very costly in terms of band<width.
G.C.W PARADE
35
C"APTER '
G.C.W PARADE
3(
SCREEN S"OTS
L()*+ ,(-.:-
G.C.W PARADE
3)
G.C.W PARADE
33
G.C.W PARADE
3@
DEPARTMENT INFORMATION:-
G.C.W PARADE
4A
SALARY GENERATION:-
G.C.W PARADE
41
PAYBAND INFORMATION:-
G.C.W PARADE
42
C"APTER /
G.C.W PARADE 43
CODING
G.C.W PARADE
44
FORM 1(PAYBAND
Imports System Imports System.Data.SqlClient Public Class Form1 Dim cmdadd As New SqlCommand Dim cmddelete As New SqlCommand Dim cmdsearch As New SqlCommand Dim cmdedit As New SqlCommand Dim cnn As New SqlConnection ( Data Source!."S#$%&P'%SS(AttachDbFilename!C)"pro*ects"+,1+ pro*ects"payroll"payroll"payroll.md-(Inte.rated Security!/rue(Connect /imeout!0,(1ser Instance!/rue 2 Pri3ate Sub btnadd4Clic5 (6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btnadd.Clic5 ;Call -illte<tbo< (2 cmbpayband.Focus (2 /ry I- cnn.State ! 1 /hen cnn.Close (2 cnn.8pen (2 =s.6o< ( Connection 8pen> 2 %nd I;cnn.Close (2 Catch e< As %<ception =s.6o<( Can not open connection > %nd /ry ;cnn.8pen(2 /hen I- cmbpayband./e<t ?@ %lse
And label0./e<t ?@
And labelA./e<t ?@ B
cmdadd.Command/e<t ! INS%'/ IN/8 payband(pbcode9scale9.pay2 7A$1%S (; B cmbpayband./e<t B ;9; B label0./e<t B ;9 B labelA./e<t B 2( cmdadd.Command/ype ! Command/ype./e<t cmdadd.Connection ! cnn cmdadd.%<ecuteNon#uery(2 =s.6o<( 'ecord inserted success-ully. 2
G.C.W PARADE
45
2 paybandcode !
;=s.6o<(cmd1pdate.Command/e<t2 cmddelete.Command/ype ! Command/ype./e<t cmddelete.Connection ! cnn cmddelete.%<ecuteNon#uery(2 =s.6o<( 'ecord deleted. 2 %lse =s.6o<( %nter the required 3alues) B 3bNew$ine B +. scale etc.. 2 %nd Icnn.Close(2 cmddelete.Dispose(2 %nd Sub Pri3ate Sub btnedit4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btnedit.Clic5 ;Call -illte<tbo<(2 /hen I- cmbpayband./e<t ?@ And label0./e<t ?@ And labelA./e<t ?@ B 3bNew$ine B 1. payband Code
G.C.W PARADE
4(
cmdedit.Command/e<t ! 1PDA/% payband S%/ payband code ! ; B cmbpayband./e<t B ;9 scale!; B label0./e<t B ;9.rade pay!; B labelA./e<t B ;9 C:%'% paybandcode ! B cmbpayband./e<t B ( ;=s.6o<(cmd1pdate.Command/e<t2 cmdedit.Command/ype ! Command/ype./e<t cmdedit.Connection ! cnn cmdedit.%<ecuteNon#uery(2 =s.6o<( 'ecord updated. 2 %lse =s.6o<( %nter the required 3alues) B 3bNew$ine B +. scale etc.. 2 %nd Icnn.Close(2 cmdedit.Dispose(2 %nd Sub Pri3ate Sub btnsearch4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btnsearch.Clic5 Call -illte<tbo<(2 Dim 3Search As Strin. ! Input6o<( %nter payband Code to search ) 2 cnn.8pen(2 I- 3Search ?@ /hen cmdsearch.Command/e<t ! 3Search cmdsearch.Connection ! cnn Dim rdrS#$ As SqlData'eader ! cmdsearch.%<ecute'eader I- rdrS#$.'ead ! /rue /hen cmbpayband./e<t B! rdrS#$.Item(,2./oStrin. label0./e<t B! rdrS#$.Item(12./oStrin. labelA./e<t B! rdrS#$.Item(+2./oStrin. S%$%C/ D F'8= payband C:%'% pbcode! B B 3bNew$ine B 1. payband Code
G.C.W PARADE
4)
G.C.W PARADE
43
G.C.W PARADE
4@
G.C.W PARADE
5A
G.C.W PARADE
51
G.C.W PARADE
52
G.C.W PARADE
53
G.C.W PARADE
54
G.C.W PARADE
55
G.C.W PARADE
5(
G.C.W PARADE
5)
G.C.W PARADE
53
F:!- D 3 &/A!T-&%T4
Imports System Imports System.Data.SqlClient Public Class Form+ Dim cmdadd As New SqlCommand Dim cmddelete As New SqlCommand Dim cmdedit As New SqlCommand Dim cmdsearch As New SqlCommand Dim cnn As New SqlConnection( Data Source!."S#$%&P'%SS(AttachDbFilename!C)"Pro*ects"+,1+ pro*ects"payroll.cwp"payroll"payroll"payroll.md-(Inte.rated Security!/rue(Connect /imeout!0,(1ser Instance!/rue 2 Pri3ate Sub btnadd4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btnadd.Clic5
G.C.W PARADE
5@
cnn.8pen(2 =s.6o<( Connection 8pen > 2 %nd I;cnn.Close(2 Catch e< As %<ception =s.6o<( Can not open connection > 2 %nd /ry ;cnn.8pen(2 cmdsearch.Command/e<t ! S%$%C/ D F'8= department cmdsearch.Connection ! cnn Dim rdrS#$ As SqlData'eader ! cmdsearch.%<ecute'eader Chile rdrS#$.'ead ! /rue cnt ! cnt O 1 %nd Chile cmdsearch.Dispose(2 cnn.Close(2 cmbdeptcode./e<t ! cnt O 1 t<tdeptname.Focus(2 I- t<tdeptname./e<t ?@ /hen cmdadd.Command/e<t ! INS%'/ IN/8 department(deptname9deptcode2 B 7A$1%S (; B t<tdeptname./e<t B ;9; B cmbdeptcode./e<t B ; 2( cnn.8pen(2 cmdadd.Command/ype ! Command/ype./e<t cmdadd.Connection ! cnn cmdadd.%<ecuteNon#uery(2 =s.6o<( 'ecord inserted success-ully. 2
cmdadd.Dispose(2 cnn.Close(2
G.C.W PARADE
(A
Pri3ate Sub 6uttonK4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles 6uttonK.Clic5 =e.Close(2 %nd Sub Pri3ate Sub Form+4$oad(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles =y6ase.$oad ;/8D8) /his line o- code loads data into the ;PayrollDataSet+.department; table. Eou can mo3e9 or remo3e it9 as needed. =e.Department/ableAdapter.Fill(=e.PayrollDataSet+.department2 ;/8D8) /his line o- code loads data into the ;PayrollDataSet1.department; table. Eou can mo3e9 or remo3e it9 as needed. ; =e.Department/ableAdapter.Fill(=e.PayrollDataSet1.department2 t<tdeptname.Focus(2 %nd Sub Pri3ate Sub Department6indin.Source4CurrentChan.ed(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 %nd Sub %nd Class
G.C.W PARADE
(1
G.C.W PARADE
(2
G.C.W PARADE
(3
G.C.W PARADE
(4
G.C.W PARADE
(5
G.C.W PARADE
((
G.C.W PARADE
()
F:!- J 3'A,A!)4
Imports System.Data Imports System.Data.SqlClient Public Class Form0 Dim tbasic As Inte.er Dim cmdadd As New SqlCommand Dim cmdSearch As New SqlCommand Dim cmddelete As New SqlCommand Dim cmdedit As New SqlCommand Dim cnn As New SqlConnection( Data Source!."S#$%&P'%SS(AttachDbFilename! C)"Pro*ects"+,1+ pro*ects"payroll.cwp"payroll"payroll"payroll.md-(Inte.rated Security!/rue(Connect /imeout!0,(1ser Instance!/rue 2 Pri3ate Sub Form04$oad(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles =y6ase.$oad cmbsalmonth.6e.in1pdate(2 Dim intloopinde< As Inte.er For intloopinde< ! 1 /o 1+ cmbsalmonth.Items.Add(=onthName(intloopinde<22 Ne<t cmbsalmonth.%nd1pdate(2 t<tempcode.Focus(2 ; =e.'eport7iewer1.'e-resh'eport(2 %nd Sub Pri3ate Sub btnprint4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btnprint.Clic5 Dim t For %ach t In =e.Controls I- /ype8- t Is /e<t6o< /hen I- t./e<t ! /hen =s.6o<( Complete %ntry> 2 %<it Sub %<it For %nd I%nd INe<t /ry I- cnn.State ! 1 /hen cnn.Close(2
G.C.W PARADE
(3
And t<tit./e<t ?@
cmdadd.Command/e<t ! INS%'/ IN/8 salary(salmonth9empcode9basicpay9da9hra9cca9.p9it9*i9.rosspay9netpay2 B 7A$1%S (; B cmbsalmonth./e<t B ;9 B t<tempcode./e<t B 9 B t<tbasic./e<t B 9 B t<tda./e<t B 9 B t<thra./e<t B 9 B t<tcca./e<t B 9 B t<t.p-./e<t B 9 B t<tit./e<t B 9 B t<t*i./e<t B 9 B t<t.ross./e<t B 9 B t<tnet./e<t B 2( cmdadd.Command/ype ! Command/ype./e<t cmdadd.Connection ! cnn cmdadd.%<ecuteNon#uery(2 =s.6o<( 'ecord inserted success-ully. 2 cmdadd.Dispose(2 cnn.Close(2 %nd I%nd Sub Pri3ate Sub btn.etdetails4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btn.etdetails.Clic5 I- t<tempcode./e<t ?@ /hen cmdSearch.Command/e<t ! B CInt(t<tempcode./e<t2 S%$%C/ D F'8= emppersonal C:%'% empcode!
cmdSearch.Connection ! cnn cnn.8pen(2 Dim rdrS#$ As SqlData'eader ! cmdSearch.%<ecute'eader I- rdrS#$.'ead ! /rue /hen I- cmbsalmonth./e<t ! Panuary 8r cmbsalmonth./e<t ! /hen
Puly
tbasic B
tbasic ! rdrS#$.Item(102./oStrin. tbasic ! tbasic O (tbasic D 0 Q 1,,2 cmdedit.Command/e<t ! 1PDA/% emppersonal S%/ basic! where empcode! B CInt(t<tempcode./e<t2 cmdedit.Command/ype ! Command/ype./e<t cmdedit.Connection ! cnn rdrS#$.Close(2 cmdedit.%<ecuteNon#uery(2 %nd I%nd IrdrS#$ ! cmdSearch.%<ecute'eader(2
G.C.W PARADE
(@
Pri3ate Sub Froup6o<+4%nter(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles Froup6o<+.%nter %nd Sub Pri3ate Sub btno54Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles btno5.Clic5 I- 7al(t<tbasic./e<t2 ? 7al(t<tpb./e<t2 /hen =s.6o<( 6asic 7alue should between Payband 7alue 9 =s.6o<Style.858nly2 %lse t<tda./e<t ! 7al(t<tbasic./e<t2 D J, Q 1,, t<thra./e<t ! 7al(t<tbasic./e<t2 D +, Q 1,, t<tcca./e<t ! +,, t<t.p-./e<t ! 7al(t<tbasic./e<t2 D L.J Q 1,, t<tit.Focus(2
G.C.W PARADE
)A
G.C.W PARADE
)1
G.C.W PARADE
)2
G.C.W PARADE
)3
G.C.W PARADE
)4
G.C.W PARADE
)5
G.C.W PARADE
)(
G.C.W PARADE
))
G.C.W PARADE
)3
G.C.W PARADE
)@
G.C.W PARADE
3A
G.C.W PARADE
31
G.C.W PARADE
32
G.C.W PARADE
33
G.C.W PARADE
34
%lse
cnn.8pen(2 =s.6o<( Connection 8pen > 2 %nd I;cnn.Close(2 Catch e< As %<ception =s.6o<( Can not open connection > 2 %nd /ry ;cnn.8pen(2 I- cmbscale.SelectedInde< ! , /hen t<tbasicpay./e<t ! J+,, O 7al(cmb.p./e<t2 %lseI- cmbscale.SelectedInde< ! 1 /hen t<tbasicpay./e<t ! H0,, O 7al(cmb.p./e<t2 %lseI- cmbscale.SelectedInde< ! + /hen t<tbasicpay./e<t ! 1JK,, O 7al(cmb.p./e<t2 %lseI- cmbscale.SelectedInde< ! 0 /hen t<tbasicpay./e<t ! 0H1,, O 7al(cmb.p./e<t2 %nd I-
I- t<tecode./e<t ?@ And t<tename./e<t ?@ And cmbedesi../e<t ?@ And cmbedept./e<t ?@ And cmbepb./e<t ?@ And t<teaddr./e<t ?@ And t<tetel./e<t ?@ And cmbemarital./e<t ?@ And cmbse<./e<t ?@ And dtdob./e<t ?@ And dtdo*./e<t ?@ /hen cmdadd.Command/e<t ! INS%'/ IN/8 emppersonal(empcode9name9desi.nation9dptname9pbcode9address9telephone9se<9dob9d o*9mstatus9scale9.pay9basic2 B 7A$1%S ( B t<tecode./e<t B 9; B t<tename./e<t B ;9; B cmbedesi../e<t B ;9; B cmbedept./e<t B ;9 ; B cmbepb./e<t B ;9; B t<teaddr./e<t B ;9 B t<tetel./e<t B 9 ; B cmbse<./e<t B ;9 ; B dtdob.7alue B ;9 ; B dtdo*.7alue B ;9; B cmbemarital./e<t B ;9; B cmbscale./e<t B ;9; B cmb.p./e<t B ;9 B t<tbasicpay./e<t B 2( cmdadd.Command/ype ! Command/ype./e<t cmdadd.Connection ! cnn cmdadd.%<ecuteNon#uery(2 =s.6o<( 'ecord inserted success-ully. 2
%lse =s.6o<( %nter the required 3alues) 2 %nd Icmdadd.Dispose(2 cnn.Close(2 %nd Sub
G.C.W PARADE
35
cmdSearch.Connection ! cnn Dim rdrS#$ As SqlData'eader ! cmdSearch.%<ecute'eader I- rdrS#$.'ead ! /rue /hen t<tecode./e<t B! rdrS#$.Item(,2./oStrin. t<tename./e<t B! rdrS#$.Item(12./oStrin. cmbedesi../e<t B! rdrS#$.Item(+2./oStrin. cmbedept./e<t B! rdrS#$.Item(02./oStrin. cmbepb./e<t B! rdrS#$.Item(A2./oStrin. t<teaddr./e<t B! rdrS#$.Item(J2./oStrin. t<tetel./e<t B! rdrS#$.Item(K2./oStrin. cmbse<./e<t B! rdrS#$.Item(I2./oStrin. t<tdob./e<t B! rdrS#$.Item(L2./oStrin. t<tdo*./e<t B! rdrS#$.Item(H2./oStrin. cmbemarital./e<t B! rdrS#$.Item(1,2./oStrin.
G.C.W PARADE
3(
cnn.8pen(2 =s.6o<( Connection 8pen > 2 %nd I;cnn.Close(2 Catch e< As %<ception =s.6o<( Can not open connection > %nd /ry
cmdedit.Command/e<t ! 1PDA/% emppersonal S%/ name ! ; B t<tename./e<t B ;9 desi.nation!; B cmbedesi../e<t B ;9dptname!; B cmbedept./e<t B ;9 pbcode!; B cmbepb./e<t B ;9address!; B t<teaddr./e<t B ;9telephone! B t<tetel./e<t B 9 se<!; B cmbse<./e<t B ;9 dob!; B dtdob.7alue B ;9 do*!; B dtdo*.7alue B ;9mstatus!; B cmbemarital./e<t B ; C:%'% empcode ! B t<tecode./e<t B ( ;=s.6o<(cmd1pdate.Command/e<t2 cmdedit.Command/ype ! Command/ype./e<t
G.C.W PARADE
3)
;=s.6o<(cmd1pdate.Command/e<t2 cmddelete.Command/ype ! Command/ype./e<t cmddelete.Connection ! cnn cmddelete.%<ecuteNon#uery(2 =s.6o<( 'ecord deleted. 2 %lse Code =s.6o<( %nter the required 3alues) B 3bNew$ine B B 3bNew$ine B 1. %mployee
G.C.W PARADE
33
Pri3ate Sub Froup6o<14%nter(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles Froup6o<1.%nter %nd Sub Pri3ate Sub $abel1A4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles $abel1A.Clic5
G.C.W PARADE
3@
G.C.W PARADE
@A
I- t<tecode./e<t ?@ And t<tename./e<t ?@ And cmbedesi../e<t ?@ And cmbedept./e<t ?@ And cmbepb./e<t ?@ And t<teaddr./e<t ?@ And t<tetel./e<t ?@ And cmbemarital./e<t ?@ And cmbse<./e<t ?@ And dtdob./e<t ?@ And dtdo*./e<t ?@ /hen cmdadd.Command/e<t ! INS%'/ IN/8 emppersonal(empcode9name9desi.nation9dptname9pbcode9address9telephone9se<9dob9d o*9mstatus9scale9.pay9basic2 B 7A$1%S ( B t<tecode./e<t B 9; B t<tename./e<t B ;9; B cmbedesi../e<t B ;9; B cmbedept./e<t B ;9 ; B cmbepb./e<t B ;9; B t<teaddr./e<t B ;9 B t<tetel./e<t B 9 ; B cmbse<./e<t B ;9 ; B dtdob.7alue B ;9 ; B dtdo*.7alue B ;9; B cmbemarital./e<t B ;9; B cmbscale./e<t B ;9; B cmb.p./e<t B ;9 B t<tbasicpay./e<t B 2( cmdadd.Command/ype ! Command/ype./e<t cmdadd.Connection ! cnn cmdadd.%<ecuteNon#uery(2 =s.6o<( 'ecord inserted success-ully. 2
%lse =s.6o<( %nter the required 3alues) 2 %nd Icmdadd.Dispose(2 cnn.Close(2 %nd Sub Pri3ate Sub FormA4$oad(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles =y6ase.$oad ;/8D8) /his line o- code loads data into the ;PayrollDataSet+.emppersonal; table. Eou can mo3e9 or remo3e it9 as needed. =e.%mppersonal/ableAdapter1.Fill(=e.PayrollDataSet+.emppersonal2 ;/8D8) /his line o- code loads data into the ;PayrollDataSet1.payband; table. Eou can mo3e9 or remo3e it9 as needed. =e.Payband/ableAdapter.Fill(=e.PayrollDataSet1.payband2 ;/8D8) /his line o- code loads data into the ;PayrollDataSet.emppersonal; table. Eou can mo3e9 or remo3e it9 as needed. =e.%mppersonal/ableAdapter.Fill(=e.PayrollDataSet.emppersonal2
G.C.W PARADE
@1
cmdSearch.Connection ! cnn Dim rdrS#$ As SqlData'eader ! cmdSearch.%<ecute'eader I- rdrS#$.'ead ! /rue /hen t<tecode./e<t B! rdrS#$.Item(,2./oStrin. t<tename./e<t B! rdrS#$.Item(12./oStrin. cmbedesi../e<t B! rdrS#$.Item(+2./oStrin. cmbedept./e<t B! rdrS#$.Item(02./oStrin. cmbepb./e<t B! rdrS#$.Item(A2./oStrin. t<teaddr./e<t B! rdrS#$.Item(J2./oStrin. t<tetel./e<t B! rdrS#$.Item(K2./oStrin. cmbse<./e<t B! rdrS#$.Item(I2./oStrin. t<tdob./e<t B! rdrS#$.Item(L2./oStrin. t<tdo*./e<t B! rdrS#$.Item(H2./oStrin. cmbemarital./e<t B! rdrS#$.Item(1,2./oStrin. rdrS#$.Close(2 cnn.Close(2 %<it Sub %lse =s.6o<( 'ecord not -ound 2 %<it Sub
G.C.W PARADE
@2
cmdedit.Command/e<t ! 1PDA/% emppersonal S%/ name ! ; B t<tename./e<t B ;9 desi.nation!; B cmbedesi../e<t B ;9dptname!; B cmbedept./e<t B ;9 pbcode!; B cmbepb./e<t B ;9address!; B t<teaddr./e<t B ;9telephone! B t<tetel./e<t B 9 se<!; B cmbse<./e<t B ;9 dob!; B dtdob.7alue B ;9 do*!; B dtdo*.7alue B ;9mstatus!; B cmbemarital./e<t B ; C:%'% empcode ! B t<tecode./e<t B ( ;=s.6o<(cmd1pdate.Command/e<t2 cmdedit.Command/ype ! Command/ype./e<t cmdedit.Connection ! cnn cmdedit.%<ecuteNon#uery(2 =s.6o<( 'ecord updated. 2 %lse Code =s.6o<( %nter the required 3alues) B 3bNew$ine B +. Name etc.. 2 B 3bNew$ine B 1. %mployee
G.C.W PARADE
@3
cnn.8pen(2 =s.6o<( Connection 8pen > 2 %nd I;cnn.Close(2 Catch e< As %<ception =s.6o<( Can not open connection > %nd /ry cmddelete.Command/e<t ! B t<tecode./e<t B
;=s.6o<(cmd1pdate.Command/e<t2 cmddelete.Command/ype ! Command/ype./e<t cmddelete.Connection ! cnn cmddelete.%<ecuteNon#uery(2 =s.6o<( 'ecord deleted. 2 %lse Code =s.6o<( %nter the required 3alues) B 3bNew$ine B +. Name etc.. 2 %nd Icnn.Close(2 cmddelete.Dispose(2 %nd Sub Pri3ate Sub btne<it4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 =e.Close(2 %nd Sub B 3bNew$ine B 1. %mployee
G.C.W PARADE
@4
Pri3ate Sub Froup6o<14%nter(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles Froup6o<1.%nter %nd Sub Pri3ate Sub $abel1A4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles $abel1A.Clic5 %nd Sub %nd Class
$8FIN F8'=
Imports System.Data Imports System.Data.SqlClient Public Class $o.inForm1
G.C.W PARADE
@5
parade
/hen
> 2
G.C.W PARADE
@(
G.C.W PARADE
@)
G.C.W PARADE
@3
=DI F8'=
Imports System.Cindows.Forms Public Class =DIParent1 Pri3ate Sub ShowNewForm(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 :andles New/oolStrip6utton.Clic5 ; Create a new instance o- the child -orm. FormA.Show(2 %nd Sub Pri3ate Sub 8penFile(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 :andles 8pen/oolStrip6utton.Clic5 Form0.Show(2 %nd Sub Pri3ate Sub Sa3eAs/oolStrip=enuItem4Clic5(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 Dim Sa3eFileDialo. As New Sa3eFileDialo. Sa3eFileDialo..InitialDirectory ! =y.Computer.FileSystem.SpecialDirectories.=yDocuments Sa3eFileDialo..Filter ! /e<t Files (D.t<t2TD.t<tTAll Files (D.D2TD.D I- (Sa3eFileDialo..ShowDialo.(=e2 ! System.Cindows.Forms.Dialo.'esult.8R2 /hen Dim FileName As Strin. ! Sa3eFileDialo..FileName ; /8D8) Add code here to sa3e the current contents o- the -orm to a -ile. %nd I%nd Sub
G.C.W PARADE
@@
Pri3ate Sub Cascade/oolStrip=enuItem4Clic5(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 =e.$ayout=di(=di$ayout.Cascade2 %nd Sub Pri3ate Sub /ile7ertical/oolStrip=enuItem4Clic5(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 =e.$ayout=di(=di$ayout./ile7ertical2 %nd Sub Pri3ate Sub /ile:oriGontal/oolStrip=enuItem4Clic5(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 =e.$ayout=di(=di$ayout./ile:oriGontal2 %nd Sub Pri3ate Sub Arran.eIcons/oolStrip=enuItem4Clic5(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 =e.$ayout=di(=di$ayout.Arran.eIcons2 %nd Sub Pri3ate Sub CloseAll/oolStrip=enuItem4Clic5(6y7al sender As 8b*ect9 6y7al e As %3entAr.s2 ; Close all child -orms o- the parent. For %ach ChildForm As Form In =e.=diChildren ChildForm.Close(2 Ne<t %nd Sub Pri3ate m4ChildFormNumber As Inte.er Pri3ate Sub 1pdate/oolStrip=enuItem4Clic5(6y7al sender As System.8b*ect9 6y7al e As System.%3entAr.s2 :andles 1pdate/oolStrip=enuItem.Clic5
G.C.W PARADE
1AA
G.C.W PARADE
1A1
G.C.W PARADE
1A2
G.C.W PARADE
1A3
G.C.W PARADE
1A4
G.C.W PARADE
1A5
G.C.W PARADE
1A(
=8D1$% C8D%
=odule =odule1 Public Sub -illte<tbo<(2 FormA.t<tecode./e<t ! FormA.t<tename./e<t ! FormA.t<teaddr./e<t ! FormA.t<tetel./e<t ! FormA.t<tdob./e<t ! FormA.t<tdo*./e<t ! FormA.cmbedept./e<t ! FormA.cmbedesi../e<t ! FormA.cmbemarital./e<t ! FormA.cmbepb./e<t ! FormA.cmbse<./e<t ! %nd Sub %nd =odule
AP$$ICA/I8N C8NFIF1'A/I8N
?V<ml 3ersion! 1., encodin.! ut-SL V@ ?con-i.uration@ ?con-i.Sections@ ?Qcon-i.Sections@ ?startup@ ?supported'untime 3ersion! 3A., s5u! .N%/Framewor597ersion!3A.,9Pro-ile!Client Q@ ?Qstartup@ ?connectionStrin.s@ ?add name! payroll%ntities connectionStrin.! metadata!res)QQDQ=odel1.csdlT res)QQDQ=odel1.ssdlTres)QQDQ=odel1.msl(pro3ider!System.Data.SqlClient(pro3ider connection strin.!Bquot(Data Source!."S#$%&P'%SS(AttachDbFilename!T DataDirectoryT"payroll.md-(Inte.rated Security!/rue(Connect /imeout!0,(1ser Instance!/rue(=ultipleActi3e'esultSets!/rueBquot( pro3iderName! System.Data.%ntityClient Q@ ?add name! payroll.=y.=ySettin.s.payrollConnectionStrin. connectionStrin.! Data Source!."S#$%&P'%SS(AttachDbFilename!T DataDirectoryT"payroll.md-(Inte.rated Security!/rue(Connect /imeout!0,(1ser Instance!/rue pro3iderName! System.Data.SqlClient Q@ ?add name! payroll.=y.=ySettin.s.ClientPAE'8$$ConnectionStrin. connectionStrin.! Data Source!TDataDirectoryT"PAE'8$$.sd-(=a< Database SiGe!+,AI pro3iderName! =icroso-t.SqlSer3erCe.Client.0.J Q@ ?QconnectionStrin.s@ ?Qcon-i.uration@
G.C.W PARADE
1A)
C"APTER 10
TESTING
G.C.W PARADE 1A3
INTRODUCTION
'oftware Testing is a critical element of software quality assurance and represents the ultimate review specification* design and coding. 0t plays a critical role in quality assurance for software. ue to limitations of the verification methods of the previous phase* design and requirement faults also appear in the code. Testing is used to detect all these errors in addition to those in the code. OBJECTIVES OF TESTING The main objectives of the testing are2 To e5ecute program with intent of finding an error. To chec+ the proper functioning of various modules of the system individually and to correct errors* if any. To chec+ and test the proper integration of all individually tested modules so as to establish proper interaction. To chec+ whether all the data fields in the database are consistent or not. To chec+ the accuracy and reliability of the system.
G.C.W PARADE
1A@
The individual modules were tested and results measured against manual calculations. %ecessary corrections and proper error handlers have been when error was detected. 'uitable test data was used. The users of the system were involved all through the testing procedure and their suggestions are considered. TYPES OF TESTING PERFORMED There are various types of testing studied under the 'oftware &ngineering course. 'ome of these are2 UNIT TESTING This concentrates on each unit of the software as implemented in source code. &ach system modules were tested individually. Chec+ing the uniqueness of the +ey values in client interface. 0nput output format %ecessary corrections
0t addresses the issues associated with the dual problems of verification and programming. Blac+ bo5 test design case techniques are the most prevalent at this stage. 0n this* many unit tested modules are combined into sub systems* which are then tested. The goal is to see if the modules can be integrated properly. "ence* the emphasis is on testing interfaces between modules.
SYSTEM TESTING 'ystem tested after integration of all modules. Chec+ing the module interaction and collective wor+ing. %ecessary corrections.
FUNCTIONAL TESTING
G.C.W PARADE
11A
BIB*('RAP&#
000.google.com 0i/ipedia 000.projecttopics.info
G.C.W PARADE
111