You are on page 1of 13

Rd3802B53

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

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 . 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 . 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 .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 . m y frie n d s .

We have some fields and need to save data in any DBMS. .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 . What are Lab Management user roles? There are four roles in Lab Management from which to choose that you can assign to users.Feasibility Study • Economical feasibility • Technical feasibility • Behavioural feasibility Front end visual basic 6.

she or he has administrative access (root or Administrator access) on that system. and view project audit logs. the roles are: • Lab Management . • Lab Management . Everything will be clear in Source code or execution. there are several other site-level configurations such as Port Forwarding and Host URL Mapping that the Lab Management Domain Admin role can perform. forward ports and URLs on the Lab Management Manager Server. This role is assigned at the Project scope. If a system is allocated to the user. • 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. and view user audit logs.Project Admin — Includes the privileges of the previous role plus the ability to re-allocate systems in the user’s Project. Listed in the order of minimum-to-maximum number of privileges.Root Access — Includes the privileges of the previous role plus access to any system in the Project regardless of who the system owner is. • Lab Management . add and delete hosts and projects.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. This role is assigned at the Project scope. Additionally. The user can also upload and modify files in the Project Build Library with this level of access. make certain changes to the user’s project. . This role is assigned at the Project scope.

Yes Then End Else End If End Sub Private Sub LinkLabel1_LinkClicked(ByVal sender As System.DialogResult. ByVal e As System.Odbc Public Class Form1 Dim a As DialogResult 'Private Sub Panel1_Paint(ByVal sender As System.YesNo) If a = Windows.Windows.Object. ByVal e As System.Paint 'End Sub Private Sub Button2_Click(ByVal sender As System. ByVal e As System.Form1 Imports System.Data.Forms.LinkClicked Form2.Click a = MessageBox.Open() Dim qry As String qry = "select username from login where username='" + TextBox1.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object.Click Dim con As New OdbcConnection("dsn=livewire") con. "confirm".Windows.EventArgs) Handles Button2.EventArgs) Handles Button1.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.Forms.PaintEventArgs) Handles Panel1.Text + "'" Dim qry1 As String .Forms.Object. ByVal e As System.Show("confirm quit". MessageBoxButtons.Object.

qry1 = "select password from login where password='" + TextBox2.Object.Text Then Form3.Text + "'" Dim com As New OdbcCommand(qry.Close() If a = TextBox1.Yes Then TextBox1.DialogResult. con) Dim com1 As New OdbcCommand(qry1.YesNo) If a = Windows. "confirm".Close() End Sub . con) Dim a As String Dim b As String a = com. ByVal e As System.Show() Else a = MessageBox.Clear() Else End End If End If End Sub End Class Form2 Imports System.Clear() TextBox2.Click Me.Data.ExecuteScalar() b = com1.Text And b = TextBox2.EventArgs) Handles Button2.Odbc Public Class Form2 Private Sub Button2_Click(ByVal sender As System. MessageBoxButtons.Forms.Show("invalid entry want to reset?".ExecuteScalar() con.

username.Close() MessageBox.ExecuteNonQuery() con. con) com.Odbc Public Class Form3 Dim a As String Private Sub StatusStrip1_ItemClicked(ByVal sender As System. ByVal e As System.Open() Dim qry As String qry = "insert into login(name.idno.Object.TextChanged End Sub End Class Form3 Imports System.Text + "'.Text + "')" Dim com As New OdbcCommand(qry.Object.Windows.Forms.Text + "'.Click Dim con As New OdbcConnection("dsn=livewire") con.password)values('" + TextBox1.Object.EventArgs) End Sub .ToolStripItemClickedEventArgs) End Sub Private Sub DataGridView1_Click(ByVal sender As Object.Text + "'. ByVal e As System.Show("account created") Me.EventArgs) Handles TextBox1.Close() End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.phoneno.'" + TextBox2.'" + TextBox5. ByVal e As System.Data.'" + TextBox4.Text + "'. ByVal e As System.EventArgs) Handles Button1.'" + TextBox6.Text + "'.'" + TextBox3.department. Private Sub Button1_Click(ByVal sender As System.

Forms.Object.Text + .Text + "'.Windows. ByVal e As System.EventArgs) Handles Button6.Text + "'.'" + TextBox2.Open() qry = "insert into details values('" + TextBox1.EventArgs) Me.Windows. ByVal e As System.'" + TextBox3. Private Sub Form3_Resize(ByVal sender As Object.'" + TextBox5.Object.Forms.DataGridViewCellEventArgs) End Sub Private Sub DataGridView1_CellContentClick_2(ByVal sender As System.EventArgs) Handles Me.DataGridViewCellEventArgs) End Sub Private Sub Button4_Click(ByVal sender As System.Text + "'.Text + "'. ByVal e As System.Click Dim con As New OdbcConnection("dsn=livewire") Dim qry As String con.'" + TextBox7.'" + TextBox4.DataGridViewCellEventArgs) End Sub Private Sub Button6_Click(ByVal sender As System. ByVal e As System. ByVal e As System.Text + "'.Text + "'.Object.Show() End Sub Private Sub DataGridView1_CellContentClick_1(ByVal sender As System.Object.Forms.Resize End Sub Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object.Windows.Close() Form1. ByVal e As System.'" + TextBox6.

'" + DateTimePicker1.Text + "'.EventArgs) Handles TextBox6. con) com.DataSet6."'.Object.Text + "'. as needed. You can move.'" + RichTextBox1. 'Me. as needed.Load 'TODO: This line of code loads data into the 'DataSet1. You can move.DataSet1.details' table.TextChanged End Sub .details' table.ExecuteNonQuery() MessageBox.details' table.DetailsTableAdapter1.details) End Sub Private Sub TextBox5_TextChanged(ByVal sender As System. or remove it.Text + "')" Dim com As New OdbcCommand(qry.DetailsTableAdapter. ByVal e As System.details) 'TODO: This line of code loads data into the 'DataSet1. You can move.DetailsTableAdapter.'" + RichTextBox2.Object. Me. as needed. as needed. You can move.details' table.TextChanged End Sub Private Sub TextBox6_TextChanged(ByVal sender As System. or remove it.Fill(Me.Fill(Me. ByVal e As System. ByVal e As System.EventArgs) Handles TextBox5.Close() End Sub Private Sub Form3_Load(ByVal sender As System.Fill(Me.DataSet1.Object. 'Me. or remove it.Fill(Me.DataSet5.details) 'TODO: This line of code loads data into the 'DataSet5.DetailsTableAdapter2.EventArgs) Handles MyBase.details) 'TODO: This line of code loads data into the 'DataSet6. or remove it. Me.Show("record created") con.

Click Dim con As New OdbcConnection("dsn=livewire") Dim qry As String con.EventArgs) Handles Button7.ExecuteNonQuery() con.Text + "'where systemno='" + sysno + "'" qry1 = "update details set phoneno='" + TextBox2.Text + "'where systemno='" + sysno + "'" qry3 = "update details set labno='" + TextBox4.") Exit Sub Else Dim con As New OdbcConnection("dsn=livewire") Dim qry. qry2. Private Sub Button8_Click(ByVal sender As System.EventArgs) Handles Button8.Text + "'where systemno='" + sysno + "'" qry5 = "update details set vendor='" + TextBox6.Open() qry = "update details set labincharge='" + TextBox1.Text + "'where systemno='" + sysno + "'" qry4 = "update details set systemno='" + TextBox5.Object.Text + "'where systemno='" + sysno + "'" qry6 = "update details set manufacturer='" + TextBox7.Open() qry = "delete from details where systemno='" + TextBox5.Text + "'" Dim com As New OdbcCommand(qry. qry3.Show("please enter system no. con) com. qry4. qry6. ByVal e As System.Click Dim sysno As String sysno = TextBox1. ByVal e As System. qry1.Close() End Sub Private Sub Button7_Click(ByVal sender As System.Text = "" Then MessageBox. qry7.Text + "'where systemno='" + sysno + "'" qry2 = "update details set blockno='" + TextBox3.Object.Text If TextBox5. qry5.Text + "'where systemno='" + sysno + "'" . qry9 As String con. qry8.

Show("account updated") Me. con) Dim com3 As New OdbcCommand(qry3. con) Dim com6 As New OdbcCommand(qry6.ExecuteNonQuery() com9.Show() End If 'Dim con As New OdbcConnection("dsn=livewire") 'Dim qry As String 'con. con) com.ExecuteNonQuery() com3.Text + "'where systemno='" + sysno + "'" qry8 = "update details set specification='" + RichTextBox1.ExecuteNonQuery() com8.ExecuteNonQuery() com4.Text + "'where systemno='" + sysno + "'" Dim com As New OdbcCommand(qry.Close() MessageBox. qry7 = "update details set dateofentry='" + DateTimePicker1.ExecuteNonQuery() com2.Text = "" Then . con) Dim com5 As New OdbcCommand(qry5.Text + "' where labincharge='" + TextBox1. con) Dim com1 As New OdbcCommand(qry1. con) Dim com2 As New OdbcCommand(qry2.ExecuteNonQuery() com7.Text + "'where systemno='" + sysno + "'" qry9 = "update details set complaint='" + RichTextBox2. con) Dim com7 As New OdbcCommand(qry7. con) Dim com8 As New OdbcCommand(qry8. con) Dim com9 As New OdbcCommand(qry9.ExecuteNonQuery() com1.ExecuteNonQuery() com5. con) Dim com4 As New OdbcCommand(qry4.Close() Form1.ExecuteNonQuery() con.Text + "'" 'If TextBox5.Open() 'qry = "update details set systemno='" + TextBox5.ExecuteNonQuery() com6.

Click Dim con As New OdbcConnection("dsn=livewire") Dim qry.EventArgs) Handles Button1.Open() systemno = TextBox1.Text qry1 = "Select * from details where systemno='" & systemno & "'" Dim com1 As New OdbcCommand(qry1. con) Dim a As String = com1.Read TextBox1.Object. ByVal e As System.Text = a Then qry = "Select * from details where systemno='" & systemno & "'" Dim Com As New OdbcCommand(qry. con) ' com.CellContentClick End Sub Private Sub Button1_Click(ByVal sender As System.Close() 'End If End Sub Private Sub DataGridView1_CellContentClick_3(ByVal sender As System.ExecuteScalar() If TextBox4.Windows.ExecuteReader If (dr.Object.DataGridViewCellEventArgs) Handles DataGridView1.Forms. ByVal e As System.Item("labincharge") .ExecuteNonQuery() ' con. qry1 As String Dim systemno As String Dim dr As OdbcDataReader con. ' Exit Sub 'Else ' Dim com As New OdbcCommand(qry. con) dr = Com.HasRows) Then While dr.Text = dr.

Text = dr.Text = dr.Item("specification") RichTextBox2.Text = dr.Item("manufacturer") DateTimePicker1.Text = dr.Item("dateofentry") RichTextBox1.Item("complaint") End While End If Else MessageBox.Text = dr.Item("vendor") TextBox7.Text = dr.Text = dr.Clear() End If con. TextBox2.Text = dr.Item("labno") TextBox5.Item("blockno") TextBox4.Item("systemno") TextBox6.Item("phoneno") TextBox3.Text = dr.Close() End Sub End Class .Show("invalid entry") TextBox4.