private void GetMedicalTests()
    {
        Doctor_GetIPDObservationMedicalTestBL objDoctor_GetIPDObservationMedicalTestBL = new Doctor_GetIPDObservationMedicalTestBL();

        medicalTestDataSet = objDoctor_GetIPDObservationMedicalTestBL.Doctor_GetIPDObservationMedicalTest(ipdObservationId);
        if (medicalTestDataSet.Tables[0].Rows.Count != 0)
        {
            GridView4.DataSource = medicalTestDataSet;
            GridView4.DataBind();
            Panel3.Visible = true;
        }
        else
        {
            Panel3.Visible = false;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
            ipdObservationId = objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationId"].ToString());

            Doctor_GetPatientDetailsByIPDObservationIDBL objDoctor_GetPatientDetailsByIPDObservationIDBL = new Doctor_GetPatientDetailsByIPDObservationIDBL();
            Label1.Text = objDoctor_GetPatientDetailsByIPDObservationIDBL.Doctor_GetPatientDetailsByIPDObservationID(ipdObservationId);

            Doctor_GetIPDObservationDetailsByIdBL objDoctor_GetIPDObservationDetailsByIdBL = new Doctor_GetIPDObservationDetailsByIdBL();
            ds1         = objDoctor_GetIPDObservationDetailsByIdBL.Doctor_GetIPDObservationDetailsById(ipdObservationId);
            Label2.Text = ds1.Tables[0].Rows[0]["OBSERVATION_DATE"].ToString();
            Label3.Text = ds1.Tables[0].Rows[0]["OBSERVATION_TIME"].ToString();
            Label4.Text = ds1.Tables[0].Rows[0]["PATIENT_GENERAL_HEALTH"].ToString();

            Doctor_GetIPDObservationReportBL objDoctor_GetIPDObservationReportBL = new Doctor_GetIPDObservationReportBL();
            ds2 = objDoctor_GetIPDObservationReportBL.Doctor_GetIPDObservationReport(ipdObservationId);
            GridView1.DataSource = ds2;
            GridView1.DataBind();

            Doctor_GetIPDObservationMedicineBL objDoctor_GetIPDObservationMedicineBL = new Doctor_GetIPDObservationMedicineBL();
            ds3 = objDoctor_GetIPDObservationMedicineBL.Doctor_GetIPDObservationMedicine(ipdObservationId);
            if (ds3.Tables[0].Rows.Count != 0)
            {
                GridView2.DataSource = ds3;
                GridView2.DataBind();
            }
            else
            {
                Label5.Visible = true;
            }

            Doctor_GetIPDObservationMedicalTestBL objDoctor_GetIPDObservationMedicalTestBL = new Doctor_GetIPDObservationMedicalTestBL();
            ds4 = objDoctor_GetIPDObservationMedicalTestBL.Doctor_GetIPDObservationMedicalTest(ipdObservationId);
            if (ds4.Tables[0].Rows.Count != 0)
            {
                GridView3.DataSource = ds4;
                GridView3.DataBind();
            }
            else
            {
                Label6.Visible = true;
            }
        }
    }
 private void GetMedicalTests()
 {
     Doctor_GetIPDObservationMedicalTestBL objDoctor_GetIPDObservationMedicalTestBL = new Doctor_GetIPDObservationMedicalTestBL();
     medicalTestDataSet = objDoctor_GetIPDObservationMedicalTestBL.Doctor_GetIPDObservationMedicalTest(ipdObservationId);
     if(medicalTestDataSet.Tables[0].Rows.Count != 0)
     {
         GridView4.DataSource = medicalTestDataSet;
         GridView4.DataBind();
         Panel3.Visible = true;
     }
     else
         Panel3.Visible = false;
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
            ipdObservationId = objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationId"].ToString());

            Doctor_GetPatientDetailsByIPDObservationIDBL objDoctor_GetPatientDetailsByIPDObservationIDBL = new Doctor_GetPatientDetailsByIPDObservationIDBL();
            Label1.Text = objDoctor_GetPatientDetailsByIPDObservationIDBL.Doctor_GetPatientDetailsByIPDObservationID(ipdObservationId);

            Doctor_GetIPDObservationDetailsByIdBL objDoctor_GetIPDObservationDetailsByIdBL = new Doctor_GetIPDObservationDetailsByIdBL();
            ds1 = objDoctor_GetIPDObservationDetailsByIdBL.Doctor_GetIPDObservationDetailsById(ipdObservationId);
            Label2.Text = ds1.Tables[0].Rows[0]["OBSERVATION_DATE"].ToString();
            Label3.Text = ds1.Tables[0].Rows[0]["OBSERVATION_TIME"].ToString();
            Label4.Text = ds1.Tables[0].Rows[0]["PATIENT_GENERAL_HEALTH"].ToString();

            Doctor_GetIPDObservationReportBL objDoctor_GetIPDObservationReportBL = new Doctor_GetIPDObservationReportBL();
            ds2 = objDoctor_GetIPDObservationReportBL.Doctor_GetIPDObservationReport(ipdObservationId);
            GridView1.DataSource = ds2;
            GridView1.DataBind();

            Doctor_GetIPDObservationMedicineBL objDoctor_GetIPDObservationMedicineBL = new Doctor_GetIPDObservationMedicineBL();
            ds3 = objDoctor_GetIPDObservationMedicineBL.Doctor_GetIPDObservationMedicine(ipdObservationId);
            if(ds3.Tables[0].Rows.Count != 0)
            {
                GridView2.DataSource = ds3;
                GridView2.DataBind();
            }
            else
                Label5.Visible = true;

            Doctor_GetIPDObservationMedicalTestBL objDoctor_GetIPDObservationMedicalTestBL = new Doctor_GetIPDObservationMedicalTestBL();
            ds4 = objDoctor_GetIPDObservationMedicalTestBL.Doctor_GetIPDObservationMedicalTest(ipdObservationId);
            if(ds4.Tables[0].Rows.Count != 0)
            {
                GridView3.DataSource = ds4;
                GridView3.DataBind();
            }
            else
                Label6.Visible = true;
        }
    }