//protected void btnClear_Click(object sender, EventArgs e)
    //{

    //}
    protected void CheckUpdate_click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        if (Session["DOCID"] != null)
        {
            Bill_Sys_RefferinDocBilling obj = new Bill_Sys_RefferinDocBilling();
            //Bill_Sys_DoctorBO obj = new Bill_Sys_DoctorBO();
            int i = 0;
            try
            {
                i = obj.UpdateDoctorMaster(txtDoctorName.Text, txtAssignNumber.Text, txtLicenseNumber.Text, extddlOffice.Text.ToString(), extddlDoctorType.Text.ToString(), txtCompanyID.Text, Session["DOCID"].ToString(), txtNPI.Text);
            }
            catch (Exception ex)
            {
                Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
                using (Utils utility = new Utils())
                {
                    utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
                }
                string str2 = "Error Request=" + id + ".Please share with Technical support.";
                base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
            }

            if (i > 0)
            {
                grdRffDoc.XGridBindSearch();
                usrMessage.PutMessage("Doctor Updated Successfully ...!");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();
            }
            else
            {
                usrMessage.PutMessage("Updation Failed");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                usrMessage.Show();
            }
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void test_click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        Bill_Sys_RefferinDocBilling obj = new Bill_Sys_RefferinDocBilling();
        //Bill_Sys_DoctorBO obj = new Bill_Sys_DoctorBO();
        int i = 0;

        //  if (hdVlaue.Value == "1")
        {
            int  bt_reffering          = 0;
            bool bt_referring_facility = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY;
            if (bt_referring_facility == true)
            {
                bt_reffering = 0;
            }
            else
            {
                bt_reffering = 1;
            }
            hdVlaue.Value = "0";
            try
            {
                i = obj.InsertDoctorMaster(txtDoctorName.Text, txtAssignNumber.Text, txtLicenseNumber.Text, extddlOffice.Text.ToString(), extddlDoctorType.Text.ToString(), txtCompanyID.Text, bt_reffering, txtNPI.Text);
            }
            catch (Exception ex)
            {
                Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
                using (Utils utility = new Utils())
                {
                    utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
                }
                string str2 = "Error Request=" + id + ".Please share with Technical support.";
                base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
            }

            if (i > 0)
            {
                grdRffDoc.XGridBindSearch();
                usrMessage.PutMessage("Doctor Saved Successfully ...!");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();
            }
            else
            {
                usrMessage.PutMessage("Insertion Failed");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                usrMessage.Show();
            }
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }