protected void btnShowTest_Click(object sender, EventArgs e)
 {
     try
     {
         ImageButton imgEdit = (ImageButton)sender;
         GridViewRow cnt     = (GridViewRow)imgEdit.NamingContainer;
         Session["Patient_ID"] = cnt.Cells[0].Text;
         PathologyBLL           Pathology = new PathologyBLL();
         List <EntityPathology> lst       = Pathology.SearchPathologyDetails(Convert.ToString(Session["Patient_ID"]));
         if (lst.Count > 0)
         {
             dgvTest.DataSource = lst;
             dgvTest.DataBind();
             MultiView1.SetActiveView(View2);
             lblMessage.Text = string.Empty;
         }
         else
         {
             lblMessage.Text = "No Test Done";
             MultiView1.SetActiveView(View1);
         }
     }
     catch (Exception ex)
     {
         lblMessage.Text = ex.Message;
     }
 }
Exemple #2
0
        private void SelectPathologyDetail(string Prefix)
        {
            PathologyBLL           Pathology = new PathologyBLL();
            List <EntityPathology> lst       = Pathology.SearchPathologyDetails(Prefix);

            if (lst != null)
            {
                dgvTestParameter.DataSource = lst;
                dgvTestParameter.DataBind();

                lblRowCount.Text = string.Empty;
            }
        }