-- actualizar GlobaldtAF
This commit is contained in:
@@ -2493,6 +2493,7 @@ Partial Class AF_AF
|
|||||||
CveModelo:=DdlModelos.SelectedValue.ToEntero, CveGrupo:=DdlGrupo.SelectedValue.ToEntero, CveAFPadre:=DdlAFPadres.SelectedValue.ToEntero, CveDispositivo:=DdlDispositivo.SelectedValue.ToEntero,
|
CveModelo:=DdlModelos.SelectedValue.ToEntero, CveGrupo:=DdlGrupo.SelectedValue.ToEntero, CveAFPadre:=DdlAFPadres.SelectedValue.ToEntero, CveDispositivo:=DdlDispositivo.SelectedValue.ToEntero,
|
||||||
FechaBaja:=FechaBaja, Lat:=TxtLatitud.Text, Longi:=TxtLongitud.Text, AgroCuenta:=TxtAgroCuenta.Text) > 0 Then
|
FechaBaja:=FechaBaja, Lat:=TxtLatitud.Text, Longi:=TxtLongitud.Text, AgroCuenta:=TxtAgroCuenta.Text) > 0 Then
|
||||||
ViewState("CveActivoFijo") = ObjAF.CveActivoFijo
|
ViewState("CveActivoFijo") = ObjAF.CveActivoFijo
|
||||||
|
GlobalDTActivoFijos(UsuarioActual.CveEmpresa) = Nothing
|
||||||
Else
|
Else
|
||||||
ErrorGuardar = True
|
ErrorGuardar = True
|
||||||
End If
|
End If
|
||||||
@@ -2506,7 +2507,6 @@ Partial Class AF_AF
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
If Not ErrorGuardar Then
|
If Not ErrorGuardar Then
|
||||||
For Each GvRowPlagaEnfermedad As GridViewRow In GvPlagaEnfermedad.Rows
|
For Each GvRowPlagaEnfermedad As GridViewRow In GvPlagaEnfermedad.Rows
|
||||||
If Not ObjAF.AddPlagaEnfermedad(ObjAF.CveActivoFijo, GvRowPlagaEnfermedad.DataKey("Observaciones"), GvRowPlagaEnfermedad.DataKey("Fecha").ToDate, UsuarioActual.CveUsuario) Then
|
If Not ObjAF.AddPlagaEnfermedad(ObjAF.CveActivoFijo, GvRowPlagaEnfermedad.DataKey("Observaciones"), GvRowPlagaEnfermedad.DataKey("Fecha").ToDate, UsuarioActual.CveUsuario) Then
|
||||||
@@ -2516,11 +2516,8 @@ Partial Class AF_AF
|
|||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Not ErrorGuardar Then
|
If Not ErrorGuardar Then
|
||||||
|
|
||||||
|
|
||||||
For Each GvRowMantenimiento As GridViewRow In GvMantenimientos.Rows
|
For Each GvRowMantenimiento As GridViewRow In GvMantenimientos.Rows
|
||||||
|
|
||||||
Dim CveMantenimientoTemp As Integer = ObjAF.AddMantenimientos(ObjAF.CveActivoFijo, GvRowMantenimiento.DataKey("Mantenimiento"), GvRowMantenimiento.DataKey("Observaciones"), GvRowMantenimiento.DataKey("Fecha").ToDate, UsuarioActual.CveUsuario, "")
|
Dim CveMantenimientoTemp As Integer = ObjAF.AddMantenimientos(ObjAF.CveActivoFijo, GvRowMantenimiento.DataKey("Mantenimiento"), GvRowMantenimiento.DataKey("Observaciones"), GvRowMantenimiento.DataKey("Fecha").ToDate, UsuarioActual.CveUsuario, "")
|
||||||
@@ -2556,7 +2553,6 @@ Partial Class AF_AF
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
ErrorGuardar = True
|
ErrorGuardar = True
|
||||||
Exit For
|
Exit For
|
||||||
@@ -2564,8 +2560,6 @@ Partial Class AF_AF
|
|||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -2604,6 +2598,8 @@ Partial Class AF_AF
|
|||||||
'UpDatos.Update()
|
'UpDatos.Update()
|
||||||
' GuardaValores()
|
' GuardaValores()
|
||||||
ErrorGuardar = True
|
ErrorGuardar = True
|
||||||
|
Else
|
||||||
|
GlobalDTActivoFijos(UsuarioActual.CveEmpresa) = Nothing
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user