예제 #1
0
        public Folios build_folio(MySqlDataReader data)
        {
            Folios item = new Folios(
                data.GetInt16("transf"),
                data.GetInt16("pagos"),
                data.GetInt16("factura"),
                data.GetInt16("Ticket"),
                data.GetString("serie")
                );

            return(item);
        }
예제 #2
0
        public List <Folios> getFolios()
        {
            string          query  = "select transf, pagos, factura,ticket, serie from tbafolios";
            MySqlDataReader data   = runQuery(query);
            List <Folios>   result = new List <Folios>();

            if (data.HasRows)
            {
                while (data.Read())
                {
                    Folios item = build_folio(data);
                    result.Add(item);
                }
            }
            return(result);
        }