Ejemplo n.º 1
0
        public List <PontoVendaXFormaPgto> CarregarPVFormasPgto(int idPV)
        {
            List <PontoVendaXFormaPgto> oPVFormasPgtoLista = new List <PontoVendaXFormaPgto>();

            try
            {
                string sql = "SELECT * FROM tPontoVendaXFormaPgto WHERE PontoVendaID = " + idPV;
                bd.Consulta(sql);

                while (bd.Consulta().Read())
                {
                    PontoVendaXFormaPgto oPVFormasPgto = new PontoVendaXFormaPgto();
                    oPVFormasPgto.Control.ID                  = bd.LerInt("ID");
                    oPVFormasPgto.PontoVendaID.Valor          = bd.LerInt("PontoVendaID");
                    oPVFormasPgto.PontoVendaFormaPgtoID.Valor = bd.LerInt("PontoVendaFormaPgtoID");

                    oPVFormasPgtoLista.Add(oPVFormasPgto);
                }
                bd.Fechar();
                return(oPVFormasPgtoLista);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 2
0
 // passar o Usuario logado no sistema
 public PontoVendaXFormaPgtoLista_B(int usuarioIDLogado)
 {
     pontoVendaFormaPgto = new PontoVendaXFormaPgto(usuarioIDLogado);
 }
Ejemplo n.º 3
0
 // passar o Usuario logado no sistema
 public PontoVendaXFormaPgtoLista_B()
 {
     pontoVendaFormaPgto = new PontoVendaXFormaPgto();
 }