Reporte Agredores Fechas
This commit is contained in:
@@ -931,14 +931,29 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
||||
#region"REPORTE"
|
||||
protected void CargaReporte()
|
||||
{
|
||||
|
||||
DateTime FInicio = MinFecha;
|
||||
DateTime FFin = MaxFecha;
|
||||
|
||||
if(TxtFechaInicio.Text.Length == 10)
|
||||
{
|
||||
FInicio = TxtFechaInicio.Text.ToDate();
|
||||
}
|
||||
|
||||
if(TxtFechaFin.Text.Length == 10)
|
||||
{
|
||||
FFin = TxtFechaFin.Text.ToDate();
|
||||
}
|
||||
|
||||
ClsBancos bancos = new ClsBancos();
|
||||
if (bancos.GetAcreedoresReporte(UsuarioActual.CveEmpresa))
|
||||
if (bancos.GetAcreedoresReporte(UsuarioActual.CveEmpresa, FInicio, FFin))
|
||||
{
|
||||
GvReporte.DataSource = bancos.DtResultados;
|
||||
GvReporte.DataBind();
|
||||
}
|
||||
bancos.Dispose();
|
||||
UpReporte.Update();
|
||||
|
||||
}
|
||||
protected void GvReporte_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
@@ -970,4 +985,9 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
||||
UpDatos.Update();
|
||||
UpMovAcreedor.Update();
|
||||
}
|
||||
|
||||
protected void BtnConsultarReporte_Click(object sender, EventArgs e)
|
||||
{
|
||||
CargaReporte();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user