private bool CargarData() { var rt = true; var filtro = new OOB.LibInventario.Precio.Historico.Filtro() { autoProducto = autoPrd, }; var r01 = Sistema.MyData.HistoricoPrecio_GetLista(filtro); if (r01.Result == OOB.Enumerados.EnumResult.isError) { Helpers.Msg.Error(r01.Mensaje); return(false); } _ficha = r01.Entidad; Producto = r01.Entidad.codigo + Environment.NewLine + r01.Entidad.descripcion; foreach (var it in r01.Entidad.data.OrderByDescending(o => o.fecha).ThenByDescending(o => o.hora).ToList()) { var nr = new data(it); list.Add(nr); } bs.CurrencyManager.Refresh(); return(rt); }
public Gestion() { _ficha = null; autoPrd = ""; Producto = ""; list = new List <data>(); bs = new BindingSource(); bs.CurrentChanged += bs_CurrentChanged; bs.DataSource = list; }