diff --git a/AF/AF.aspx.vb b/AF/AF.aspx.vb index 608f2bbdf..03cc2db05 100644 --- a/AF/AF.aspx.vb +++ b/AF/AF.aspx.vb @@ -376,8 +376,8 @@ Partial Class AF_AF InicializaValores() - CargaCombos() - + + If Request("CveActivoFijo") IsNot Nothing AndAlso IsNumeric(Request("CveActivoFijo")) AndAlso Request("CveActivoFijo").ToEntero > 0 Then ViewState("CveActivoFijo") = Request("CveActivoFijo") CargaDatos() @@ -396,7 +396,8 @@ Partial Class AF_AF HlEvento.Visible = True HlEvento.NavigateUrl = String.Format("/OI/PopUpAgenda.aspx?CveTipoEvento=2&CveActivoFijo=" & CveActivoFijo & "&TB_iframe=true&height=370&width=600;") LtlTareaNueva.Text = String.Format(" Tarea", CveActivoFijo) - Else + Else + CargaCombos() ViewState("CveActivoFijo") = -1 diff --git a/AF/CatAF.aspx b/AF/CatAF.aspx index 2e8c340f9..a957b310d 100644 --- a/AF/CatAF.aspx +++ b/AF/CatAF.aspx @@ -205,10 +205,26 @@ -
- " style="display: inline-block; margin-right: -20px; width: 150px;" /> - " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> +
+
+
+ + + Encontrados: + + +
+
+
+
+ " style="display: inline-block; margin-right: -20px; width: 150px;" /> + " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> +
+
+
+ +
@@ -251,9 +267,7 @@ -
- Encontrados: -
+ diff --git a/AF/CatAF.aspx.vb b/AF/CatAF.aspx.vb index 3a448d15c..e348643a4 100644 --- a/AF/CatAF.aspx.vb +++ b/AF/CatAF.aspx.vb @@ -56,7 +56,7 @@ Partial Class AF_CatAF CargaCaracteristicas() If UsuarioActual.CveEmpresa = 13 Then - ChkUltimaImagen.Checked = True + 'ChkUltimaImagen.Checked = True ChkMarcaActivoFijo.Checked = True ChkModeloActivoFijo.Checked = True ChkNoSerie.Checked = True @@ -328,6 +328,7 @@ Partial Class AF_CatAF End If UpGV.Update() + UpTotalRegistros.Update() OrdenaDatos() End Sub @@ -557,10 +558,22 @@ Partial Class AF_CatAF If Archivo.Exists Then Ruta = UsuarioActual.Empresa.Ruta & "Formatos/CatAF.rdlc" - If Not DtActivosFijos.Columns.Contains("UltimaImagen") Then - 'DTAFCaracteristicas. + If Not DtActivosFijos.Columns.Contains("UltimaImagenByte") Then + DtActivosFijos.Columns.Add("UltimaImagenByte", GetType(Byte())) End If + For Each dRow As DataRow In DtActivosFijos.Rows + Dim RutaUltimaImagen As String = dRow("RutaUltimaImagen").ToString() + Dim bytes As Byte() = Nothing + If RutaUltimaImagen.Length > 0 Then + Dim rutaArchivo As System.IO.FileInfo = New IO.FileInfo($"{UsuarioActual.Empresa.Ruta}\{RutaUltimaImagen}") + If rutaArchivo.Exists Then + bytes = System.IO.File.ReadAllBytes(rutaArchivo.FullName) + End If + End If + dRow("UltimaImagenByte") = bytes + Next + Else Ruta = "Empresas/Grales/Formatos/CatAF.rdlc" End If @@ -689,7 +702,7 @@ Partial Class AF_CatAF ChkUltimaImagen.Checked = False If UsuarioActual.CveEmpresa = 13 Then - ChkUltimaImagen.Checked = True + 'ChkUltimaImagen.Checked = True ChkMarcaActivoFijo.Checked = True ChkModeloActivoFijo.Checked = True ChkNoSerie.Checked = True diff --git a/Transportes/RepContratosCalendario.aspx.vb b/Transportes/RepContratosCalendario.aspx.vb index 18c209d4e..0c058efca 100644 --- a/Transportes/RepContratosCalendario.aspx.vb +++ b/Transportes/RepContratosCalendario.aspx.vb @@ -677,12 +677,13 @@ Partial Class RepContratosCalendario If TieneError Then ObjContratos.RollBack() - Alert("Se presento un error al Actualizar el contrato.") + Alert("Se Presento un Error al Actualizar el Contrato.", TipoMensaje.MsgError) Else ObjContratos.Commit() RegistraScript("$('#ModalActualizar').modal('hide');") Alert("Contrato Actualizado Correctamente.") End If + ObjContratos.Dispose() objGenerales.Dispose() ObjVentas.Dispose()