p-00447--pharmacy database management system in vb

Upload: vishu51787

Post on 22-Feb-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    1/59

    Pharmacy Database Management System

    Contents

    1. INTRODUCTION

    1.1 Pharmacy Database Management System

    2. PROJECT PLN

    2.1 !eas"b"#"ty st$%y

    2.1.1 O&erat"on

    2.1.2 Techn"ca#

    2.1.' Cost()ene*"t na#ys"s

    2.2 System na#ys"s

    2.' System Re+$"rement

    2., Data-!#o-D"agram

    2.,.1 Conte/t D!D

    2.,.2 !"rst Le0e# D!D

    2.,.' Secon% Le0e# D!D

    2. System Des"gn

    2. Co%"ng %eta"#s ( &"cat"on

    2.3 System Test"ng

    '. 4567

    '.1 8"s$a# )as"c

    '.2 M"croso*t ccess

    CONCLUSION ND !UTURE SCOPE

    )I)LIO9RP56 ND RE!ERENCES

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    2/59

    Pharmacy Database Management System

    Cha&ter 1

    INTRODUCTION

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    3/59

    Pharmacy Database Management System

    Pharmacy Database Management System

    Intro%$ct"on:

    The main aim of the project is the management of the database of the pharmaceutical

    shop. This is done by creating a database of the available medicines in the shop. The

    database is then connected to the main program by using interconnection of the Visual

    asic program and the database already created.

    &"cat"on:

    This program can be used in any pharmaceutical shops having a database to maintain.

    The soft!are used can generate reports" as per the user#s re$uirements. The soft!are

    can print invoices" bills" receipts etc. %t can also maintain the record of supplies sent in

    by the supplier

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    4/59

    Pharmacy Database Management System

    Cha&ter 2

    PROJECT PLN

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    5/59

    Pharmacy Database Management System

    2.1 !eas"b"#"ty St$%y

    ( feasibility analysis involves a detailed assessment of the need" value and

    practicality of a proposed enterprise" such as systems development. The process of

    designing and implementing record )eeping systems has significant accountability

    and resource implications for an organi*ation. +easibility analysis !ill help you ma)e

    informed and transparent decisions at crucial points during the developmental process

    to determine !hether it is operationally" economically and technically realistic to

    proceed !ith a particular course of action.

    Most feasibility studies are distinguished for both users and analysts. +irst" the

    study often presupposes that !hen the feasibility document is being prepared" the

    analyst is in a position to evaluate solutions. Second" most studies tend to overloo) the

    confusion inherent in system development , the constraints and the assumed attitudes.

    2.1.1 O&erat"ona# *eas"b"#"ty

    People are inherently resistant to change" and computers have been )no!n to

    facilitate change. (n estimate should be made of ho! strong a reaction the user staff

    is li)ely to have to!ard the development of a computeri*ed system. %t is common

    )no!ledge that computer installations have something to do !ith turnover" transfers"

    retraining" and changes in employee job status. Therefore" it is understood that the

    introduction of a candidate system re$uires special effort to educate" sell and train the

    staff on ne! !ays of conducting business.

    2.1.2 Techn"ca# *eas"b"#"ty

    Technical feasibility centers around the e-isting computer system hard!are"

    soft!are" etc./ and to !hat e-tend it can support the proposed addition. +or e-ample"

    if the current computer is operating at 0 percent capacity , an arbitrary ceiling , then

    running another application could overload the system or re$uire additional hard!are.

    This involves financial considerations to accommodate technical enhancements. %f the

    budget is a serious constraint" then the project is judged not feasible.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    6/59

    Pharmacy Database Management System

    2.1.' Cost( )ene*"t ana#ys"s

    3conomic analysis is the most fre$uently used method for evaluating the

    effectiveness of a candidate system. More commonly )no!n as cost benefit analysis"

    the procedure is to determine the benefits and savings that are e-pected from a

    candidate system and compare them !ith costs. %f benefits over!eigh costs" then the

    decision is made to design and implement the system. 4ther!ise" further justification

    or alterations in the proposed system !ill have to be made if it is to have a chance of

    being approved. This is an ongoing effort that improves in accuracy at each phase in

    the system life cycle.

    Costs:

    5ost of ne! computer appro-imately 6s. 22"78

    5ost of operating system appro-imately 6s. 78

    )ene*"ts:

    (voids tedious typing tas)

    +aster document retrieval

    Saving storage space

    9eeps data secure

    3asy to use" update and maintain

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    7/59

    Pharmacy Database Management System

    2.2 System na#ys"s

    %t is the most creative and challenging phase of the system life cycle. The analysis

    phase is used to design the logical model of the system !hereas the design phase is

    used to design the physical model.

    Many things are to be done in this phase .!e began the designing process by

    identifying forms" reports and the other outputs the system !ill produce. Then the

    specify data on each !ere pinpointed. !e s)etched the forms or say" the displays" as

    e-pected to appear" on paper" so it serves as model for the project to began finally !e

    design the form on computer display" using one of the automated system design tool"

    that is V%S;(< (S%5 :..

    (fter the forms !ere designed" the ne-t step !as to specify the data to be

    inputted" calculated and stored individual data items and calculation procedure !ere

    !ritten in detail. +ile structure such as paper files !ere selected the procedures !ere

    !ritten so as ho! to process the data and procedures the output during the

    programming phase. The documents !ere design ion the form of charts.

    4utput design means !hat should be the format for presenting the results. %t

    should be in most convenient and attractive format for the user. The input design deals

    !ith !hat should be the input to the system and thus prepare the input format. +ile

    design deals !ith ho! the data has to be stored on physical devices. Process design

    includes the description of the procedure for carrying out operations on the given data.

    2.' System Re+$"rements

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    8/59

    Pharmacy Database Management System

    The system services and goals are established by consultation !ith system user. They

    are then defined in details and serve as a system specification. System re$uirement are

    those on !hich the system runs.

    5ar%are Re+$"rements:

    5omputer !ith either %ntel Pentium processor or (MD processor.

    120M DD6 6(M

    '> hard dis) drive

    So*tare Re+$"rements:

    ?indo!s @0727AP operating system.

    Microsoft 4ffice pac)age.

    Microsoft Visual Studio :.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    9/59

    Pharmacy Database Management System

    2., Data !#o D"agrams

    ( data flo! diagram is a graphical representation or techni$ue depicting

    information flo! and transform that are applied as data moved from input to output.

    The D+D are partitioned into levels that represent increasing information flo! and

    functional details. The processes" data store" data flo!" etc are described in Data

    Dictionary.

    Data *#o:

    Data moves in a specific direction from an origin to destination

    Process:

    Procedure s people or devices that use or transform data

    E/terna# ent"ty:

    This defines a source originator/ or destination of system data.

    Data Store:

    This indicates !here data is stored in the system.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    10/59

    Pharmacy Database Management System

    2.,.1 Conte/t D"agram

    !"g. ;th Le0e# D!D

    %n the thlevel of the D+D the client re$uest the Pharmacy Database process

    for some product or the medicine than the process gives the chec) availability signal

    to the pharmacy Database for the re$uested product or the medicines availability.

    (fter chec)ing the availability" the Database sends the status to the Pharmacy

    Database process. Then the Pharmacy Database process gives the status to the client

    and according to the status the client buys the product and pays the bill and the

    e-ternal entity (ccounts than generates the bill for the purchased product.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    11/59

    Pharmacy Database Management System

    2.,.2 !"rst Le0e# D!D

    !"g. 1st Le0e# D!D

    %n level one of the D+D the client select the mode of the action i.e. !hether he

    !ants to buy a medicine or general store product. %f he selects mode as medicine than

    the flo! of data !ill be as follo!sB

    The process 2. i.e. medicine can enter the medicine information into the

    Database or can retrieve the information from the Database. %f the medicine has to

    soled" than the sales process !ill chec) the stoc) !hether the re$uested medicine is

    available or not" this !ill be done by chec)ing the availability of the medicine and the

    stoc) process !ill reply by giving the status of the available stoc).. %f the re$uested

    medicine is available than the client !ill pay the bill and the account process !ill

    generate the bill for the purchased medicine.

    %f the medicine is purchased than" first the supplier#s information is retrieved

    from the suppliers Database. (fter purchasing the bill amount of the purchased

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    12/59

    Pharmacy Database Management System

    medicine is paid by the account process and the stoc) Database is updated

    automatically after the ne! medicines are purchased.

    %f the client selects the mode as general store i.e. if he !ants to buy a general

    store product" the general store process !ill as) to the sales process for the re$uested

    product" than to chec) !hether the product is available or not the sales process !ill

    chec) the stoc) by giving the chec) availability re$uest to the stoc) process and than

    the stoc) process !ill reply by giving the stoc) status. %f the stoc) of the re$uested

    product is available then the client !ill pay the bill and in turn the (ccount process

    !ill generate the bill for the product purchased by the client.

    %f the product is purchased than the information of the supplier from !hom the

    product is purchased is retrieved from the supplier process by the purchase process

    and if the supplier is ne! than the supplier information is entered in the suppliers

    database.

    The (ccount process also )eeps all the details of the stoc).

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    13/59

    Pharmacy Database Management System

    2.,.' Secon% Le0e# D!D

    !"g. 2n% Le0e# D!D

    +urther in the second level D+D the process . i.e. sales process is

    elaborated.

    %n the sale process" after selecting the mode i.e. medicine or general store the

    further operation is performed. The .1 process is the Medicine sale process in this

    process the patient#s information can be retrieved from the patient Database. %f the

    patient is visiting for the first time than his information or detail is entered in the

    patient database.

    Similarly the Doctor#s information or detail is also entered in the Doctor

    Database" !ho referred to the patient. %f the patient is referred by the ne! Doctor than

    his information can be entered in the doctor#s Database.

    ?ith the help of the medicine sales process the patient#s and Doctor#

    information can be entered or retrieved from the respective Database.

    %f the medicine or general store product has to be sold the information is

    retrieved from the sales database.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    14/59

    Pharmacy Database Management System

    2. System Des"gn

    !"g. Ma"n Screen

    ?hen the system loaded the above screen appears.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    15/59

    Pharmacy Database Management System

    !"g. Master Men$

    The above screen displays the option available under the Master menu.

    The options areB

    Medical and >eneral Stores

    Suppliers Detail

    3-it

    1

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    16/59

    Pharmacy Database Management System

    !"g. Transact"ons Men$

    The above screen displays the options under the Transaction menu.

    The options areB

    Sales

    Purchase

    o Medicine

    o >eneral Stores

    3dit Purchase

    1:

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    17/59

    Pharmacy Database Management System

    !"g. Stoc< Men$

    The above screen displays the options under the Stoc) menu.

    The options areB

    4pening Stoc)

    3dit Stoc)

    1=

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    18/59

    Pharmacy Database Management System

    !"g. Re&ort Men$

    The above screen displays the 6eport menu. %t consists of reports for the Medical

    department and >eneral Stores department.

    The Medical department reports consists ofB

    Daily Sales

    Monthly Sales

    5urrent Stoc)

    Medicine 5ode

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    19/59

    Pharmacy Database Management System

    The >eneral Stores department consists ofB

    Daily Sales

    Monthly Sales

    5urrent Stoc)

    Product 5ode

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    20/59

    Pharmacy Database Management System

    !"g. Me%"c"ne an% 9enera# Stores

    2

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    21/59

    Pharmacy Database Management System

    !"g. Me%"c"ne an% 9enera# Stores "th %ata

    The Medical and >eneral stores module basically deals !ith the information of medicine

    and general store products. The minimum stoc) level can be set here as sho!n in above

    figure. The minimum stoc) level !ill help the user to be !arned !hen the stoc) level

    falls belo! the specified value.

    %n this module the product %D i.e. code for each section is automatically generated. This is

    done !hen the user clic)s on (DD C3? button.

    The navigation buttons provided helps the user to navigate through the records. The

    buttons are P63V%4;S and C3AT. The option to edit" delete and save are also given so

    that the user can modify the records.

    21

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    22/59

    Pharmacy Database Management System

    !"g. S$&"er=s In*ormat"on

    The Supplier#s module deals !ith all the supplier#s information. This information !ill be

    used !hen !e !ant to chec) !hich company supplies !hat products. The basic

    information such as address" telephone number" etc.

    ?henever !e add ne! supplier#s information by clic)ing on (DD C3? button the

    suppliers %D is generated automatically.

    The suppliers %D te-tbo- is loc)ed so that the user !ill not enter an invalid code.

    22

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    23/59

    Pharmacy Database Management System

    !"g. Sa#es Mo%$#e

    2&

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    24/59

    Pharmacy Database Management System

    !"g. Sa#es Mo%$#e "th Data

    The Sales Module deals !ith the sales of products. ?hether the product is of type

    Medicine or >eneral Store is dependent on the action selected. The option for cash or

    credit sales also has been provided for the user.

    %f the payment is in cash the cash balance for today#s sales and total sales !ill be

    accordingly updated. %f payment is credit then no changes !ill be reflected on cash

    balance.

    ?hen !e clic) on (DD C3? button the cash memo or credit memo number is generated

    automatically.The patient#s information is also saved at the same time !hen the entire detail is saved.

    This help for )eeping the details of the creditors. (long !ith the patient#s information the

    doctor#s information" !ho refer the patients to the pharmacy is also )ept.

    2'

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    25/59

    Pharmacy Database Management System

    The module also gives the information about the current stoc) level and the minimum

    stoc) level. %f the stoc) level falls belo! the minimum value it !ill display a critical

    message" !arning the user that the stoc) $uantity level is lo!.

    ?e clic) on S(V3 to save the information and then clic) on P6%CT to print the receipt.

    2

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    26/59

    Pharmacy Database Management System

    !"g. Me%"c"ne P$rchase Mo%$#e

    2:

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    27/59

    Pharmacy Database Management System

    !"g. Me%"c"ne P$rchase Mo%$#e "th Data

    The Medicine Purchase module deals !ith the purchase of the medicine from the

    suppliers. These medicines are then updated in the stoc) table.

    Cote that the bill number and bill date is left blan) as sho!n on the figure above. There

    are cases !hen the bill is sent later than the delivery of the products.

    %n the above figure" user enters the supplier#s code and the supplier#s name automatically

    is displayed.

    2=

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    28/59

    Pharmacy Database Management System

    !"g. 9enera# Store=s P$rchase Mo%$#e

    20

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    29/59

    Pharmacy Database Management System

    !"g. 9enera# Store=s P$rchase Mo%$#e "th Data

    The >eneral Store#s Purchase module deals !ith the purchase of the general store

    products from the suppliers. These products are then updated in the stoc) table.

    the bill number and bill date may be left blan) in the figure above. There are cases !hen

    the bill is sent later than the delivery of the products.

    %n the above figure" user enters the supplier#s code and the supplier#s name automaticallyis displayed.

    2@

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    30/59

    !"g. E%"t P$rchase Mo%$#e

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    31/59

    !"g. E%"t P$rchase Mo%$#e "th Data

    The 3dit Purchase Module is for chec)ing !hether the entries made !ere correct or not.

    The user can search for particular record by entering the challan number and the date.

    The navigation buttons have also been provided to move through the records. The user

    can then edit the particular record and then save it.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    32/59

    !"g. O&en"ng Stoc< Mo%$#e

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    33/59

    !"g. O&en"ng Stoc< Mo%$#e "th Data

    The 4pening Stoc) Module deals !ith the initial stoc) entry !hen the system !ill be

    implemented for the first time.

    This module ta)es the opening stoc) of the medicine and the general store products. The

    option button is provided for this purpose. ?hen selecting the respective option the

    records that are available are displayed.

    Then navigation buttons are also provided for moving through the records. (nd

    accordingly edit the record.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    34/59

    !"g. E%"t Stoc< Mo%$#e

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    35/59

    !"g. E%"t Stoc< Mo%$#e "th Data

    This module deals !ith the ne! entries of the stoc). oth the medicine and general store

    products are available here. ?e can search for a particular stoc) by entering their

    respective code or product %D.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    36/59

    Database str$ct$re

    The tables used are as follo!sB

    MedienenStoc) , )eeps the general store product#s stoc) records.

    Med4pStoc) , )eeps opening stoc) records for medicine.

    >en4pStoc) , )eeps opening stoc) record for products.

    5ust%nfo , )eeps customer information.

    5ash , )eeps records of cash sales.

    DocDetail , )eeps doctors information.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    37/59

    2. Co%"ng Deta"#s

    The Stan%ar% Contro#s> !orms> an% Men$s

    Pro&ert"es

    The properties describe the appearance of the >;% component. ?hen adding a

    component" the Came property should be set immediately" according to the three8letter

    mnemonic naming conventions. The properties are displayed in the Properties ?indo! in

    Came7Value pairs in alphabetical order.

    E0ent Proce%$res

    (n event procedure is a piece of code that responds to events that can occur for

    that object. Most of the events are generated by the user" enabling them to dictate the

    order of e-ecution.

    !orms

    The +orm is the main stage of your application. y default" the Standard 3-eoption starts !ith a form called +orm1. The Came property of the +orm should be

    named !ith a three8letter mnemonic prefi- of frm. 3ach +orm !ill be a ?indo! in

    your application. 5ontrols are added to the form by either double8clic)ing them in the

    toolbo-" or by selecting the control and dra!ing a bounding rectangle on the form. Eour

    application may use more than one form.

    To add a ne! +orm to the project" either select (dd +orm from the Project

    menu or right8clic) the +orms folder in the Project 3-plorer and select" (dd" and then

    +orm.

    To load a ne! form" use the Sho! method. The parameter" vbModal" is optional.

    %f used" vbModal means that the form has focus until closed !ithin the application.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    38/59

    Stan%ar% Contro#s

    5ontrols are added to the +orm from the Toolbo-. 3ach control has a set of

    properties" and a set of event procedures associated !ith it. The follo!ing lists the

    control" reading left to right" top to bottom as they appear in the standard Toolbo-.

    ?hen coding the system !e used a more (dvanced (ctiveA 5ontrol call MS!#e/9r"%

    5ontrol.

    MS!#e/9r"% contro#:

    4ne of the most impressive controls of Visual asic is the MS+le->rid control.

    MS+le->rid control provides all the functionality for building spreadsheet applications"

    !ord processing applications. The MS+le->rid control is an e-tremely useful tool for

    displaying information in a tabular form.

    Eou can add a fle- grid to a Visual asic project easilyF just follo! these stepsB

    1. Select the Project GvbarH 5omponents menu item.

    2. 5lic) the 5ontrols tab in the 5omponents dialog bo-.

    &. Select the Microsoft +le->rid 5ontrol entry in the 5omponents dialog bo-.

    '. 5lose the 5omponents dialog bo- by clic)ing on 49. This displays the +le- >rid

    5ontrol tool in the toolbo-.

    . (dd a fle- grid control to your form in the usual !ay for Visual asic controls"

    using the +le- >rid 5ontrol tool.

    :. Set the fle- grid#s Ros and Co#sproperties to the number of ro!s and columns

    you !ant in your fle- grid. Eou can also customi*e your fle- grid by setting such

    properties as )or%erSty#e" !oreCo#or" )ac

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    39/59

    Co#sThe total number of columns

    Te/tThe te-t in the cell at Ro" Co#/

    !"g. MS!#e/9r"% Contro#

    Data Entry

    The MS+le->rid control is an e-tremely useful tool for displaying data" but it

    lac)s a basic compatibilityB the user cannot edit single cell.

    There are t!o approaches to editing a grid#s cell. The first is to place a Te-to-

    control on the form. 3ach time the user clic)s on a cell" the programs copies the contents

    of the active cell to the Te-to- control and lets the user edit it. The second approach is a

    bit more elegant" but it involves more comple- codingB if u place a Te-to- control !ith

    the e-act same dimensions of the cell being edited right on top of the cell" the user gets

    the impression of editing a cell directly on the grid.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    40/59

    To integrate the Te-to- control !ith the MS+le->rig control" use the

    Ce##4"%th> Ce##5e"ght> Ce##To& and Ce##Le*t properties of the grid" !hich determine

    the current cell#s dimensions and placement on the grid.

    (fter the te-t control is placed e-actly on top of the cell" the contents of the

    current cell are copied to the Te-to-. ?hen the user moves to another cell by clic)ing it"

    the Te-to-#s contents are copied to that cell" and then the Te-to- control is placed over

    it.

    MS+le->rid cells support formatting" including !ord !rap. Eou can format te-t using

    these properties of fle- gridsB

    Ce##!ont)o#%

    Ce##!ontIta#"c

    Ce##!ontName

    Ce##!ontUn%er#"ne

    Ce##!ontStr"

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    41/59

    2.3 System Test"ng

    Testing of the soft!are as a mean of accessing or measuring the soft!are to

    determine its $uality. The area of testing is one of the )ey process areas in ensuring the

    $uality of the soft!are )no!n as Soft!are Iuality (ssurance SI(/.

    Testing is done !ith one primary objective to ensure the $uality of the soft!are

    before it is actually implemented. The main purpose of testing from developer#s point of

    vie! is to gain confidence. %f no error are found at least he is sure that the product under

    development is meeting it re$uired goals in terms of $uality.

    There is no !ay to find !hen to stop testing ho!ever people have follo!ed

    certain norms and guidelines over the course of time. They are as follo!sB

    ?hen the rate of finding errors has reached an acceptable level.

    ased on the si*e of the system" JenoughK errors have been found !here

    JenoughK can be a $uantitative parameter based on historical data.

    Measuring coverage of testing as percentage of line e-ecuted divided by total

    number of lines in the system. %f the percentage id belo! acceptable limits" then

    the test plans have to be enhanced to test areas !here code not been tested.

    8a#"%at"on Test"ng

    %n validation testing !e ensure that all the data entered !as displayed properly on

    the vie! screen and that !e got the e-pected results.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    42/59

    !"g. Cr"t"ca# Error Message

    %n this !ay all the screens !ere chec)ed again and again to ensure proper validation.

    Integrat"on Test"ng

    The last step !as to integrate the various modules in the soft!are. ?e implemented top8

    do!n integration. The integration !as performed in five stepsB

    The main control module !as used as test driver and stubs !ere substituted for

    all components directly subordinate to the main control module.

    Depending on depth first search subordinate stubs !as replaced !ith actualcomponents.

    Tests !ere conducted as each component !ith real component.

    4n completion of each set of tests" another stub is replace !ith real component.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    43/59

    %ntegration testing !as conducted to ensure e-ecution of some subset of tests

    have already been conducted had not propagated unintended side effects.

    Cha&ter '

    4567

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    44/59

    '.1 4hy 8"s$a# )as"c7

    Visual asic provides more of the actual code for a programmer than any other

    non8visual programming language. This ma)es it a !idely used programming language

    for visual applications.

    %f you have ever programmed in the older (S%5 or other command line

    programming language" then you !ill remember that the programmer had to !rite the

    code for entire user interface. Today#s !indo!s" buttons" lists and other application

    features such as menus !ere not built8in to the (S%5 programming language.

    Programmers had to create the code for these features on their o!n.

    (s much as 0L of a programmer#s time !as spent !riting code to create the user

    interface to his applications the visual interface/. To eliminate this huge drain on a

    programmer#s time" Microsoft had provided Visual asic !ith built8in capability to create

    the user interface using nothing more than a mouse.

    Visual asic is itself a !indo! application. Eou load and e-ecute the V system

    just as you do other ?indo!s programsF !e use this running V program to create other

    programs. V is just a tool" albeit an e-tremely po!erful tool" that programmers use to

    !rite" test" and run !indo!s applications.

    8"s$a# )as"c @8)A is an event driven programming language and associateddevelopment environment created by Microsoft. %n business programming" it has one of

    the largest user bases.

    %t is derived heavily from (S%5 and enables rapid application development

    6(D/ of graphical user interface >;%/ applications" access to databases using D(4"

    6D4" or (D4" and creation of (ctiveA controls and objects. ( programmer can put

    together an application using the components provided !ith Visual asic itself.

    This built8in interface creation capability has had the future benefit of

    standardi*ing on the user interface to ?indo!s applications. Today" user can move from

    one !indo! program to another and see the same basic interface tools to !or) !ith8

    allo!ing them to concentrate solely on the uni$ue capabilities of the application.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    45/59

    The bottom line is that you can create an entire application shell the user

    interface/ very $uic)ly and then spend most of your time !or)ing on the features" !hich

    differentiate your application from its competitor.

    Today you need much more than just a languageF you need a graphical

    development tool that can !or) inside the !indo! system and applications that ta)e

    advantage of all the graphical" multimedia" online and multiprocessor activities that

    !indo!s offer.

    Visual asic is such a tool. More than a language" Visual asic lets you generate

    applications that interact !ith every aspect of today#s !indo!s operating systems.

    Lang$age *eat$re

    !"g. 8) Integrate% De0e#o&ment En0"ronment

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    46/59

    ( typical Session in Microsoft Visual asic :

    Visual asic !as designed to be usable by all programmers" !hether novice or

    e-pert. The language is designed to ma)e it easy to create simple >;% applications" but

    also has the fle-ibility to develop fairly comple- applications as !ell. Programming in

    V is a combination of visually arranging components on a form" specifying attributes

    and actions of those components" and !riting additional lines of code for more

    functionality. Since default attributes and actions are defined for the components" a

    simple program can be created !ithout the programmer having to !rite many lines of

    code. Performance problems !ere e-perienced by earlier versions" but !ith faster

    computers and native code compilation this has become less of an issue.

    (lthough programs can be compiled into native code e-ecutables from version

    on!ards" they still re$uire the presence of runtime libraries of appro-imately 2 M in

    si*e. This runtime is included by default in ?indo!s 2 and later" but for earlier

    versions of ?indo!s it must be distributed together !ith the e-ecutable.

    +orms are created using drag and drop techni$ues. ( tools palette is used to place

    controls e.g." te-t bo-es" buttons" etc./ on the form !indo!/. 5ontrols have attributes

    and event handlers associated !ith them. Default values are provided !hen the control is

    created" but may be changed by the programmer. Many attribute values can be modified

    during run time based on user actions or changes in the environment" providing a

    dynamic application. +or e-ample" code can be inserted into the form resi*e event

    handler to reposition a control so that it remains centered on the form" e-pands to fill up

    the form" etc. y inserting code into the event handler for a )eypress in a te-t bo-" the

    program can automatically translate the case of the te-t being entered" or even prevent

    certain characters from being inserted.

    ( Visual asic application can consist of one or more !indo!s" or a single

    !indo! that contains MD% child !indo!s" as provided by the operating system. Dialog

    bo-es !ith less functionality e.g." no ma-imi*e7minimi*e control/ can be used to provide

    pop8up capabilities. 5ontrols provide the basic functionality of the application" !hile

    programmers can insert additional logic !ithin the appropriate event handlers. +or

    e-ample" a drop8do!n combination bo- !ill automatically display its list and allo! the

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    47/59

    user to select any element. (n event handler is called !hen an item is selected" !hich can

    then e-ecute additional code created by the programmer to perform some action based on

    !hich element !as selected" such as populating a related list.

    (lternatively" a Visual asic component can have no user interface" and instead

    provide (ctiveA objects to other programs via 5omponent 4bject Model 54M/. This

    allo!s for server8side processing or an add8in model.

    The language is garbage collected using reference counting" has a large library of

    utility objects" and has basic object oriented support. Since the more common

    components are included in the default project template" the programmer seldom needs to

    specify additional libraries. ;nli)e many other programming languages" Visual asic is

    generally not case sensitive" although it !ill transform )ey!ords into a standard case

    configuration and force the case of variable names to conform to the case of the entry

    !ithin the symbol table entry. String comparisons are case sensitive by default" but can be

    made case insensitive if so desired.

    Visual asic !as designed to meet all real !orld re$uirements !ith its )ey features"

    !hich are e-plained as follo!sB 8

    1. 3vent Driven Programming raphical ;ser %nterface >.;.%/B 8

    %n graphical user interface user can !or) !ith several !indo!s at same time"

    !ithin each !indo! user can !or) on specific tas). ;ser can overlap !indo!s"

    hide" change si*e and locations and even shrin) do!n to icons. ;sing mouse user

    can move from one !indo! to another" the !indo! !hich is selected is an active

    !indo!" most >;% are based on -8!indo! system" -8!indo! is a system used for

    supporting >;%.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    48/59

    &. Database 5onnectivityB 8

    Some databases" such as Microsoft (ccess" store all the related database files in a

    single global file called the database file. %nside the database" the individual

    groups of records and fields are called tables. 4ther database systems" such as

    dase" )eep trac) of a database#s data in multiple files. ?hen you use database

    such as Microsoft (ccess" you must describe both the overall database and the

    individual table name !ithin the database that the Data control is in use.

    '. 5ontrolsB 8

    5ontrols are tools on the Toolbo- !indo! that you place on a form to interact

    !ith the user and control the program flo!. The controls can be self generated and

    can be used again and again in the same application. (s you add controls to the

    +orm !indo!" the properties !indo! updates to sho! the properties for the

    currently selected control. The selected control is usually the control you last

    placed on the form. Visual asic lets you see a control#s properties in the

    Properties !indo! by clic)ing to select the control or by selecting the control

    from the properties !indo!#s drop8do!n list bo-.

    )ene*"ts o* Us"ng 8ISUL )SIC .;

    V no! supports a true compiler that creates standalone runtime .e-e files that

    e-ecute more $uic)ly than previous V programs

    V also includes several !i*ards that offer step8by8step dialog bo- $uestions that

    guide you through the creation of applications.

    V#s development platform" a development environment called the Developer

    Studio.

    Co! supports the same features as the advanced Visual 5 and Visual N

    5ompilers.

    (fter you learn one of Microsoft#s visual programming products" you !ill have

    the s)ills to use the other language products !ithout a long learning curve ahead

    of you.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    49/59

    Visual asic lets you generate applications that interact !ith every e-pect of

    today#s ?indo!s operating systems.

    V#s programming language is fairly simple and uses common 3nglish !ords

    and phases for the most part.

    Microsoft Visual asic :." the latest and greatest incarnation of the old

    language" gives you a complete ?indo!s application development system in one

    pac)age.

    Visual asic lets you !rite" edit" and test ?indo!s applications. V includes

    tools that can be used to !rite and compile help files" (ctiveA controls and even

    %nternet applications.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    50/59

    '.2 4hy M"croso*t ccess

    (ccess is !idely used by small businesses and hobby programmers to create ad

    hoc customi*ed systems for handling small tas)s. %ts ease of use and po!erful design

    tools give the non8professional programmer a lot of po!er for little effort. Oo!ever" thisease of use can be misleading. This sort of developer is often an office !or)er !ith little

    or no training in application or data design. ecause (ccess ma)es it possible even for

    such developers to create usable systems" many are misled into thin)ing that the tool

    itself is limited to such applications.

    Some professional application developers use (ccess for rapid application

    development" especially for the creation of prototypes and standalone applications that

    serve as tools for on8the8road salesmen. (ccess does not scale !ell if data access is via a

    net!or)" so applications that are used by more than a handful of people tend to rely on a

    5lient8Server based solution such as 4racle" D2" Microsoft SI< Server" PostgreSI

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    51/59

    alternative to the Net Database 3ngine. Q3arly versions of MSD3 and Microsoft

    3-change Server actually use the Net engine to handle huge volumes of data and placed a

    fa)e application layer for those applications on top of it.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    52/59

    De0e#o&ment

    The programming language available in (ccess is" as in other products of the

    Microsoft 4ffice suite" Microsoft Visual asic for (pplications. T!o database access

    libraries of 54M components are providedB the legacy Data (ccess 4bjects D(4/" only

    available !ith (ccess" and the ne! (ctiveA Data 4bjects (D4/.

    Microsoft (ccess is easily applied to small projects but scales inefficiently to

    large projects if applications are designed poorly.

    (ll database $ueries" forms" and reports are stored in the database" and in )eeping

    !ith the ideals of the relational model" there is no possibility of ma)ing a physically

    structured hierarchy !ith them.

    4ne design techni$ue is to divide an (ccess application bet!een data and

    programs. 4ne database should contain only tables and relationships" !hile another

    !ould have all programs" forms" reports and $ueries" and lin)s to the first database tables.

    ;nfortunately" (ccess allo!s no relative paths !hen lin)ing" so the development

    environment should have the same path as the production environment (lthough you

    can !rite your o!n dynamic8lin)er routine in V( that can search out a certain bac)8

    end file by searching through the directory tree" if it cant find it in the current path/.

    This techni$ue also allo!s the developer to divide the application among different

    files" so some structure is possible.

    The Microsoft Net Database 3ngine is a database engine on !hich several

    Microsoft products !ere built. ( database engine is the underlying component of a

    database" a collection of information stored on a computer in a systematic !ay. The first

    version of Net !as developed in 1@@2" consisting of three modules !hich could be used to

    manipulate a database.

    N3T stands forJoint Engine Technology" sometimes being referred to asMicrosoft

    JET Engine or simply Jet. Microsoft (ccess" Microsoft 3-change Server and Visual

    asic use or have used Net as their underlying database engine. %t has since been

    superseded" ho!ever" by Microsoft Des)top 3ngine MSD3/ and no longer e-ists as a

    component of Microsoft Data (ccess 5omponents MD(5/. Net databases can be

    upgraded or in Microsoft parlance" up8si*ed/ to an MSD3 database.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    53/59

    Sec$r"ty

    (ccess to Net databases is done on a per user8level. The user information is )ept in

    aseparate system database" and access is controlled on each object in the system for

    instance by table or by $uery/. %n Net '" Microsoft implemented functionality that allo!ed

    database administrators to set security via the SI< commands 563(T3" (DD" (6(CT763V493 commands.?hen Net 2 !as

    released" security could also be set programmatically through D(4.

    B$er"es

    Iueries are the mechanisms that Net uses to retrieve data from the database. They

    can be defined in Microsoft I3 Iuery y 3-ample/" through the Microsoft (ccess

    SI< ?indo! or through (ccess asics Data (ccess 4bjects D(4/ language. These are

    then converted to an SI< S3

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    54/59

    Net passes the data retrieved for the $uery in a dynaset. This is a set of data that is

    dynamically lin)ed bac) to the database. %nstead of having the $uery result stored in a

    temporary table" !here the data cannot be updated directly by the user" the dynaset allo!s

    the user to vie! and update the data contained in the dynaset. Thus" if a university

    lecturer $ueried all students !ho received a distinction in their assignment and found an

    error in that students record" they !ould only need to update the data in the dynaset"

    !hich !ould automatically update the students database record !ithout the need for

    them to send a specific update $uery after storing the $uery results in a temporary table.

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    55/59

    CONCLUSION ND !UTURE SCOPE

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    56/59

    Conc#$s"on an% !$t$re Sco&e

    Detailed information gathering has to be done. ?ithout that the purpose

    for using the soft!are !ont be satisfied properly.

    Oo!ever it can give good profits in the long run.

    %mplementing the soft!are re$uires change in the business practices.

    3fficient organi*ation of all )no!ledge is the analysis company and easy

    analysis access and retrieval of information is possible.

    %n this project !e can also include (6 54D3 facility using the bar code

    reader" !hich !ill detect the e-piry date and the other information about the

    related medicines.

    5ompany using this soft!are !ill al!ays be able to plan in future and

    al!ays be a!are of their financial position in the mar)et.

    %t leads to streamling of business processes.

    The implementation and maintence costs run very high about 2 to & L of

    the company#s revenue./

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    57/59

    )I)LIO9RP56 ND RE!ERENCES

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    58/59

  • 7/24/2019 P-00447--Pharmacy Database Management System in VB

    59/59

    )I)LIO9RP56 ND RE!ERENCES

    )"b#"ogra&hy: -

    - E0ange#os &ero$tsos: - Master"ng 8"s$a# )as"c .;.

    - 9reg Perry> Sanaya 5ett"hea: - 8"s$a# bas"c .; "n 2, ho$rs.

    Re*erences: -

    8 htt&:((.goog#e.co."n8 htt&:((."