Exemplo n.º 1
0
    protected void extddlPatient_extendDropDown_SelectedIndexChanged(object sender, EventArgs e)
    {
        CaseDetailsBO caseDetailsBO = new CaseDetailsBO();

        if (extddlPatient.Text != "NA")
        {
            if (chkJmpCaseDetails.Checked == true)
            {
                string szCaseID = caseDetailsBO.GetCaseIdByPatientID(txtCompanyID.Text, extddlPatient.Text);
                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                {
                    Response.Redirect("../Bill_Sys_ReCaseDetails.aspx?CaseID=" + szCaseID + "&cmp=" + txtCompanyID.Text + "", false);
                }
                else
                {
                    Response.Redirect("../Bill_Sys_CaseDetails.aspx?CaseID=" + szCaseID + "&cmp=" + txtCompanyID.Text + "", false);
                }
            }
            txtPatientName.Text = extddlPatient.Selected_Text;
        }
        else
        {
            txtPatientName.Text = "";
        }
    }
Exemplo n.º 2
0
    protected void extddlPatient_extendDropDown_SelectedIndexChanged(object sender, EventArgs e)
    {
        CaseDetailsBO caseDetailsBO = new CaseDetailsBO();

        if (!(this.extddlPatient.Text != "NA"))
        {
            this.txtPatientName.Text = "";
        }
        else
        {
            if (this.chkJmpCaseDetails.Checked)
            {
                string caseIdByPatientID = caseDetailsBO.GetCaseIdByPatientID(this.txtCompanyID.Text, this.extddlPatient.Text);
                if (!((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    base.Response.Redirect(string.Concat("../Bill_Sys_CaseDetails.aspx?CaseID=", caseIdByPatientID, "&cmp=", this.txtCompanyID.Text), false);
                }
                else
                {
                    base.Response.Redirect(string.Concat("../Bill_Sys_ReCaseDetails.aspx?CaseID=", caseIdByPatientID, "&cmp=", this.txtCompanyID.Text), false);
                }
            }
            this.txtPatientName.Text = this.extddlPatient.Selected_Text;
        }
    }