protected void DropDownList_Proveedor_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DropDownList_Proveedor.SelectedIndex <= 0)
        {
            Cargar_DropDownList_Vacio(DropDownList_Factura);

            TextBox_CantidadProducto.Text = "";

            Label_CantidadMax.Text = "0";

            Label_CantidadDisponible.Text = "0";

            RangeValidator_TextBox_CantidadProducto.MaximumValue = "0";
            RangeValidator_TextBox_CantidadProducto.MinimumValue = "0";
        }
        else
        {
            Entrega _entrega = new Entrega(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());

            Decimal ID_EMPRESA = Convert.ToDecimal(HiddenField_ID_EMPRESA.Value);
            String ID_CIUDAD = HiddenField_ID_CIUDAD.Value;
            Decimal ID_PRODUCTO = Convert.ToDecimal(HiddenField_ID_PRODUCTO_SELECCIONADO.Value);
            Decimal ID_PROVEEDOR = Convert.ToDecimal(DropDownList_Proveedor.SelectedValue);

            DataTable tablaFacturas = _entrega.ObtenerFacturasPorProveedorProductoCiudadEmpresaYTalla(ID_EMPRESA, ID_CIUDAD, ID_PRODUCTO, DropDownList_TallaProducto.SelectedValue, ID_PROVEEDOR);

            Cargar_DropDownList_Factura(DropDownList_Factura, tablaFacturas);

            TextBox_CantidadProducto.Text = "";

            Label_CantidadMax.Text = "0";

            Label_CantidadDisponible.Text = "0";

            RangeValidator_TextBox_CantidadProducto.MaximumValue = "0";
            RangeValidator_TextBox_CantidadProducto.MinimumValue = "0";
        }
    }
    protected void DropDownList_ProveedorEquipos_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DropDownList_ProveedorEquipos.SelectedIndex <= 0)
        {
            Cargar_DropDownList_Vacio(DropDownList_FacturaEquipos);

            Label_CantidadMaxEquipos.Text = "0";

            Label_CantidadDisponibleEquipos.Text = "0";

            GridView_SeleccionarEquipos.DataSource = null;
            GridView_SeleccionarEquipos.DataBind();
        }
        else
        {
            Entrega _entrega = new Entrega(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());

            Decimal ID_EMPRESA = Convert.ToDecimal(HiddenField_ID_EMPRESA.Value);
            String ID_CIUDAD = HiddenField_ID_CIUDAD.Value;
            Decimal ID_PRODUCTO = Convert.ToDecimal(HiddenField_ID_PRODUCTO_SELECCIONADO_EQUIPOS.Value);
            Decimal ID_PROVEEDOR = Convert.ToDecimal(DropDownList_ProveedorEquipos.SelectedValue);

            DataTable tablaFacturas = _entrega.ObtenerFacturasPorProveedorProductoCiudadEmpresaYTalla(ID_EMPRESA, ID_CIUDAD, ID_PRODUCTO, DropDownList_TallaEquipos.SelectedValue, ID_PROVEEDOR);

            Cargar_DropDownList_Factura(DropDownList_FacturaEquipos, tablaFacturas);

            Label_CantidadMaxEquipos.Text = "0";

            Label_CantidadDisponibleEquipos.Text = "0";

            GridView_SeleccionarEquipos.DataSource = null;
            GridView_SeleccionarEquipos.DataBind();
        }
    }