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

            switch (_entity.EHolderType)
            {
            case ETipoEntidad.WorkReport:

                if (_work_report == null)
                {
                    PgMng.ShowInfoException(Resources.Messages.NO_WORK_REPORT_SELECTED);
                    return;
                }
                break;

            case ETipoEntidad.Cliente:

                if (_entity.OidHolder == 0)
                {
                    PgMng.ShowInfoException(Resources.Messages.NO_CLIENT_SELECTED);
                    return;
                }

                _cliente = Client_BS.Current as ClienteInfo;

                break;
            }

            DeliveryLinenAddForm form = new DeliveryLinenAddForm(ETipoProducto.Almacen, _entity, _serie, _cliente, this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _entity.CalculateTotal();

                if (_entity.Conceptos.Count > 0)
                {
                    Serie_BT.Enabled = false;
                }

                ControlsMng.UpdateBinding(Datos);

                HideComponentes();

                AddCacheItem(form.Entity);
            }
        }
        protected override void NewFreeLineAction()
        {
            if (_entity.OidSerie == 0)
            {
                PgMng.ShowInfoException(Resources.Messages.NO_SERIE_SELECTED);
                return;
            }

            switch (_entity.EHolderType)
            {
            case ETipoEntidad.WorkReport:

                if (_work_report == null)
                {
                    PgMng.ShowInfoException(Resources.Messages.NO_WORK_REPORT_SELECTED);
                    return;
                }
                break;

            case ETipoEntidad.Cliente:

                if (_entity.OidHolder == 0)
                {
                    PgMng.ShowInfoException(Resources.Messages.NO_CLIENT_SELECTED);
                    return;
                }

                _cliente = Client_BS.Current as ClienteInfo;

                break;
            }

            DeliveryLinenAddForm form = new DeliveryLinenAddForm(ETipoProducto.Libres, _entity, _serie, _cliente, this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _entity.CalculateTotal();
            }
        }