From e74872913a7fca0dcbbc67d85ab5f5b61f39b6da Mon Sep 17 00:00:00 2001 From: HECTOR RODRIGUEZ Date: Thu, 8 Apr 2021 23:22:23 -0700 Subject: [PATCH] Cambiar Combo de clientes por dropdownlost --- Ventas/RepAnticipo-NC-IXC.aspx | 6 ++++-- Ventas/RepAnticipo-NC-IXC.aspx.cs | 13 +++++++++---- Ventas/RepAnticipo-NC-IXCDetalle.aspx | 6 ++++-- Ventas/RepAnticipo-NC-IXCDetalle.aspx.cs | 23 ++++++++++++++--------- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/Ventas/RepAnticipo-NC-IXC.aspx b/Ventas/RepAnticipo-NC-IXC.aspx index 62e4b7539..efdbb26a4 100644 --- a/Ventas/RepAnticipo-NC-IXC.aspx +++ b/Ventas/RepAnticipo-NC-IXC.aspx @@ -46,8 +46,10 @@
- - + + + <%-- + --%>
Fecha Ini Doc:
diff --git a/Ventas/RepAnticipo-NC-IXC.aspx.cs b/Ventas/RepAnticipo-NC-IXC.aspx.cs index 4895c21bc..2993221e4 100644 --- a/Ventas/RepAnticipo-NC-IXC.aspx.cs +++ b/Ventas/RepAnticipo-NC-IXC.aspx.cs @@ -65,11 +65,16 @@ public partial class Ventas_RepAnticipo_NC_IXC : ClsPaginas DdlSucursal.Items.Insert(0, new ListItem("Todos", "-1")); } + //protected void CargaClientes() + //{ + // DdlCliente.DataSource = get_GlobalDTCliente(UsuarioActual.CveEmpresa,-1); + // DdlCliente.DataBind(); + // DdlCliente.Items.Insert(0, new ListItem("Todos", "-1")); + //} protected void CargaClientes() { - DdlCliente.DataSource = get_GlobalDTCliente(UsuarioActual.CveEmpresa,-1); - DdlCliente.DataBind(); - DdlCliente.Items.Insert(0, new ListItem("Todos", "-1")); + DdlCliente.setEsWebService(true); + DdlCliente.Attributes.Add("data-metodo", "getcliente"); } protected void CargaVendedores() { @@ -127,7 +132,7 @@ public partial class Ventas_RepAnticipo_NC_IXC : ClsPaginas String Sucursal; if (DdlSucursal.SelectedValue != "-1") { Sucursal = $" Sucursal: {DdlSucursal.SelectedItem.Text}"; } else { Sucursal = ""; } String Cliente; - if (DdlCliente.SelectedValue != "-1") { Cliente = $" Cliente: {DdlCliente.SelectedItem.Text}"; } else { Cliente = ""; } + if (DdlCliente.SelectedValue != "-1") { Cliente = $" Cliente: {DdlCliente.SelectedText}"; } else { Cliente = ""; } if (DtDatos.Rows.Count > 0) { System.IO.FileInfo Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta)); diff --git a/Ventas/RepAnticipo-NC-IXCDetalle.aspx b/Ventas/RepAnticipo-NC-IXCDetalle.aspx index 5d17ff9ea..427376291 100644 --- a/Ventas/RepAnticipo-NC-IXCDetalle.aspx +++ b/Ventas/RepAnticipo-NC-IXCDetalle.aspx @@ -50,8 +50,10 @@
- - +<%-- + --%> + +
Fecha Ini Doc:
diff --git a/Ventas/RepAnticipo-NC-IXCDetalle.aspx.cs b/Ventas/RepAnticipo-NC-IXCDetalle.aspx.cs index 6abb773da..b1f0b9610 100644 --- a/Ventas/RepAnticipo-NC-IXCDetalle.aspx.cs +++ b/Ventas/RepAnticipo-NC-IXCDetalle.aspx.cs @@ -90,16 +90,21 @@ public partial class Ventas_RepAnticipo_NC_IXCDetalle : ClsPaginas DdlSucursal.DataBind(); DdlSucursal.Items.Insert(0, new ListItem("Todos", "-1")); DdlSucursal.SelectedValue = "-1"; + } + + //protected void CargaClientes() + //{ + // DdlCliente.DataSource = get_GlobalDTCliente(UsuarioActual.CveEmpresa, -1); + // DdlCliente.DataBind(); + // DdlCliente.Items.Insert(0, new ListItem("Todos", "-1")); + // DdlCliente.SelectedValue = "-1"; + //} + + protected void CargaCliente() + { + DdlCliente.setEsWebService(true); + DdlCliente.Attributes.Add("data-metodo", "getcliente"); } - - protected void CargaClientes() - { - DdlCliente.DataSource = get_GlobalDTCliente(UsuarioActual.CveEmpresa, -1); - DdlCliente.DataBind(); - DdlCliente.Items.Insert(0, new ListItem("Todos", "-1")); - DdlCliente.SelectedValue = "-1"; - } - protected void CargaVendedores() { DdlVendedor.DataSource = get_GlobalDTVendedores(UsuarioActual.CveEmpresa);