private void Descuento_NTB_TextChanged(object sender, EventArgs e) { _entity.PDescuento = PDescuento_NTB.DecimalValue; _entity.CalculateTotal(); Datos_Lineas.ResetBindings(true); Datos.ResetBindings(false); }
private void Descuento_NTB_TextChanged_1(object sender, EventArgs e) { if (_entity.PDescuento != 0) { Descuento_NTB.Text = Decimal.Round(_entity.Descuento, 2).ToString(); return; } _entity.Descuento = Descuento_NTB.DecimalValue; _entity.CalculateTotal(); Datos_Lineas.ResetBindings(false); Datos.ResetBindings(false); }
protected void AllocateAction() { ReleaseAction(); Datos_Lineas.MoveFirst(); foreach (DataGridViewRow row in Lineas_DGW.Rows) { LinkLineAction(row); } SetUnlinkedGridValues(Lineas_DGW); SetGridColors(Lineas_DGW); }
protected override void EditLineAllocationAction(DataGridViewRow row) { InputDecimalForm form = new InputDecimalForm(); if (form.ShowDialog(this) == DialogResult.OK) { LoanInfo item = row.DataBoundItem as LoanInfo; _deallocated += item.Asignado; _entity.EditTransactionPayment(item, form.Value); LinkLineAction(row); SetUnlinkedGridValues(Lineas_DGW.Name); Datos_Lineas.ResetBindings(false); SetGridColors(Lineas_DGW); } }
protected virtual void EditAmountAction(DataGridViewRow row) { InputDecimalForm form = new InputDecimalForm(); form.Message = Resources.Labels.IMPORTE_PAGO_FACTURA; if (form.ShowDialog(this) == DialogResult.OK) { InputInvoiceInfo item = row.DataBoundItem as InputInvoiceInfo; _deallocated += item.Asignado; _entity.EditTransactionPayment(item, form.Value); LinkLineAction(row); SetUnlinkedGridValues(Lineas_DGW); Datos_Lineas.ResetBindings(false); SetGridColors(Lineas_DGW); } }
protected override void EditLineAllocationAction(DataGridViewRow row) { InputDecimalForm form = new InputDecimalForm(); form.Message = (_entity.ETipoPago == ETipoPago.Nomina) ? Resources.Labels.IMPORTE_PAGO_NOMINA : Resources.Labels.IMPORTE_PAGO_GASTO; if (form.ShowDialog(this) == DialogResult.OK) { NominaInfo item = row.DataBoundItem as NominaInfo; _deallocated += item.Asignado; _entity.EditTransactionPayment(item, form.Value); LinkLineAction(row); SetUnlinkedGridValues(Lineas_DGW.Name); Datos_Lineas.ResetBindings(false); SetGridColors(Lineas_DGW); } }
protected virtual void RefreshLineas() { Datos_Lineas.ResetBindings(true); Lineas_DGW.Refresh(); }