Report2 Ready

Embed Size (px)

Citation preview

  • 7/31/2019 Report2 Ready

    1/41

    Contains

    Chapter No Title Page.No

    1 Introduction 1

    2 System Analysis 2

    2.1 Existing System 2

    2.2 Proposed System 3

    2.3 System Requirements 4

    2.3.1 Software Requirements 4

    2.3.2 Hardware Requirements 43 System Design 5

    3.1 DFD 5

    3.2 ER Diagram 6

    4 Database design

    4.1 Database design 7

    4.2 Relational data base 9

    5 Module 10

    6 Graphical User Interface 11

    7 Source Code 16

    8 Data Report 29

    9 Testing 33

    10 Advantages & Limitations 34

    11 Conclusion 35

    12 Future Enhancement 36

    13 Bibliography & references 37

    LIST OF FIGURES

    1

  • 7/31/2019 Report2 Ready

    2/41

    FIGURE NO NAME PAGE NO

    3.1.1 DFD Diagram 5

    3.2.1 ER Diagram 6

    6.1.1 Start Screen 11

    6.2.1 Home Screen 12

    6.3.1 Reg. Form For User 13

    6.4.1 Search And Update Screen 14

    6.5.1 Equipment Report Interface 15

    8.1.1 Trainer (Data Report) 29

    8.2.1 Computer Tools(Data Report) 30

    8.3.1 Machines Catlog 31

    8.4.1 Member Information 32

    2

  • 7/31/2019 Report2 Ready

    3/41

  • 7/31/2019 Report2 Ready

    4/41

    2. SYSTEM ANALYSIS

    2.1 Draw backs of the existing system

    A lot of manpower is involved for manual system.

    Many registers are required for keeping records . A lot of work is involved or time is wasted incase of addition or searching of records for particular staff.

    Due to keeping various records a problem of data redundancy and inconsistency occurs since theserecords are kept in different registers.

    A manual system can not give security and reliability of data.

    2.2 Proposed System

    Proposed System is entirely computerized. This system is database system. Accessing data,Returning data or printing reports is done at the moment of the click of the mouse.

    The proposed system should meet the users need. Interviewing and Questionnaires is done at the preliminary stage. The analysis and design phase is important. The communication andcontact with user regularly is must. Feedbacks are taken. All information is collected.Finally testing of system is done.

    To sort details of member and easily retrieve then whenever required.

    Useful for timely and complete information about Computer Management.

    To avoid mistakes in the database.

    Daily transaction is fast.

    We can access and proposed data in short.

    4

  • 7/31/2019 Report2 Ready

    5/41

    2.3 SYSTEM REQUIREMENTS

    2.3.1 Software specifications

    Front End : Visual Basic 6.0

    Back End : MS ACCESS

    2.3.2 Hardware Requirements

    Processor : Intel Pentium 1.8GHz or higher.

    Hard disk : 40 GB.

    RAM size : 256 MB DDR or 512MB DDR.

    Keyboard : 120 keyword.

    Mouse : Optical Logitech.

    5

  • 7/31/2019 Report2 Ready

    6/41

    3.SYSTEM DESIGN

    3.1 Data Flow Diagram

    Hardware Detail All Details

    Report

    Software Detail generation

    Fig 3.1.1

    6

    0.0

    Computer

    Management

    HARDWARE

    DETAILCOMPUTER

    SOFTWARE

    DETAIL Database

  • 7/31/2019 Report2 Ready

    7/41

    3.2 ER Diagram

    7

    hardware

    Unit id typedepartme

    nt

    I S A

    computer computer

    Motherboard

    MotherboardProcessor

    Processor

  • 7/31/2019 Report2 Ready

    8/41

    4.DATABASE DESIGN

    4.1 Tables4.1.1 Table : Member_Details

    Field Name Data Type Field SizeUnit_id Int -----Department Char 24Brand name Char -----Type Varchar 50Colour Varchar 20Motherboard Char ----HDD int 20RAM int 20Processor Varchar ----

    NIC Int ----Video card Int ----Sound card Varchar 20mouse Varchar ----keyboard Varchar ----

    monitor Varchar ----

    UPS Varchar ----Speaker Varchar ----

    8

  • 7/31/2019 Report2 Ready

    9/41

    4.2 RELATIONAL DATABASE QUERIES

    create database Amol on primary(name=A1data,filename='F:\Amol\Amol.mdf',size=10mb,maxsize=25mb,filegrowth=20%)logon(name=A1log,filename='F:\Amol\Amol.ldf',size=10mb,maxsize=25mb,filegrowth=20%);

    Create table m_r

    ( m_id int primary key,name char(20),dob datetime, addr varchar(50), email varchar(20),mobileint,occupation varchar(20),addro varchar(50),age int,height int,weight int,workoutvarchar(20),ondate datetime);

    Create table t_r ( name char(20),dob datetime, addr varchar(50), email varchar(20),mobile int,age int,heightint,weight int,type varchar(20));

    create table bar

    (Type_Of_Bar varchar(20),Quntity int);

    create table free_weight

    (Weght_in_kg varchar(20),Quntity int);

    create table machine

    (Machine varchar(20),Quntity int);

    create table bench(Bench varchar(20),Quntity int);

    create table dumbells

    (Type_Of_Dumbells varchar(20),Quntity int);

    9

  • 7/31/2019 Report2 Ready

    10/41

    5.Module

    All The Mentioned Below Operations Can Be Handle By The Administrator OnThe Database

    Member Module1. Add New computer

    2. Delete computer

    3. Update computer 4. Search computer

    10

  • 7/31/2019 Report2 Ready

    11/41

    6. GRAPHICAL USER INTERFACE

    Welcome Screen

    Home Screen

    11

  • 7/31/2019 Report2 Ready

    12/41

    Insert Record Of Member

    12

  • 7/31/2019 Report2 Ready

    13/41

    Print Records of Trainer

    13

  • 7/31/2019 Report2 Ready

    14/41

    Insert Record Of Trainer

    14

  • 7/31/2019 Report2 Ready

    15/41

    Print Results of Trainer

    15

  • 7/31/2019 Report2 Ready

    16/41

    Insert New Tool In Database

    16

  • 7/31/2019 Report2 Ready

    17/41

    Update Record

    17

  • 7/31/2019 Report2 Ready

    18/41

    Delete Record

    18

  • 7/31/2019 Report2 Ready

    19/41

  • 7/31/2019 Report2 Ready

    20/41

    7. SOURCE CODE

    HOME PAGE

    Private Sub CA_Click()

    End

    End Sub

    Private Sub Command1_Click()

    Form1.Show

    Unload Me

    End Sub

    Private Sub cmdaddmem_Click()

    Form2.Show

    Unload Me

    End Sub

    Private Sub Command1_Click()

    Form5.Show

    Unload Me

    End Sub

    Private Sub cmdaddtra_Click()

    Form3.Show

    Unload Me

    End Sub

    Private Sub Command10_Click()End Sub

    Private Sub Command11_Click()

    Unload Me

    End Sub

    20

  • 7/31/2019 Report2 Ready

    21/41

    Private Sub Command13_Click()

    'add

    Frame1.Visible = False 'add

    Command3.Visible = Falsecmdaddmem.Visible = False

    cmdaddtra.Visible = False

    'print

    Frame2.Visible = True 'print

    Command1.Visible = True

    Command2.Visible = True

    Command15.Visible = True

    'update

    Frame3.Visible = False 'update

    Command4.Visible = False

    Command5.Visible = False

    Command16.Visible = False

    Command6.Visible = False

    End Sub

    Private Sub Command14_Click()

    'add

    Frame1.Visible = False 'add

    Command3.Visible = False

    cmdaddmem.Visible = False

    cmdaddtra.Visible = False

    'print

    Frame2.Visible = False 'print

    Command1.Visible = False

    21

  • 7/31/2019 Report2 Ready

    22/41

    Command2.Visible = False

    Command15.Visible = False

    'update

    Frame3.Visible = True 'updateCommand4.Visible = True

    Command5.Visible = True

    Command16.Visible = True

    Command6.Visible = True

    End Sub

    Private Sub Command15_Click()

    Form7.Show

    Unload Me

    End Sub

    Private Sub Command16_Click()

    Form8.Show

    Unload Me

    End Sub

    Private Sub Command2_Click()

    Form6.Show

    Unload Me

    End Sub

    Private Sub Command12_Click()

    Frame1.Visible = True

    Command3.Visible = True

    cmdaddmem.Visible = True

    cmdaddtra.Visible = True

    'print

    22

  • 7/31/2019 Report2 Ready

    23/41

    Frame2.Visible = False 'print

    Command1.Visible = False

    Command2.Visible = False

    Command15.Visible = False'update

    Frame3.Visible = False 'update

    Command4.Visible = False

    Command5.Visible = False

    Command16.Visible = False

    Command6.Visible = False

    End Sub

    Private Sub Command3_Click()

    Form4.Show

    Unload Me

    End Sub

    Private Sub Command4_Click()

    Form10.Show

    Unload Me

    End Sub

    Private Sub Command5_Click()

    Form11.Show

    Unload Me

    End Sub

    Private Sub Command6_Click()

    Form9.Show

    Unload Me

    End Sub

    23

  • 7/31/2019 Report2 Ready

    24/41

  • 7/31/2019 Report2 Ready

    25/41

    End Sub

    Private Sub omember_Click()

    Form5.Show

    Unload MeEnd Sub

    Private Sub otrainer_Click()

    Form6.Show

    Unload Me

    End Sub

    Private Sub tc_Click()

    DataReport2.Show

    End Sub

    Private Sub tc1_Click()

    DataReport3.Show

    End Sub

    Private Sub trainer_Click()

    Form3.Show

    Unload Me

    End Sub

    Add member

    Dim rs As ADODB.Recordset

    Dim cn As ADODB.Connection

    Private Sub Command1_Click()

    fname.Text = ""

    lname.Text = ""

    con.Text = ""

    addr.Text = ""

    25

  • 7/31/2019 Report2 Ready

    26/41

    'date1.Text = ""

    End Sub

    Private Sub Command2_Click()

    If (fname.Text = " " Or lname.Text = " " Or addr.Text = " " Or date1.Text = " " Or con.Text = " ")Then

    MsgBox "Please Enter All The Fields"

    Else

    'On Error Resume Next

    rs.MoveLast

    With rs

    .AddNew

    rs("id") = Text2.Text

    MsgBox "error"

    rs("name") = fname.Text

    rs("addr") = addr.Text

    rs("contact") = con.Text

    rs("lastname") = lname.Text

    rs("date") = date1.Text

    rs("fees") = 500

    rs("mytrainer") = Text3.Text

    .Update

    MsgBox "Record added successfully!!!...", vbInformation

    Form5.Show

    Unload Me

    End With

    End If

    End Sub

    Private Sub Command3_Click()

    26

  • 7/31/2019 Report2 Ready

    27/41

    Form1.Show

    Unload Me

    End Sub

    Private Sub con_KeyPress(KeyAscii As Integer)If (KeyAscii = vbKeyDelete Or KeyAscii = vbKeyBack Or vbspace Or (KeyAscii >= 48 AndKeyAscii = 48 AndKeyAscii >= 57)) Then

    Exit Sub

    Else

    KeyAscii = 0

    MsgBox ("Enter Characters Only")

    End If

    End Sub

    Private Sub Form_Load()Adodc1.Visible = False

    Set cn = New ADODB.Connection

    Set rs = New ADODB.Recordset

    27

  • 7/31/2019 Report2 Ready

    28/41

    cn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;InitialCatalog=prk;Data Source=AMOL-1\SQLEXPRESS"

    rs.ActiveConnection = cn

    rs.Open "member", cn, adOpenDynamic, adLockOptimistic

    On Error Resume Next

    date1.Text = Date

    date1.Enabled = False

    Text1.Enabled = False

    rs.MoveLast

    Dim temp As Integer

    temp = rs("id")

    Text2.Text = temp + 1

    End Sub

    Private Sub lname_KeyPress(KeyAscii As Integer)

    If (KeyAscii = vbKeyDelete Or KeyAscii = vbKeyBack Or vbspace Or (KeyAscii >= 48 AndKeyAscii >= 57)) Then

    Exit Sub

    Else

    KeyAscii = 0

    MsgBox ("Enter Characters Only")

    End If

    End Sub

    Add trainer

    Dim rs As ADODB.RecordsetDim cn As ADODB.Connection

    Private Sub Command1_Click()

    fname.Text = " "

    lname.Text = " "

    28

  • 7/31/2019 Report2 Ready

    29/41

    addr.Text = " "

    con.Text = " "

    End Sub

    Private Sub Command2_Click()If (fname.Text = " " Or lname.Text = " " Or addr.Text = " " Or con.Text = " ") Then

    MsgBox "Please Enter All The Fields"

    Else

    'On Error Resume Next

    rs.MoveLast

    With rs

    .AddNew

    rs("id") = Text1.Text

    rs("fname") = fname.Text

    rs("lname") = lname.Text

    rs("addr") = addr.Text

    rs("con") = con.Text

    rs("date") = date1.Text

    .Update

    MsgBox "Record added successfully!!!...", vbInformation

    Form6.Show

    Unload Me

    End With

    End If

    End Sub

    Private Sub Command3_Click()

    Form1.Show

    Unload Me

    29

  • 7/31/2019 Report2 Ready

    30/41

    End Sub

    Private Sub con_KeyPress(KeyAscii As Integer)

    If (KeyAscii = vbKeyDelete Or KeyAscii = vbKeyBack Or vbspace Or (KeyAscii >= 48 AndKeyAscii = 48 AndKeyAscii >= 57)) Then

    Exit Sub

    Else

    KeyAscii = 0

    MsgBox ("Enter Characters Only")

    End If

    End Sub

    Private Sub Form_Load()

    Adodc1.Visible = False

    Set cn = New ADODB.Connection

    Set rs = New ADODB.Recordset

    cn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;InitialCatalog=prk;Data Source=AMOL-1\SQLEXPRESS"

    rs.ActiveConnection = cn

    rs.Open "trainer", cn, adOpenDynamic, adLockOptimistic

    On Error Resume Next

    30

  • 7/31/2019 Report2 Ready

    31/41

    rs.MoveLast

    Dim temp As Integer

    temp = rs("id")

    Text1.Text = temp + 1date1.Text = Date

    date1.Enabled = False

    End Sub

    Private Sub lname_KeyPress(KeyAscii As Integer)

    If (KeyAscii = vbKeyDelete Or KeyAscii = vbKeyBack Or vbspace Or (KeyAscii >= 48 AndKeyAscii >= 57)) Then

    Exit Sub

    Else

    KeyAscii = 0

    MsgBox ("Enter Characters Only")

    End If

    End Sub

    Add tools

    Dim rs As ADODB.Recordset

    Dim cn As ADODB.Connection

    Private Sub Command1_Click()

    qu.Text = ""

    ttype.Text = ""

    End Sub

    Private Sub Command2_Click()

    Home.Show

    Unload Me

    End Sub

    31

  • 7/31/2019 Report2 Ready

    32/41

    Private Sub Command3_Click()

    If (ttype.Text = "" Or qu.Text = "") Then

    MsgBox ("Please Enter All The Fields")

    Else'On Error Resume Next

    rs.MoveLast

    With rs

    .AddNew

    rs("qu") = qu.Text

    rs("type") = ttype.Text

    .Update

    End With

    MsgBox ("Tool Added Successfully")

    Form7.Show

    Unload Me

    End If

    Adodc1.Visible = False

    Set cn = New ADODB.Connection

    Set rs = New ADODB.Recordset

    cn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;InitialCatalog=prk;Data Source=AMOL-1\SQLEXPRESS"

    rs.ActiveConnection = cn

    rs.Open "tools", cn, adOpenDynamic, adLockOptimistic

    On Error Resume Next

    rs.MoveFirst

    End Sub

    Member Info

    Private Sub Command1_Click()

    32

  • 7/31/2019 Report2 Ready

    33/41

    Form1.Show

    Unload Me

    End Sub

    Private Sub Command2_Click()DataReport1.Show

    End Sub

    Private Sub Command3_Click()

    frmSplash1.Show

    Unload Me

    End Sub

    Private Sub Form_Load()

    Adodc1.Visible = False

    End Sub

    Trainer Info

    Private Sub Command1_Click()

    Form1.Show

    Unload Me

    End Sub

    Private Sub Command2_Click()

    DataReport2.Show

    End Sub

    Private Sub Form_Load()

    Adodc1.Visible = False

    End Sub

    Delete Member

    Dim cn As ADODB.Connection

    Dim rs As ADODB.Recordset

    33

  • 7/31/2019 Report2 Ready

    34/41

    Private Sub Command3_Click()

    Dim temp As Integer

    Dim s As String

    If Text1.Text = "" ThenMsgBox ("Enter The Id Please")

    ElseIf rs.EOF = True Or rs.BOF = True Then

    MsgBox "no record exist"

    Else

    temp = Val(Text1.Text)

    s = "delete from member where id=" & temp

    cn.Execute s

    MsgBox ("Record Deleted Successfully")

    Adodc1.Refresh

    DataGrid1.Refresh

    Text1.Text = ""

    Text1.SetFocus

    End If

    End Sub

    Private Sub Command4_Click()

    Form1.Show

    Unload Me

    End Sub

    Private Sub Form_Load()

    MsgBox ("Please Enter the ID of Member !")

    Adodc1.Visible = False

    Set cn = New ADODB.Connection

    Set rs = New ADODB.Recordset

    34

  • 7/31/2019 Report2 Ready

    35/41

    cn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;InitialCatalog=prk;Data Source=AMOL-1\SQLEXPRESS"

    rs.ActiveConnection = cn

    rs.Open "member", cn, adOpenDynamic, adLockOptimistic

    On Error Resume Next

    End Sub

    Delete Trainer

    Dim cn As ADODB.Connection

    Dim rs As ADODB.Recordset

    Private Sub Command3_Click()

    'On Error Resume Next

    Dim s As String

    Dim temp As Integer

    If rs.EOF = True And rs.BOF = True Then

    MsgBox "no record exist"

    Exit Sub

    ElseIf Text1.Text = "" Then

    MsgBox "Please Enter Name !!!"

    Else

    temp = Val(Text1.Text)

    s = "delete from trainer" & _

    " where id= " & temp

    cn.Execute s

    MsgBox "Record deleted"

    Adodc1.Refresh

    DataGrid1.Refresh

    Text1.Text = ""

    Text1.SetFocus

    35

  • 7/31/2019 Report2 Ready

    36/41

  • 7/31/2019 Report2 Ready

    37/41

    9. TESTING

    Proposed System is entirely computerized. This system is database system. Accessing data,Returning data or printing reports is done at the moment of the click of the mouse.

    The proposed system should meet the users need. Interviewing and Questionnaires is done at the preliminary stage. The analysis and design phase is important. The communication andcontact with user regularly is must. Feedbacks are taken. All information is collected.Finally testing of system is done.

    To add a new record

    To edit an existing record

    To search for a record

    To delete a record

    To view the first record

    To view the last record

    To view the intermediate records

    37

  • 7/31/2019 Report2 Ready

    38/41

    10 . ADVANTAGES & LIMITATIONS

    10.1 Advantages

    1.1. Option to find and print previous saved invoice

    2. Can access any report and sensitive data, also no reports to find out the hardwaredetails and summary report.

    3. This Computer Management is used to overcome the entire problem which they arefacing currently, and making complete atomization of manual system

    10.2 Limitations

    Less Security

    38

  • 7/31/2019 Report2 Ready

    39/41

    11.CONCLUSION

    In todays ever expanding and demanding world there is always a need as well as scope toenhance the capability of an individual, with the help of technology. In todays world wherecomputers are used extensively so as to speedup various processes. Hence this project of ourstries to confront some problems faced in Time Table Scheduling, this project provides with anenhanced alternative which is far cheaper then the conventional methods of record keeping,apart from being cheap it is also very simple to implement.

    Due to this project we were able to learn many things in Microsoft Visual Basic, as well as theSQL Server 2005 which is used as back end for database. This project also gave us anexperience of working in a group and securing a nice co-ordination between all of the

    partners.

    39

  • 7/31/2019 Report2 Ready

    40/41

  • 7/31/2019 Report2 Ready

    41/41

    13.1 For Database

    1. Database System Concepts

    Silberschatz A., Korth H., Sudarshan S.

    13.2 For VB6.0

    1. Visual Basic 6 Programming

    Black Book DreamTeach Press

    13.3 For Softwere Engineering

    1. Softwere Engineering

    Roger Pressman