3. Search History Information: Code Behind

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

C#:

(1) Search Click

  1.         RetrieveAuditInfoControllercontroller = new RetrieveAuditInfoController();
  2.         AuditVdb vdb = default(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")) {
  2.              InstanceVariableDiv.Visible = true;
  3.              StageVariableDiv.Visible = false;
  4.         } else {
  5.              InstanceVariableDiv.Visible = false;
  6.              StageVariableDiv.Visible = true;
  7.         }

 

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

Comments

No comments yet.