-- mejora con busqueda de ps
This commit is contained in:
@@ -195,9 +195,7 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
TxtFecha.Text = NowADS().ToShortDateString
|
TxtFecha.Text = NowADS().ToShortDateString
|
||||||
CEFecha.EndDate = NowADS().AddDays(-1)
|
CEFecha.EndDate = NowADS().AddDays(-1)
|
||||||
RVFecha.MaximumValue = NowADS().ToShortDateString
|
RVFecha.MaximumValue = NowADS().ToShortDateString
|
||||||
|
|
||||||
Folio = 0
|
Folio = 0
|
||||||
|
|
||||||
CargaCombos()
|
CargaCombos()
|
||||||
CreaDT()
|
CreaDT()
|
||||||
|
|
||||||
@@ -222,7 +220,6 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
'If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
'If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
||||||
|
|
||||||
' TxtFecha.Enabled = False
|
' TxtFecha.Enabled = False
|
||||||
@@ -233,7 +230,6 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "CARGA DATOS"
|
#Region "CARGA DATOS"
|
||||||
|
|
||||||
Protected Sub CreaDT()
|
Protected Sub CreaDT()
|
||||||
Dim dt As New DataTable
|
Dim dt As New DataTable
|
||||||
|
|
||||||
@@ -247,8 +243,6 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
|
|
||||||
dt.Columns.Add(column)
|
dt.Columns.Add(column)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dt.Columns.Add("Cantidad", Type.GetType("System.Double"))
|
dt.Columns.Add("Cantidad", Type.GetType("System.Double"))
|
||||||
dt.Columns.Add("CveUM", Type.GetType("System.Int32"))
|
dt.Columns.Add("CveUM", Type.GetType("System.Int32"))
|
||||||
dt.Columns.Add("UnidadMedida")
|
dt.Columns.Add("UnidadMedida")
|
||||||
@@ -265,8 +259,6 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
dt.Columns.Add("Lote")
|
dt.Columns.Add("Lote")
|
||||||
dt.Columns.Add("FechaCaducidad", Type.GetType("System.DateTime"))
|
dt.Columns.Add("FechaCaducidad", Type.GetType("System.DateTime"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dt.Columns.Add("CveClasificacion", Type.GetType("System.Int32"))
|
dt.Columns.Add("CveClasificacion", Type.GetType("System.Int32"))
|
||||||
dt.Columns.Add("EstatusExistencia")
|
dt.Columns.Add("EstatusExistencia")
|
||||||
|
|
||||||
@@ -285,14 +277,10 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
dt.Columns.Add("Embalaje")
|
dt.Columns.Add("Embalaje")
|
||||||
dt.Columns.Add("PesoKg", Type.GetType("System.Decimal"))
|
dt.Columns.Add("PesoKg", Type.GetType("System.Decimal"))
|
||||||
|
|
||||||
|
|
||||||
DtMovimientos = dt
|
DtMovimientos = dt
|
||||||
|
|
||||||
CargaGvDatos()
|
CargaGvDatos()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Private Sub CargaCombos()
|
Private Sub CargaCombos()
|
||||||
'CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyecto, AplicaTodos:="")
|
'CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyecto, AplicaTodos:="")
|
||||||
|
|
||||||
@@ -307,17 +295,12 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
' TxtFechaEntrega.Text = NowADS().ToShortDateString
|
' TxtFechaEntrega.Text = NowADS().ToShortDateString
|
||||||
TxtFechaLlegada.Text = NowADS().ToShortDateString
|
TxtFechaLlegada.Text = NowADS().ToShortDateString
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CargaPS()
|
CargaPS()
|
||||||
|
|
||||||
|
|
||||||
CargarCamiones()
|
CargarCamiones()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaPS()
|
Private Sub CargaPS()
|
||||||
|
|
||||||
|
|
||||||
Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False)
|
Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False)
|
||||||
DdlProducto2.setEsWebService(EsWS)
|
DdlProducto2.setEsWebService(EsWS)
|
||||||
|
|
||||||
@@ -328,7 +311,12 @@ Partial Class Inventarios_CartaPorteManual
|
|||||||
DdlProducto2.ddlWS.Attributes.Add("Data-onresult", "CargaExistenciaAlmacenes")
|
DdlProducto2.ddlWS.Attributes.Add("Data-onresult", "CargaExistenciaAlmacenes")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
DdlProducto2.ddl.Items.Clear()
|
||||||
|
'Objeto.ddl.DataSource = GlobalDTProductosServicios(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacion, AplicaParaVenta:=1, Estatus:=1)
|
||||||
|
DdlProducto2.ddl.DataSource = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CveClasificacion:=-1, Estatus:=1, AplicaParaVenta:=-1)
|
||||||
|
DdlProducto2.ddl.DataBind()
|
||||||
|
DdlProducto2.ddl.Items.Insert(0, New ListItem("Seleccione el Producto", "-1"))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Reference in New Issue
Block a user