public List <PontoVendaXFormaPgto_IngressoMais> CarregarPVFormasPgto(int idPV) { List <PontoVendaXFormaPgto_IngressoMais> oPVFormasPgtoLista = new List <PontoVendaXFormaPgto_IngressoMais>(); try { string sql = "SELECT * FROM tPontoVendaXFormaPgto_IngressoMais WHERE PontoVendaID = " + idPV; bd.Consulta(sql); while (bd.Consulta().Read()) { PontoVendaXFormaPgto_IngressoMais oPVFormasPgto = new PontoVendaXFormaPgto_IngressoMais(); 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; } }
// passar o Usuario logado no sistema public PontoVendaXFormaPgtoLista_IngressoMais_B(int usuarioIDLogado) { pontoVendaFormaPgto = new PontoVendaXFormaPgto_IngressoMais(usuarioIDLogado); }
// passar o Usuario logado no sistema public PontoVendaXFormaPgtoLista_IngressoMais_B() { pontoVendaFormaPgto = new PontoVendaXFormaPgto_IngressoMais(); }