Anda di halaman 1dari 14

LPU

ACKNOWLEDGEMENT
F irs t fo re m o s t I th a n k to G o d a n d a c k n o w le d g e m y h e a rtfe l
g r a t i t u d e tLoE C T P A N K A J S H A RwMh A o is a te a c h e r o f
e x c e p tio n a l In te llig e n c e , k n o w le d g e , a b ility a n d q u a litie s ,
q u ite re a d ily a n d s u b s e q u e n tly lik e a b e a c o n o f lig h t g u id e
m e in s u c h a p e rs u a s iv e m a n n e r th a t I w a s c a p a b le to
c o m p le te th is a m b itio u s ta s k w ith o u t h a v in g fa c e d a n y
d iffic u lt.
I w o u ld b e im p ro p e r o n m y p a rt if a t th is p o in t o f tim e I a m
h u m b le e n o u g h to c o n v e y m y th a n k fu ln e s s to m y fa m ily
p ro v id e d m e e v e ry k in d o f a s s is ta n c e a n d d id e x p e c te d
th em .
W h ile a c k n o w le d g in g m y d e p t to a ll th o s e w h o h e lp m e .
s im p ly c a n n o t b e o b liv io u s o f m y frie n d s a n d c la s s m a te s
p ro v id e d to m e e v e ry s o rt o f h e lp re q u ire d o f th e m . I m a k
b e s t e ffo rt to m a k e it e ffe c tiv e ly u s e d in fu tu re .
I a m v e ry th a n k fu l to th e u n iv e rs ity le c tu re rs , m y frie n d s ,
m y ro o m m a te s fo r p re p a rin g th is T E R M P A P E R

P a rm in d e r P a l S in g h
INTRODUCTION

Lab Management
Characteristics

5 Ages of Lab Management

Feasibility Study

• Economical feasibility

• Technical feasibility

• Behavioural feasibility

Front end visual basic 6.0


Testing
Coding
Final output
Introduction to Lab management
In lab management we have to save the data of lab we have
store all record . We have some fields and need
to save data in any DBMS.

What are Lab Management


user roles?
There are four roles in Lab Management from which to
choose that you can assign to users.

Listed in the order of minimum-to-maximum number of


privileges, the roles are:

• Lab Management - User Access — Enables the


user to allocate systems that are free (available) and
log in to any system in a Project as a regular user. If a
system is allocated to the user, she or he has
administrative access (root or Administrator access)
on that system. This role is assigned at the Project
scope.
• Lab Management - Root Access — Includes the
privileges of the previous role plus access to any
system in the Project regardless of who the system
owner is. The user can also upload and modify files in
the Project Build Library with this level of access. This
role is assigned at the Project scope.
• Lab Management - Project Admin — Includes
the privileges of the previous role plus the ability to
re-allocate systems in the user’s Project, make certain
changes to the user’s project, and view project audit
logs. This role is assigned at the Project scope.
• Lab Management - Domain Admin — Includes
the privileges of the Lab Management - Project Admin
role in every project in Lab Management plus the right
to re-allocate hosts between projects, add and delete
hosts and projects, forward ports and URLs on the Lab
Management Manager Server, and view user audit
logs. Additionally, there are several other site-level
configurations such as Port Forwarding and Host URL
Mapping that the Lab Management Domain Admin
role can perform.

Everything will be clear in Source code or execution.

Form1
Imports System.Data.Odbc
Public Class Form1
Dim a As DialogResult
'Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint

'End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click

a = MessageBox.Show("confirm quit", "confirm",


MessageBoxButtons.YesNo)
If a = Windows.Forms.DialogResult.Yes Then
End
Else

End If
End Sub

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object,


ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
Handles LinkLabel1.LinkClicked
Form2.Show()
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Dim con As New OdbcConnection("dsn=livewire")
con.Open()
Dim qry As String

qry = "select username from login where username='" +


TextBox1.Text + "'"
Dim qry1 As String
qry1 = "select password from login where password='" +
TextBox2.Text + "'"
Dim com As New OdbcCommand(qry, con)
Dim com1 As New OdbcCommand(qry1, con)
Dim a As String
Dim b As String
a = com.ExecuteScalar()
b = com1.ExecuteScalar()
con.Close()

If a = TextBox1.Text And b = TextBox2.Text Then


Form3.Show()
Else
a = MessageBox.Show("invalid entry want to reset?", "confirm",
MessageBoxButtons.YesNo)
If a = Windows.Forms.DialogResult.Yes Then
TextBox1.Clear()
TextBox2.Clear()
Else
End

End If

End If
End Sub
End Class

Form2
Imports System.Data.Odbc
Public Class Form2

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
Me.Close()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Dim con As New OdbcConnection("dsn=livewire")
con.Open()
Dim qry As String
qry = "insert into
login(name,department,phoneno,idno,username,password)values('" +
TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" +
TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "')"
Dim com As New OdbcCommand(qry, con)
com.ExecuteNonQuery()
con.Close()
MessageBox.Show("account created")
Me.Close()
End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles TextBox1.TextChanged

End Sub
End Class
Form3
Imports System.Data.Odbc
Public Class Form3
Dim a As String
Private Sub StatusStrip1_ItemClicked(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.ToolStripItemClickedEventArgs)

End Sub

Private Sub DataGridView1_Click(ByVal sender As Object, ByVal e


As System.EventArgs)
End Sub

Private Sub Form3_Resize(ByVal sender As Object, ByVal e As


System.EventArgs) Handles Me.Resize
End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs)

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs)
Me.Close()
Form1.Show()
End Sub
Private Sub DataGridView1_CellContentClick_1(ByVal sender As
System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs)

End Sub

Private Sub DataGridView1_CellContentClick_2(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs)

End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles Button6.Click
Dim con As New OdbcConnection("dsn=livewire")
Dim qry As String
con.Open()
qry = "insert into details values('" + TextBox1.Text + "','" +
TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','"
+ TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text +
"','" + DateTimePicker1.Text + "','" + RichTextBox1.Text + "','" +
RichTextBox2.Text + "')"
Dim com As New OdbcCommand(qry, con)
com.ExecuteNonQuery()
MessageBox.Show("record created")
con.Close()

End Sub

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'DataSet1.details'
table. You can move, or remove it, as needed.
Me.DetailsTableAdapter.Fill(Me.DataSet1.details)
'TODO: This line of code loads data into the 'DataSet6.details'
table. You can move, or remove it, as needed.
Me.DetailsTableAdapter2.Fill(Me.DataSet6.details)
'TODO: This line of code loads data into the 'DataSet5.details'
table. You can move, or remove it, as needed.
'Me.DetailsTableAdapter1.Fill(Me.DataSet5.details)
'TODO: This line of code loads data into the 'DataSet1.details'
table. You can move, or remove it, as needed.
'Me.DetailsTableAdapter.Fill(Me.DataSet1.details)

End Sub

Private Sub TextBox5_TextChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
TextBox5.TextChanged

End Sub

Private Sub TextBox6_TextChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
TextBox6.TextChanged

End Sub

Private Sub Button8_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles Button8.Click
Dim con As New OdbcConnection("dsn=livewire")
Dim qry As String
con.Open()
qry = "delete from details where systemno='" + TextBox5.Text
+ "'"

Dim com As New OdbcCommand(qry, con)


com.ExecuteNonQuery()
con.Close()

End Sub

Private Sub Button7_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles Button7.Click
Dim sysno As String
sysno = TextBox1.Text
If TextBox5.Text = "" Then
MessageBox.Show("please enter system no.")
Exit Sub
Else
Dim con As New OdbcConnection("dsn=livewire")
Dim qry, qry1, qry2, qry3, qry4, qry5, qry6, qry7, qry8, qry9
As String
con.Open()
qry = "update details set labincharge='" + TextBox1.Text +
"'where systemno='" + sysno + "'"
qry1 = "update details set phoneno='" + TextBox2.Text +
"'where systemno='" + sysno + "'"
qry2 = "update details set blockno='" + TextBox3.Text +
"'where systemno='" + sysno + "'"
qry3 = "update details set labno='" + TextBox4.Text +
"'where systemno='" + sysno + "'"
qry4 = "update details set systemno='" + TextBox5.Text +
"'where systemno='" + sysno + "'"
qry5 = "update details set vendor='" + TextBox6.Text +
"'where systemno='" + sysno + "'"
qry6 = "update details set manufacturer='" + TextBox7.Text
+ "'where systemno='" + sysno + "'"
qry7 = "update details set dateofentry='" +
DateTimePicker1.Text + "'where systemno='" + sysno + "'"
qry8 = "update details set specification='" +
RichTextBox1.Text + "'where systemno='" + sysno + "'"
qry9 = "update details set complaint='" +
RichTextBox2.Text + "'where systemno='" + sysno + "'"

Dim com As New OdbcCommand(qry, con)


Dim com1 As New OdbcCommand(qry1, con)
Dim com2 As New OdbcCommand(qry2, con)
Dim com3 As New OdbcCommand(qry3, con)
Dim com4 As New OdbcCommand(qry4, con)
Dim com5 As New OdbcCommand(qry5, con)
Dim com6 As New OdbcCommand(qry6, con)
Dim com7 As New OdbcCommand(qry7, con)
Dim com8 As New OdbcCommand(qry8, con)
Dim com9 As New OdbcCommand(qry9, con)

com.ExecuteNonQuery()
com1.ExecuteNonQuery()
com2.ExecuteNonQuery()
com3.ExecuteNonQuery()
com4.ExecuteNonQuery()
com5.ExecuteNonQuery()
com6.ExecuteNonQuery()
com7.ExecuteNonQuery()
com8.ExecuteNonQuery()
com9.ExecuteNonQuery()

con.Close()
MessageBox.Show("account updated")
Me.Close()
Form1.Show()
End If

'Dim con As New OdbcConnection("dsn=livewire")


'Dim qry As String
'con.Open()
'qry = "update details set systemno='" + TextBox5.Text + "'
where labincharge='" + TextBox1.Text + "'"
'If TextBox5.Text = "" Then
' Exit Sub
'Else
' Dim com As New OdbcCommand(qry, con)
' com.ExecuteNonQuery()
' con.Close()
'End If
End Sub

Private Sub DataGridView1_CellContentClick_3(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles Button1.Click
Dim con As New OdbcConnection("dsn=livewire")
Dim qry, qry1 As String
Dim systemno As String
Dim dr As OdbcDataReader
con.Open()
systemno = TextBox1.Text
qry1 = "Select * from details where systemno='" & systemno &
"'"
Dim com1 As New OdbcCommand(qry1, con)
Dim a As String = com1.ExecuteScalar()
If TextBox4.Text = a Then

qry = "Select * from details where systemno='" & systemno


& "'"
Dim Com As New OdbcCommand(qry, con)
dr = Com.ExecuteReader

If (dr.HasRows) Then
While dr.Read

TextBox1.Text = dr.Item("labincharge")
TextBox2.Text = dr.Item("phoneno")
TextBox3.Text = dr.Item("blockno")
TextBox4.Text = dr.Item("labno")
TextBox5.Text = dr.Item("systemno")
TextBox6.Text = dr.Item("vendor")
TextBox7.Text = dr.Item("manufacturer")
DateTimePicker1.Text = dr.Item("dateofentry")
RichTextBox1.Text = dr.Item("specification")
RichTextBox2.Text = dr.Item("complaint")

End While
End If
Else
MessageBox.Show("invalid entry")
TextBox4.Clear()

End If
con.Close()

End Sub
End Class

Anda mungkin juga menyukai