protected override void SelectLineTaxAction() { if (Lines_DGW.CurrentRow == null) { return; } if (Lines_DGW.CurrentRow.DataBoundItem == null) { return; } OutputInvoiceLine item = Lines_DGW.CurrentRow.DataBoundItem as OutputInvoiceLine; ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo source = (ImpuestoInfo)form.Selected; item.OidImpuesto = source.Oid; item.PImpuestos = source.Porcentaje; _entity.CalculateTotal(); } }
private void ImpuestoVenta_BT_Click(object sender, EventArgs e) { ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo item = form.Selected as ImpuestoInfo; _entity.SetImpuesto(item, ETipoSerie.Venta); ImpuestoVenta_TB.Text = _entity.ImpuestoVenta; } }
protected virtual void SelectImpuestoAction() { ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo source = (ImpuestoInfo)form.Selected; _entity.OidImpuesto = source.Oid; _entity.PImpuestos = source.Porcentaje; _entity.CalculaTotal(); } }
protected override void SelectLineTaxAction() { if (Lines_BS.Current == null) { return; } InputDeliveryLine item = Lines_BS.Current as InputDeliveryLine; ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo source = (ImpuestoInfo)form.Selected; item.OidImpuesto = source.Oid; item.PImpuestos = source.Porcentaje; } }
protected override void SelectImpuestoLineaAction() { if (Datos_Lineas.Current == null) { return; } LineaPedidoProveedor item = Datos_Lineas.Current as LineaPedidoProveedor; ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo source = (ImpuestoInfo)form.Selected; item.OidImpuesto = source.Oid; item.PImpuestos = source.Porcentaje; RefreshLineas(); } }
protected override void SelectImpuestoLineaAction() { if (Datos_Concepto.Current == null) { return; } BudgetLine item = Datos_Concepto.Current as BudgetLine; ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo source = (ImpuestoInfo)form.Selected; item.OidImpuesto = source.Oid; item.PImpuestos = source.Porcentaje; _entity.CalculaTotal(); } }
protected override void SelectImpuestoLineaAction() { if (Datos_Productos.Current == null) { return; } ProductoProveedor item = (ProductoProveedor)Datos_Productos.Current; ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo impuesto = form.Selected as ImpuestoInfo; item.OidImpuesto = impuesto.Oid; item.Impuesto = impuesto.Nombre; item.PImpuestos = impuesto.Porcentaje; Datos_Productos.ResetBindings(false); } }
protected override void SelectImpuestoLineaAction() { if (Datos_Lineas.Current == null) { return; } LineaPedido item = Datos_Lineas.Current as LineaPedido; ImpuestoSelectForm form = new ImpuestoSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ImpuestoInfo source = (ImpuestoInfo)form.Selected; item.OidImpuesto = source.Oid; item.PImpuestos = source.Porcentaje; _entity.CalculateTotal(); ControlsMng.UpdateBinding(Lineas_DGW); } }