Ejemplo n.º 1
0
        public AccountParser()
        {
            _dbOracle = new DbAccOracle();
            lock (lck) this.IsStarted = false;

            if (ConfigurationManager.AppSettings["AccountStripDigit"] != null)
            {
                _accStripDigit = Convert.ToBoolean(ConfigurationManager.AppSettings["AccountStripDigit"].ToString());
            }
            else
            {
                _accStripDigit = true;
            }
        }
Ejemplo n.º 2
0
        private void _CarregarListaNomes()
        {
            try
            {
                DbAccOracle db = new DbAccOracle();

                ConcurrentDictionary <int, string> dct = db.CarregarNomeClientes();

                foreach (KeyValuePair <int, string> item in dct)
                {
                    if (!dctNome.ContainsKey(item.Key))
                    {
                        dctNome.Add(item.Key, item.Value);
                    }
                }

                logger.Info("Carregou lista de nomes com " + dctNome.Count + " itens.");
            }
            catch (Exception ex)
            {
                logger.Error("_CarregarListaNomes: " + ex.Message, ex);
            }
        }