Rep Fluctuación Cambiaria: se agrega descarga en Excel de GridViews
This commit is contained in:
@@ -1283,5 +1283,31 @@ Partial Class Bancos_FluctuacionCambiaria
|
||||
Banco.Dispose()
|
||||
End Sub
|
||||
|
||||
#Region " EXPORTA EXCEL "
|
||||
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||
If (T.ActiveTabIndex = 0) Then
|
||||
GvProveedores.ExportToExcel("FluctuacionCambiariaProveedores_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 1) Then
|
||||
GvProveedoresAnt.ExportToExcel("FluctuacionCambiariaProveedoresAnt_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 2) Then
|
||||
GvVentas.ExportToExcel("FluctuacionCambiariaClientes_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 3) Then
|
||||
GvClientesAnt.ExportToExcel("FluctuacionCambiariaClientesAnt_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 4) Then
|
||||
GvAcreedores.ExportToExcel("FluctuacionCambiariaComprasAcreedores_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 5) Then
|
||||
GvAcreedoresAnt.ExportToExcel("FluctuacionCambiariaAcreedoresAnt_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 6) Then
|
||||
GvCuentas.ExportToExcel("FluctuacionCambiariaBancos_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 7) Then
|
||||
GvFiliales.ExportToExcel("FluctuacionCambiariaFilial_" & Now.ToShortDateString)
|
||||
ElseIf (T.ActiveTabIndex = 8) Then
|
||||
GvDeudores.ExportToExcel("FluctuacionCambiariaDeudores_" & Now.ToShortDateString)
|
||||
End If
|
||||
|
||||
' ImprimirReportePdf("Excel")
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user