Merge branch 'master' of http://agonzalez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -822,11 +822,10 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
|
|
||||||
If AplicaSeccion Then GvDatos.Columns(7).Visible = True
|
If AplicaSeccion Then GvDatos.Columns(7).Visible = True
|
||||||
If AplicaLote Then GvDatos.Columns(8).Visible = True
|
If AplicaLote Then GvDatos.Columns(8).Visible = True
|
||||||
If AplicaCaducidad Then GvDatos.Columns(9).Visible = True
|
If AplicaCaducidad Then GvDatos.Columns(9).Visible = True
|
||||||
|
|
||||||
GvDatos.DataSource = DtDatos
|
|
||||||
End If
|
End If
|
||||||
|
GvDatos.DataSource = DtDatos
|
||||||
|
|
||||||
GvDatos.DataBind()
|
GvDatos.DataBind()
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
@@ -3253,6 +3252,8 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
TimmerRefresh.Enabled = True
|
TimmerRefresh.Enabled = True
|
||||||
UpGenerales.Update()
|
UpGenerales.Update()
|
||||||
CargaGvDatos()
|
CargaGvDatos()
|
||||||
|
|
||||||
|
UpDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|||||||
@@ -3837,7 +3837,7 @@ Partial Class PV
|
|||||||
TmpDT.Columns.Add("NoIdentificacion", GetType(String))
|
TmpDT.Columns.Add("NoIdentificacion", GetType(String))
|
||||||
TmpDT.Columns.Add("CveTipoPS", GetType(Integer))
|
TmpDT.Columns.Add("CveTipoPS", GetType(Integer))
|
||||||
TmpDT.Columns.Add("CveTipoInvPS", GetType(Integer))
|
TmpDT.Columns.Add("CveTipoInvPS", GetType(Integer))
|
||||||
TmpDT.Columns.Add("SerieLote", GetType(String))
|
TmpDT.Columns.Add("Serie", GetType(String))
|
||||||
TmpDT.Columns.Add("CuentaPredial", GetType(String))
|
TmpDT.Columns.Add("CuentaPredial", GetType(String))
|
||||||
TmpDT.Columns.Add("Obs", GetType(String))
|
TmpDT.Columns.Add("Obs", GetType(String))
|
||||||
TmpDT.Columns.Add("TiempoEntrega", GetType(String))
|
TmpDT.Columns.Add("TiempoEntrega", GetType(String))
|
||||||
|
|||||||
@@ -2308,9 +2308,9 @@ Partial Class Ventas
|
|||||||
ViewState("CveRemision") = IfNull(Request("CveRemision").ToEntero(), 0)
|
ViewState("CveRemision") = IfNull(Request("CveRemision").ToEntero(), 0)
|
||||||
ViewState("CveCotizacion") = IfNull(Request("CveCotizacion").ToEntero(), 0)
|
ViewState("CveCotizacion") = IfNull(Request("CveCotizacion").ToEntero(), 0)
|
||||||
|
|
||||||
If ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
|
'If ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
|
||||||
EsCreaApartirDe = True
|
' EsCreaApartirDe = True
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If ViewState("CveRemision").ToString().ToEntero() > 0 Or ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
|
If ViewState("CveRemision").ToString().ToEntero() > 0 Or ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
|
||||||
'ViewState("CveRemision") = Request("CveRemision")
|
'ViewState("CveRemision") = Request("CveRemision")
|
||||||
@@ -2348,6 +2348,20 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'CargaDetalle de Almacen
|
'CargaDetalle de Almacen
|
||||||
InventarioMov()
|
InventarioMov()
|
||||||
|
|
||||||
|
If ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
|
||||||
|
|
||||||
|
CargaCotizaciones()
|
||||||
|
|
||||||
|
If DtCotizaciones IsNot Nothing Then
|
||||||
|
For Each Row As DataRow In DtCotizaciones.Select($"CveVenta={ViewState("CveCotizacion").ToString().ToEntero()}")
|
||||||
|
Row("Aplicado") = True
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
CargarCotizacionesAFacturar()
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ExFolioFactura Then SetPermisos()
|
If Not ExFolioFactura Then SetPermisos()
|
||||||
@@ -16241,6 +16255,11 @@ Partial Class Ventas
|
|||||||
If Not OcurrioError Then
|
If Not OcurrioError Then
|
||||||
OcurrioError = Not GeneroMovimientoAlmacen
|
OcurrioError = Not GeneroMovimientoAlmacen
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If OcurrioError Then
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -16252,6 +16271,10 @@ Partial Class Ventas
|
|||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If OcurrioError Then
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
@@ -23600,6 +23623,15 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'MARCA LAS SELECCIONADAS
|
'MARCA LAS SELECCIONADAS
|
||||||
VerificaCotizaciones(DtCotizaciones)
|
VerificaCotizaciones(DtCotizaciones)
|
||||||
|
|
||||||
|
CargarCotizacionesAFacturar()
|
||||||
|
|
||||||
|
RegistraScript("$('#DivCotizaciones').modal('hide');")
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargarCotizacionesAFacturar()
|
||||||
|
|
||||||
Dim DTSeleccionadas = DtCotizaciones.FiltraParametros("Aplicado = True")
|
Dim DTSeleccionadas = DtCotizaciones.FiltraParametros("Aplicado = True")
|
||||||
|
|
||||||
If DTSeleccionadas.Rows.Count = 0 Then
|
If DTSeleccionadas.Rows.Count = 0 Then
|
||||||
@@ -23686,9 +23718,6 @@ Partial Class Ventas
|
|||||||
UpFacturar.Update()
|
UpFacturar.Update()
|
||||||
UpPS.Update()
|
UpPS.Update()
|
||||||
UpParametros.Update()
|
UpParametros.Update()
|
||||||
|
|
||||||
RegistraScript("$('#DivCotizaciones').modal('hide');")
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub VerificaCotizaciones(ByRef dt As DataTable)
|
Private Sub VerificaCotizaciones(ByRef dt As DataTable)
|
||||||
If ChkCotProductos.Checked Then
|
If ChkCotProductos.Checked Then
|
||||||
|
|||||||
Reference in New Issue
Block a user