Ejemplo n.º 1
0
        protected void btnVerify_Click(object sender, EventArgs e)
        {
            Service.WS_TrakcareCls wsVerify = new Service.WS_TrakcareCls();
            DataTable dtVerify  = wsVerify.GetAllAllergyByHN_NameDob(txtHN.Text.Trim(), txtName.Text.Trim(), txtBirthDate.Text.Trim());
            DataTable dtHistory = clsEX.get_history_verify(txtHN.Text.Trim());

            if (dtVerify != null)
            {
                if (!(dtVerify.Rows.Count).Equals(0))
                {
                    if (dtHistory.Rows.Count >= 1)
                    {
                        Session["HN"]   = txtHN.Text.Trim();
                        Session["Name"] = dtVerify.Rows[0]["TTL_Desc"].ToString() + " " + dtVerify.Rows[0]["PAPMI_Name"].ToString() + " " + dtVerify.Rows[0]["PAPMI_Name2"].ToString();

                        ////Session["Allergy"] = ut.resultAllergy(dtVerify);
                        Response.Redirect("~/web/frm_verify_result.aspx");
                    }
                    else
                    {
                        lblWarningVerify.Text = "No Verfify Patient";
                    }
                }
                else
                {
                    lblWarningVerify.Text = "No Verfify Patient";
                }
            }
        }