protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            string appointmentToken = Request.QueryString["appointmenttoken"].ToString();
            Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
            appointmentToken = objCommon_EncryptDecryptBL.Decrypt(appointmentToken);
            Doctor_GetAppointmentDetailsByAppointmentTokenBL objDoctor_GetAppointmentDetailsByAppointmentTokenBL=new Doctor_GetAppointmentDetailsByAppointmentTokenBL();
            ds = objDoctor_GetAppointmentDetailsByAppointmentTokenBL.Doctor_GetAppointmentDetailsByAppointmentToken(appointmentToken);
            Label1.Text = appointmentToken;
            Label2.Text = ds.Tables[0].Rows[0]["APPOINTMENT_DATE"].ToString();
            Label3.Text = ds.Tables[0].Rows[0]["APPOINTMENT_TIME"].ToString();
            int patientId = Convert.ToInt32(ds.Tables[0].Rows[0]["PATIENT_ID_FK"].ToString());

            Doctor_GetOPDTreatmentMedicineBL objGetOPDTreatmentMedicineBL = new Doctor_GetOPDTreatmentMedicineBL();
            ds = objGetOPDTreatmentMedicineBL.Doctor_GetOPDTreatmentMedicine(appointmentToken);
            if(ds.Tables[0].Rows.Count == 0)
                Label4.Visible = true;
            else
            {
                GridView1.DataSource = ds;
                GridView1.DataBind();
                Label4.Visible = false;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string appointmentToken = Request.QueryString["appointmenttoken"].ToString();
            Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
            appointmentToken = objCommon_EncryptDecryptBL.Decrypt(appointmentToken);
            Doctor_GetAppointmentDetailsByAppointmentTokenBL objDoctor_GetAppointmentDetailsByAppointmentTokenBL = new Doctor_GetAppointmentDetailsByAppointmentTokenBL();
            ds          = objDoctor_GetAppointmentDetailsByAppointmentTokenBL.Doctor_GetAppointmentDetailsByAppointmentToken(appointmentToken);
            Label1.Text = appointmentToken;
            Label2.Text = ds.Tables[0].Rows[0]["APPOINTMENT_DATE"].ToString();
            Label3.Text = ds.Tables[0].Rows[0]["APPOINTMENT_TIME"].ToString();
            int patientId = Convert.ToInt32(ds.Tables[0].Rows[0]["PATIENT_ID_FK"].ToString());

            Doctor_GetOPDTreatmentMedicineBL objGetOPDTreatmentMedicineBL = new Doctor_GetOPDTreatmentMedicineBL();
            ds = objGetOPDTreatmentMedicineBL.Doctor_GetOPDTreatmentMedicine(appointmentToken);
            if (ds.Tables[0].Rows.Count == 0)
            {
                Label4.Visible = true;
            }
            else
            {
                GridView1.DataSource = ds;
                GridView1.DataBind();
                Label4.Visible = false;
            }
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if(!IsPostBack)
     {
         Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
         int ipdObservationReportId = Convert.ToInt32(objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationReportId"].ToString()));
         string ipdObservationId = objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationId"].ToString());
         Doctor_GetIPDReportMedicineBL objDoctor_GetIPDReportMedicineBL = new Doctor_GetIPDReportMedicineBL();
         ds = objDoctor_GetIPDReportMedicineBL.Doctor_GetIPDReportMedicine(ipdObservationReportId, ipdObservationId);
         if(ds.Tables[0].Rows.Count != 0)
         {
             GridView1.DataSource = ds;
             GridView1.DataBind();
         }
         else
             Label1.Visible = true;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
         int    ipdObservationReportId = Convert.ToInt32(objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationReportId"].ToString()));
         string ipdObservationId       = objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationId"].ToString());
         Doctor_GetIPDReportMedicineBL objDoctor_GetIPDReportMedicineBL = new Doctor_GetIPDReportMedicineBL();
         ds = objDoctor_GetIPDReportMedicineBL.Doctor_GetIPDReportMedicine(ipdObservationReportId, ipdObservationId);
         if (ds.Tables[0].Rows.Count != 0)
         {
             GridView1.DataSource = ds;
             GridView1.DataBind();
         }
         else
         {
             Label1.Visible = true;
         }
     }
 }
    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;
            }
        }
    }
    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;
        }
    }