private void ObtenerDetalleChequera() { var pl = new ChequeraPL(); if (_esNuevo) { txtDisponible.Text = string.Format("0"); txtGirados.Text = string.Format("0"); txtCancelados.Text = string.Format("0"); } else { var detalle = pl.ObtenerDetalleChequera(Contexto.ChequeraId, Contexto.CentroAcopio.OrganizacionID); txtDisponible.Text = detalle.ChequesDisponibles.ToString(); txtGirados.Text = detalle.ChequesGirados.ToString(); txtCancelados.Text = detalle.ChequesCancelados.ToString(); dtpFecha.SelectedDate = detalle.FechaCreacion.Date; txtNumeroChequera.Text = detalle.NumeroChequera; txtChequeInicial.Text = detalle.ChequeInicial.ToString(); txtChequeFinal.Text = detalle.ChequeFinal.ToString(); txtChequera.Text = detalle.ChequeraId.ToString(); Contexto.NumeroChequera = detalle.ChequeraId.ToString(); } }