- mejora AF
This commit is contained in:
@@ -1804,8 +1804,6 @@ Partial Class General_SaldosIniciales
|
||||
If Not dt.Columns.Contains("CveCuentaContable") Then
|
||||
dt.Columns.Add("CveCuentaContable", GetType(Integer))
|
||||
End If
|
||||
|
||||
|
||||
Dim sbErrores As New StringBuilder
|
||||
|
||||
For Each Row As DataRow In dt.Rows
|
||||
@@ -1827,8 +1825,6 @@ Partial Class General_SaldosIniciales
|
||||
End If
|
||||
Next
|
||||
|
||||
|
||||
|
||||
If Not ErrorAF Then
|
||||
dt.AcceptChanges()
|
||||
Else
|
||||
@@ -1836,7 +1832,6 @@ Partial Class General_SaldosIniciales
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
|
||||
Dim ObjAF As New ClsAF
|
||||
Try
|
||||
|
||||
@@ -1845,7 +1840,7 @@ Partial Class General_SaldosIniciales
|
||||
Dim Contador As Integer = 0
|
||||
Dim NumRow As Integer = 0
|
||||
|
||||
For Each Row As DataRow In dt.Rows
|
||||
For Each Row As DataRow In dt.FiltraParametros("Descripción <> ''").Rows
|
||||
Dim Codigo As String = Row("Código").ToString
|
||||
Dim Descripcion As String = Row("Descripción").ToString
|
||||
Dim TipoAF As String = Row("Tipo").ToString.Trim
|
||||
@@ -1873,9 +1868,9 @@ Partial Class General_SaldosIniciales
|
||||
|
||||
|
||||
'VALIDACIONES
|
||||
If Not CveSubTipoAF > 0 Then Alert($"No se encontró el SubTipo: {TipoAF} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorAF = True : Exit For
|
||||
If Not CveSubProyecto > 0 Then Alert($"No se encontró el SubProyecto: {SubProyecto} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorAF = True : Exit For
|
||||
If Not CveEstadoActivoFijo > 0 Then Alert($"No se encontró el Estado: {Estado} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorAF = True : Exit For
|
||||
If Not CveSubTipoAF > 0 Then Alert($"No se encontró el SubTipo: {TipoAF} Descripcion: {Descripcion} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorAF = True : Exit For
|
||||
If Not CveSubProyecto > 0 Then Alert($"No se encontró el SubProyecto: {SubProyecto} Descripcion: {Descripcion} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorAF = True : Exit For
|
||||
If Not CveEstadoActivoFijo > 0 Then Alert($"No se encontró el Estado: {Estado} Descripcion: {Descripcion} Renglón: {NumRow}: ", TipoMensaje.MsgAdvertencia) : ErrorAF = True : Exit For
|
||||
If Not CveCliente > 0 Then CveCliente = -1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user