Example #1
0
        private void showErrorsInFile(DataTable dt)
        {
            int numErr = 0;

            try
            {
                ControlsMng.GridViewClean(grd_reviewFile);
                lbl_NoFoliosMsg.Text = string.Empty;
                DataTable dtErrInFile = EntradaCtrl.FondeoGetInsideErr(dt);
                numErr = dtErrInFile.Rows.Count;
                if (numErr > 0)
                {
                    ControlsMng.GridViewfillNoHtmlEncode(dtErrInFile, grd_reviewFile);
                    throw new ImportException();
                }

                importFondeoPaso(dt);
            }
            catch (ImportException)
            {
                lbl_NoFoliosMsg.Text = "Folios con Error: " + numErr.ToString();
            }
            catch (Exception)
            {
                throw;
            }
        }