Пример #1
0
        public List <Facturas> get_factura()
        {
            string          query  = maq_query;
            MySqlDataReader data   = runQuery(query);
            List <Facturas> result = new List <Facturas>();

            if (data.HasRows)
            {
                while (data.Read())
                {
                    Facturas item = buildFacturas(data);
                    result.Add(item);
                }
            }
            return(result);
        }
Пример #2
0
        private Facturas buildFacturas(MySqlDataReader data)
        {
            Facturas item = new Facturas(
                data.GetInt32("id"),
                data.GetInt32("folio"),
                data.GetString("serie"),
                data.GetInt32("id_cliente"),
                data.GetDouble("subtotal"),
                data.GetDouble("total"),
                data.GetString("cadena"),
                data.GetString("sello"),
                data.GetString("uuid"),
                data.GetString("estado"),
                data.GetString("pago"),
                data.GetString("xml"),
                data.GetString("id_invoice")
                );

            return(item);
        }