Agregar el filtro de cliente y el movimiento del almacen
This commit is contained in:
@@ -19,6 +19,7 @@ Partial Class Acumuladores_RepEntradasUsadosClientes
|
||||
|
||||
If Not Page.IsPostBack Then
|
||||
CargaCombos()
|
||||
CargaNombreClientes()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
@@ -26,8 +27,11 @@ Partial Class Acumuladores_RepEntradasUsadosClientes
|
||||
Private Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
|
||||
CargaDatos()
|
||||
|
||||
End Sub
|
||||
Private Sub CargaNombreClientes()
|
||||
DdlNombre.setEsWebService(True)
|
||||
DdlNombre.Attributes.Add("data-metodo", "getcliente")
|
||||
End Sub
|
||||
|
||||
Public Sub CargaCombos()
|
||||
DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 22)
|
||||
DdlAlmacen.DataBind()
|
||||
@@ -44,11 +48,11 @@ Partial Class Acumuladores_RepEntradasUsadosClientes
|
||||
FechaI = If(IsDate(TxtFechaI.Text.Trim()), TxtFechaI.Text.Trim.todate, minfecha)
|
||||
FechaF = If(IsDate(TxtFechaF.Text.Trim()), TxtFechaF.Text.Trim.todate, maxfecha)
|
||||
|
||||
Dim CveAlmacen As Integer = If(DdlAlmacen.SelectedValue = "", "-1", DdlAlmacen.SelectedValue).ToString.toentero
|
||||
|
||||
Dim CveAlmacen As Integer = If(DdlAlmacen.SelectedValue = "", "-1", DdlAlmacen.SelectedValue).ToString.ToEntero
|
||||
Dim CveCliente As Integer = If(DdlNombre.SelectedValue = "", "-1", DdlNombre.SelectedValue).ToString.ToEntero
|
||||
Dim Acum As New ClsAcumuladores
|
||||
|
||||
If Acum.EntradasUsadosClientesRep(CveAlmacen, FechaI, FechaF, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||
If Acum.EntradasUsadosClientesRep(CveAlmacen, FechaI, FechaF, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCliente) Then
|
||||
GvDatos.DataSource = Acum.DtResultados.FiltraParametros("Codigo_Clientes <> 'Total:'") 'los renglones generados con esta caracteriztica son con un grouping set en la consulta, se pueden quitar
|
||||
DatosEntradasUsadosClientes = Acum.DtResultados.FiltraParametros("Codigo_Clientes <> 'Total:'")
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user