TareasProgramadas Envio de estado cuenta, compras cvetipoOperacion, , reembolsos filtror rwo acumulado, ajkustes carta porte, OC carga desde excel filtro rows vacios, personal cuentas deposito

This commit is contained in:
rakcsle
2025-04-28 15:51:29 -07:00
parent f4a669e533
commit c4e58b18fc
9 changed files with 577 additions and 161 deletions

View File

@@ -6952,6 +6952,28 @@ Partial Class OC_OC
Dim dt As New DataTable
dt = ReadExcelFile(Ruta + FileName, True)
If dt.Rows.Count > 0 Then
Dim dtOriginal As DataTable = dt
Dim dtFiltrada As DataTable = dtOriginal.Clone()
Try
For Each row As DataRow In dtOriginal.Rows
Dim cantidadStr As String = row("Cantidad").ToString().Trim()
Dim cantidadNum As Decimal
If Decimal.TryParse(cantidadStr, cantidadNum) Then
If cantidadNum > 0 Then
dtFiltrada.ImportRow(row)
End If
End If
Next
Catch ex As Exception
End Try
dt = dtFiltrada
End If
Dim ErrorArchivo As Boolean = False
'Dim Conexion As Odbc.OdbcConnection = Nothing