CatRutas Remaquetado, Rep Conrtatos detalles, RecepcionAalmacenes correcicion redondeo Importe MN Concepto 229
This commit is contained in:
@@ -609,6 +609,23 @@ Partial Class RepContratosCalendario
|
||||
DdlTipoAF.SelectedValueExist(DRow("CveTipoAF").ToString)
|
||||
DdlTipoAF_SelectedIndexChanged(Nothing, Nothing)
|
||||
|
||||
|
||||
If DRow("CveAF").ToString.ToEntero > 0 Then
|
||||
Dim ExisteItem As Boolean = False
|
||||
For Each item As ListItem In DdlAF.Items
|
||||
If item.Value = DRow("CveAF").ToString Then
|
||||
ExisteItem = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
|
||||
If Not ExisteItem Then
|
||||
Dim TmpItemText As String = GlobalDTActivoFijos(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CodDesc", $" EstadoActivoFijo= 'Activo' AND CveActivoFijo = {DRow("CveAF").ToString}")
|
||||
DdlAF.Items.Add(New ListItem(TmpItemText, $"{DRow("CveAF").ToString}"))
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
DdlAF.SelectedValueExist(DRow("CveAF").ToString)
|
||||
|
||||
HidCveAF.Value = "-1"
|
||||
@@ -741,6 +758,21 @@ Partial Class RepContratosCalendario
|
||||
DdlTipoAF.SelectedValueExist(GvRow.DataKey("CveTipoAF"))
|
||||
DdlTipoAF_SelectedIndexChanged(Nothing, Nothing)
|
||||
|
||||
If GvRow.DataKey("CveAF").ToEntero > 0 Then
|
||||
Dim ExisteItem As Boolean = False
|
||||
For Each item As ListItem In DdlAF.Items
|
||||
If item.Value = GvRow.DataKey("CveAF") Then
|
||||
ExisteItem = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
|
||||
If Not ExisteItem Then
|
||||
Dim TmpItemText As String = GlobalDTActivoFijos(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CodDesc", $" EstadoActivoFijo= 'Activo' AND CveActivoFijo = {GvRow.DataKey("CveAF")}")
|
||||
DdlAF.Items.Add(New ListItem(TmpItemText, $"{GvRow.DataKey("CveAF")}"))
|
||||
End If
|
||||
End If
|
||||
|
||||
DdlAF.SelectedValueExist(GvRow.DataKey("CveAF"))
|
||||
|
||||
HidCveAF.Value = "-1"
|
||||
|
||||
Reference in New Issue
Block a user