From 84cadf0c7a1278020a24170710c1debc041384c3 Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 28 Feb 2024 08:01:06 -0700 Subject: [PATCH] - mejoras --- Acumuladores/RepRecolecciones.aspx | 12 +++--------- Acumuladores/RepRecolecciones.aspx.vb | 12 ++++++++---- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Acumuladores/RepRecolecciones.aspx b/Acumuladores/RepRecolecciones.aspx index 41bc2c2c7..cec6b1743 100644 --- a/Acumuladores/RepRecolecciones.aspx +++ b/Acumuladores/RepRecolecciones.aspx @@ -13,14 +13,7 @@ - - -
  • - -
  • - -
    -
    +
    @@ -78,6 +71,7 @@
    + @@ -148,7 +142,7 @@ - + diff --git a/Acumuladores/RepRecolecciones.aspx.vb b/Acumuladores/RepRecolecciones.aspx.vb index 2e12087c5..a54114ae5 100644 --- a/Acumuladores/RepRecolecciones.aspx.vb +++ b/Acumuladores/RepRecolecciones.aspx.vb @@ -142,8 +142,10 @@ Partial Class Acumuladores_RepRecolecciones UpModalRecoleccion.Update() End Sub Private Function InitDTRecoleccion() As DataTable + Dim Columnaid = New DataColumn() With {.ColumnName = "CveEntregaAlmacenDetalle", .DataType = Type.GetType("System.Int32"), .AutoIncrement = True, .AutoIncrementSeed = 1, .AutoIncrementStep = 1} + Dim DT As DataTable = New DataTable() - DT.Columns.Add("CveEntregaAlmacenDetalle", System.Type.[GetType]("System.Int32")) + DT.Columns.Add(Columnaid) DT.Columns.Add("CveEntregaAlmacen", System.Type.[GetType]("System.Int32")) DT.Columns.Add("CvePS", System.Type.[GetType]("System.Int32")) DT.Columns.Add("Cantidad", System.Type.[GetType]("System.Double")) @@ -178,7 +180,6 @@ Partial Class Acumuladores_RepRecolecciones Protected Sub LnkModalAgregarPS_Click(ByVal sender As Object, ByVal e As EventArgs) Dim dRow As DataRow = DTRecoleccion.NewRow() - dRow("CveEntregaAlmacenDetalle") = -1 dRow("CveEntregaAlmacen") = CveEntregaAlmacen dRow("CvePS") = DdlProducto2.SelectedValue.ToEntero() dRow("Cantidad") = TxtModalRecoleccionCantidad.Text.ToEntero() @@ -186,7 +187,7 @@ Partial Class Acumuladores_RepRecolecciones dRow("CveUsuario") = UsuarioActual.CveUsuario dRow("FechaIng") = NowADS() dRow("CodigoPS") = DdlProducto2.SelectedItem.Text - dRow("Abreviatura") = DdlModalRecoleccionUnidad.SelectedItem.Text + dRow("Abreviatura") = If(DdlModalRecoleccionUnidad.SelectedItem IsNot Nothing, DdlModalRecoleccionUnidad.SelectedItem.Text, "") DTRecoleccion.Rows.Add(dRow) LimpiarControlesPS() @@ -272,14 +273,17 @@ Partial Class Acumuladores_RepRecolecciones If Not ErrorMovInv Then ObjInventario.Commit() - GvR.DataBind() + GvModalPSRecoleccion.DataBind() + DTRecoleccion.Clear() + RegistraScript("$('#DivModalRecoleccion').modal('hide');") Dim MensajeAlert As New StringBuilder MensajeAlert.Append("Se realizó con éxito el traspaso.") MensajeAlert.AppendFormat("
    Folio de Salida: {0}", FolioSalida, CveMovimientoSalida) 'MensajeAlert.AppendFormat("
    Imprimir Reporte", Encripta(String.Format("OP=Alm&CveMovimiento={0}", CveMovimientoSalida))) Alert(MensajeAlert.ToString) + CargaDatos() Else ObjInventario.RollBack() End If