Modulo de Programación
Modulo de Programación
Application.Visible = True
Unload Me
End Sub
Call CallRegistro
End Sub
Call CallInventario
End Sub
Unload Me
End Sub
LabelRegistro.Visible = False
LabelInventario.Visible = False
LabelConfiguraciones.Visible = False
LabelSalir.Visible = False
End Sub
Private Sub Registro_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single,
ByVal Y As Single)
LabelRegistro.Visible = True
LabelInventario.Visible = False
LabelConfiguraciones.Visible = False
LabelSalir.Visible = False
End Sub
Private Sub Inventario_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As
Single, ByVal Y As Single)
LabelRegistro.Visible = False
LabelInventario.Visible = True
LabelConfiguraciones.Visible = False
LabelSalir.Visible = False
End Sub
LabelRegistro.Visible = False
LabelInventario.Visible = False
LabelConfiguraciones.Visible = True
LabelSalir.Visible = False
End Sub
Private Sub Salir_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single,
ByVal Y As Single)
LabelRegistro.Visible = False
LabelInventario.Visible = False
LabelConfiguraciones.Visible = False
LabelSalir.Visible = True
End Sub
Modificar:
Unload Me
End Sub
End If
Next FILADOC
End Sub
ValorBuscado = Me.TxtCodigo2.Value
Linea = Fila.Row
Me.TxtCodigo2.Value = Empty
Me.TxtCoordinacion2.Value = Empty
Me.TxtTipoEquipo2.Value = Empty
Me.TxtProcesador2.Value = Empty
Me.TxtMemoriaRAM2.Value = Empty
Me.TxtDiscoDuro2.Value = Empty
Me.TxtFuentePoder2.Value = Empty
Me.TxtSistemaOperativo2.Value = Empty
Me.TxtCbSeEquipo2.Value = Empty
Me.TxtMonitor2.Value = Empty
Me.TxtCbSeMonitor2.Value = Empty
Me.TxtTeclado2.Value = Empty
Me.TxtCbSeTeclado2.Value = Empty
Me.TxtRaton2.Value = Empty
Me.TxtCbSeRaton2.Value = Empty
Me.TxtCornetas2.Value = Empty
Me.TxtCbSeCornetas2.Value = Empty
Me.TxtImpresora2.Value = Empty
Me.TxtCbSeImpresora2.Value = Empty
Me.TxtWifi2.Value = Empty
Me.TxtCbSeWifi2.Value = Empty
Me.TxtSwitch2.Value = Empty
Me.TxtCbSeSwitch2.Value = Empty
Me.TxtCodigo2.SetFocus
End Sub
End Sub
Registro:
Option Explicit
Unload Me
End Sub
MsgBox "Para Registrar Completa Todos los Campos.", vbCritical, "Campos Vacios !!"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Codigo.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Coordinación.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Tipo de Equipo.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
If TxtProcesador = Empty Then
MsgBox "Por Favor, Complete El Campo Procesador.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Memoria RAM.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Disco Duro.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Fuente de Poder.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Sistema Operativo.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
If TxtCbSeEquipo = Empty Then
MsgBox "Por Favor, Complete El Campo CB/SE - Equipo.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Monitor.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo CB/SE - Monitor.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Teclado.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo CB/SE - Teclado.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Raton.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo CB/SE - Raton.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Impresora.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo CB/SE - Impresora.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Cornetas.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo CB/SE - Cornetas.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Wifi.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo CB/SE - Wifi.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
MsgBox "Por Favor, Complete El Campo Switch.", vbExclamation, "Campos Vacios !"
Exit Sub
End If
Exit Sub
End If
If Repetido = 1 Then
Me.TxtCodigo.Value = Empty
Me.TxtCoordinacion.Value = Empty
Me.TxtTipoEquipo.Value = Empty
Me.TxtProcesador.Value = Empty
Me.TxtMemoriaRAM.Value = Empty
Me.TxtDiscoDuro.Value = Empty
Me.TxtFuentePoder.Value = Empty
Me.TxtSistemaOperativo.Value = Empty
Me.TxtCbSeEquipo.Value = Empty
Me.TxtMonitor.Value = Empty
Me.TxtCbSeMonitor.Value = Empty
Me.TxtTeclado.Value = Empty
Me.TxtCbSeTeclado.Value = Empty
Me.TxtRaton.Value = Empty
Me.TxtCbSeRaton.Value = Empty
Me.TxtImpresora.Value = Empty
Me.TxtCbSeImpresora.Value = Empty
Me.TxtCorneta.Value = Empty
Me.TxtCbSeCorneta.Value = Empty
Me.TxtWifi.Value = Empty
Me.TxtCbSeWifi.Value = Empty
Me.TxtSwitch.Value = Empty
Me.TxtCbSeSwitch.Value = Empty
Else
Me.TxtCodigo.Value = Empty
Me.TxtCoordinacion.Value = Empty
Me.TxtTipoEquipo.Value = Empty
Me.TxtProcesador.Value = Empty
Me.TxtMemoriaRAM.Value = Empty
Me.TxtDiscoDuro.Value = Empty
Me.TxtFuentePoder.Value = Empty
Me.TxtSistemaOperativo.Value = Empty
Me.TxtCbSeEquipo.Value = Empty
Me.TxtMonitor.Value = Empty
Me.TxtCbSeMonitor.Value = Empty
Me.TxtTeclado.Value = Empty
Me.TxtCbSeTeclado.Value = Empty
Me.TxtRaton.Value = Empty
Me.TxtCbSeRaton.Value = Empty
Me.TxtImpresora.Value = Empty
Me.TxtCbSeImpresora.Value = Empty
Me.TxtCorneta.Value = Empty
Me.TxtCbSeCorneta.Value = Empty
Me.TxtWifi.Value = Empty
Me.TxtCbSeWifi.Value = Empty
Me.TxtSwitch.Value = Empty
Me.TxtCbSeSwitch.Value = Empty
End If
Me.TxtCodigo.SetFocus
End Sub
End Sub
Inventario:
Unload Me
End Sub
Dim X As Long
With Me.LstCaracteristica
X = .ListIndex
Modificar.TxtCodigo2.Text = .List(X, 0)
End With
Modificar.Show
End Sub
Private Sub rdbCodigos_Click()
Call MiModulo.ResetearLista
End Sub
Call MiModulo.ResetearLista
End Sub
Call MiModulo.RealizarFiltro
End Sub
Call MiModulo.CagarLista_Caracteristica
Call MiModulo.CagarLista_Perifericos
Call MiModulo.CagarLista_Interruptor
End Sub
Call MiModulo.QuitarFiltros
End Sub
Modulo:
Sub CallRegistro()
Registro.Show
End Sub
Sub CallInventario()
Load Inventario
Inventario.rdbCoordinacion.Value = True
Inventario.Show
End Sub
Sub QuitarFiltros()
Application.ScreenUpdating = False
Hoja1.ListObjects("InventarioTecnologico").ShowAutoFilter = False
Hoja1.ListObjects("InventarioTecnologico").ShowAutoFilter = True
Application.ScreenUpdating = True
End Sub
Sub CagarLista_Caracteristica()
With Inventario.LstCaracteristica
.Clear
.ColumnCount = 9
.ColumnHeads = True
.ColumnWidths = "60pt;230pt;270pt;100pt;200pt;200pt;200pt;170pt;170pt"
Set FilasFiltro =
Hoja1.ListObjects("InventarioTecnologico").DataBodyRange.SpecialCells(xlCellTypeVisible).Rows
.AddItem
.List(.ListCount - 1, 0) = Fila.Cells(1).Value
.List(.ListCount - 1, 1) = Fila.Cells(2).Value
.List(.ListCount - 1, 2) = Fila.Cells(3).Value
.List(.ListCount - 1, 3) = Fila.Cells(4).Value
.List(.ListCount - 1, 4) = Fila.Cells(5).Value
.List(.ListCount - 1, 5) = Fila.Cells(6).Value
.List(.ListCount - 1, 6) = Fila.Cells(7).Value
.List(.ListCount - 1, 7) = Fila.Cells(8).Value
.List(.ListCount - 1, 8) = Fila.Cells(9).Value
Next Fila
End With
On Error GoTo 0
Exit Sub
Depurar:
On Error GoTo 0
End Sub
Sub CagarLista_Perifericos()
With Inventario.LstPeriferico
.Clear
.ColumnCount = 10
.ColumnHeads = True
.ColumnWidths = "130pt;100pt;130;100;130pt;100pt;85pt;100pt;60pt;100pt"
Set FilasFiltro =
Hoja1.ListObjects("InventarioTecnologico").DataBodyRange.SpecialCells(xlCellTypeVisible).Rows
For Each Fila In FilasFiltro
.AddItem
.List(.ListCount - 1, 0) = Fila.Cells(10).Value
.List(.ListCount - 1, 1) = Fila.Cells(11).Value
.List(.ListCount - 1, 2) = Fila.Cells(12).Value
.List(.ListCount - 1, 3) = Fila.Cells(13).Value
.List(.ListCount - 1, 4) = Fila.Cells(14).Value
.List(.ListCount - 1, 5) = Fila.Cells(15).Value
.List(.ListCount - 1, 6) = Fila.Cells(16).Value
.List(.ListCount - 1, 7) = Fila.Cells(17).Value
.List(.ListCount - 1, 8) = Fila.Cells(18).Value
.List(.ListCount - 1, 9) = Fila.Cells(19).Value
Next Fila
End With
On Error GoTo 0
Exit Sub
Depurar:
On Error GoTo 0
End Sub
Sub CagarLista_Interruptor()
With Inventario.LstInterruptor
.Clear
.ColumnCount = 4
.ColumnHeads = True
.ColumnWidths = "130pt;100pt;130pt;100pt"
Set FilasFiltro =
Hoja1.ListObjects("InventarioTecnologico").DataBodyRange.SpecialCells(xlCellTypeVisible).Rows
.AddItem
.List(.ListCount - 1, 0) = Fila.Cells(20).Value
.List(.ListCount - 1, 1) = Fila.Cells(21).Value
.List(.ListCount - 1, 2) = Fila.Cells(22).Value
.List(.ListCount - 1, 3) = Fila.Cells(23).Value
Next Fila
End With
On Error GoTo 0
Exit Sub
Depurar:
On Error GoTo 0
End Sub
Sub RealizarFiltro()
End If
Call MiModulo.CagarLista_Caracteristica
Call MiModulo.CagarLista_Perifericos
Call MiModulo.CagarLista_Interruptor
End Sub
Sub ResetearLista()
Call MiModulo.QuitarFiltros
Call MiModulo.CagarLista_Caracteristica
Call MiModulo.CagarLista_Perifericos
Call MiModulo.CagarLista_Interruptor
Inventario.TxtRegistro.Value = ""
Inventario.TxtRegistro.SetFocus
End Sub
Sub OcultarExcel()
Application.Visible = False
MenuInicio.Show
End Sub
Sub Formulario()
MenuInicio.Show
End Sub