protected override void LoadAyudas()
        {
            if (_entity.ExpedientesREA.Count == 0)
            {
                PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
                try
                {
                    _entity.LoadChilds(typeof(REAExpedient), true, true);
                    Datos_REA.DataSource = _entity.ExpedientesREA;
                    Datos_REA.ResetBindings(true);
                    PgMng.Grow(string.Empty, "REA");
                }
                finally
                {
                    PgMng.FillUp();
                }
            }
            else
            {
                Datos_REA.DataSource = _entity.ExpedientesREA;
                Datos_REA.ResetBindings(false);
            }

            AyudaTotal_NTB.Text = _entity.AyudaExpediente.ToString("C2");
            CalculateBeneficios();
            SetExpedienteREAFormat();
        }
 protected override void LoadStock()
 {
     if (_entity.Stocks.Count == 0)
     {
         PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
         try
         {
             PgMng.Grow();
             _entity.LoadChilds(typeof(Stock), true, true);
             PgMng.Grow();
             SelectStockAction(Datos_Productos.Current as ProductInfo);
         }
         finally
         {
             PgMng.FillUp();
         }
     }
 }
Exemplo n.º 3
0
 protected override void LoadStock()
 {
     if (_entity.Stocks.Count == 0)
     {
         PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
         try
         {
             PgMng.Grow();
             _entity.LoadChilds(typeof(Stock), true, false);
             string stock_warning = _entity.GetStockWarning();
             if (stock_warning != string.Empty)
             {
                 PgMng.ShowInfoException(stock_warning);
             }
             PgMng.Grow();
         }
         finally
         {
             PgMng.FillUp();
         }
     }
     SelectStockAction(Datos_Productos.Current as ProductInfo);
 }