Exemple #1
0
    private void SearchGLAccountCategoryList()
    {
        try
        {
            GLAccountCategoryListBAL gLAccountCategoryListBAL = new GLAccountCategoryListBAL();
            GLAccountCategoryListUI  gLAccountCategoryListUI  = new GLAccountCategoryListUI();

            gLAccountCategoryListUI.Search = txtGLAccountCategorySearch.Text;

            DataTable dtb = gLAccountCategoryListBAL.GetGLAccountCategoryListBySearchParameters(gLAccountCategoryListUI);

            if (dtb.Rows.Count > 0 && dtb != null)
            {
                gvGLAccountCategorySearch.DataSource = dtb;
                gvGLAccountCategorySearch.DataBind();
                divGLAccountCategorySearchError.Visible = false;
            }
            else
            {
                divGLAccountCategorySearchError.Visible = true;
                lblGLAccountCategorySearchError.Text    = Resources.GlobalResource.msgNoRecordFound;
                gvGLAccountCategorySearch.Visible       = false;
            }
        }
        catch (Exception exp)
        {
            logExcpUIobj.MethodName       = "SearchGLAccountCategoryList()";
            logExcpUIobj.ResourceName     = "Finance_General_Ledger_GL_Integration_GLAccountForm.CS";
            logExcpUIobj.RecordId         = "All";
            logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString();
            logExcpDALobj.SaveExceptionToDB(logExcpUIobj);

            log.Error("[Finance_General_Ledger_GL_Integration_GLAccountForm : SearchPaymentTermsList] An error occured in the processing of Record. Details : [" + exp.ToString() + "]");
        }
    }