Exemple #1
0
    private void Visiblecontrol()
    {
        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());
        }
        try
        {
            strCaseType = _associateDiagnosisCodeBO.GetCaseType(txtCaseID.Text);
            switch (_associateDiagnosisCodeBO.GetDoctorType(extddlDoctor.Text))
            {
            case 0:

                tblDiagnosisCode.Visible      = false;
                tblDiagnosisCodeFirst.Visible = true;

                break;

            case 1:
                if (strCaseType == "WC")
                {
                    tblDiagnosisCode.Visible      = true;
                    tblDiagnosisCodeFirst.Visible = false;
                }
                else
                {
                    tblDiagnosisCode.Visible      = false;
                    tblDiagnosisCodeFirst.Visible = true;
                }
                break;
            }
        }
        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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }