private void gvDetalleCuenta_CellValueChanged(object sender, CellValueChangedEventArgs e) { ct_DistribucionDetPorDistribuir_Info row = (ct_DistribucionDetPorDistribuir_Info)gvDetalleCuenta.GetRow(e.RowHandle); if (row == null) { return; } if (e.Column == CuentaColPlancta) { row.Valor = Convert.ToDecimal(busPlancta.GetSaldoFechaCorte(param.IdEmpresa, row.IdCtaCble, deFechaIni.DateTime.Date, deFechaFin.DateTime.Date, row.IdCentroCosto, row.IdCentroCosto_sub_centro_costo, chkConsiderarCC.Checked)); } if (e.Column == CuentaColSC) { string[] Array = row.IdRegistro.Split('-'); if (Array.Count() == 2) { row.IdCentroCosto_sub_centro_costo = Array[1]; } else { row.IdCentroCosto_sub_centro_costo = null; } } gvDetalleCuenta.UpdateCurrentRow(); }
private void cmbImagen_Click(object sender, EventArgs e) { ct_DistribucionDetPorDistribuir_Info row = (ct_DistribucionDetPorDistribuir_Info)gvDetalleCuenta.GetFocusedRow(); if (row == null) { return; } row.Valor = Convert.ToDecimal(busPlancta.GetSaldoFechaCorte(param.IdEmpresa, row.IdCtaCble, deFechaIni.DateTime.Date, deFechaFin.DateTime.Date, row.IdCentroCosto, row.IdCentroCosto_sub_centro_costo, chkConsiderarCC.Checked)); gvDetalleCuenta.UpdateCurrentRow(); }