public override void CopyObjectAction(long oid) { DeliveryAddForm form = new DeliveryAddForm(OutputDelivery.CloneAsNew(ActiveItem), this); AddForm(form); if (form.ActionResult == DialogResult.OK) { _entity = form.Entity; } }
public override void OpenAddForm() { DeliveryAddForm form = new DeliveryAddForm(_holder_type, this); AddForm(form); if (form.ActionResult == DialogResult.OK) { _entity = form.Entity; } }
protected override void CrearAlbaranAction() { if (_entity.EEstado != EEstado.Abierto) { return; } if (_entity.IsComplete()) { throw new iQException(Resources.Messages.PEDIDO_COMPLETO); } if (_action_result == DialogResult.OK) { ClienteInfo cliente = Datos_Cliente.DataSource as ClienteInfo; DeliveryAddForm form = new DeliveryAddForm(cliente, _entity, this); form.ShowDialog(); } }