-- filtros de reportes de contratos por fechaing
This commit is contained in:
@@ -24,7 +24,7 @@ Partial Class ListadoContratos
|
||||
|
||||
If Not IsPostBack Then
|
||||
txtFechaI.Text = DateTime.Now.AddMonths(-1).ToShortDateString
|
||||
txtFechaF.Text = DateTime.Now.AddDays(15).ToShortDateString
|
||||
txtFechaF.Text = DateTime.Now.AddDays(1).ToShortDateString
|
||||
InicializaCombos()
|
||||
CargaDatos()
|
||||
End If
|
||||
@@ -60,7 +60,8 @@ Partial Class ListadoContratos
|
||||
Private Sub CargaDatos()
|
||||
Dim ObjContratos As New ClsContratos
|
||||
|
||||
If ObjContratos.GetContratosReporte(UsuarioActual.CveEmpresa, txtFechaI.Text.ToDate, txtFechaF.Text.ToDate, DdlCliente.SelectedValue.ToEntero, DdlEstatus.SelectedValue.ToEntero, CveSubProyecto:=DdlCentroCostos.SelectedValue.ToEntero, CveTipoAF:=DdlTipoUnidad.SelectedValue.ToEntero, CveChofer:=DdlChofer.SelectedValue.ToEntero) Then
|
||||
If ObjContratos.GetContratosReporte(UsuarioActual.CveEmpresa, MinFecha, MaxFecha, DdlCliente.SelectedValue.ToEntero, DdlEstatus.SelectedValue.ToEntero, CveSubProyecto:=DdlCentroCostos.SelectedValue.ToEntero, CveTipoAF:=DdlTipoUnidad.SelectedValue.ToEntero, CveChofer:=DdlChofer.SelectedValue.ToEntero,
|
||||
FechaInicioIngreso:=txtFechaI.Text.ToDate, FechaFinIngreso:=txtFechaF.Text.ToDate) Then
|
||||
GvContratos.DataSource = ObjContratos.DtResultados
|
||||
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user