protected virtual void SelectClienteAction()
        {
            //if ((_entity.Conceptos.Count > 0) && (!_entity.Contado))
            //{
            //    PgMng.ShowInfoException("No es posible cambiar el cliente a un albarán con conceptos asociados.");
            //    return;
            //}

            if (_entity.OidSerie == 0)
            {
                PgMng.ShowInfoException(Resources.Messages.NO_SERIE_SELECTED);
                return;
            }

            ClientSelectForm form = new ClientSelectForm(this, EEstado.Active);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _cliente = form.Selected as ClienteInfo;
                if (_cliente.Oid != _entity.OidHolder)
                {
                    SetCliente(_cliente);
                }
            }
        }
        private void Cliente_BT_Click(object sender, EventArgs e)
        {
            ClientSelectForm form = new ClientSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _cliente        = form.Selected as ClienteInfo;
                Cliente_TB.Text = _cliente.Nombre;
            }
        }
        protected virtual void SelectClienteAction()
        {
            ClientSelectForm form = new ClientSelectForm(this, EEstado.Active);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                ClienteInfo cliente = form.Selected as ClienteInfo;
                SetCliente(cliente);
            }
        }
        private void Destiny_BT_Click(object sender, EventArgs e)
        {
            ClientSelectForm form = new ClientSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                ClienteInfo cliente = form.Selected as ClienteInfo;
                Destiny_TB.Text = cliente.Nombre;
                _oid_destiny    = cliente.Oid;
            }
        }
        protected override void EditarClienteAction()
        {
            if (_entity.Conceptos.Count > 0)
            {
                PgMng.ShowInfoException("No es posible cambiar el cliente a una proforma con conceptos asociados.");
                return;
            }

            ClientSelectForm form = new ClientSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _cliente = form.Selected as ClienteInfo;

                SetCliente(_cliente);
            }
        }
        protected override void EditClientAction()
        {
            //if (_entity.AlbaranFacturas.Count > 0)
            //{
            //    PgMng.ShowInfoException(Resources.Messages.FACTURA_CON_ALBARANES);
            //    return;
            //}

            ClientSelectForm form = new ClientSelectForm(this, EEstado.Active);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                ClienteInfo cliente = form.Selected as ClienteInfo;
                SetClient(cliente);

                CleanError(IDCliente_TB);
            }
        }
        protected void SelectClientAction(ESchema schemaType)
        {
            if (schemaType == ESchema.Source)
            {
                ClientSelectForm form = new ClientSelectForm(this, EEstado.Active);

                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    SetSourceClient(form.Selected as ClienteInfo);
                }
            }
            else
            {
                if (_destination_company == null)
                {
                    ProgressInfoMng.ShowInfo(Resources.Messages.NO_COMPANY_SELECTED);
                    return;
                }

                _source_company = AppContext.ActiveSchema as CompanyInfo;

                AppContext.Principal.ChangeUserSchema(_destination_company);

                ClientSelectForm form = new ClientSelectForm(this, EEstado.Active);

                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    _destination_client       = form.Selected as ClienteInfo;
                    DestinationHolder_TB.Text = _destination_client.Nombre;

                    _config.DestinationHolder = _destination_client;
                }

                AppContext.Principal.ChangeUserSchema(_source_company);
            }
        }