3. Search History Information: Code Behind

(Includes (1) Search Click, and (2) Search Variable/Search Approval Progress Click above.)

VB .NET: 

(1) Search Click

  1.         Dim controller = New RetrieveAuditInfoController()
  2.         Dim vdb As AuditVdb
  3.         vdb = controller.RetrieveAuditInfo(TextBox1.Text)
  4.         GridView1.DataSource = vdb
  5.         GridView1.DataMember = "ProcessInstance"
  6.         GridView1.DataBind()
  7.         GridView2.DataSource = vdb.ProcessInstanceVariables
  8.         GridView2.DataBind()
  9.         GridView3.DataSource = vdb.Stage
  10.        GridView3.DataBind()
  11.        InstanceDiv.Visible = True
  12.        InstanceVariableDiv.Visible = False
  13.     StageVariableDiv.Visible = False

(2) Search Variable/Search Approval Progress Click 

  1.         If (e.CommandName = "QueryVar") Then
  2.             InstanceVariableDiv.Visible = True
  3.             StageVariableDiv.Visible = False
  4.         Else
  5.             InstanceVariableDiv.Visible = False
  6.             StageVariableDiv.Visible = True
  7.         End If

 

Last edited Jun 25, 2012 at 2:45 PM by cathysung, version 2

Comments

No comments yet.