public override void OpenAddForm() { InputDeliveryAddForm form = new InputDeliveryAddForm(this, _tipo); AddForm(form); if (form.ActionResult == DialogResult.OK) { _entity = form.Entity; } }
public override void CopyObjectAction(long oid) { InputDeliveryAddForm form = new InputDeliveryAddForm(InputDelivery.CloneAsNew(ActiveItem), this); AddForm(form); if (form.ActionResult == DialogResult.OK) { _entity = form.Entity; } }
protected virtual void CrearAlbaranAction() { if (_entity.EEstado != moleQule.Base.EEstado.Abierto) { return; } ExecuteAction(molAction.Save); if (_action_result == DialogResult.OK) { _acreedor = Datos_Acreedor.DataSource as IAcreedorInfo; InputDeliveryAddForm form = new InputDeliveryAddForm(_acreedor, _entity.GetInfo(), this); form.ShowDialog(); } }