public void ShowPagoAction() { if (ActiveItem.EEstado == moleQule.Base.EEstado.Anulado) { return; } if (ActiveItem.OidPago == 0) { Payment pago = Payment.New(ActiveItem); PayrollPaymentAddForm form = new PayrollPaymentAddForm(pago, this); form.ShowDialog(this); if (form.ActionResult == DialogResult.OK) { ActiveItem.CopyFrom(form.Entity); ExecuteAction(molAction.Refresh); } } else { PayrollPaymentEditForm form = new PayrollPaymentEditForm(ActiveItem.OidPago, moleQule.Store.Structs.EnumConvert.ToETipoPago(ECategoriaGasto.Nomina), this); form.ShowDialog(this); ExecuteAction(molAction.Refresh); } }
protected override void AddPagoAction() { PayrollPaymentAddForm form = new PayrollPaymentAddForm(this, _entity); form.ShowDialog(this); RefreshAction(); Payments_BS.MoveFirst(); }