protected void SetSerie(SerieInfo source, bool newCode) { if (source == null) { return; } _serie = source; _entity.OidSerie = _serie.Oid; _entity.NumeroSerie = _serie.Identificador; _entity.Serie = _serie.Nombre; Serie_TB.Text = _entity.NSerieSerie; Nota_TB.Text = _serie.Cabecera; if (newCode) { _entity.GetNewCode(); } /*Cache.Instance.Remove(typeof(ProductList)); * * ProductList.GetListBySerie(_serie.Oid, false, true);*/ }