cargas de trabajo 1 y 2 terminadas

This commit is contained in:
Antonio Gonzalez
2020-06-16 00:40:21 -07:00
parent 75a8477d52
commit 25f1e212ac
10 changed files with 351 additions and 8 deletions

View File

@@ -518,6 +518,8 @@ Partial Class OC
End If
CargaDatos(CveOrdenCompra)
'CARGA VENTA RELACIONADA
CargaVentaRelacionada()
Else
EsNuevo = True
InicializarValores()
@@ -7911,4 +7913,23 @@ Partial Class OC
' Alert("Moneda actualizada con exito")
'End If
End Sub
Private Sub CargaVentaRelacionada()
Dim GridViewPSAux As GridView = GvD
Dim CveOCDetalle As New StringBuilder()
For Each vd As GridViewRow In GridViewPSAux.Rows
Dim CveVentaDetalle As String = vd.DataKey("CveOrdenCompraDetalle")
CveOCDetalle.AppendFormat("{0},", CveVentaDetalle)
Next
Dim ObjVentas As New ClsOC()
If ObjVentas.GetVentasRelacionadas(CveOCDetalle.ToString) Then
Dim V As DataTable = ObjVentas.DtResultados
If V.Rows.Count > 0 Then
DivVentaRelacionada.Visible = True
GvVentaRelacionadas.DataSource = V
GvVentaRelacionadas.DataBind()
End If
End If
ObjVentas.Dispose()
End Sub
End Class