protected virtual void LoadStockAction() { try { if (Partidas_DGW.CurrentRow == null) { return; } if (Partidas_DGW.CurrentRow.DataBoundItem == null) { return; } BatchInfo batch = Partidas_DGW.CurrentRow.DataBoundItem as BatchInfo; //if (Cache.Instance.Get(typeof(StockList)) != null) return; PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this); PgMng.Grow(); StockList list = StockList.GetByBatchList(batch.Oid, false, true); list.UpdateStocksByBatch(false); Stock_BS.DataSource = list; //Cache.Instance.Save(typeof(StockList), Stock_BS.DataSource as StockList); PgMng.Grow(); HideComponentes(Stock_TP); ControlsMng.UpdateBinding(Stock_BS); } finally { PgMng.FillUp(); } }