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 GridView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
     string ipdObservationId = objCommon_EncryptDecryptBL.Common_Encrypt(ds.Tables[0].Rows[GridView1.SelectedIndex][0].ToString());
     string url = "DoctorViewIPDObservationHistoryDetails.aspx?ipdObservationId=" + ipdObservationId;
     string script = "window.open('" + url + "', '_blank', 'width=1080, height=650');";
     ClientScript.RegisterStartupScript(this.GetType(), "script", script, true);
 }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
        string ipdObservationId = objCommon_EncryptDecryptBL.Common_Encrypt(ds.Tables[0].Rows[GridView1.SelectedIndex][0].ToString());
        string url    = "DoctorViewIPDObservationHistoryDetails.aspx?ipdObservationId=" + ipdObservationId;
        string script = "window.open('" + url + "', '_blank', 'width=1080, height=650');";

        ClientScript.RegisterStartupScript(this.GetType(), "script", script, true);
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        string token = ds1.Tables[0].Rows[GridView1.SelectedIndex][0].ToString();
        Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();

        token = objCommon_EncryptDecryptBL.Common_Encrypt(token);
        string url    = "DoctorViewOPDAppointmentHistory.aspx?appointmenttoken=" + token;
        string script = "window.open('" + url + "', '_blank', 'width=1000, height=650');";

        ClientScript.RegisterStartupScript(this.GetType(), "script", script, 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();
         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();
         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 GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        Session["patientId"]         = ds.Tables[0].Rows[GridView1.SelectedIndex][0].ToString();
        Session["previousWardId"]    = ds.Tables[0].Rows[GridView1.SelectedIndex][1].ToString();
        Session["previousardNumber"] = ds.Tables[0].Rows[GridView1.SelectedIndex][4].ToString();
        Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
        string patientId = objCommon_EncryptDecryptBL.Common_Encrypt(ds.Tables[0].Rows[0][GridView1.SelectedIndex].ToString());
        string url       = "DoctorViewIPDActiveMedicines.aspx";

        HyperLink1.Target      = "_blank";
        HyperLink1.NavigateUrl = "javascript:void(0)";
        HyperLink1.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        url = "DoctorViewIPDObservationHistory.aspx";
        HyperLink2.Target      = "_blank";
        HyperLink2.NavigateUrl = "javascript:void(0)";
        HyperLink2.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=500,scrollbars');");

        url = "DoctorViewIPDAllMedicines.aspx";
        HyperLink3.Target      = "_blank";
        HyperLink3.NavigateUrl = "javascript:void(0)";
        HyperLink3.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        url = "DoctorViewIPDAllIPDObservationReports.aspx";
        HyperLink4.Target      = "_blank";
        HyperLink4.NavigateUrl = "javascript:void(0)";
        HyperLink4.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        url = "DoctorViewIPDAllIPDObservationMedicalTests.aspx";
        HyperLink5.Target      = "_blank";
        HyperLink5.NavigateUrl = "javascript:void(0)";
        HyperLink5.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");


        Panel1.Visible   = true;
        ipdObservationId = Guid.NewGuid().ToString();
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        Session["patientId"] = ds.Tables[0].Rows[GridView1.SelectedIndex][0].ToString();
        Session["previousWardId"] = ds.Tables[0].Rows[GridView1.SelectedIndex][1].ToString();
        Session["previousardNumber"] = ds.Tables[0].Rows[GridView1.SelectedIndex][4].ToString();
        Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
        string patientId = objCommon_EncryptDecryptBL.Common_Encrypt(ds.Tables[0].Rows[0][GridView1.SelectedIndex].ToString());
        string url = "DoctorViewIPDActiveMedicines.aspx";
        HyperLink1.Target = "_blank";
        HyperLink1.NavigateUrl = "javascript:void(0)";
        HyperLink1.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        url = "DoctorViewIPDObservationHistory.aspx";
        HyperLink2.Target = "_blank";
        HyperLink2.NavigateUrl = "javascript:void(0)";
        HyperLink2.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=500,scrollbars');");

        url = "DoctorViewIPDAllMedicines.aspx";
        HyperLink3.Target = "_blank";
        HyperLink3.NavigateUrl = "javascript:void(0)";
        HyperLink3.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        url = "DoctorViewIPDAllIPDObservationReports.aspx";
        HyperLink4.Target = "_blank";
        HyperLink4.NavigateUrl = "javascript:void(0)";
        HyperLink4.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        url = "DoctorViewIPDAllIPDObservationMedicalTests.aspx";
        HyperLink5.Target = "_blank";
        HyperLink5.NavigateUrl = "javascript:void(0)";
        HyperLink5.Attributes.Add("onclick", "javascript:window.open('" + url + "','','height=500,width=1200,scrollbars');");

        Panel1.Visible = true;
        ipdObservationId = Guid.NewGuid().ToString();
    }
 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     string token = ds1.Tables[0].Rows[GridView1.SelectedIndex][0].ToString();
     Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL();
     token = objCommon_EncryptDecryptBL.Common_Encrypt(token);
     string url = "DoctorViewOPDAppointmentHistory.aspx?appointmenttoken=" + token;
     string script = "window.open('" + url + "', '_blank', 'width=1000, height=650');";
     ClientScript.RegisterStartupScript(this.GetType(), "script", script, true);
 }