Exemplo n.º 1
0
        //Obtener
        public DetalleFacturaEntidad ObtenerDetalleFactura(int idDetalle)
        {
            DataSet ds = DetalleFactura.SeleccionarDetalleFactura(idDetalle);
            DetalleFacturaEntidad dte = new DetalleFacturaEntidad();

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                dte.idDetalle   = Convert.ToInt16(row["idDetalle"]);
                dte.nombre      = row["nombre"].ToString();
                dte.descripcion = row["descripcion"].ToString();
                dte.precio      = Convert.ToInt16(row["Precio"]);
            }
            return(dte);
        }