public void OpenAddForm(ClienteInfo cliente, OutputDeliveryInfo delivery)
        {
            InvoiceAddForm form = new InvoiceAddForm(cliente, delivery, this);

            AddForm(form);
            if (form.ActionResult == DialogResult.OK)
            {
                _entity = form.Entity;
            }
        }
        public override void OpenAddForm()
        {
            InvoiceAddForm form = new InvoiceAddForm(this);

            AddForm(form);
            if (form.ActionResult == DialogResult.OK)
            {
                _entity = form.Entity;
            }
        }
        protected virtual void CrearFacturaAction()
        {
            if (_entity.EEstado != EEstado.Abierto)
            {
                return;
            }

            ExecuteAction(molAction.Save, true);

            if (_action_result == DialogResult.OK)
            {
                if (_cliente == null)
                {
                    _cliente = Client_BS.Current as ClienteInfo;
                }

                InvoiceAddForm form = new InvoiceAddForm(_cliente, _entity.GetInfo(), this);
                form.ShowDialog();

                _entity.EEstado       = EEstado.Billed;
                _entity.NumeroFactura = form.Entity.Codigo;
                _entity.NumeroCliente = form.Entity.NumeroCliente;
            }
        }