From e8133b7e5388938191ea8e1c4547cd6a1b0a398b Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Sat, 9 Dec 2023 10:35:18 -0700 Subject: [PATCH 1/2] --mejoras de interfaz en actualizarprecios.aspx --- Ventas/ActualizarPrecios.aspx | 357 +++++++++++++++++-------------- Ventas/ActualizarPrecios.aspx.vb | 17 +- 2 files changed, 201 insertions(+), 173 deletions(-) diff --git a/Ventas/ActualizarPrecios.aspx b/Ventas/ActualizarPrecios.aspx index bc6418c06..7c1468631 100644 --- a/Ventas/ActualizarPrecios.aspx +++ b/Ventas/ActualizarPrecios.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ActualizarPrecios.aspx.vb" Inherits="Ventas_ActualizarPrecios" %> +<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ActualizarPrecios.aspx.vb" Inherits="Ventas_ActualizarPrecios" EnableEventValidation="false" %> @@ -8,6 +8,39 @@ display: flex; align-items: center; } + + .select2 .select2-selection__rendered { + line-height: 1; + color: #111; + } + + .select2 .select2-selection--multiple { + box-sizing: border-box; + cursor: pointer; + display: block; + min-height: 20px; + user-select: none; + -webkit-user-select: none; + } + + .select2-container--default .select2-selection--multiple .select2-selection__choice { + margin-top: 10px; + } + + .select2-selection__rendered { + margin-top: 0px; + height: 25px; + } + + .select2-selection { + margin-top: 0px; + height: 31px; + } + + .select2-container--default.select2-container--focus .select2-selection--multiple { + border: none; + outline: 0; + } @@ -41,38 +74,38 @@
-
- -
- - - - +
+ +
+
- -
- +
+
- + +
- -
- -
-
- + + +
+
- + +
+ + + + +
-
-
- +
+
Todos @@ -80,16 +113,16 @@ Incativos
- +
- +
- +
- +
@@ -225,13 +258,12 @@ -
+
- <%----%>
@@ -242,139 +274,142 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/Ventas/ActualizarPrecios.aspx.vb b/Ventas/ActualizarPrecios.aspx.vb index 823a9519d..8f07e50cd 100644 --- a/Ventas/ActualizarPrecios.aspx.vb +++ b/Ventas/ActualizarPrecios.aspx.vb @@ -955,19 +955,12 @@ Partial Class Ventas_ActualizarPrecios DivPrecioLista.Visible = DdlModalidad.SelectedValue = "1" DivMultiplePrecioLista.Visible = DdlModalidad.SelectedValue = "2" + dvDatos.Visible = DdlModalidad.SelectedValue = "1" + DivActualizarPrecio.Visible = DdlModalidad.SelectedValue = "1" + dvMultiple.Visible = DdlModalidad.SelectedValue = "2" - Dim SeleccionMaxima As Integer = 14 - If (DtListasPrecios.Rows.Count - 1) < 14 Then - SeleccionMaxima = DtListasPrecios.Rows.Count - 1 - End If - - Dim sbMultiple As New StringBuilder - For Each Row As DataRow In DtListasPrecios.FiltraPorIndices(0, SeleccionMaxima).Rows - sbMultiple.AppendFormat("{0},", Row("CvePrecioLista")) - Next - - DdlMultiplePrecioLista.SelectedValuesIfExistM(sbMultiple.ToString(), True) - + UPPrecioLista.Update() UpEncabezado.Update() + UpDatos.Update() End Sub End Class \ No newline at end of file From dd19b8bd6fc206da52bd9d02c965be0558f24190 Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Sat, 9 Dec 2023 13:06:31 -0700 Subject: [PATCH 2/2] --seleccion de precio lista despues de agregar --- Ventas/Clientes.aspx.vb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ventas/Clientes.aspx.vb b/Ventas/Clientes.aspx.vb index bd0521386..ddc383873 100644 --- a/Ventas/Clientes.aspx.vb +++ b/Ventas/Clientes.aspx.vb @@ -10288,6 +10288,8 @@ Partial Class Clientes GlobalDTPrecioListas(UsuarioActual.CveEmpresa) = Nothing CargaPrecioLista() + + DdlPrecioLista.SelectedValueExist(CvePrecioListaNuevo) End If UpDatos.Update()