1 (WINDHOEK, 12 SEP (NAMPA) - The trial of 16 people arrested in December 2015 in connection with a value added tax (VAT) fraud scam involving about N.dollars 210 million, will begin in the High Court here on 21 January 2019.
© Copyright NAMPA Thursday 18th of April 2019 02:19:20 PM. All rights reserved.


text:
Some evacuees from Los Angeles-area warehouse…
Some evacuees from Los Angeles-area warehouse fire return
By Paradise Post |
PUBLISHED: June 16, 2016 at 3:47 a.m. | UPDATED: May 18, 2018 at 12:10 p.m.
MAYWOOD, Calif. (AP) — Some of the estimated 300 people forced from their homes by an explosive warehouse fire in Southern California have been allowed to return but others may have to wait until the weekend, authorities said Thursday.
About half of those evacuated during Tuesday's blaze have returned, Los Angeles County sheriff's Lt. Alex Salinas told City News Service.
They went home Tuesday evening but people living in homes that back up against the warehouse can't return until testing ensures there is no health risk from ash and dust produced by the blaze, county fire Inspector Gustavo Medina said.
Tests for lead, magnesium and other metals were underway Thursday.
"We're hoping that residents are going to return sometime Saturday," he said.
The fire in this city of 28,000 south of downtown Los Angeles destroyed two commercial buildings, including a metal-recycling plant containing 10,000 pounds of magnesium shavings.
The magnesium erupted in fireball-like explosions when firefighters poured water on the flames. Fire crews declared the fire out Wednesday.
Investigations were underway into the cause of the fire and whether the business met all the extensive regulations for hazardous materials.
Paradise Post

redpajama_set_name: RedPajamaCommonCrawl


text:
Today Prabhavisnu Maharaja left to continue his visit to Central Asia, Govinda Maharaja flew back to Western Europe, and Sri Prahlada and I flew to Moscow. It was difficult having to separate from Govinda Maharaja. We had been through so much together during the past two months.
Friendship in Krsna consciousness is based on service to the Supreme Lord, and because the service is profound, being of a transcendental nature, the relationships are also profound between devotees who serve Krsna together. There is nothing I wouldn't do for Maharaja, and I'm sure he feels the same towards me. Such a relationship is rare in this world, and I cherish his friendship very much.
Although Sri Prahlada and I will spend a day and a half in Moscow, I am thinking of Poland in preparation for our summer tour beginning next week. By Krsna's grace, I have several good men in Poland who organize the festival tours while I am traveling and preaching outside the country. In particular, Amrtananda dasa works diligently in my absence to assure the tour is properly arranged before I return. We speak by phone several times a week from wherever I am in the world.
Recently he informed me that the anti-cult people in Poland have stepped up their offensive against us with negative articles appearing in the press. Several unfavorable television programs have also appeared. I had always hoped it would never happen in Poland, because the preaching is especially nectarean and sweet there. But those envious of our success cannot tolerate us any longer, and they are poisoning the minds of the people with false charges and accusations. So I feel as though I am going from one battlefield to another. The pressure is on from all sides.
But I suppose we have to expect such fights because, after all, this is the material world, and the devotees and asuras have been at odds with each other since time immemorial. We are at the forefront of a great spiritual renaissance in society, as predicted by Lord Caitanya 500 years ago when He said the chanting of Hare Krsna would be heard in every town and village in the world.
Srila Prabhupada also shed light on ISKCON's role in the future when he said the following to Guru dasa in London in 1971: "This movement will save the world in its darkest hour."
There may be difficult times ahead, as indicated by recent events in Russia and Poland, but if we take shelter of Krsna we will most certainly be victorious.
Srila Prabhupada says: "If the preachers in our Krsna consciousness movement are sincere devotees of Krsna, Krsna will always be with them because He is very kind and favorable to all His devotees. Just as Arjuna and Krsna were victorious in the Battle of Kuruksetra, this Krsna consciousness movement will surely emerge victorious if we but remain sincere devotees of the Lord and serve the Lord according to the advice of the predecessors (the six Gosvamis and other devotees of the Lord). . . . . If we attempt this seriously within the society, it will be successfully done. There is no question of estimating how this will happen in the mundane sense. But without a doubt, it happens by the grace of Krsna." [Caitanya-caritamrta, Madhya-lila purport 4.79]


This is for your prescribed ointment.
Please use this link when ordering ointments that have been prescribed to you by Nicole, and adjust the quantity for the number of ointments that have been prescribed. If you are unsure if you should be ordering a cream or ointment for your condition, please order either cream or ointment and contact Nicole, so that she can make sure the correct product is prescribed for you. We aim to answer all your questions as promptly as possible and no additional fees will be incurred.


text:
Vladimir Putin says ISIS remains a global threat despite military defeat in Syria
However, he also warned that they remain a threat in other countries through-out the world
by Frank Sellers April 5, 2018 2.5k Views 3 Votes
ISIS has been militarily defeated in Syria largely through the combined efforts of Russian and Syrian forces, Russian President Vladimir Putin has announced. No concerted military ISIS forces remain on the ground in the Middle Eastern country. Although a few dislocated bands of ISIS militants continue to exist and roam certain areas continues to remain a reality, they don't constitute an orchestrated military or particular threat.
As far as Russia's goal in the region is concerned, ISIS has been by and large defeated and the Russian mission accomplished, with the tackling of disjointed bands here and there not being a part of their role in Syria. However, considering the number of national powers which have declared their intent to eradicate the terrorist organization operating in the region, there really is no real reason why any militants are left to breathe Syria's oxygen other than that it appears that not all who claim to be in Syria for the purpose of eradicating ISIS truly have that intent, and, consequently, act more as an obstruction to this goal.
Therefore, ISIS's existence in the Middle Eastern country is more of a blight on Western foreign policy aimed at fighting terrorism, given that their refusal to cooperate in a united effort with Syrian and Russian forces is to some extent responsible for it, as Western powers wish to, in reality, focus their efforts on fighting Syrian forces for the purpose of obtaining a regime change in Syria. As long as this remains the primary goal, rather than fighting terrorism, and, hey, if the terrorists are fighting the Syrians too, then the West can see the terrorists as a strategic ally in helping to distract and sap away at Syrian military power and resources, which helps advance NATO's, led by the US, cause. Effectively, as far as Western strategy is concerned, the more folks fighting Assad's forces, the merrier. Hence, the Western forces on the ground in Syria aren't in a particular hurry to take out the remaining terrorist forces in Syria.
This lack of a unified front among powers supposedly committed to ISIS's eradication is essentially why they continue to exist and present a threat, not to just to Syria, but to nations around the world, as ISIS sympathizers and radicalized individuals can develop or carry out a terrorist attack wherever they may be due to their guerilla tactics. As long as ISIS continues to exist to be looked to by radicals as a cause to sympathize with, and as long as it can continue to publish its propaganda, the threat continues.
However, in announcing in his statement to members of the Moscow Conference on International Security, the terrorist organization can carry out attacks in different nations and regions through their changing tactics. RT reports:
"Despite its military defeat, this terrorist group [IS] retains its significant destructive potential, it can change its tactics and launch attacks in different countries and regions in the world," President Putin said in a statement addressed to members of the Moscow Conference on International Security.
Other extremist groups also present a big threat to the world, according to the Russian leader.
Putin stressed that it is now necessary to think about new forms of "multilateral cooperation." It would allow the parties "to consolidate the success" achieved in the fight against terrorism and "to prevent the further spread of this threat."
Together with training from some of ISIS's Western backers, whenever and wherever they are provided with the opportunity, they can strike civilian populations without warning, even when those efforts are lacking state sponsorship. In the effort of fighting the extremism of the terrorist group, Putin sensibly suggested, once again, that a united cooperation of the nations of the world in their efforts to combat terrorist activity, could cooperatively contribute to a more successful fight against terrorism.
RussiaVladimir PutinSyriaISISUSterrorismBashar Al-AssadSyrian conflict
4.4k Views12 Votes
Russia threatens American dominance says US general
by Frank Sellers February 28, 2018
US supporting illegal Israeli offensive in Syria
War of the Worlds — the masks are ripped away in Syria
by Andrey Fomin October 15, 2016
Poisoning hoax unravels: UK government BUSTED deleting tweet that blamed Russia (Video)
China retaliates to the US's retaliation to China's retaliation to US imposed trade tariffs


text:
PHENND Update
PHENND Events/Activities
Other Local Events and Workshops
Partnerships Classifieds
National Conferences & Calls for Proposal
Job Opportunities/AmeriCorps Opportunities
Democratic Engagement
College Success Network
K-16 Partnerships
Faculty Updates
PHENND Fellows Blog
Community Schools: Hearing from the Community
Posted by City of Philadelphia on July 18, 2016
Last week, the Mayor's Office of Education (MOE) released a public outreach report, Community Schools: Hearing from the Community, highlighting feedback gathered from Philadelphians about the City's new community schools initiative.
Community schools are public schools where a full-time coordinator engages with the entire school community – students, parents, teachers, administrators, service providers and neighbors – to identify its most pressing needs, and works with service providers and City agencies to bring targeted resources directly into the school. Community schools aim to become neighborhood centers with increased access to programs and services for students, families and neighbors. The City has committed to creating 25 community schools over the next four years.
More than 750 individuals gathered at town hall forums, roundtable discussions, group meetings and conferences to learn more about the program, and share ideas about how it can help address the issues that our children and communities are facing. They also lent insights on the factors that MOE and the School District of Philadelphia should consider when determining which neighborhood schools will be selected to become community schools.
"Over the last six months, my team asked the public to weigh-in on how the community schools strategy should work in Philadelphia," said Otis Hackney, the City's Chief Education Officer. "We've received valuable feedback from a diverse group of stakeholders and this is just the beginning. We're going to continue to work with the community each step of the way as this initiative grows."
Download the report to view the public feedback about community schools.
https://gallery.mailchimp.com/48732a6251c09f25e0086d47a/files/Community_Schools_Hearing_from_the_Community.pdf
More in "New Resources"
OnTrack to Post-Secondary Education Workshops
A Little Known HUD Program Could Help Lift Renters Out of Poverty
Field Center for Children's Policy, Practice & Research Has Launched Their New Website
Stay Current in Philly's Higher Education and Nonprofit Sector
We compile a weekly email with local events, resources, national conferences, calls for proposals, grant, volunteer and job opportunities in the higher education and nonprofit sectors.
PHENND
3440 Market Street, Suite 450, Philadelphia, PA 19104


Changing what's on our plates really can reduce the impact of climate change.
That's why here at Greenpeace UK we celebrated World Meat Free Week 11th – 18th June 2018 by bringing in our favourite plant based meals to share with colleagues.
Here's what we ate, and why we loved it!
Light, simple to make and super tasty. These puff pastry pizzas are perfect for any occasion.
A one-dish pot that only takes ten minutes to make. It's great as a quick and healthy meal. At the back you may also be able to spot some mock-turkey and a piece of quiche – I couldn't help myself!
Full of flavour and takes 30 seconds to make. Its raw spirilised (which basically means chopped up in really thin strips) courgette and ready made dairy-free pesto.
My first attempt at using vegan cheese – it was surprisingly easy and a real crowd-pleaser!
Super indulgent, gooey, rich and so damn tasty. This chocolate fudge cake is without doubt, the best cake you'll ever try….
We also tried a range of meat and dairy alternatives, from turkey slices and salami to herby cream cheese.
What did you eat for World Meat Free Week?
Send us a picture on Instagram, Twitter or Facebook of the plant-based delights you've been enjoying this week.
If you are looking for a little foodie inspiration – we've put together a tonne of tasty plant-based recipes for you to try in our Greenpeace Cookbook.


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using TaxonomiaWeb.ServiceBmvXbrl;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Reflection;
using TaxonomiaWeb.Utils;
using System.Text.RegularExpressions;

namespace TaxonomiaWeb.Forms
{
    public partial class Page700000 : Page
    {
        private List<string> listHiddenColumns = null;
        private Dictionary<int, List<int>> listTotal = null;
        private Service1Client servBmvXbrl = null;
        private ObservableCollection<Bmv700000> listaBmv = null;
        private ObservableCollection<Bmv700000> listaBmvAgrupada = null;
        private MainPage mainPage = null;

        public Page700000()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(MainPage_Loaded);
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            mainPage = (MainPage)Application.Current.RootVisual;
            try
            {
                string parameterPageName = string.Empty;
                string trimestre = string.Empty;
                string ano = string.Empty;
                string compania = string.Empty;

                if (NavigationContext.QueryString.TryGetValue("trim", out trimestre))
                {
                    mainPage.NumTrimestre = Int32.Parse(trimestre);
                }
                if (NavigationContext.QueryString.TryGetValue("ejerc", out ano))
                {
                    mainPage.IdAno = Int32.Parse(ano);
                }
                if (NavigationContext.QueryString.TryGetValue("comp", out compania))
                {
                    mainPage.Compania = compania;
                }
                if (NavigationContext.QueryString.TryGetValue("name", out parameterPageName))
                {
                    Uri uri = new Uri(string.Format("/Home?trim={0}&ejerc={1}&comp={2}", mainPage.NumTrimestre.ToString(), mainPage.IdAno.ToString(), mainPage.Compania), UriKind.Relative);
                    mainPage.actualizarTituloContenidos(parameterPageName, "Regresar", uri);
                }
            }
            catch (Exception ex)
            {
                ChildWindow errorWin = new ErrorWindow("URL no válida", "La URL especificada no es válida. Se direccionará a la página de inicio");
                errorWin.Show();
                mainPage.navegarPagina(new Uri("/Inicio", UriKind.Relative));
            }
        }

        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            fillHiddenColumns();
            servBmvXbrl = new Service1Client();
            servBmvXbrl.GetBmv700000Completed += servBmvXbrl_GetBmv700000Completed;
            servBmvXbrl.GetBmv700000Async(mainPage.NumTrimestre, mainPage.IdAno);
            //Agregamos los manejadores de eventos del datagrid
            //Se dispara cuando se comienza a editar una celda
            this.DgvTaxo.PreparingCellForEdit += DgvTaxo_PreparingCellForEdit;
            //Se dispara cuando se cargan las filas en el datagrid
            this.DgvTaxo.LoadingRow += DgvTaxo_LoadingRow;
            //Para que con un solo click o con el teclado entre en modo editar
            this.DgvTaxo.CurrentCellChanged += DgvTaxo_CurrentCellChanged;

            this.DgvTaxo.LayoutUpdated += DgvTaxo_LayoutUpdated;

        }

        #region Eventos del Datagrid

        void DgvTaxo_LayoutUpdated(object sender, EventArgs e)
        {
            DataGrid grid = this.DgvTaxo;
            if (grid != null)
            {
                grid.FrozenColumnCount = 1;
                ObservableCollection<DataGridColumn> listColumns = grid.Columns;
                foreach (var dgColumn in listColumns)
                {

                    string headerName = Regex.Replace(dgColumn.Header == null ? "" : dgColumn.Header.ToString(), @"\s+", "");
                    //Orden de la columnas mostradas
                    switch (headerName)
                    {
                        case AppConsts.COL_DESCRIPCION:
                            dgColumn.DisplayIndex = 0;
                            break;

                        case AppConsts.COL_TRIMESTREACTUAL:
                            dgColumn.DisplayIndex = 1;
                            break;

                        case AppConsts.COL_CIERREEJERCICIOANTERIOR:
                            dgColumn.DisplayIndex = 2;
                            break;

                        case AppConsts.COL_INICIOEJERCICIOANTERIOR:
                            dgColumn.DisplayIndex = 3;
                            break;

                        default:
                            break;
                    }
                }
            }
        }

        private void DgvTaxo_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e)
        {

            //Solo buscamos las columnas visibles, las ocultas las ignoramos.
            if (listHiddenColumns != null && listHiddenColumns.Contains(e.PropertyName) == false)
            {
                //Checamos que sea una columna tipo DataGridTextColumn
                DataGridTextColumn dgColumn = e.Column as DataGridTextColumn;
                if (dgColumn != null)
                {
                    DataGrid grid = sender as DataGrid;
                    Style elementStyle = new Style(typeof(TextBlock));
                    elementStyle.Setters.Add(new Setter(TextBlock.TextWrappingProperty, TextWrapping.Wrap));
                    Style editingElmentStyle = new Style(typeof(TextBox));
                    editingElmentStyle.Setters.Add(new Setter(TextBox.TextWrappingProperty, TextWrapping.Wrap));
                    editingElmentStyle.Setters.Add(new Setter(TextBox.AcceptsReturnProperty, true));
                    string headerName = string.Concat(e.Column.Header.ToString().Select(x => Char.IsUpper(x) ? " " + x : x.ToString())).TrimStart(' ');
                    dgColumn.EditingElementStyle = editingElmentStyle;
                    dgColumn.ElementStyle = elementStyle;
                    dgColumn.Header = headerName;
                    //Orden de la columnas mostradas
                    switch (e.PropertyName)
                    {
                        case AppConsts.COL_DESCRIPCION:
                            dgColumn.MaxWidth = AppConsts.MAXWIDTH_COL_DESCRIPCION;
                            break;

                        case AppConsts.COL_TRIMESTREACTUAL:
                            dgColumn.Width = DataGridLength.SizeToHeader;
                            break;

                        case AppConsts.COL_CIERREEJERCICIOANTERIOR:
                            dgColumn.Width = DataGridLength.SizeToHeader;
                            break;

                        case AppConsts.COL_INICIOEJERCICIOANTERIOR:
                            dgColumn.Width = DataGridLength.SizeToHeader;
                            break;
                    }

                    if (e.PropertyType == typeof(double))
                    {
                        DataGridBoundColumn obj = e.Column as DataGridBoundColumn;
                        if (obj != null && obj.Binding != null)
                        {
                            obj.Binding.StringFormat = "{0:n0}";
                        }
                    }
                }
            }
            //En caso de que sea una columna oculta, pues la ocultamos.
            else
            {
                hiddenColumn(e.Column);
            }

        }

        void DgvTaxo_CurrentCellChanged(object sender, EventArgs e)
        {

            DgvTaxo.BeginEdit();
        }

        private void DgvTaxo_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            try
            {
                DataGridRow dgr = e.Row;
                System.Reflection.PropertyInfo[] listProp = typeof(Bmv700000).GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);
                foreach (var prop in listProp)
                {
                    DataGridColumn column = DgvTaxo.Columns.SingleOrDefault(x => Regex.Replace(x.Header.ToString(), @"\s+", "").Equals(prop.Name));
                    if (column != null)
                    {
                        Bmv700000 row = dgr.DataContext as Bmv700000;
                        FrameworkElement cellElement = column.GetCellContent(dgr);
                        FrameworkElement eleCell = Utilerias.GetElementParent(cellElement, typeof(DataGridCell));
                        DataGridCell dgCell = (DataGridCell)eleCell;
                        //Necesario para ajustar los renglones de cada celda y no crezcan estas mismas.
                        if (cellElement != null)
                        {
                            cellElement.SizeChanged += CellElement_SizeChanged;
                        }
                        if (row.Lectura == true)
                        {
                            //Ocultamos las celdas donde no se debe de editar nada

                            dgCell.IsEnabled = false;
                            dgCell.Foreground = new SolidColorBrush(Colors.Transparent);
                            dgCell.Opacity = 0.2;
                        }
                        else
                        {
                            dgCell.IsEnabled = true;
                            dgCell.Foreground = new SolidColorBrush(Colors.Black);
                            dgCell.Opacity = 1;
                        }

                    }
                }
                DataGridColumn columnDesc = DgvTaxo.Columns.SingleOrDefault(x => Regex.Replace(x.Header.ToString(), @"\s+", "").Equals(AppConsts.COL_DESCRIPCION));
                if (columnDesc != null)
                {
                    Bmv700000 row = dgr.DataContext as Bmv700000;
                    FrameworkElement cellElement = columnDesc.GetCellContent(dgr);
                    FrameworkElement eleCell = Utilerias.GetElementParent(cellElement, typeof(DataGridCell));
                    DataGridCell dgCell = (DataGridCell)eleCell;
                    //Agregamos en negrita la sinopsis
                    if (row.Lectura == true)
                    {

                        dgCell.FontWeight = FontWeights.Bold;
                    }
                    //Agregamos en cursiva los totales
                    else if ((listTotal != null && listTotal.ContainsKey(row.IdTaxonomiaDetalle) == true))
                    {
                        dgCell.FontStyle = FontStyles.Italic;
                    }

                }

            }
            catch (Exception ex)
            {

            }
        }

        private void CellElement_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            //Fix issue: DataGrid Row Auto-Resize only grows row height but won't shrink
            var dataGrid = Utilerias.GetParentOf<DataGrid>((FrameworkElement)sender);
            if (dataGrid != null && double.IsNaN(dataGrid.RowHeight))
            {
                var row = DataGridRow.GetRowContainingElement((FrameworkElement)sender);

                //Fore recalculating row height
                try
                {
                    row.InvalidateMeasure();
                    row.Measure(row.RenderSize);
                }
                catch (Exception ex)
                {

                }
                finally
                {
                    //Restore RowHeight
                    dataGrid.RowHeight = double.NaN;
                }
            }
        }

        private void DgvTaxo_PreparingCellForEdit(object sender, DataGridPreparingCellForEditEventArgs e)
        {
            try
            {
                Bmv700000 row = e.Row.DataContext as Bmv700000;
                TextBox textBox = (e.EditingElement as TextBox);
                //Si la celda a editar es lectura o es la columna de descripcion o es un total no se podra editar.
                if (row.Lectura == true || e.Column.Header.ToString().Equals(AppConsts.COL_DESCRIPCION) == true || (listTotal != null  && listTotal.ContainsKey(row.IdTaxonomiaDetalle) == true))
                {
                    //textBox.Text = "";
                    textBox.IsReadOnly = true;
                    textBox.Background = new SolidColorBrush(Colors.Gray);
                }
                else
                {
                    SharedEvents se = new SharedEvents();
                    //Dependiendo del formato de captura se aplica la plantilla
                    switch (row.FormatoCampo)
                    {
                        case AppConsts.FORMAT_TEXTBLOCK:
                        case AppConsts.FORMAT_TEXT:
                            break;
                        case AppConsts.FORMAT_YYMMDD:

                            break;
                        case AppConsts.FORMAT_X:
                        case AppConsts.FORMAT_X_NEGATIVE:
                        case AppConsts.FORMAT_SHARES:
                        case AppConsts.FORMAT_SUM:
                            textBox.KeyDown += se.NumericOnCellKeyDown;
                            textBox.TextChanged += se.NumericOnCellTextChanged;
                            break;
                        case AppConsts.FORMAT_XXX:
                            textBox.KeyDown += se.NumericDecimalOnCellKeyDown;
                            textBox.TextChanged += se.NumericDecimalOnCellTextChanged;
                            break;
                        default:
                            break;

                    }

                    // Binding customBinding = new Binding(e.Column.Header.ToString());
                    // customBinding.Source = row;
                    // customBinding.Mode = BindingMode.TwoWay;
                    // customBinding.ConverterParameter = "C2";
                    // customBinding.Converter = new NumberConverter();
                    // textBox.SetBinding(TextBox.TextProperty, customBinding);
                }
            }
            catch (Exception ex)
            {

            }

        }
        #endregion

        #region Eventos de otros controles

        private void BtnGuardar_Click(object sender, RoutedEventArgs e)
        {
            if (validarDatos() == true)
            {
                //Generamos nueva lista con los valores actualizados
                ObservableCollection<ReporteDetalle> sortedList = sortReport(listaBmvAgrupada, listaBmv);
                servBmvXbrl = new Service1Client();
                servBmvXbrl.SaveBmvReporteCompleted += servBmvXbrl_SaveBmvReporteCompleted;
                servBmvXbrl.SaveBmvReporteAsync(sortedList, mainPage.Compania,  mainPage.IdAno, mainPage.NumTrimestre);
                busyIndicator.IsBusy = true;

            }
        }
        void BtnExportarExcel_Click(object sender, RoutedEventArgs e)
        {
            string nameFile = Utilerias.ExportarDataGrid(DgvTaxo);
            if (nameFile != null && nameFile.Length > 0)
            {
                MessageBox.Show(string.Format("Archivo {0} exportado correctamente", nameFile));
            }
            else if (nameFile == null)
            {
                MessageBox.Show("Hubo un error al exportar el reporte");
            }
        }
        #endregion

        #region Llamadas a servicios asincronos WCF
        void servBmvXbrl_GetBmv700000Completed(object sender, GetBmv700000CompletedEventArgs e)
        {
            if (e.Result != null)
            {
                listaBmv = e.Result;
                listaBmvAgrupada = bindAndGroupList(listaBmv);
                DgvTaxo.ItemsSource = listaBmvAgrupada;
            }
        }

        void servBmvXbrl_SaveBmvReporteCompleted(object sender, SaveBmvReporteCompletedEventArgs e)
        {
            busyIndicator.IsBusy = false;
            if (e.Error == null)
            {
                bool res = (bool)e.Result;
                if (res == true)
                {
                    MessageBox.Show("Datos almacenados correctamente");
                    //Para que se vuelvan a acomodar los renglones y columnas, cargamos de nuevo todo
                    MainPage m = (MainPage)Application.Current.RootVisual;
                    m.ContentFrame.Refresh();
                }
                else
                {
                    MessageBox.Show("Ocurrio un error al guardar los datos");
                }
            }
            else
            {
                MessageBox.Show(string.Format("Ocurrio un error al guardar los datos {0}", e.Error.Message));
            }
        }
        #endregion

        #region Evento cuando la celda cambia

        #endregion

        #region Metodos de clase

        private void fillHiddenColumns()
        {
            System.Reflection.PropertyInfo[] listProp = typeof(BmvBase).GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);
            listHiddenColumns = new List<string>();
            foreach (var prop in listProp)
            {
                if (prop.Name.Equals(AppConsts.COL_DESCRIPCION) == false)
                {
                    listHiddenColumns.Add(prop.Name);
                }
            }
        }

        private void hiddenColumn(DataGridColumn dgColumn)
        {
            bool res = false;
            res = listHiddenColumns.Contains(dgColumn.Header.ToString());
            if (res == true)
            {
                dgColumn.Visibility = Visibility.Collapsed;
            }
        }

        private ObservableCollection<Bmv700000> bindAndGroupList(ObservableCollection<Bmv700000> listaBmv)
        {
            //Agrupamos por registro de taxonomia detalle y obtenemos solo un registro
            var tempListaBmvAgrupada = from element in listaBmv
                                       group element by element.IdTaxonomiaDetalle
                                           into groups
                                           select groups.OrderBy(p => p.IdReporte).First();
            ObservableCollection<Bmv700000> listaBmvAgrupada = new ObservableCollection<Bmv700000>(tempListaBmvAgrupada);
            //Actualizamos cada campo del registro
            foreach (var itemAgrupado in listaBmvAgrupada)
            {
                if (string.IsNullOrEmpty(itemAgrupado.FormatoCampo) == false)
                {
                    var itemsBmv = from o in listaBmv
                                   where o.IdTaxonomiaDetalle == itemAgrupado.IdTaxonomiaDetalle
                                   select o;
                    foreach (var subItems in itemsBmv)
                    {
                        switch (subItems.AtributoColumna)
                        {
                            case AppConsts.COL_CIERREEJERCICIOANTERIOR:
                                itemAgrupado.CierreEjercicioAnterior = string.IsNullOrEmpty(subItems.Valor) == true ? 0 : Convert.ToDouble(subItems.Valor);
                                break;

                            case AppConsts.COL_INICIOEJERCICIOANTERIOR:
                                itemAgrupado.InicioEjercicioAnterior = string.IsNullOrEmpty(subItems.Valor) == true ? 0 : Convert.ToDouble(subItems.Valor);
                                break;

                            case AppConsts.COL_TRIMESTREACTUAL:
                                itemAgrupado.TrimestreActual = string.IsNullOrEmpty(subItems.Valor) == true ? 0 : Convert.ToDouble(subItems.Valor);
                                break;
                            default:
                                break;
                        }
                    }
                }

            }

            return listaBmvAgrupada;
        }

        private ObservableCollection<ReporteDetalle> sortReport(ObservableCollection<Bmv700000> listaBmvAgrupada, ObservableCollection<Bmv700000> listaBmv)
        {
            ObservableCollection<ReporteDetalle> sortedList = new ObservableCollection<ReporteDetalle>();
            int numTrimestre = mainPage.NumTrimestre;
            bool isValidoInicioEjercicioAnteriorEstadoSituacionFinanciera = validarInicioEjercicioAnteriorEstadoSituacionFinanciera(numTrimestre, listaBmvAgrupada);
            foreach (var itemAgrupado in listaBmvAgrupada)
            {
                if (string.IsNullOrEmpty(itemAgrupado.FormatoCampo) == false)
                {
                    var itemsBmv = from o in listaBmv
                                   where o.IdTaxonomiaDetalle == itemAgrupado.IdTaxonomiaDetalle
                                   select o;
                    foreach (var subItems in itemsBmv)
                    {
                        ReporteDetalle rd = new ReporteDetalle();
                        switch (subItems.AtributoColumna)
                        {
                            case AppConsts.COL_CIERREEJERCICIOANTERIOR:
                                rd.Valor = Convert.ToString(itemAgrupado.CierreEjercicioAnterior);
                                break;

                            case AppConsts.COL_INICIOEJERCICIOANTERIOR:
                                rd.Valor = Convert.ToString(itemAgrupado.InicioEjercicioAnterior);
                                break;

                            case AppConsts.COL_TRIMESTREACTUAL:
                                rd.Valor = Convert.ToString(itemAgrupado.TrimestreActual);
                                break;
                            default:
                                break;
                        }
                        switch (subItems.AtributoColumna)
                        {
                            case AppConsts.COL_CIERREEJERCICIOANTERIOR:
                            case AppConsts.COL_TRIMESTREACTUAL:
                                rd.IdReporte = subItems.IdReporte;
                                rd.IdReporteDetalle = subItems.IdReporteDetalle;
                                rd.Estado = true;
                                sortedList.Add(rd);
                                break;
                            case AppConsts.COL_INICIOEJERCICIOANTERIOR:
                                rd.IdReporte = subItems.IdReporte;
                                rd.IdReporteDetalle = subItems.IdReporteDetalle;
                                if (isValidoInicioEjercicioAnteriorEstadoSituacionFinanciera == true)
                                {
                                    rd.Estado = true;
                                }
                                else
                                {
                                    rd.Estado = false;
                                }
                                sortedList.Add(rd);
                                break;
                            default:
                                break;
                        }
                    }
                }
            }
            return sortedList;

        }

        //Metodo que sirve para validar el inicio de ejercicio anterior de los estados financieros, si se almacena o no en la base de datos.
        private bool validarInicioEjercicioAnteriorEstadoSituacionFinanciera(int numTrimestre, ObservableCollection<Bmv700000> listaBmvAgrupada)
        {
            switch (numTrimestre)
            {
                //Si el trimestre es el segundo se valida la columna de InicioEjercicioAnterior. Si existen valores diferentes de 0 se guarda en la bd, en caso contrario no se guarda ningun valor.
                case 2:
                    var existenValoresDiferenteDeCero = (from l in listaBmvAgrupada
                                                         where l.InicioEjercicioAnterior != 0
                                                         select l).Count();
                    if (existenValoresDiferenteDeCero > 0)
                        return true;
                    else
                        return false;
                default:
                    return true;
            }
        }

        private bool validarDatos()
        {
            bool res = false;
            if (listaBmvAgrupada != null)
            {
                foreach (var renglon in listaBmvAgrupada)
                {
                    //Si son editables se tienen que validar los campos
                    if (renglon.Lectura == false)
                    {
                        //if (renglon.TrimestreActual == null)
                        //{
                        //    int indexOf = listaBmv.IndexOf(renglon);
                        //    DgvTaxo.SelectedItem = renglon;
                        //    DataGridColumn dgc = Utilerias.FindColumnByName(DgvTaxo.Columns, AppConsts.COL_TRIMESTREACTUAL);
                        //    if (dgc != null)
                        //    {
                        //        DgvTaxo.CurrentColumn = dgc;
                        //        DgvTaxo.Dispatcher.BeginInvoke(() => { DgvTaxo.ScrollIntoView(renglon, dgc); });
                        //    }
                        //    DgvTaxo.Focus();
                        //    DgvTaxo.BeginEdit();
                        //    return res;

                        //}

                    }
                }
            }
            else
            {
                return res;
            }
            res = true;
            return res;
        }

    }
         #endregion
}

redpajama_set_name: RedPajamaGithub


text:
San Antonio police officer indefinitely suspended after opening fire on fleeing juveniles
A San Antonio police officer who fired two shots toward juveniles running from him was indefinitely suspended, according to disciplinary records obtained by KSAT.
City officials released disciplinary records Wednesday evening, more than six weeks after KSAT filed an open records request for the information.
Officer Oscar Cruz Jr. received the indefinite suspension, tantamount to firing, for an incident he was called to in the 9500 block of Five Forks on March 9, according to the records.
Cruz responded to calls about two teens pulling on vehicle door handles, according to the document.
The officer tried detaining one of the juveniles, who ran away from him. During the chase, Cruz pulled out his service weapon, according to the document.
During the chase, second juvenile threw an object, striking the officer in the face and head, according to the records.
"Officer Cruz fired two rounds at the direction of the suspects as they fled the scene," according to the records, which violates the department's use-of-force procedure.
The incident was captured on Cruz's bodycam, according to the disciplinary record. During the incident, Cruz could be heard telling the juveniles "stop running or I will f—ing shoot you."
Cruz was also cited for using the muzzle of his gun as a signal to direct the responding officer.
"Officer Cruz failed to use sound judgment when he continued to point the firearm in the direction of the arriving officer."
Records show Cruz was previously suspended at least once during his time with the San Antonio Police Department. In 2018, Cruz was suspended for three days after striking a pedestrian with his patrol car.
Cruz was handed the termination on Oct. 20. Records show he appealed the decision on Oct. 21.
Read more about how arbitration plays out of San Antonio police officers.
Copyright 2020 by KSAT – All rights reserved.
Tags Antonio fire fleeing indefinitely juveniles officer opening police San suspended
Good news for Harry Porter fans
UK and EU reach post-Brexit trade agreement
US blacklists Xiaomi, CNOOC, Skyrizon, raising heat on China
Heavy snowfall suspends life system in UK


If a view is not meeting your organization's needs, or is merely not being used, you can delete it from Microsoft Project Web App.
Click a cell in the row for the view that you are deleting, and then click Delete View.
Note: Be careful not to click the name of the view, in the Name column. This opens that view for editing, instead of selecting it.
When prompted, click OK to delete the view.