Esempio n. 1
0
    public void BindProcedureCodes()
    {//Logging Start
        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
        {
            EmployerBO employerBO = new EmployerBO();
            this.lstProcedureCode.Items.Clear();
            DataSet employeProcedure = employerBO.GetEmployeProcedure(this.extddlEmployer.Text, this.txtCompanyID.Text);
            this.lstProcedureCode.DataSource     = employeProcedure;
            this.lstProcedureCode.DataTextField  = "DESCRIPTION";
            this.lstProcedureCode.DataValueField = "CODE";
            this.lstProcedureCode.DataBind();
        }
        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());
        }
    }