public List <CorreioStatusEntrega> VerificarEntregasPendentes()
        {
            List <CorreioStatusEntrega> CodigosRastreio = new List <CorreioStatusEntrega>();

            try
            {
                bd.Consulta(@"SELECT * 
                        FROM tCorreioStatusEntrega
                        WHERE CodigoRastreio NOT IN 
                            (SELECT CodigoRastreio
                            FROM tCorreioStatusEntrega
                            WHERE DESCRICAO = 'Entregue')"    );

                while (bd.Consulta().Read())
                {
                    CorreioStatusEntrega oCorreioStatusEntrega = new CorreioStatusEntrega();

                    oCorreioStatusEntrega.Tipo.Valor           = bd.LerString("Tipo");
                    oCorreioStatusEntrega.Status.Valor         = bd.LerInt("Status");
                    oCorreioStatusEntrega.Data.Valor           = bd.LerDateTime("Data");
                    oCorreioStatusEntrega.Hora.Valor           = bd.LerString("Hora");
                    oCorreioStatusEntrega.Descricao.Valor      = bd.LerString("Descricao");
                    oCorreioStatusEntrega.Local.Valor          = bd.LerString("Local");
                    oCorreioStatusEntrega.Codigo.Valor         = bd.LerString("Codigo");
                    oCorreioStatusEntrega.Cidade.Valor         = bd.LerString("Cidade");
                    oCorreioStatusEntrega.Uf.Valor             = bd.LerString("Uf");
                    oCorreioStatusEntrega.Sto.Valor            = bd.LerString("Sto");
                    oCorreioStatusEntrega.CodigoRastreio.Valor = bd.LerString("CodigoRastreio");

                    CodigosRastreio.Add(oCorreioStatusEntrega);
                }
            }
            finally
            {
                bd.Consulta().Close();
            }

            return(CodigosRastreio);
        }
 // passar o Usuario logado no sistema
 public CorreioStatusEntregaLista_B(int usuarioIDLogado)
 {
     correioStatusEntrega = new CorreioStatusEntrega(usuarioIDLogado);
 }
 // passar o Usuario logado no sistema
 public CorreioStatusEntregaLista_B()
 {
     correioStatusEntrega = new CorreioStatusEntrega();
 }