Sei sulla pagina 1di 100

CRM (A Client Relationship Management System) 1.

Introduction Of Visual Basic


What is Visual Basic: Visual Basic is not just a language it's an Integrated Development Environment in which you can develop, run, test and debug your applications. Standard EXE: A standard E E project is a typical application most o! the application in this language art standard E E project. Active X EXE, Active DLL: Active components are basic code"building components that do not have a visible inter!ace and that can add special !unctionality to your application. Active X !ontrol: Active control such as a #e$t Bo$ or %ommand Button control is a basic element o! the user inter!ace.I! the Active control, that come with visual basic do not provide the !unctionality you need, you can build your own custom controls . Active X Docu"ent EXE, Active X Docu"ent DLL: #hat can run in the environments o! a container that supports hyper lin&ing. VB A##lication Wi$ard, VB Wi$ard %ana&er: #he application wi'ard ta&es you through the stenos o! setting up the (&elton o! a new application. Data 'ro(ect: It is identical to the (tandard E E project type, but it automatically

96

CRM (A Client Relationship Management System)


adds the controls that are used in accessing databases to the toolbo$. D)*% A##lication: VB) allows you to build dynamic *#+, page that can be displayed in the browser's window on a client computer.Instead o! showing you how to use VB's tool to automate the process o! designing"D*#+, pages. )S A##lication: VB) allows you to build applications that run on the web server and interact with client over the internet with the internet in!ormation server. VB Enter#rise Edition !ontrols: It simply creates a new standard E E project and load all the tools o! the enterprise edition o! VB. 'ro(ect E+#lorer: #he window tootled project e$plorer displays the components o! the project .#he project window is called project e$plorer because it has the loo& o! the window e$plorer. 'ro#erties Windo,: #he property window contains the property o! setting !or the selected control properties are attributes o! an object ,such as its si'e, caption and color . -ou can adjust the appearance o! the controls and the !orm with point and clic& operations. -or" Desi&ner: #he !orm designer is the main window in the middle o! the screen ,and in it you design and edit the applications user inter!ace .#he same windows display a test editor in which you can enter and edit the application's code.

96

CRM (A Client Relationship Management System)


-or" La.out: -ou use the !orm layout window, which is in the lower right corner o! the VB ID,, to determine the initial positions o! the !orms in your application. -ou can move !orms around and place them on too o! each other. I""ediate Windo,: #he immediate window, the bottom o! the IDE is a debugging while an application is running, you can stop it and use the immediate window to e$amine the change in value o! the application variable and to e$ecute VB commands in immediate mode. *he %enu Bar: #he menu bar contains the commands you need wor& with Visual Basic. #he basics menu are"""""" -ile: #hat contains the commands !or opening and saving projects and creating e$ecutable !iles and list o! recent projects. Edit: Edit contains the editing commands .e.g."/ndo, %opy, 0aste1 plus a number o! commands !or !ormatting and editing your code .e.g 2ind, 3eplace1. Vie,: View contains commands !or showing o! hiding components o! the IDE. 'ro(ect: 0roject contains commands that add components to current project, re!erences to windows and new tools to the tool bo$.

96

CRM (A Client Relationship Management System)


-or"at: 2ormat contains commands !or aligning the control on the !orm. De/u&: Debug contains the usual debugging commands. 0uer.: 4uery contains commands that simpli!y the design o! structures 4uery ,anguage.(4,1. Dia&ra": Diagram contains commands !or e!!ecting database diagrams. 1un: 3un contains commands that start, brea& an e$ecution o! the current application. *ools: #ools contains the tools you need in building Active components and Active controls contains the commands to start the +enu Editor and the options commands, which lets the customi'e the environment. Windo,: 5indows is the standard 5indows menu o! an application that contains commands it arrange on the screen. )el#: *elp contains !ormation to help you as you wor&. *)E ELE%E2* 3SE I2 *)E I2-O1%A*IO2 #he toolbo$ o! the visual IDE and let6s 7uic&ie run through controls shown in the #oolbo$.

96

CRM (A Client Relationship Management System)


La/el: #he ,abel te$t appears to be placed directly on the !orm. -ou set the label6s te$t with the caption property. *e+t Bo+: #he #e$tbo$ control is a mini te$t editor, and its most important property is the te$t property, which can set the te$t on the control or read the te$t that the user enters. -ra"e: #his control is used to draw bo$es on the !orm and to group other elements. !o""and Button: %ommand button6s represented an action that is carried out when the user clic& the button. O#tion Button: #he 8ption Button6s main property is chec&ed, and it is #rue i! the control is chec&ed, and 2alse otherwise. !o"/o Bo+: It contains an Edit !ields. #he user can choose an item !rom the list oriented a new string in the Edit !ield. #he item selected !rom the list.or entered in the Edit !ield.1 List Bo+: ,ist bo$ control can contains many lines and the user can scroll the list to locate an item. #he selected item in a list bo$ control is given by the te$t property. Sha#e:

96

CRM (A Client Relationship Management System)


#his control is used to draw graphical element such as bo$es and circles, on the sur!ace o! a !orm. %S-le+ 4rid !ontrol: #he +(2le$ 9rid %ontrol is an e$tremely used tool !or displaying in!ormation in a tabular !orm, but not !or data entry.

%icrosoft Access Data/ase: A database is a collection o! data. -our phone boo& is a simple database and so is your chec&boo&. A history o! a companies order, invoice: and payments is an e$ample o! a more complicated database, as is a log o! a sale persons contacts with clients and any related !ollows"up plans. Access is a !le$ible program that wor&s !or both simple and comple$ database projects, It6s also a relational database, which means it lets you de!ine relationships between di!!erent types o! in!ormation.li&e customers and their orders1 so you can use them together. O/(ects Of An Access Data/ase: #he heart o! a database is the in!ormation it holds. But there are other important elements, usually re!errers to as objects, in an access database. *ere the &inds o! the objects are;" < *a/le: It holds in!ormation. < 0ueries: ,et you as& 7uestion about your data or ma&e changes to data. < -or"s: 2orms are !or viewing and editing in!ormation. < 'a&es: 0ages are *#+, .*yperte$t +ar&up ,anguage1 !iles that let you view access database with internet e$plorer.

96

CRM (A Client Relationship Management System)


< 1e#orts: 3eports is !or summari'ing and printing data. < %acros: +acros per!orms one or more database actions automatically. < Securit.: 0rovides security through password when the database is opened in E$clusive mode. < %ulti 3ser: Allows multi"user access to database !or users created in Access. %odules are another type o! access object that you may or may not wor& with. A module is a program you write using VB.Visual Basic, #he 0rogramming ,anguage included with 8!!ice =>>>1 to automate and customi'e database !unctions.

96

CRM (A Client Relationship Management System) 5. I2*1OD3!*IO2 *O %S A!!ESS


It is a coherent connection o! data with some minaret meaning, design cast and populated with data !or a speci!ic purpose. A data base stores data that is use!ul to us. #his data is only part o! the entire data available in the world around us.

#o be able to success!ully design and maintain database we have to do the !ollowing"""" Identi!y which part o! the world data is o! interest to us. Identi!y what speci!ic objects in that part o! the world data are o! interest to us. Identi!y a relationship between objects

*ence, the objects, their attributes and the relationship between them that are o! interest to us are stored in data base that is designed, build and populated data !or a speci!ic purpose.

+( Access is developed by +icroso!t according to above consideration .+(Access is a power !ull tool o! ms o!!ice which allow to create data base and also have ability to maintain a data base.

96

CRM (A Client Relationship Management System) 6. S.ste" Desi&n


#he purpose o! the design phase is to plan a solution o! the problem speci!ied by the re7uirements document. #his phase is the !irst step in moving !rom the problem domain to the solution domain. In other words, starting with what is needed, design ta&es us toward how to satis!y the needs. #he design o! a system is perhaps the most critical !actor a!!ecting the 7uality o! the so!tware: it has a major impact on the later phases? particularly testing and maintenance. #he output o! this phase is the design document. #his document is similar to a blueprint or plans !or the solution and is used later during implementation, testing and maintenance. #he design activity is o!ten divided into two separate phases;" @1 (ystem Design =1 Detail Design

@1 S.ste" Desi&n: (ystem Design, which is sometimes also called top"


level design, aims to identi!y the modules that should be in the system, the speci!ication o! these modules, and how they interact with other to produce results. At the end o! system design all major data structures, !ile !ormats, output !ormats, and the major modules in the system and their speci!ications are decided.

=1 Detail Desi&n: During the detail design? the internal logic o! each o!
the modules speci!ied in system design is decided. During this phase !urther set ails o! the data structures and algorithmic design o! each o! the modules is speci!ied. #he logic o! a module usually speci!ied in a high"level design description language, which is independent o! the target language in which the so!tware will eventually be implemented.

96

CRM (A Client Relationship Management System)


6.1 %odule Brea7u# 8 Descri#tion
< %odules of the 'ro(ect;"#he ban&ing system is organi'ed into the
!ollowing modules;" A Account Detail +odule A #ransaction Detail +odule A %reate account +odule

6.5 Validation 1ules


#his so!tware !ollows the several validation rules, by avoiding them user can6t ma&e the entries possible. (o &eep in mind all these rules during the data entry process. #he validation rules are as !ollows;" @. Each !ield having the ma$imum length, you can6t e$ceed them. =. (ome !ield li&e B0in %ode, Acc. Co., and 0hone Co. can accept numbers.

96

CRM (A Client Relationship Management System) 9. -easi/ilit. Stud.


2easibility study is a test o! the system o! the system proposals according to its wor& ability and to meet the user needs and the e!!ective use o! the resources. It is carried out to select the best system that meets the per!ormance re7uirements, which entails the identi!ication, description D the selection o! the best system !or the job.

9.1 *his stud. focuses on three "a(or :uestions;


5hat are the users6 demonstrable needs and how does a candidate system meet them. 5hat resources are available !or the given system is the problem worth solving. 5hat is the li&ely impact o! the candidate system on the organi'ation how well does it !it within the organi'ation master +I( planE

9.5 3ser de"onstra/le needs :


It means seeing all the user re7uirements and by considering these re7uirements .we develop a suitable project to !ul!ill these re7uirements. these re7uirements are ; #he data entered by the user should be stored in a particular !ile permanently. At the time o! deletion and modi!ication o! a particular record the record corresponding to its will be displayed on the screen with alternation. At any point o! time the user can e$it !rom the program.

96

CRM (A Client Relationship Management System)


9.6 'ro/le" ,orth solvin&:
#he problem studies lead to three candidate solutions; Do nothing Improve the e$isting manual redundancy. %omputeri'e the manual system

system by reducing

duplicity

and

By thoroughly studying the three options, the third solution technically is most !easible.

9.9 -easi/ilit. !onsideration:


#hree &ey consideration are involved in the !easibility analysis; economic, technical, and behavioral.

i;Econo"ic -easi/ilit.; Economic analysis is the most !re7uently used


method !or evaluating the e!!ectiveness o! a candidate system . +ore commonly Fnown as costGbene!it analysis, the procedure is to determine the bene!its and savings that are e$pected !rom a candidate the decision is mind to design and implement the system. 8therwise !urther justi!ication or alterations in the proposed system will have to be made i! it is to have a chance o! being approved. #his is an ongoing e!!ort that improves in accuracy o! each phase o! the system li!e cycle. #he records displayed should be page wise.

96

CRM (A Client Relationship Management System)


ii;*echnical -easi/ilit.: #echnical !easibility centers around the
e$isting computer system .hardware, so!tware etc1 and to what e$tent it can support the proposed addition. 2or e$ample, i! the current computer is operating at H> per cent capacity" an arbitrary ceiling then running another application could overload the system or re7uire additional hardware. #his involves !inancial considerations to accommodate technical enhancements. I! the budget is a serious constraint, then the project is judged not !easible.

9.< Ste#s in -easi/ilit. Anal.sis


2easibility analysis encompasses eight steps; @1 2orm a project team and appoint a project leader. =1 0repare systems !low charts. I1 Enumerate potential candidate system. J1 Describe and identi!y characteristics o! candidate systems. K1 Determine and evaluate per!ormance and cost e!!ectiveness o! each candidate system. )1 5eight system per!ormance and cost data. L1 (elect the best candidate system. H1 0repare and report !inal project directive to management.

96

CRM (A Client Relationship Management System)

96

CRM (A Client Relationship Management System) 5. SOFTWARE REQUIRMENT SPECIFICATION


<.1'ur#ose of S1S:
#he purpose o! this document is to;" Document the di!!erent business process o! department ,in detail . Document the business re7uirement clearly in a concise and easily understood manner to business Gend user. (erve as baseline !or validation and veri!ication. (erve as a baseline document !or development team. (erve as a basis !or !uture enhancements.

<.5 S!O'E O- S1S:


#he document covers the detailed description o! the di!!erent process. #he details include; < Description o! process. < proposed process model. < Assumptions dependencies and constraints.

96

CRM (A Client Relationship Management System) =. D-D>Data -lo, Dia&ra";

-or" %odules Binar. data

.-1% .-1X

-or"1.fr" -or"5.fr" %od1./as !lass1.cls : :

.BAS Standard "odules

.!LS !lass "odule .O!X

96

CRM (A Client Relationship Management System)


!usto" controls A##.e+e 1esources files .1ES 'ro(ect file V#/

96

CRM (A Client Relationship Management System)

7. FORM DESIGN

AND

FORM CODING

96

CRM (A Client Relationship Management System)

0rivate (ub .FeyAscii As Integer1 I! FeyAscii M @I #hen #$t0assword.(et2ocus End I! End (ub 0rivate (ub %mdE$itN%lic&.1 /nload +e End (ub 0rivate (ub %md8&N%lic&.1 I! %bo/serCame.#e$t M OAdministratorO And #$t0assword.#e$t M #$t0assword.#ag #hen +DI2orm@.Visible M #rue +DI2orm@.(et2ocus /nload +e Else +sgBo$ O0lease 2ill #he %orrect /ser Came D 0assword......PO, vbIn!ormation, +e.%aption #$t0assword.#e$t M OO #$t0assword.(et2ocus E$it (ub

96

CRM (A Client Relationship Management System)


End I! End (ub 0rivate (ub 2ormN,oad.1 8n Err 9o#o errh #imer@.Enabled M #rue Ani5ait.Auto0lay M #rue Ani5ait.8pen App.0ath D OQ2ile%omm.AVIO +e.3e!resh E$it (ub errh; 3esume Ce$t End (ub 0rivate (ub #imer@N#imer.1 I! ,blData.,e!t R ,blData.5idth S ,blCew.,e!t #hen ,blData.,e!t M K>J> Else ,blData.,e!t M ,blData.,e!t " => End I! End (ub 0rivate (ub #$t0asswordNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen %md8&.(et2ocus End I! End (ub

96

CRM (A Client Relationship Management System)

96

CRM (A Client Relationship Management System)

0rivate (ub +DI2ormN,oad.1 !rmBac&ground.Visible M #rue End (ub 0rivate (ub +nu%%+N%lic&.1 !rm%on!iguration+gmt.Visible M #rue !rm%on!iguration+gmt.(et2ocus End (ub 0rivate (ub +Cu%lientN%lic&.1 2rm%lient+aster.Visible M #rue 2rm%lient+aster.(et2ocus End (ub 0rivate (ub +nu%lients3eportsN%lic&.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 myde.%onn3eports.%onnection(tring M gstrmasterconn myde.%onn3eports.8pen myde.rs%md%lient.8pen I! myde.rs%md%lient.3ecord%ount S @ #hen +sgBo$ OCothing to (ave.O, vbIn!ormation, +e.%aption E$it (ub Else Dr%lient.3e!resh Dr%lient.(how End I! End (ub 0rivate (ub +nu%+N%lic&.1

96

CRM (A Client Relationship Management System)


!rm%all+gmt.Visible M #rue !rm%all+gmt.(et2ocus End (ub 0rivate (ub +nudailyN%lic&.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 myde.%onn3eports.%onnection(tring M gstrmasterconn myde.%onn3eports.8pen myde.rs%mdDaily.8pen I! myde.rs%mdDaily.3ecord%ount S @ #hen +sgBo$ OCothing to (ave.O, vbIn!ormation, +e.%aption E$it (ub Else DrDaily.3e!resh DrDaily.(how End I! End (ub 0rivate (ub +nuD53N%lic&.1 !rmdailyreport.Visible M #rue !rmdailyreport.(et2ocus End (ub 0rivate (ub +nuE3N%lic&.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 myde.%onn3eports.%onnection(tring M gstrmasterconn myde.%onn3eports.8pen myde.rs%mdEmployee.8pen I! myde.rs%mdEmployee.3ecord%ount S @ #hen

96

CRM (A Client Relationship Management System)


+sgBo$ OCothing to (ave.O, vbIn!ormation, +e.%aption E$it (ub Else DrEmployee.3e!resh DrEmployee.(how End I! End (ub 0rivate (ub +nu+50(N%lic&.1 !rm+odule(tatus.Visible M #rue !rm+odule(tatus.(et2ocus End (ub 0rivate (ub +nu8C(+N%lic&.1 !rm8n,ine(upport.Visible M #rue !rm8n,ine(upport.(et2ocus End (ub 0rivate (ub +nu0I3N%lic&.1 !rm0endency.Visible M #rue !rm0endency.(et2ocus End (ub 0rivate (ub +nu0rojectsN%lic&.1 Dim myde As De3eports (et myde M Cew De3eports Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 myde.%onn3eports.%onnection(tring M gstrmasterconn myde.%onn3eports.8pen myde.rs%md0rojects.8pen I! myde.rs%md0rojects.3ecord%ount S @ #hen +sgBo$ OCothing to (ave.O, vbIn!ormation, +e.%aption E$it (ub Else

96

CRM (A Client Relationship Management System)


Dr0rojects.3e!resh Dr0rojects.(how End I! End (ub 0rivate (ub +nu#eamN%lic&.1 !rmemployee.Visible M #rue !rmemployee.(et2ocus End (ub 0rivate (ub +nu0rojectN%lic&.1 !rmproject.Visible M #rue !rmproject.(et2ocus End (ub 0rivate (ub +nu5ee&lyN%lic&.1 2rm3eports.Visible M #rue 2rm3eports.(et2ocus End (ub 0rivate (ub +nu5(N%lic&.1 2rmwee&ly(chedule.Visible M #rue 2rmwee&ly(chedule.(et2ocus End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub .1 2illN,ist !illNlistp

96

CRM (A Client Relationship Management System)


End (ub 0rivate (ub !illNlistp.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lstNproj.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# project.#Nname, project.CNcode 2rom project 83DE3 B- project.#NnameO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstNproj.,istItems.Add., , rsP#Nname1 l$.#ag M rsPCNcode rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub %hec&@N%lic&.1 I! %hec&@.Value M @ #hen t$tNcity.#e$t M #$t%city.#e$t t$tNdis.#e$t M #$t%district.#e$t t$tNpin.#e$t M #$t%0in.#e$t t$tNstate.#e$t M #$t%(tate.#e$t t$tNcountr.#e$t M #$t%country.#e$t t$tNadd.#e$t M #$t%add.#e$t Else t$tNadd.#e$t M t$tNadd.#ag

96

CRM (A Client Relationship Management System)


t$tNcity.#e$t M t$tNcity.#ag t$tNdis.#e$t M t$tNdis.#ag t$tNpin.#e$t M t$tNpin.#ag t$tNstate.#e$t M t$tNstate.#ag t$tNcountr.#e$t M t$tNcountr.#ag End I! End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 listNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom client 83DE3 B- client.CNIDO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M listNrec.,istItems.Add., , listNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPCNId1, OO, rsPCNId1 l$.(ubItems.=1 M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 l$.(ubItems.I1 M II!.IsCull.rsP#Nclientcoordinators1, OO, rsP#Nclientcoordinators1 l$.(ubItems.J1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.K1 M II!.IsCull.rsP#Nlocaladd1, OO, rsP#Nlocaladd1 l$.(ubItems.)1 M II!.IsCull.rsP#N%ity1, OO, rsP#N%ity1 l$.(ubItems.L1 M II!.IsCull.rsP#NphoneNno1, OO, rsP#NphoneNno1 rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

96

CRM (A Client Relationship Management System)


0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A2rom client where CNIDM'O D t$tNid.#e$t D O'O lconn.E$ecute ODelete A 2rom clientNproject where clientNIdM'O D t$tNid.#e$t D O'O +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub %mdE$itN%lic&.1 I! cmde$it.%aption S< OD%ancelO #hen /nload +e Else save.%aption M OsaveO %learN%ontrols cmde$it.%aption M ODe$itO End I! End (ub

0rivate (ub saveN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection Dim l$ As ,istItem

96

CRM (A Client Relationship Management System)


(et lconn M 8pen%on.lconn1 I! t$tNid.#e$t M OO #hen +sgBo$ O0lease !ill the id valueO, vb%ritical t$tNid.(et2ocus E$it (ub End I! I! t$tNname.#e$t M OO #hen +sgBo$ O0lease !ill the nameO, vb%ritical t$tNname.(et2ocus E$it (ub End I! I! save.%aption S< OD+odi!yO #hen (et rs M lconn.E$ecute.O(E,E%# client.CNId !rom client O1 2or i M @ #o rs.3ecord%ount (et l$@ M listNrec.,istItems j M II!.IsCull.rsPCNId1, OO, rsPCNId1 I! .t$tNid.#e$t M j1 #hen +sgBo$ OId E$istP 0lease !ill another id valueO, vb%ritical t$tNid.#e$t M OO t$tNid.(et2ocus E$it (ub End I! rs.+oveCe$t Ce$t i lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 client .CNId, #Nname, #NphoneNno, #Ndomain, #NemailNid, #Nclientcoordinators, DNdate, #Nlocaladd, #Ncity, #Ndis, CNpin, #Nstate, #Ncountry, #N!a$, #Nwebadd, #Nintroducer, #Nclass, #Ncategory, #Nremar&s, #Ncoadd, #Ncity@, #Ndis@, CNpin@, #Nstate@, #Ncountry@1O D N OVA,/E(.'O D t$tNid.#e$t D O','O D t$tNname.#e$t D O','O D t$tNph.#e$t D O','O D t$tNdomain.#e$t D O','O D t$tNemail.#e$t D O','O D t$tNclientco.#e$t D O',TO D %Date.II!.dtNdate.Value M OO, Date, dtNdate.Value11 D OT,'O D t$tNadd.#e$t D O','O D t$tNcity.#e$t D O','O D t$tNdis.#e$t D O',O D Val.t$tNpin.#e$t1 D O,'O D t$tNstate.#e$t D O','O D t$tNcountr.#e$t D O','O D t$tN!a$.#e$t D O','O D t$tNweb.#e$t D O','O D t$tNintro.#e$t D O','O D

96

CRM (A Client Relationship Management System)


t$tNclass.#e$t D O','O D t$tNcategory.#e$t D O','O D t$tNremar&.#e$t D O','O D #$t%add.#e$t D O','O D #$t%city.#e$t D O','O D #$t%district.#e$t D O',O D Val.#$t%0in.#e$t1 D O,'O D #$t%(tate.#e$t D O','O D #$t%country.#e$t D O'1O lconn.%ommit#rans 2or j M @ #o lstNproj.,istItems.%ount (et l$ M lstNproj.,istItems.j1 I! l$.%hec&ed M #rue #hen lconn.E$ecute OIC(E3# IC#8 clientNproject .clientNId, #Nproject1 O D N OVA,/E(.'O D t$tNid.#e$t D O',O D Val.l$.#ag1 D O1O End I! Ce$t j +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else lconn.Begin#rans lconn.E$ecute O/pdate client set CNIdM'O D t$tNid.#e$t D O', #NnameM'O D t$tNname.#e$t D O', #NphoneNnoM'O D t$tNph.#e$t D O', #NdomainM'O D t$tNdomain.#e$t D O', #NemailNidM'O D t$tNemail.#e$t D O', #NclientcoordinatorsM'O D t$tNclientco.#e$t D O', DNdateMTO D %Date.II!.dtNdate.Value M OO, Date, dtNdate.Value11 D OT, #NlocaladdM'O D t$tNadd.#e$t D O', #NcityM'O D t$tNcity.#e$t D O', #NdisM'O D t$tNdis.#e$t D O', CNpinMO D Val.t$tNpin.#e$t1 D O, #NstateM'O D t$tNstate.#e$t D O', #NcountryM'O D t$tNcountr.#e$t D O', #N!a$M'O D t$tN!a$.#e$t D O', #NwebaddM'O D t$tNweb.#e$t D O', #NintroducerM'O D t$tNintro.#e$t D O', #NclassM'O D t$tNclass.#e$t D O', #NcategoryM'O D t$tNcategory.#e$t D O', #Nremar&sM'O D t$tNremar&.#e$t D O', #NcoaddM'O D #$t%add.#e$t D O',O D N O#Ncity@M'O D #$t%city.#e$t D O', #Ndis@M'O D #$t%district.#e$t D O', CNpin@MO D Val.#$t%0in.#e$t1 D O, #Nstate@M'O D #$t%(tate.#e$t D O', #Ncountry@M'O D #$t%country.#e$t D O' where CNIdM'O D t$tNid.#e$t D O'O lconn.%ommit#rans lconn.Begin#rans lconn.E$ecute ODelete A 2rom clientNproject where clientNIdM'O D t$tNid.#e$t D O'O lconn.%ommit#rans 2or j M @ #o lstNproj.,istItems.%ount (et l$ M lstNproj.,istItems.j1 I! l$.%hec&ed M #rue #hen

96

CRM (A Client Relationship Management System)


lconn.E$ecute OIC(E3# IC#8 clientNproject .clientNId, #Nproject1 O D N OVA,/E(.O D Val.t$tNid.#e$t1 D O,O D Val.l$.#ag1 D O1O End I! Ce$t +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

0rivate (ub %ombo@N9ot2ocus.1 2ill%ombo@ O(E,E%# CNID 2rom client 83DE3 B- CNIDO, combo@ End (ub 0rivate (ub listNrecNDbl%lic&.1 Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 save.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmde$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M listNrec.(electedItem t$tNid.#e$t M l$.(ubItems.@1 (et rs M lconn.E$ecute.O(elect A !rom client where CNID M 'O D t$tNid.#e$t D O'O1 I! rs.E82 8r rs.B82 #hen Else t$tNid.#e$t M II!.IsCull.rsPCNId1, OO, rsPCNId1

96

CRM (A Client Relationship Management System)


t$tNname.#e$t M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 t$tNph.#e$t M II!.IsCull.rsP#NphoneNno1, OO, rsP#NphoneNno1 t$tNdomain.#e$t M II!.IsCull.rsP#Ndomain1, OO, rsP#Ndomain1 t$tNemail.#e$t M II!.IsCull.rsP#NemailNid1, OO, rsP#NemailNid1 t$tNclientco.#e$t M II!.IsCull.rsP#Nclientcoordinators1, #Nclientcoordinators1 dtNdate.Value M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 t$tNcity.#e$t M II!.IsCull.rsP#N%ity1, OO, rsP#N%ity1 t$tNdis.#e$t M II!.IsCull.rsP#Ndis1, OO, rsP#Ndis1 t$tNpin.#e$t M II!.IsCull.rsPCNpin1, OO, rsPCNpin1 t$tNadd.#e$t M II!.IsCull.rsP#Ncoadd1, OO, rsP#Ncoadd1 t$tNstate.#e$t M II!.IsCull.rsP#Nstate1, OO, rsP#Nstate1 t$tNcountr.#e$t M II!.IsCull.rsP#Ncountry1, OO, rsP#Ncountry1 t$tN!a$.#e$t M II!.IsCull.rsP#N!a$1, OO, rsP#N!a$1 t$tNweb.#e$t M II!.IsCull.rsP#Nwebadd1, OO, rsP#Nwebadd1 t$tNintro.#e$t M II!.IsCull.rsP#Nintroducer1, OO, rsP#Nintroducer1 t$tNclass.#e$t M II!.IsCull.rsP#Nclass1, OO, rsP#Nclass1 t$tNcategory.#e$t M II!.IsCull.rsP#Ncategory1, OO, rsP#Ncategory1 t$tNremar&.#e$t M II!.IsCull.rsP#Nremar&s1, OO, rsP#Nremar&s1 #$t%add.#e$t M II!.IsCull.rsP#Ncoadd1, OO, rsP#Ncoadd1 #$t%city.#e$t M II!.IsCull.rsP#N%ity@1, OO, rsP#N%ity@1 #$t%district.#e$t M II!.IsCull.rsP#Ndis@1, OO, rsP#Ndis@1 #$t%0in.#e$t M II!.IsCull.rsPCNpin@1, OO, rsPCNpin@1 #$t%(tate.#e$t M II!.IsCull.rsP#Nstate@1, OO, rsP#Nstate@1 #$t%country.#e$t M II!.IsCull.rsP#Ncountry@1, OO, rsP#Ncountry@1 !illNlistp 8penN%lientN0rojects End I! End (ub 0rivate (ub 8penN%lientN0rojects.1 8n Err 9o#o errh Dim l$ As ,istItem Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection

OdateO,

rsP

96

CRM (A Client Relationship Management System)


(et lconn M 8pen%on.lconn1 (et rs M lconn.E$ecute.O(E,E%# clientNproject.clientNid, clientNproject.#Nproject, 0roject.#Nname 238+ clientNproject ICCE3 U8IC 0roject 8C clientNproject.#Nproject M 0roject.CNcode 5*E3E clientNproject.clientNidM'O D t$tNid.#e$t D O'O1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount 2or j M @ #o lstNproj.,istItems.%ount (et l$ M lstNproj.,istItems.j1 I! rsP#N0roject M Val.l$.#ag1 #hen l$.%hec&ed M #rue End I! Ce$t j rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub %learN%ontrols.1 t$tNid.#e$t M OO t$tNname.#e$t M OO t$tNph.#e$t M OO t$tNdomain.#e$t M OO t$tNemail.#e$t M OO t$tNclientco.#e$t M OO dtNdate.Value M Date t$tNadd.#e$t M OO t$tNcity.#e$t M OO t$tNdis.#e$t M OO

96

CRM (A Client Relationship Management System)


t$tNpin.#e$t M OO t$tNstate.#e$t M OO t$tNcountr.#e$t M OO t$tN!a$.#e$t M OO t$tNweb.#e$t M OO t$tNintro.#e$t M OO t$tNclass.#e$t M OO t$tNcategory.#e$t M OO t$tNremar&.#e$t M OO #$t%add.#e$t M OO #$t%city.#e$t M OO #$t%district.#e$t M OO #$t%0in.#e$t M OO #$t%(tate.#e$t M OO #$t%country.#e$t M OO save.%aption M OD(aveO cmde$it.%aption M OED$itO cmdNdel.Enabled M 2alse End (ub 0rivate (ub t$tNnameNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNclientco.(et2ocus End I! End (ub 0rivate (ub t$tNidNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNname.(et2ocus End I! End (ub 0rivate (ub t$tNaddNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen

96

CRM (A Client Relationship Management System)


t$tNcity.(et2ocus End I! End (ub 0rivate (ub t$tNphNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tN!a$.(et2ocus End I! End (ub 0rivate (ub t$tNdomainNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNclass.(et2ocus End I! End (ub 0rivate (ub t$tNemailNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNweb.(et2ocus End I! End (ub 0rivate (ub t$tNclientcoNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen dtNdate.(et2ocus End I! End (ub 0rivate (ub dtNdateNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%add.(et2ocus End I! End (ub 0rivate (ub t$tNcityNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen

96

CRM (A Client Relationship Management System)


t$tNdis.(et2ocus End I! End (ub 0rivate (ub t$tNdisNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNpin.(et2ocus End I! End (ub 0rivate (ub t$tNpinNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNstate.(et2ocus End I! End (ub 0rivate (ub t$tNstateNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNcountr.(et2ocus End I! End (ub 0rivate (ub t$tNcountrNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNph.(et2ocus End I! End (ub 0rivate (ub t$tN!a$NFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNemail.(et2ocus End I! End (ub 0rivate (ub t$tNwebNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen

96

CRM (A Client Relationship Management System)


t$tNintro.(et2ocus End I! End (ub 0rivate (ub t$tNintroNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNdomain.(et2ocus End I! End (ub 0rivate (ub t$tNclassNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNcategory.(et2ocus End I! End (ub 0rivate (ub t$tNcategoryNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNremar&.(et2ocus End I! End (ub 0rivate (ub t$tNremar&NFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen save.(et2ocus End I! End (ub 0rivate (ub #$t%addNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%city.(et2ocus End I! End (ub 0rivate (ub #$t%cityNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen

96

CRM (A Client Relationship Management System)


#$t%district.(et2ocus End I! End (ub 0rivate (ub #$t%districtNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%0in.(et2ocus End I! End (ub 0rivate (ub #$t%pinNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%(tate.(et2ocus End I! End (ub 0rivate (ub #$t%stateNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen #$t%country.(et2ocus End I! End (ub 0rivate (ub #$t%countryNFey0ress.FeyAscii As Integer1 I! FeyAscii M @I #hen t$tNadd.(et2ocus End I! End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub cbNprojNcoordN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom employee 83DE3 B- #NnameO, cbNprojNcoord

96

CRM (A Client Relationship Management System)


End (ub 0rivate (ub cbNprojNleaderN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom employee 83DE3 B- #NnameO, cbNprojNleader End (ub 0rivate (ub .1 Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 I! t$tNcode.#e$t M OO #hen +sgBo$ O0lease !ill the code valueO, vb%ritical t$tNcode.(et2ocus E$it (ub End I! I! t$tNname.#e$t M OO #hen +sgBo$ O0lease !ill the project nameO, vb%ritical t$tNname.(et2ocus E$it (ub End I! I! cmdNsave.%aption S< OD+odi!yO #hen lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 project .CNcode, #Nname,#Ndomain,DNstartNdt, DNdelvrNdt, #NprojNlead, #NprojN%oordinators1O D N OVA,/E(.'O D t$tNcode.#e$t D O','O D t$tNname.#e$t D O','O D t$tNdomain.#e$t D O',TO D %Date.dtNstNdt.Value1 D OT,TO D %Date.dtNdelNdt.Value1 D OT,'O D cbNprojNleader.#e$t D O','O D cbNprojNcoord.#e$t D O'1O lconn.%ommit#rans +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else lconn.E$ecute O/0DA#E project (E# CNcodeM'O D t$tNcode.#e$t D O', #NnameM'O D t$tNname.#e$t D O', DNstartNdtMTO D %Date.dtNstNdt.Value1 D OT,DNdelvrNdtMTO D %Date.dtNdelNdt.Value1 D OT,#NprojNleadM'O D cbNprojNleader.#e$t D O', #NprojN%oordinatorsM' O D cbNprojNcoord.#e$t D O ' where CNcodeM'O D t$tNcode.#e$t D O' O +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption

96

CRM (A Client Relationship Management System)


End I! %learN%ontrols lstvNmod.,istItems.%lear 2illN,ist cmdNdel.Enabled M #rue E$it (ub End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset

(et lconn M 8pen%on.lconn1 lstvNproj.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# project.CNcode, project.#Nname, project.DNstartNdt, project.DNdelvrNdt,project.#NprojNlead !rom project 83DE3 B- project.#NnameO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvNproj.,istItems.Add., , lstvNproj.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 l$.(ubItems.=1 M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 l$.(ubItems.I1 M II!.IsCull.rsPDNstartNdt1, OO, rsPDNstartNdt1 l$.(ubItems.J1 M II!.IsCull.rsPDNdelvrNdt1, OO, rsPDNdelvrNdt1 l$.(ubItems.K1 M II!.IsCull.rsP#NprojNlead1, OO, rsP#NprojNlead1 rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume

96

CRM (A Client Relationship Management System)


End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.%aption M OsaveO %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1

ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A 2rom project where CNcodeM'O D t$tNcode.#e$t D O'O lconn.E$ecute ODelete A 238+ moduleN@ where 2FNcodeM'O D t$tNcode.#e$t D O'O +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! lstvNmod.,istItems.%lear %learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub lstvNprojNDbl%lic&.1

96

CRM (A Client Relationship Management System)


Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M lstvNproj.(electedItem t$tNcode.#e$t M l$.(ubItems.@1 (et rs M lconn.E$ecute.O(elect A !rom project where CN%ode M 'O D t$tNcode.#e$t D O'O1 I! rs.E82 8r rs.B82 #hen Else t$tNname.#e$t M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 t$tNdomain.#e$t M II!.IsCull.rsP#Ndomain1, OO, rsP#Ndomain1 dtNstNdt.Value M II!.IsCull.rsPDNstartNdt1, OO, rsPDNstartNdt1 dtNdelNdt.Value M II!.IsCull.rsPDNdelvrNdt1, OO, rsPDNdelvrNdt1 cbNprojNleader.#e$t M II!.IsCull.rsP#NprojNlead1, OO, rsP#NprojNlead1 cbNprojNcoord.#e$t M II!.IsCull.rsP#NprojN%oordinators1, OO, rsP #NprojN%oordinators1 End I! lstvNmod.,istItems.%lear (et rs M lconn.E$ecute.Oselect A 2rom moduleN@ where 2FNcode M 'O D t$tNcode.#e$t D O'O1 I! rs.E82 8r rs.B82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.=1 M II!.IsCull.rsPCNpriority1, OO, rsPCNpriority1 l$.(ubItems.I1 M II!.IsCull.rsP#Ndescription1, OO, rsP#Ndescription1 rs.+oveCe$t Ce$t i End I! End (ub

96

CRM (A Client Relationship Management System)


0rivate (ub cmdNaddN%lic&.1 I! t$tNmodule.#e$t M OO #hen +sgBo$ O0lease !ill the moduleO, vb%ritical t$tNmodule.(et2ocus E$it (ub End I! !illNlistm End (ub 0rivate (ub cmdNremoveN%lic&.1 Dim lconn As AD8DB.%onnection Dim lrs As AD8DB.3ecordset Dim l$ As ,istItem Dim i As (tring (et lconn M 8pen%on.lconn1 (et l$ M lstvNmod.(electedItem I! t$tNmodule.#e$t S< OO #hen t$tNmodule.#e$t M OO t$tNprior.#e$t M OO t$tNdescr.#e$t M OO t$tNmodule.(et2ocus End I! End (ub

0rivate (ub 2ormN,oad.1 2illN,ist End (ub 0rivate (ub lstvNmodNDbl%lic&.1 I! lstvNmod.,istItems.%ount M > #hen E$it (ub Dim lconn As AD8DB.%onnection Dim lrs As AD8DB.3ecordset Dim l$ As ,istItem (et lconn M 8pen%on.lconn1

96

CRM (A Client Relationship Management System)


(et lrs M lconn.E$ecute.O(elect A !rom moduleN@ where 2FN%ode M 'O D t$tNcode.#e$t D O'O1 I! lrs.E82 8r lrs.B82 #hen Else (et l$ M lstvNmod.(electedItem t$tNmodule.#e$t M l$.(ubItems.@1 t$tNprior.#e$t M l$.(ubItems.=1 t$tNdescr.#e$t M l$.(ubItems.I1 lstvNmod.,istItems.3emove .lstvNmod.(electedItem.Inde$1 lconn.E$ecute ODelete A 2rom moduleN@ where #Nmodule M 'O D t$tNmodule.#e$t D O'O End I! End (ub 0rivate (ub %learN%ontrols.1 t$tNcode.#e$t M OO t$tNname.#e$t M OO t$tNdomain.#e$t M OO dtNdelNdt.Value M Date dtNstNdt.Value M Date cbNprojNleader.#e$t M OO cbNprojNcoord.#e$t M OO t$tNmodule.#e$t M OO t$tNprior.#e$t M OO t$tNdescr.#e$t M OO End (ub 0rivate (ub !illNlistm.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lconn.Begin#rans

96

CRM (A Client Relationship Management System)


lconn.E$ecute OIC(E3# IC#8 moduleN@ .#Nmodule,CNpriority, #Ndescription, 2FNcode1O D N OVA,/E(.'O D t$tNmodule.#e$t D O',O D Val.t$tNprior.#e$t1 D O,'O D t$tNdescr.#e$t D O','O D t$tNcode.#e$t D O'1O lconn.%ommit#rans lstvNmod.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom moduleN@ where 2FNcodeM'O D t$tNcode.#e$t D O' 83DE3 B- moduleN@.CNpriorityO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.=1 M II!.IsCull.rsPCNpriority1, OO, rsPCNpriority1 l$.(ubItems.I1 M II!.IsCull.rsP#Ndescription1, OO, rsP#Ndescription1 t$tNmodule.#e$t M OO t$tNprior.#e$t M OO t$tNdescr.#e$t M OO t$tNmodule.(et2ocus rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub .1 2ill%ombo@ O(E,E%# #Nstate 2rom state 83DE3 B- #NstateO, cbNstate End (ub 0rivate (ub %learN%ontrols.1 t$tNcode.#e$t M OO

96

CRM (A Client Relationship Management System)


t$tNname.#e$t M OO t$tN!Nname.#e$t M OO t$tNadd.#e$t M OO t$tNcity.#e$t M OO t$tNpin.#e$t M OO cbNstate.#e$t M OO t$tNph.#e$t M OO t$tN!a$.#e$t M OO t$tNemail.#e$t M OO t$tNprt.#e$t M OO t$tNyear.#e$t M OO t$tNper.#e$t M OO t$tNgrd.#e$t M OO t$tNuniv.#e$t M OO t$tNrem.#e$t M OO t$tNdsgn M OO End (ub 0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A 2rom employee where CNcodeM'O D t$tNcode.#e$t D O'O lconn.E$ecute ODelete A 2rom 7uali!ication where 2FNempcodeM'O D t$tNcode.#e$t D O'O +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! cmdNsave.%aption M OsaveO lstvN7uali.,istItems.%lear %learN%ontrols 2illN,ist E$it (ub

96

CRM (A Client Relationship Management System)


errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.%aption M OsaveO %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNopenN%lic&.1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO End (ub 0rivate (ub cmdNsaveN%lic&.1 Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 Dim gnd, ms As (tring (et rs M lconn.E$ecute.O(E,E%# employee.CNcode !rom employee O1 I! 8ptNmale.Value M #rue #hen gnd M OmaleO Else gnd M O!emaleO End I! I! 8ptNmrd.Value M #rue #hen ms M OmarriedO

96

CRM (A Client Relationship Management System)


Else ms M OunmarriedO End I! I! t$tNcode.#e$t M OO #hen +sgBo$ O0lease !ill the code valueO, vb%ritical t$tNcode.(et2ocus E$it (ub End I! I! t$tNname.#e$t M OO #hen +sgBo$ O0lease !ill the nameO, vb%ritical t$tNname.(et2ocus E$it (ub End I! I! cmdNsave.%aption S< OD+odi!yO #hen (et rs M lconn.E$ecute.O(E,E%# employee.CNcode !rom employee O1 2or i M @ #o rs.3ecord%ount (et l$ M ,stvNrec.,istItems j M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 I! .t$tNcode.#e$t M j1 #hen +sgBo$ O%ode E$istP 0lease !ill another code valueO, vb%ritical t$tNcode.#e$t M OO t$tNcode.(et2ocus E$it (ub End I! rs.+oveCe$t Ce$t i lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 employee .CNcode, #Nname,DND8B, #N!atherNname, #Ngender, #NmaritalNstatus,#Naddress,#Ncity, CNpin, #Nstate, #N!a$,#Nphone,#Nemail,DND8U,#Ndesignation1O D N OVA,/E(.'O D t$tNcode.#e$t D O','O D t$tNname.#e$t D O',TO D %Date.dtNbirth.Value1 D OT,'O D t$tN!Nname.#e$t D O','O D gnd D O', 'O D ms D O',' O D t$tNadd.#e$t D O ','O D t$tNcity.#e$t D O',O D Val.t$tNpin.#e$t1 D O,'O D cbNstate.#e$t D O',O

96

CRM (A Client Relationship Management System)


D Val.t$tN!a$.#e$t1 D O,'O D t$tNph.#e$t D O','O D t$tNemail.#e$t D O',TO D %Date.dtNbirth.Value1 D OT,'O D t$tNdsgn.#e$t D O'1O lconn.%ommit#rans +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else I! 8ptNmale.Value M #rue #hen gnd M OmaleO Else gnd M O!emaleO End I! I! 8ptNmrd.Value M #rue #hen ms M OmarriedO Else ms M OunmarriedO End I!

lconn.E$ecute O/pdate employee set CNcodeM'O D t$tNcode.#e$t D O', #NnameM'O D t$tNname.#e$t D O', DND8BMTO D %Date.dtNbirth.Value1 D OT,#N!atherNnameM'O D t$tN!Nname.#e$t D O',DND8UMTO D %Date.dtNjoin.Value1 D OT,#NaddressM'O D t$tNadd.#e$t D O',#NgenderM'O D gnd D O', #NmaritalNstatusM'O D ms D O',#NcityM'O D t$tNcity.#e$t D O',CNpinMO D Val.t$tNpin.#e$t1 D O,#NstateM'O D cbNstate.#e$t D O',#NphoneM'O D t$tNph.#e$t D O',#N!a$M'O D t$tN!a$.#e$t D O',#NemailM'O D t$tNemail.#e$t D O',#NdesignationM'O D t$tNdsgn.#e$t D O' where CNcodeM'O D t$tNcode.#e$t D O' O +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols lstvN7uali.,istItems.%lear 2illN,ist E$it (ub End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection

96

CRM (A Client Relationship Management System)


Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 ,stvNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# employee.CNcode, employee.#Nname, employee.#N!atherNname, employee.#Ngender, employee.#Naddress,employee.#Ncity, employee.#Nphone 2rom employee 83DE3 B- employee.#NnameO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M ,stvNrec.,istItems.Add., , ,stvNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 l$.(ubItems.=1 M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 l$.(ubItems.I1 M II!.IsCull.rsP#N!atherNname1, OO, rsP#N!atherNname1 l$.(ubItems.J1 M II!.IsCull.rsP#Ngender1, OO, rsP#Ngender1 l$.(ubItems.K1 M II!.IsCull.rsP#NAddress1, OO, rsP#NAddress1 l$.(ubItems.)1 M II!.IsCull.rsP#N%ity1, OO, rsP#N%ity1 l$.(ubItems.L1 M II!.IsCull.rsP#Nphone1, OO, rsP#Nphone1 rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub !illNlist7.1 8n Err 9o#o errh 'Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset

96

CRM (A Client Relationship Management System)


(et lconn M 8pen%on.lconn1 (et rs M lconn.E$ecute.O(E,E%# 7uali!ication.#Nparticular !rom 7uali!ication where 2FNempcodeM'O D t$tNcode.#e$t D O'O1 2or i M @ #o rs.3ecord%ount (et l$ M lstvN7uali.,istItems j M II!.IsCull.rsP#Nparticular1, OO, rsP#Nparticular1 I! .t$tNprt.#e$t M j1 #hen +sgBo$ O0articular E$istP 0lease !ill another particular valueO, vb%ritical t$tNprt.#e$t M OO t$tNyear.#e$t M OO t$tNper.#e$t M OO t$tNgrd.#e$t M OO t$tNuniv.#e$t M OO t$tNrem.#e$t M OO t$tNprt.(et2ocus E$it (ub End I! rs.+oveCe$t Ce$t i lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 7uali!ication .#Nparticular,CNyear, CNpercent,#Ngrade,#Nboarduniv, #Nremar&s, 2FNempcode1O D N

OVA,/E(.'O D t$tNprt.#e$t D O',O D Val.t$tNyear.#e$t1 D O,O D Val.t$tNper.#e$t1 D O ,'O D t$tNgrd.#e$t D O','O D t$tNuniv.#e$t D O','O D t$tNrem.#e$t D O','O D t$tNcode.#e$t D O'1O lconn.%ommit#rans lstvN7uali.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom 4uali!ication where 2FNempcodeM'O D t$tNcode.#e$t D O' 83DE3 B- 4uali!ication.CNyearO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvN7uali.,istItems.Add., , lstvN7uali.,istItems.%ount R @1

96

CRM (A Client Relationship Management System)


l$.(ubItems.@1 M II!.IsCull.rsP#Nparticular1, OO, rsP#Nparticular1 l$.(ubItems.=1 M II!.IsCull.rsPCNyear1, OO, rsPCNyear1 l$.(ubItems.I1 M II!.IsCull.rsPCNpercent1, OO, rsPCNpercent1 l$.(ubItems.J1 M II!.IsCull.rsP#Ngrade1, OO, rsP#Ngrade1 l$.(ubItems.K1 M II!.IsCull.rsP#Nboarduniv1, OO, rsP#Nboarduniv1 l$.(ubItems.)1 M II!.IsCull.rsP#Nremar&s1, OO, rsP#Nremar&s1 t$tNprt.#e$t M OO t$tNyear.#e$t M OO t$tNper.#e$t M OO t$tNgrd.#e$t M OO t$tNuniv.#e$t M OO t$tNrem.#e$t M OO t$tNprt.(et2ocus rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub %ommand@N%lic&.1 I! t$tNprt.#e$t M OO #hen +sgBo$ O0lease !ill the particularsO, vb%ritical t$tNprt.(et2ocus E$it (ub End I! I! t$tNper.#e$t M OO #hen +sgBo$ O0lease !ill the percentageO, vb%ritical t$tNper.(et2ocus E$it (ub

96

CRM (A Client Relationship Management System)


End I! I! t$tNper.#e$t < @>> 8r t$tNper.#e$t S > #hen +sgBo$ O0lease !ill the correct percentageO, vb%ritical t$tNper.(et2ocus E$it (ub End I! !illNlist7 End (ub 0rivate (ub %ommand=N%lic&.1 Dim lconn As AD8DB.%onnection Dim lrs As AD8DB.3ecordset Dim l$ As ,istItem Dim i As (tring (et lconn M 8pen%on.lconn1 (et l$ M lstvN7uali.(electedItem I! t$tNprt.#e$t S< OO #hen t$tNprt.#e$t M OO t$tNyear.#e$t M OO t$tNper.#e$t M OO t$tNgrd.#e$t M OO t$tNuniv.#e$t M OO t$tNrem.#e$t M OO t$tNprt.(et2ocus Else lconn.E$ecute .Odelete A !rom 7uali!ication where CNpercent M i O1 End I! End (ub 0rivate (ub 2ormN,oad.1 2illN,ist End (ub 0rivate (ub lstvN7ualiNDbl%lic&.1 I! lstvN7uali.,istItems.%ount M > #hen E$it (ub Dim lconn As AD8DB.%onnection

96

CRM (A Client Relationship Management System)


Dim lrs As AD8DB.3ecordset Dim l$ As ,istItem (et lconn M 8pen%on.lconn1 (et lrs M lconn.E$ecute.O(elect A !rom 7uali!ication where 2FNemp%ode M 'O D t$tNcode.#e$t D O'O1 I! lrs.E82 8r lrs.B82 #hen Else (et l$ M lstvN7uali.(electedItem t$tNprt.#e$t M l$.(ubItems.@1 t$tNyear.#e$t M l$.(ubItems.=1 t$tNper.#e$t M l$.(ubItems.I1 t$tNgrd.#e$t M l$.(ubItems.J1 t$tNuniv.#e$t M l$.(ubItems.K1 t$tNrem.#e$t M l$.(ubItems.)1 l$.,ist(ubItems.3emove .@1 l$.,ist(ubItems.3emove .@1 l$.,ist(ubItems.3emove .@1 l$.,ist(ubItems.3emove .@1 l$.,ist(ubItems.3emove .@1 lstvN7uali.,istItems.3emove .lstvN7uali.(electedItem.Inde$1 lconn.E$ecute ODelete A 2rom 7uali!ication where #Nparticular M 'O D t$tNprt.#e$t D O'O End I! End (ub

0rivate (ub ,stvNrecNDbl%lic&.1 Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection Dim s As (tring (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem

96

CRM (A Client Relationship Management System)


(et l$ M ,stvNrec.(electedItem t$tNcode.#e$t M l$.(ubItems.@1 (et rs M lconn.E$ecute.O(elect A !rom employee where CN%ode M 'O D t$tNcode.#e$t D O'O1 I! rs.E82 8r rs.B82 #hen Else t$tNname.#e$t M II!.IsCull.rsP#Nname1, OO, rsP#Nname1 t$tN!Nname.#e$t M II!.IsCull.rsP#N!atherNname1, OO, rsP#N!atherNname1 s M II!.IsCull.rsP#Ngender1, OO, rsP#Ngender1 I! .s M OmaleO1 #hen 8ptNmale.Value M #rue Else 8ptN!ml.Value M #rue End I! s M II!.IsCull.rsP#N+aritalN(tatus1, OO, rsP#N+aritalN(tatus1 I! .s M OmarriedO1 #hen 8ptNmrd.Value M #rue Else 8ptNunmrd.Value M #rue End I! t$tNadd.#e$t M II!.IsCull.rsP#NAddress1, OO, rsP#NAddress1 t$tNcity.#e$t M II!.IsCull.rsP#N%ity1, OO, rsP#N%ity1 dtNbirth.Value M II!.IsCull.rsPDND8B1, OO, rsPDND8B1 dtNjoin.Value M II!.IsCull.rsPDND8U1, OO, rsPDND8U1 t$tNadd.#e$t M II!.IsCull.rsP#NAddress1, OO, rsP#NAddress1 t$tNcity.#e$t M II!.IsCull.rsP#N%ity1, OO, rsP#N%ity1 t$tNpin.#e$t M II!.IsCull.rsPCNpin1, OO, rsPCNpin1 cbNstate.#e$t M II!.IsCull.rsP#Nstate1, OO, rsP#Nstate1 t$tNph.#e$t M II!.IsCull.rsP#Nphone1, OO, rsP#Nphone1 t$tN!a$.#e$t M II!.IsCull.rsP#N!a$1, OO, rsP#N!a$1 t$tNemail.#e$t M II!.IsCull.rsP#Nemail1, OO, rsP#Nemail1 t$tNdsgn.#e$t M II!.IsCull.rsP#Ndesignation1, OO, rsP#Ndesignation1

96

CRM (A Client Relationship Management System)


End I! lstvN7uali.,istItems.%lear (et rs M lconn.E$ecute.O(elect A !rom 7uali!ication where 2FNemp%ode M'O D t$tNcode.#e$t D O'O1 I! rs.E82 8r rs.B82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvN7uali.,istItems.Add., , lstvN7uali.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsP#Nparticular1, OO, rsP#Nparticular1 l$.(ubItems.=1 M II!.IsCull.rsPCNyear1, OO, rsPCNyear1 l$.(ubItems.I1 M II!.IsCull.rsPCNpercent1, OO, rsPCNpercent1 l$.(ubItems.J1 M II!.IsCull.rsP#Ngrade1, OO, rsP#Ngrade1 l$.(ubItems.K1 M II!.IsCull.rsP#Nboarduniv1, OO, rsP#Nboarduniv1 l$.(ubItems.)1 M II!.IsCull.rsP#Nremar&s1, OO, rsP#Nremar&s1 rs.+oveCe$t Ce$t i End I! End (ub

96

CRM (A Client Relationship Management System)

96

CRM (A Client Relationship Management System)

0rivate (ub cbNempNnameN%lic&.1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNempNnameN9ot2ocus.1 2ill%ombo@ O(E,E%# employee.#Nname employee.#NnameO, cbNempNname

2rom

employee

83DE3

B-

96

CRM (A Client Relationship Management System)


2ill%ombo@ O(E,E%# employee.CNcode employee.#NnameO, cbNcode End (ub 2rom employee 83DE3 B-

0rivate (ub cbNempNnameNFeyDown.Fey%ode As Integer, (hi!t As Integer1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNempNnameNFey0ress.FeyAscii As Integer1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNempNnameN,ost2ocus.1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub %learN%ontrols.1 Dtp2romDate.Value M Date Dtp#oDate.Value M Date D#Ndate.Value M Date cbNempNname.#e$t M OO cbNcode.#e$t M OO cbNprojNname.#e$t M OO cbNmodule.#e$t M OO t$tNduration.#e$t M OO t$tNdesc.#e$t M OO End (ub 0rivate (ub cmdNsaveN%lic&.1 Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 I! cmdNsave.%aption S< OD+odi!yO #hen lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 5ee&ly .DNstartNdate, DNendNdate, #NempNname, DNdate, #N0roject, #Nmodule,CNduration, #Ndescription1O D N

96

CRM (A Client Relationship Management System)


OVA,/E(.TO D %Date.Dtp2romDate.Value1 D OT,TO D %Date.Dtp#oDate.Value1 D OT,'O D cbNempNname.#e$t D O',TO D %Date.D#Ndate.Value1 D OT,'O D cbNprojNname.#e$t D O','O D cbNmodule.#e$t D O','O D t$tNduration.#e$t D O','O D t$tNdesc.#e$t D O'1O lconn.%ommit#rans +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else lconn.E$ecute O/0DA#E 5ee&ly (E# DNstartNdateMTO D %Date.Dtp2romDate.Value1 D OT, DNendNdateMTO D %Date.Dtp#oDate.Value1 D OT, #NempNnameM'O D cbNempNname.#e$t D O',DNdateMTO D %Date.D#Ndate.Value1 D OT,#N0rojectM'O D cbNprojNname.#e$t D O', #NmoduleM' O D cbNmodule.#e$t D O ',CNdurationMO D Val.t$tNduration.#e$t1 D O, #NdescriptionM'O D t$tNdesc.#e$t D O' where #NempNnameM'O D cbNempNname.#e$t D O'and DNstartNdateMTO D %Date.Dtp2romDate.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols ,stNrec.,istItems.%lear 2illN,ist cmdNe$it.%aption M OcancelO E$it (ub End (ub 0rivate (ub %mdAddN%lic&.1 Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 Dim rs As ,istItem (et l$ M ,stNrec.,istItems.Add., , ,stNrec.,istItems.%ount R @1 l$.(ubItems.@1 M D#Ndate.Value l$.(ubItems.=1 M cbNempNname.#e$t l$.(ubItems.I1 M cbNprojNname.#e$t l$.(ubItems.J1 M cbNmodule.#e$t l$.(ubItems.K1 M t$tNduration.#e$t l$.(ubItems.)1 M t$tNdesc.#e$t End (ub

96

CRM (A Client Relationship Management System)


0rivate (ub Dtp2romDateNFeyDown.Fey%ode As Integer, (hi!t As Integer1 I! Fey%ode M @I #hen Dtp#oDate.Value M DateAdd.OdO, L, Dtp2romDate.Value1 Dtp2romDate.(et2ocus End I! End (ub 0rivate (ub 2ormN,oad.1 Dtp2romDate.Value M Date Dtp#oDate.Value M DateAdd.OdO, L, Dtp2romDate.Value1 2illN,ist End (ub 0rivate (ub cbNmoduleN9ot2ocus.1 Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 (et rs M lconn.E$ecute.O(E,E%# CNcode !rom project where #NnameM'O D cbNprojNname.#e$t D O' O1 n M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 2ill%ombo@ O(E,E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O, cbNmodule End (ub 0rivate (ub cbNprojNnameN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom project 83DE3 B- #NnameO, cbNprojNname End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1

96

CRM (A Client Relationship Management System)


,stNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom 5ee&ly order by 5ee&ly.DNstartNdateO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M ,stNrec.,istItems.Add., , ,stNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.=1 M II!.IsCull.rsP#NempNname1, OO, rsP#NempNname1 l$.(ubItems.I1 M II!.IsCull.rsP#N0roject1, OO, rsP#N0roject1 l$.(ubItems.J1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.K1 M II!.IsCull.rsPCNduration1, OO, rsPCNduration1 l$.(ubItems.)1 M II!.IsCull.rsP#Ndescription1, OO, rsP#Ndescription1 rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else 2illN,ist cmdNsave.%aption M OsaveO %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNopenN%lic&.1 Dim rs As AD8DB.3ecordset

96

CRM (A Client Relationship Management System)


Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M ,stNrec.(electedItem ,stNrec.,istItems.%lear (et rs M lconn.E$ecute.O(elect A !rom 5ee&ly where DNdate BE#5EEC TO D %Date.Dtp2romDate.Value1 D OT ACD TO D %Date.Dtp#oDate.Value1 D OTO1 I! rs.E82 8r rs.B82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M ,stNrec.,istItems.Add., , ,stNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.=1 M II!.IsCull.rsP#NempNname1, OO, rsP#NempNname1 l$.(ubItems.I1 M II!.IsCull.rsP#N0roject1, OO, rsP#N0roject1 l$.(ubItems.J1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.K1 M II!.IsCull.rsPCNduration1, OO, rsPCNduration1 l$.(ubItems.)1 M II!.IsCull.rsP#Ndescription1, OO, rsP#Ndescription1 rs.+oveCe$t Ce$t End I! End (ub

0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A 2rom 5ee&ly where #NempNnameM'O D cbNempNname.#e$t D O'and DNdateMTO D %Date.D#Ndate.Value1 D OT O

96

CRM (A Client Relationship Management System)


+sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! cmdNsave.%aption M OsaveO %learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

0rivate (ub lstNrecNDbl%lic&.1 Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M ,stNrec.(electedItem D#Ndate.Value M l$.(ubItems.@1 cbNempNname.#e$t M l$.(ubItems.=1 (et rs M lconn.E$ecute.O(elect A !rom wee&ly where #NempNname M 'O D cbNempNname.#e$t D O' and DNdateMTO D %Date.D#Ndate.Value1 D OT O1 I! rs.E82 8r rs.B82 #hen Else Dtp2romDate.Value M II!.IsCull.rsPDNstartNdate1, OO, rsPDNstartNdate1 cbNempNname.#e$t M II!.IsCull.rsP#NempNname1, OO, rsP#NempNname1 cbNprojNname.#e$t M II!.IsCull.rsP#N0roject1, OO, rsP#N0roject1 cbNmodule.#e$t M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 t$tNduration.#e$t M II!.IsCull.rsPCNduration1, OO, rsPCNduration1 t$tNdesc.#e$t M II!.IsCull.rsP#Ndescription1, OO, rsP#Ndescription1

96

CRM (A Client Relationship Management System)


End I! End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub cbNempNnameN%lic&.1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNempNnameN9ot2ocus.1 2ill%ombo@ O(elect #Nname !rom employee 83DE3 B- #NnameO, cbNempNname 2ill%ombo@ O(E,E%# CNcode 2rom employee 83DE3 B- #NnameO, cbNcode End (ub 0rivate (ub cbNempNnameNFeyDown.Fey%ode As Integer, (hi!t As Integer1

96

CRM (A Client Relationship Management System)


cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNempNnameNFey0ress.FeyAscii As Integer1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNempNnameN,ost2ocus.1 cbNcode.,istInde$ M cbNempNname.,istInde$ End (ub 0rivate (ub cbNmoduleN9ot2ocus.1 Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 (et rs M lconn.E$ecute.O(E,E%# CNcode !rom project where #NnameM'O D cbNprojNname.#e$t D O' O1 n M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 2ill%ombo@ O(E,E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O, cbNmodule End (ub 0rivate (ub cbNprojNnameN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom project 83DE3 B- #NnameO, cbNprojNname End (ub 0rivate (ub cbNstatusN9ot2ocus.1 cbNstatus.,ist End (ub 0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1

96

CRM (A Client Relationship Management System)


ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A 2rom D53@ where #NempNnameM'O D cbNempNname.#e$t D O'and DNdateMTO D %Date.D#Ndate.Value1 D OT O +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! cmdNsave.%aption M OsaveO

%learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.%aption M OsaveO %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub %learN%ontrols.1 cbNcode.#e$t M OO cbNempNname.#e$t M OO cbNstatus.#e$t M OO cbNprojNname.#e$t M OO cbNmodule.#e$t M OO

96

CRM (A Client Relationship Management System)


t$tNtas&.#e$t M OO t$tNremar&.#e$t M OO t$tNin!o.#e$t M OO D#Ndate.Value M Date dtNtime.Value M #ime End (ub 0rivate (ub cmdNopenN%lic&.1 cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO cmdNsave.%aption M OD+odi!yO End (ub

0rivate (ub cmdNsaveN%lic&.1 Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 I! cbNcode.#e$t M OO #hen +sgBo$ O0lease !ill the code valueO, vb%ritical cbNcode.(et2ocus E$it (ub End I! I! cmdNsave.%aption S< OD+odi!yO #hen lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 D53@ .CNcode, #NempNname, #NprojNname, #Ntas&, #Nremar&, #Nmodule,DNtime, #Nstatus, DNdate, #Nin!o1O D N OVA,/E(.'O D cbNcode.#e$t D O','O D cbNempNname.#e$t D O','O D cbNprojNname.#e$t D O','O D t$tNtas&.#e$t D O','O D t$tNremar&.#e$t D O','O D cbNmodule.#e$t D O',TO D dtNtime.Value D OT,'O D cbNstatus.#e$t D O',TO D %Date.D#Ndate.Value1 D OT,'O D t$tNin!o.#e$t D O'1O lconn.%ommit#rans +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else lconn.E$ecute O/0DA#E D53@ (E# CNcodeM'O D cbNcode.#e$t D O', #NempNnameM'O D cbNempNname.#e$t D O', #NprojNnameM'O D cbNprojNname.#e$t D

96

CRM (A Client Relationship Management System)


O',#Ntas&M'O D t$tNtas&.#e$t D O',#Nremar&M'O D t$tNremar&.#e$t D O', #NmoduleM' O D cbNmodule.#e$t D O ',CNtimeMTO D dtNtime.Value D OT, #NstatusM'O D cbNstatus.#e$t D O',DNdateMTO D %Date.D#Ndate.Value1 D OT,#Nin!oM'O D t$tNin!o.#e$t D O' where #NempNnameM'O D cbNempNname.#e$t D O'and DNdateMTO D %Date.D#Ndate.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols ,stvNrec.,istItems.%lear 2illN,ist E$it (ub End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 ,stvNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom D53@ 83DE3 B- D53@.DNdateO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M ,stvNrec.,istItems.Add., , ,stvNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.=1 M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 l$.(ubItems.I1 M II!.IsCull.rsP#NempNname1, OO, rsP#NempNname1 l$.(ubItems.J1 M II!.IsCull.rsP#NprojNname1, OO, rsP#NprojNname1 l$.(ubItems.K1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.)1 M II!.IsCull.rsP#Ntas&1, OO, rsP#Ntas&1 l$.(ubItems.L1 M II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 rs.+oveCe$t Ce$t i End I!

96

CRM (A Client Relationship Management System)


E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub ,stvNrecNDbl%lic&.1 Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M ,stvNrec.(electedItem D#Ndate.Value M l$.(ubItems.@1 cbNcode.#e$t M l$.(ubItems.=1 (et rs M lconn.E$ecute.O(elect A !rom D53@ where CN%ode M 'O D cbNcode.#e$t D O' and DNdateMTO D %Date.D#Ndate.Value1 D OT O I! rs.E82 8r rs.B82 #hen Else cbNcode.#e$t M II!.IsCull.rsPCNcode1, OO, rsPCNcode1 cbNempNname.#e$t M II!.IsCull.rsP#NempNname1, OO, rsP#NempNname1 D#Ndate.Value M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 cbNprojNname.#e$t M II!.IsCull.rsP#NprojNname1, OO, rsP#NprojNname1 cbNmodule.#e$t M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 t$tNtas&.#e$t M II!.IsCull.rsP#Ntas&1, OO, rsP#Ntas&1 cbNstatus.#e$t M II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 t$tNremar&.#e$t M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 dtNtime.Value M II!.IsCull.rsPDNtime1, OtimeO, rsPDNtime1 t$tNin!o.#e$t M II!.IsCull.rsP#Nin!o1, OO, rsP#Nin!o1 End I! End (ub

96

CRM (A Client Relationship Management System)


0rivate (ub 2ormN,oad.1 2illN,ist End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub .1 2ill%ombo@ O(E,E%# #Nname 2rom project 83DE3 B- #NnameO, cbNprojNname End (ub 0rivate (ub cbNprojNnameNFey0ress.FeyAscii As Integer1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset Dim lrs As AD8DB.3ecordset Dim rs@ As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lstvNmod.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O'O1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1

96

CRM (A Client Relationship Management System)


l$.(ubItems.@1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.=1 M II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 l$.(ubItems.I1 M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 rs.+oveCe$t Ce$t i End I! (et rs@ M lconn.E$ecute.O(E,E%# CNcode !rom project where #NnameM'O D cbNprojNname.#e$t D O' O1 n M II!.IsCull.rs@PCNcode1, OO, rs@PCNcode1 (et lrs M lconn.E$ecute.O(E,E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O'O1 2or j M @ #o lrs.3ecord%ount (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O' O1 !lag M > 2or i M @ #o rs.3ecord%ount I! .II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 M II!.IsCull.rsP#Nmodule1, OO, rsP #Nmodule11 #hen !lag M @ E$it 2or End I! rs.+oveCe$t Ce$t i I! .!lag S< @1 #hen (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 l$.(ubItems.=1 M OIncompleteO End I! lrs.+oveCe$t Ce$t j E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub

96

CRM (A Client Relationship Management System)


3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub %learN%ontrols.1 cbNprojNname.#e$t M OO lstvNmod.,istItems.%lear End (ub 0rivate (ub %mdNshowN%lic&.1 2illN,ist cmdNe$it.%aption M OD%ancelO End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset Dim lrs As AD8DB.3ecordset Dim rs@ As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lstvNmod.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O'O1

96

CRM (A Client Relationship Management System)


I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.=1 M II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 l$.(ubItems.I1 M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 rs.+oveCe$t Ce$t i End I!

(et rs@ M lconn.E$ecute.O(E,E%# CNcode !rom project where #NnameM'O D cbNprojNname.#e$t D O' O1 n M II!.IsCull.rs@PCNcode1, OO, rs@PCNcode1 (et lrs M lconn.E$ecute.O(E,E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O'O1 2or j M @ #o lrs.3ecord%ount (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O' O1 !lag M > 2or i M @ #o rs.3ecord%ount I! .II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 M II!.IsCull.rsP#Nmodule1, OO, rsP #Nmodule11 #hen !lag M @ E$it 2or End I! rs.+oveCe$t Ce$t i I! .!lag S< @1 #hen (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 l$.(ubItems.=1 M OIncompleteO End I! lrs.+oveCe$t Ce$t j

96

CRM (A Client Relationship Management System)


E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

96

CRM (A Client Relationship Management System)


0rivate (ub .1 2ill%ombo@ O(E,E%# #Nname 2rom project 83DE3 B- #NnameO, cbNprojNname End (ub

0rivate (ub cbNprojNnameNFey0ress.FeyAscii As Integer1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset Dim lrs As AD8DB.3ecordset Dim rs@ As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lstvNmod.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O' O1 (et rs@ M lconn.E$ecute.O(E,E%# CNcode !rom project where #NnameM'O D cbNprojNname.#e$t D O' O1 n M II!.IsCull.rs@PCNcode1, OO, rs@PCNcode1 (et lrs M lconn.E$ecute.O(E,E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount I! .II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 M OIncompleteO1 #hen (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.=1 M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 End I! rs.+oveCe$t Ce$t i 2or j M @ #o lrs.3ecord%ount (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O' O1 !lag M >

96

CRM (A Client Relationship Management System)


2or i M @ #o rs.3ecord%ount I! .II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 M II!.IsCull.rsP#Nmodule1, OO, rsP #Nmodule11 #hen !lag M @ E$it 2or 'l$.(ubItems.=1 M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 End I! rs.+oveCe$t Ce$t i I! .!lag S< @1 #hen (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 End I! lrs.+oveCe$t Ce$t j End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub %learN%ontrols.1 cbNprojNname.#e$t M OO lstvNmod.,istItems.%lear

96

CRM (A Client Relationship Management System)


End (ub 0rivate (ub %mdNshowN%lic&.1 2illN,ist cmdNe$it.%aption M OD%ancelO End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset Dim lrs As AD8DB.3ecordset Dim rs@ As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lstvNmod.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O' O1 (et rs@ M lconn.E$ecute.O(E,E%# CNcode !rom project where #NnameM'O D cbNprojNname.#e$t D O' O1 n M II!.IsCull.rs@PCNcode1, OO, rs@PCNcode1 (et lrs M lconn.E$ecute.O(E,E%# #Nmodule 2rom moduleN@ where 2FNcodeM'O D n D O' O1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount I! .II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 M OIncompleteO1 #hen (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule1 l$.(ubItems.=1 M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 End I! rs.+oveCe$t Ce$t i 2or j M @ #o lrs.3ecord%ount

96

CRM (A Client Relationship Management System)


(et rs M lconn.E$ecute.O(E,E%# #Nmodule, #Nstatus, #Nremar&, #NprojNname 238+ D53@ 5here #NprojNnameM'O D cbNprojNname.#e$t D O' O1 !lag M > 2or i M @ #o rs.3ecord%ount I! .II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 M II!.IsCull.rsP#Nmodule1, OO, rsP#Nmodule11 #hen !lag M @ E$it 2or 'l$.(ubItems.=1 M II!.IsCull.rsP#Nremar&1, OO, rsP#Nremar&1 End I! rs.+oveCe$t Ce$t i I! .!lag S< @1 #hen (et l$ M lstvNmod.,istItems.Add., , lstvNmod.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.lrsP#Nmodule1, OO, lrsP#Nmodule1 End I! lrs.+oveCe$t Ce$t j End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub cbNcallNrecieverN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom cbNcallNreciever End (ub 0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1

employee

83DE3

B-

#NnameO,

96

CRM (A Client Relationship Management System)


ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A 2rom %all where #NcallerM'O D t$tNcaller.#e$t D O'and DNdateMTO D %Date.dtNdate.Value1 D OT O +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! cmdNsave.%aption M OsaveO %learN%ontrols 2illN,ist E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNsaveN%lic&.1 Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 I! t$tNcaller.#e$t M OO #hen +sgBo$ O0lease !ill the caller nameO, vb%ritical cbNcode.(et2ocus E$it (ub End I! I! cmdNsave.%aption S< OD+odi!yO #hen lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 %all .DNdate, DNtime, #Ncaller, #NcallNreciever, #Ncomplaint1O D N OVA,/E(.TO D %Date.dtNdate.Value1 D OT,TO D dtNtime.Value D OT,'O D t$tNcaller.#e$t D O','O D cbNcallNreciever.#e$t D O','O D t$tNcomplaint.#e$t D O'1O lconn.%ommit#rans +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else

96

CRM (A Client Relationship Management System)


lconn.E$ecute O/0DA#E %all (E# DNtimeMTO D dtNtime.Value D OT,DNdateMTO D %Date.dtNdate.Value1 D OT, #NcallerM'O D t$tNcaller.#e$t D O',#NcallNrecieverM'O D cbNcallNreciever.#e$t D O',#NcomplaintM'O D t$tNcomplaint.#e$t D O'where #NcallerM'O D t$tNcaller.#e$t D O'and DNdateMTO D %Date.dtNdate.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols lstvNrec.,istItems.%lear 2illN,ist E$it (ub End (ub

0rivate (ub %learN%ontrols.1 dtNdate.Value M Date dtNtime.Value M #ime t$tNcaller.#e$t M OO cbNcallNreciever.#e$t M OO t$tNcomplaint.#e$t M OO End (ub 0rivate (ub 2illN,ist.1 '8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 lstvNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom %all 83DE3 B- %all.DNdateO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M lstvNrec.,istItems.Add., , lstvNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.=1 M II!.IsCull.rsPDNtime1, OO, rsPDNtime1 l$.(ubItems.I1 M II!.IsCull.rsP#Ncaller1, OO, rsP#Ncaller1 l$.(ubItems.J1 M II!.IsCull.rsP#NcallNreciever1, OO, rsP#NcallNreciever1

96

CRM (A Client Relationship Management System)


l$.(ubItems.K1 M II!.IsCull.rsP#Ncomplaint1, OO, rsP#Ncomplaint1 rs.+oveCe$t Ce$t i End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.%aption M OsaveO %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub 2ormN,oad.1 2illN,ist End (ub 0rivate (ub ,stvNrecNDbl%lic&.1 Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M lstvNrec.(electedItem dtNdate.Value M l$.(ubItems.@1

96

CRM (A Client Relationship Management System)


t$tNcaller.#e$t M l$.(ubItems.I1 (et rs M lconn.E$ecute.O(elect A !rom %all where #Ncaller M 'O D t$tNcaller.#e$t D O' and DNdateMTO D %Date.dtNdate.Value1 D OT O1 I! rs.E82 8r rs.B82 #hen Else cbNcallNreciever.#e$t M II!.IsCull.rsP#NcallNreciever1, OO, rsP#NcallNreciever1 t$tNcomplaint.#e$t M II!.IsCull.rsP#Ncomplaint1, OO, rsP#Ncomplaint1 dtNtime.Value M II!.IsCull.rsPDNtime1, OtimeO, rsPDNtime1 End I! End (ub

96

CRM (A Client Relationship Management System)

0rivate (ub %learN%ontrols.1 t$tNre7Nby.#e$t M OO t$tNre7Nthru.#e$t M OO #$tNsupport.#e$t M OO t$tNdesc.#e$t M OO cbNproNname.#e$t M OO cbNcustNname.#e$t M OO cbNverNby.#e$t M OO cbNrecNby.#e$t M OO cbNstatus.#e$t M OO

96

CRM (A Client Relationship Management System)


End (ub

0rivate (ub cbNcustNnameN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom client 83DE3 B- #NnameO, cbNcustNname End (ub 0rivate (ub cbNproNnameN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname cbNproNname End (ub

2rom

project

83DE3

B-

#NnameO,

0rivate (ub cbNrecNbyN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom employee 83DE3 B- #NnameO, cbNrecNby End (ub 0rivate (ub cbNverNbyN9ot2ocus.1 2ill%ombo@ O(E,E%# #Nname 2rom Employee 83DE3 B- #NnameO, cbNverNby End (ub 0rivate (ub cmdNdelN%lic&.1 8n Err 9o#o errh Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 ans M +sgBo$.ODo -ou 3eally 5ant #o Delete #he (elected Data.O, vb4uestion R vb-esCo, +e.%aption1 I! ans M ) #hen lconn.E$ecute ODelete A 2rom online where #Nre7NbyM'O D t$tNre7Nby.#e$t D O' and DNdateMTO D %Date.D#Ndate.Value1 D OTO +sgBo$ OData Delete (uccess!ully.O, vbIn!ormation, +e.%aption End I! ,stvNrec.,istItems.%lear %learN%ontrols 2illN,ist

96

CRM (A Client Relationship Management System)


E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub cmdNe$itN%lic&.1 I! cmdNe$it.%aption S< OD%ancelO #hen /nload +e Else cmdNsave.%aption M OsaveO %learN%ontrols cmdNe$it.%aption M ODe$itO End I! End (ub 0rivate (ub cmdNsaveN%lic&.1 Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 I! cmdNsave.%aption S< OD+odi!yO #hen lconn.Begin#rans lconn.E$ecute OIC(E3# IC#8 online .#Nre7Nby, #NproNname, #Nre7Nthrough, #NcustNname, #NverNby, DNtimeN!rom, #NrecNby,DNtimeNto, #NsupportNby, #Nstatus,#Ndes,DNdate1O D N OVA,/E(.'O D t$tNre7Nby.#e$t D O','O D cbNproNname.#e$t D O','O D t$tNre7Nthru.#e$t D O','O D cbNcustNname.#e$t D O','O D cbNverNby.#e$t D O',TO D %Date.D#picN!rom.Value1 D OT,'O D cbNrecNby.#e$t D O',TO D %Date.D#0icNto.Value1 D OT,'O D #$tNsupport.#e$t D O','O D cbNstatus.#e$t D O','O D t$tNdesc.#e$t D O',TO D %Date.D#Ndate.Value1 D OT1O lconn.%ommit#rans +sgBo$ OData (aved (uccess!ully.O, vbIn!ormation, +e.%aption Else lconn.E$ecute O/0DA#E online (E# #Nre7NbyM'O D t$tNre7Nby.#e$t D O',#NproNnameM'O D cbNproNname.#e$t D O',#Nre7NthroughM'O D t$tNre7Nthru.#e$t D

96

CRM (A Client Relationship Management System)


O',#NcustNnameM'O D cbNcustNname.#e$t D O',#NverNbyM'O D cbNverNby.#e$t O',DNtimeN!romMTO D %Date.D#picN!rom.Value1 D OT,#NrecNbyM'O D cbNrecNby.#e$t O',DNtimeNtoMTO D %Date.D#0icNto.Value1 D OT,#NsupportNbyM'O D #$tNsupport.#e$t O',#NstatusM'O D cbNstatus.#e$t D O',#NdesM'O D t$tNdesc.#e$t D O',DNdateMTO %Date.D#Ndate.Value1 D OTwhere #Nre7NbyM'O D t$tNre7Nby.#e$t D O' and DNdateMTO %Date.D#Ndate.Value1 D OT O +sgBo$ OData +odi!y (uccess!ully.O, vbIn!ormation, +e.%aption End I! %learN%ontrols ,stvNrec.,istItems.%lear 2illN,ist E$it (ub End (ub 0rivate (ub 2illN,ist.1 8n Err 9o#o errh Dim l$ As ,istItem Dim lconn As AD8DB.%onnection Dim rs As AD8DB.3ecordset (et lconn M 8pen%on.lconn1 ,stvNrec.,istItems.%lear (et rs M lconn.E$ecute.O(E,E%# A 2rom online 83DE3 B- online.DNdateO1 I! rs.B82 8r rs.E82 #hen Else 2or i M @ #o rs.3ecord%ount (et l$ M ,stvNrec.,istItems.Add., , ,stvNrec.,istItems.%ount R @1 l$.(ubItems.@1 M II!.IsCull.rsPDNdate1, OO, rsPDNdate1 l$.(ubItems.=1 M II!.IsCull.rsP#Nre7Nby1, OO, rsP#Nre7Nby1 l$.(ubItems.I1 M II!.IsCull.rsP#Nre7Nthrough1, OO, rsP#Nre7Nthrough1 l$.(ubItems.J1 M II!.IsCull.rsP#NproNname1, OO, rsP#NproNname1 l$.(ubItems.K1 M II!.IsCull.rsP#NrecNby1, OO, rsP#NrecNby1 l$.(ubItems.)1 M II!.IsCull.rsP#NverNby1, OO, rsP#NverNby1 l$.(ubItems.L1 M II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 rs.+oveCe$t Ce$t i D D D D D

96

CRM (A Client Relationship Management System)


End I! E$it (ub errh; +sgBo$ Err.Description, vb%ritical R vbApplication+odal, OErrorO E$it (ub 3esume End (ub 0rivate (ub ,istView@NBe!ore,abelEdit.%ancel As Integer1 End (ub 0rivate (ub 2ormN,oad.1 2illN,ist End (ub

0rivate (ub lstvNrecNDbl%lic&.1 Dim rs As AD8DB.3ecordset Dim lconn As AD8DB.%onnection (et lconn M 8pen%on.lconn1 cmdNsave.%aption M OD+odi!yO cmdNdel.Enabled M #rue cmdNe$it.%aption M OD%ancelO Dim l$ As ,istItem (et l$ M ,stvNrec.(electedItem D#Ndate.Value M l$.(ubItems.@1 t$tNre7Nby.#e$t M l$.(ubItems.=1 (et rs M lconn.E$ecute.O(elect A !rom online where #Nre7NbyM'O D t$tNre7Nby.#e$t D O' and DNdateMTO D %Date.D#Ndate.Value1 D OT O1 I! rs.E82 8r rs.B82 #hen Else t$tNre7Nthru.#e$t M II!.IsCull.rsP#Nre7Nthrough1, OO, rsP#Nre7Nthrough1 #$tNsupport.#e$t M II!.IsCull.rsP#NsupportNby1, OO, rsP#NsupportNby1 t$tNdesc.#e$t M II!.IsCull.rsP#Ndes1, OO, rsP#Ndes1 cbNproNname.#e$t M II!.IsCull.rsP#NproNname1, OO, rsP#NproNname1

96

CRM (A Client Relationship Management System)


cbNcustNname.#e$t M II!.IsCull.rsP#NcustNname1, OO, rsP#NcustNname1 cbNverNby.#e$t M II!.IsCull.rsP#NverNby1, OO, rsP#NverNby1 cbNrecNby.#e$t M II!.IsCull.rsP#NrecNby1, OO, rsP#NrecNby1 cbNstatus.#e$t M II!.IsCull.rsP#Nstatus1, OO, rsP#Nstatus1 D#picN!rom.Value M II!.IsCull.rsPDNtimeN!rom1, OtimeO, rsPDNtimeN!rom1 D#0icNto.Value M II!.IsCull.rsPDNtimeNto1, OtimeO, rsPDNtimeNto1 End I! End (ub

96

CRM (A Client Relationship Management System) ?. *estin& And De/u&&in&


D/3IC9 #*E DEVE,80+EC# 82 #*I( 038UE%# A,, #*E 283+( ACD +8D/,E( 5E3E E #EC(IVE,- #E(#ED ACD A2#E3 #*A# 8C,- #*EA3E 9IVEC #*E 2ICA, #8/%*. #esting is the major control measures used during so!tware development. Its basic !unction is to detect errors in the so!tware. During re7uirements analysis and design, the output is a document that is usually te$tual and non"e$ecutable. A!ter the coding phase, computer programs are available that can be e$ecuted !or testing purposes. #his implies that testing not only has to uncover errors introduced o! testing is to uncover re7uirement, design and coding errors in the programs conse7uently: di!!erent levels o! testing are used. 3nit *estin&: It is the starting point o! testing. In this module is tested separately and is o!ten per!ormed by the coder himsel! simultaneously along with the coding o! the module. #he purpose is to e$ercise the di!!erent part module code to detect coding errors. Inte&ration *estin&: Integration #esting is per!ormed to detect design errors by !ocusing on testing the interconnection between modules. S.ste" *estin&: (ystem is tested against the system, re7uirements to see i! all th re7uirements are met and i! the system per!orms as speci!ied by the re7uirements. Acce#tance testin&: Acceptance #esting is per!ormed to demonstrate to the client, on the real"li!e data o! the client, the operation o! the system.

96

CRM (A Client Relationship Management System)


#esting is an e$tremely critical and time"consuming activity. It re7uires proper planning o! the overall testing process, 2re7uently the testing process starts with a test plan that indenti!ies all the testing"related activities that must be per!ormed and speci!ies the schedule allocates the resources, and speci!ies guidelines !or testing. #he test plan speci!ies conditions that should be tested, di!!erent units to be tested, and the manner in which the modules will be integrated together. #hen !or di!!erent test units, a test case speci!ication document is produced, which lists all the di!!erent test cases,

#ogether with the e$pected output, during the testing o! the unit, the speci!ied test cases are e$ecuted and the actual result compared and the error report or a set o! each report .one !or each unit tested1. Each test report contains the set o! test cases and the result o! e$ecuting the code with these test cases. #he error report describes the errors encountered and the action ta&en to remove the errors.

96

CRM (A Client Relationship Management System) @. )ard,are 1e:uire"ent


PROCESSOR = GENUINE INTEL PENTIUM PROCESSOR RAM = 256 MB HARD DISK=4.3 GB 15 SVGA COLOUR MONITOR
KEY BOARD = 104 KEYS PRINTER = HP LASER ET

96

CRM (A Client Relationship Management System) 1A. Soft,are 1e:uire"ent


Operating System: Windows XP Environment: Visual Studio 6.0 Tools: Microsoft Office

96

CRM (A Client Relationship Management System) BIBLIO41A')B


+A(#E3IC9 IC VI(/A, BA(I% V B00 0/B,I%A#I8C B,A%F B88F V Dreamtech 0ress VI(/A, BA(I% IC =@ DA-( V B00 0/B,I%A#I8C

96

Potrebbero piacerti anche