protected void DoAddAlbaran(BackgroundWorker bk)
        {
            Datos.RaiseListChangedEvents        = false;
            Datos_Lineas.RaiseListChangedEvents = false;

            try
            {
                PgMng.Reset(_results.Count + 1, 1, Resources.Messages.IMPORTANDO_ALBARANES, this);

                //Asignamos el titular
                if (_entity.OidAcreedor == 0 || _entity.AlbaranesFacturas.Count == 0)
                {
                    _entity.CopyFrom(_results[0]);
                    SetEmisor(ProviderBaseInfo.Get(_entity.OidAcreedor, _entity.ETipoAcreedor));
                }
                //else
                //{
                //    foreach (InputDeliveryInfo item in _results)
                //    {
                //        if (item.PIRPF != _entity.PIRPF)
                //        {
                //            PgMng.ShowInfoException(Resources.Messages.FACTURA_CON_IRPF_DISTINTO);
                //            return;
                //        }
                //    }
                //}

                foreach (InputDeliveryInfo item in _results)
                {
                    item.LoadChilds(typeof(InputDeliveryLine), true);
                    _entity.Insert(item);
                    _albaranes.Add(item);
                    PgMng.Grow(string.Empty, "Insertar el Albarán");
                }

                Result = BGResult.OK;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                PgMng.FillUp();

                Datos.RaiseListChangedEvents        = true;
                Datos_Lineas.RaiseListChangedEvents = true;
#if TRACE
                PgMng.ShowCronos();
#endif
            }
        }