Page 118

118

#End Region Private Sub PanelEx1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PanelEx1.Click End Sub Private Sub DataGridViewX1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridViewX1.CellContentClick End Sub End Class

M贸dulo Reportes Public Class FrmReporteria Private objSql As New cSql Dim cad As String = "" Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click Generar() End Sub Private Sub ButtonX2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX2.Click cUtilitario.ExportarExcel(Me.DataGridViewX1, "LISTADO DE OPERACIONES") End Sub Sub EncadenarAnd() If cad <> "" Then cad = cad & " AND " End If End Sub Sub Generar() Dim cadSql As String = "" cad = "" Dim columnaFecha As String = "" columnaFecha = "TRAN_FECH" If (rbTipoTransaccionSalida.Checked = True) Then cad = cad & "TRAN_FECHS IS NOT NULL" columnaFecha = "TRAN_FECHS" End If If (RbVehiculosEspecificos.Checked = True) Then EncadenarAnd() cad = cad & "VEH_PLACA ='" & txtVehiculoPlaca.Text & "'" End If If (RbUsuarioEspecificos.Checked = True) Then EncadenarAnd()

Desarrollo de un software para el control automatizado del ingreso y salida de vehículos  

Disertación de Grado – ESIS – Nº 1 – 2013 – PUCE SD

Desarrollo de un software para el control automatizado del ingreso y salida de vehículos  

Disertación de Grado – ESIS – Nº 1 – 2013 – PUCE SD

Advertisement