Cambiar Combo de clientes por dropdownlost
This commit is contained in:
@@ -46,8 +46,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 " id="LblCliente" runat="server">Cliente:</label>
|
<label class="col-md-1 " id="LblCliente" runat="server">Cliente:</label>
|
||||||
<div class="col-md-2" id="DivDdlCliente" runat="server">
|
<div class="col-md-2" id="DivDdlCliente" runat="server">
|
||||||
<asp:DropDownList ID="DdlCliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-sm select2me" Width="100%">
|
<ADS:Dropdownlost ID="DdlCliente" runat="server" AutoPostBack="False" DataTextField="NombreComercial" IncluyeTodos="false" DataValueField="CveCliente" CssClassDdl="select2me" CssStyle="width: 250px; "></ADS:Dropdownlost>
|
||||||
</asp:DropDownList>
|
|
||||||
|
<%-- <asp:DropDownList ID="DdlCliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-sm select2me" Width="100%">
|
||||||
|
</asp:DropDownList>--%>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="">Fecha Ini Doc:</div>
|
<div class="col-md-1" style="">Fecha Ini Doc:</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
|
|||||||
@@ -65,11 +65,16 @@ public partial class Ventas_RepAnticipo_NC_IXC : ClsPaginas
|
|||||||
DdlSucursal.Items.Insert(0, new ListItem("Todos", "-1"));
|
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()
|
protected void CargaClientes()
|
||||||
{
|
{
|
||||||
DdlCliente.DataSource = get_GlobalDTCliente(UsuarioActual.CveEmpresa,-1);
|
DdlCliente.setEsWebService(true);
|
||||||
DdlCliente.DataBind();
|
DdlCliente.Attributes.Add("data-metodo", "getcliente");
|
||||||
DdlCliente.Items.Insert(0, new ListItem("Todos", "-1"));
|
|
||||||
}
|
}
|
||||||
protected void CargaVendedores()
|
protected void CargaVendedores()
|
||||||
{
|
{
|
||||||
@@ -127,7 +132,7 @@ public partial class Ventas_RepAnticipo_NC_IXC : ClsPaginas
|
|||||||
String Sucursal;
|
String Sucursal;
|
||||||
if (DdlSucursal.SelectedValue != "-1") { Sucursal = $" <b>Sucursal:</b> {DdlSucursal.SelectedItem.Text}"; } else { Sucursal = ""; }
|
if (DdlSucursal.SelectedValue != "-1") { Sucursal = $" <b>Sucursal:</b> {DdlSucursal.SelectedItem.Text}"; } else { Sucursal = ""; }
|
||||||
String Cliente;
|
String Cliente;
|
||||||
if (DdlCliente.SelectedValue != "-1") { Cliente = $" <b>Cliente:</b> {DdlCliente.SelectedItem.Text}"; } else { Cliente = ""; }
|
if (DdlCliente.SelectedValue != "-1") { Cliente = $" <b>Cliente:</b> {DdlCliente.SelectedText}"; } else { Cliente = ""; }
|
||||||
if (DtDatos.Rows.Count > 0)
|
if (DtDatos.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
System.IO.FileInfo Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta));
|
System.IO.FileInfo Imagen = new System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta));
|
||||||
|
|||||||
@@ -50,8 +50,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="col-md-1 " id="LblCliente" runat="server">Cliente:</label>
|
<label class="col-md-1 " id="LblCliente" runat="server">Cliente:</label>
|
||||||
<div class="col-md-2" id="DivDdlCliente" runat="server">
|
<div class="col-md-2" id="DivDdlCliente" runat="server">
|
||||||
<asp:DropDownList ID="DdlCliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-sm select2me" Width="100%">
|
<%-- <asp:DropDownList ID="DdlCliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-sm select2me" Width="100%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>--%>
|
||||||
|
<ADS:Dropdownlost ID="DdlCliente" runat="server" AutoPostBack="False" DataTextField="NombreComercial" IncluyeTodos="false" DataValueField="CveCliente" CssClassDdl="select2me" CssStyle="width: 250px; "></ADS:Dropdownlost>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1" style="">Fecha Ini Doc:</div>
|
<div class="col-md-1" style="">Fecha Ini Doc:</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
|
|||||||
@@ -90,16 +90,21 @@ public partial class Ventas_RepAnticipo_NC_IXCDetalle : ClsPaginas
|
|||||||
DdlSucursal.DataBind();
|
DdlSucursal.DataBind();
|
||||||
DdlSucursal.Items.Insert(0, new ListItem("Todos", "-1"));
|
DdlSucursal.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||||
DdlSucursal.SelectedValue = "-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()
|
protected void CargaVendedores()
|
||||||
{
|
{
|
||||||
DdlVendedor.DataSource = get_GlobalDTVendedores(UsuarioActual.CveEmpresa);
|
DdlVendedor.DataSource = get_GlobalDTVendedores(UsuarioActual.CveEmpresa);
|
||||||
|
|||||||
Reference in New Issue
Block a user