示例#1
0
 public List<pCliente> SelCliente(string Cpf)
 {
     Dao D = new Dao();
     DataTable DT = D.SelCliente(Cpf);
     List<pCliente> LC = new List<pCliente>();
     for (int i = 0; i < DT.Rows.Count; i++)
     {
         pCliente P = new pCliente();
         P.Cod_Cliente = Convert.ToInt32(DT.Rows[i]["Cod_Cliente"]);
         P.Nome = DT.Rows[i]["Nome"].ToString();
         P.Rg = DT.Rows[i]["Rg"].ToString();
         P.Cpf = DT.Rows[i]["Cpf"].ToString();
         P.Telefone = DT.Rows[i]["Telefone"].ToString();
         P.Email = DT.Rows[i]["Email"].ToString();
         P.DtNascimento = Convert.ToDateTime(DT.Rows[i]["DTNascimento"]);
         P.Estado = DT.Rows[i]["Estado"].ToString();
         P.Uf = DT.Rows[i]["Uf"].ToString();
         P.Lougradouro = DT.Rows[i]["Lougradouro"].ToString();
         P.Complemento = DT.Rows[i]["Complemento"].ToString();
         P.Bairro = DT.Rows[i]["Bairro"].ToString();
         P.Cep = DT.Rows[i]["Cep"].ToString();
         LC.Add(P);
     }
     return LC;
 }
示例#2
0
        public List <pCliente> SelCliente(string Cpf)
        {
            Dao             D  = new Dao();
            DataTable       DT = D.SelCliente(Cpf);
            List <pCliente> LC = new List <pCliente>();

            for (int i = 0; i < DT.Rows.Count; i++)
            {
                pCliente P = new pCliente();
                P.Cod_Cliente  = Convert.ToInt32(DT.Rows[i]["Cod_Cliente"]);
                P.Nome         = DT.Rows[i]["Nome"].ToString();
                P.Rg           = DT.Rows[i]["Rg"].ToString();
                P.Cpf          = DT.Rows[i]["Cpf"].ToString();
                P.Telefone     = DT.Rows[i]["Telefone"].ToString();
                P.Email        = DT.Rows[i]["Email"].ToString();
                P.DtNascimento = Convert.ToDateTime(DT.Rows[i]["DTNascimento"]);
                P.Estado       = DT.Rows[i]["Estado"].ToString();
                P.Uf           = DT.Rows[i]["Uf"].ToString();
                P.Lougradouro  = DT.Rows[i]["Lougradouro"].ToString();
                P.Complemento  = DT.Rows[i]["Complemento"].ToString();
                P.Bairro       = DT.Rows[i]["Bairro"].ToString();
                P.Cep          = DT.Rows[i]["Cep"].ToString();
                LC.Add(P);
            }
            return(LC);
        }
示例#3
0
 public List<pCliente> SelCliente()
 {
     Dao D = new Dao();
     DataTable DT = D.SelCliente();
     List<pCliente> LC = new List<pCliente>();
     for (int i = 0; i < DT.Rows.Count; i++)
     {
         pCliente P = new pCliente();
         P.Cod_Cliente = Convert.ToInt32(DT.Rows[i]["Cod_Cliente"]);
         P.Nome = DT.Rows[i]["Nome"].ToString();
         LC.Add(P);
     }
     return LC;
 }
示例#4
0
        public List <pCliente> SelCliente()
        {
            Dao             D  = new Dao();
            DataTable       DT = D.SelCliente();
            List <pCliente> LC = new List <pCliente>();

            for (int i = 0; i < DT.Rows.Count; i++)
            {
                pCliente P = new pCliente();
                P.Cod_Cliente = Convert.ToInt32(DT.Rows[i]["Cod_Cliente"]);
                P.Nome        = DT.Rows[i]["Nome"].ToString();
                LC.Add(P);
            }
            return(LC);
        }