예제 #1
0
 protected void FiltroDropDownList_SelectedIndexChanged1(object sender, EventArgs e)
 {
     if (FiltroDropDownList.SelectedIndex == 0)
     {
         AuxDropDownList.Visible             = false;
         FiltroTextBox.Visible               = true;
         ValidationSummary1.Enabled          = true;
         RequiredFieldValidator6.Enabled     = true;
         RegularExpressionValidator2.Enabled = true;
         Utilitarios.Operacion               = "D.DevolucionId = ";
     }
     if (FiltroDropDownList.SelectedIndex == 1)
     {
         Bancas b = new Bancas();
         AuxDropDownList.DataSource     = b.Listado("*", "1=1", "");
         AuxDropDownList.DataTextField  = "NumeroBanca";
         AuxDropDownList.DataValueField = "BancaId";
         AuxDropDownList.DataBind();
         FiltroTextBox.Visible   = false;
         AuxDropDownList.Visible = true;
         Utilitarios.Operacion   = "D.BancaId = ";
     }
     if (FiltroDropDownList.SelectedIndex == 2)
     {
         Mensajeros M = new Mensajeros();
         AuxDropDownList.DataSource     = M.Listado("*", "1=1", "");
         AuxDropDownList.DataTextField  = "Nombres";
         AuxDropDownList.DataValueField = "MensajeroId";
         AuxDropDownList.DataBind();
         FiltroTextBox.Visible   = false;
         AuxDropDownList.Visible = true;
         Utilitarios.Operacion   = "D.MensajeroId = ";
     }
 }
예제 #2
0
        protected void FiltroDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (FiltroDropDownList.SelectedIndex == 0)
            {
                AuxDropDownList.Visible             = false;
                FiltroTextBox.Visible               = true;
                ValidationSummary1.Enabled          = true;
                RequiredFieldValidator6.Enabled     = true;
                RegularExpressionValidator2.Enabled = true;
                Utilitarios.Operacion               = "S.SalidaId = ";
            }
            if (FiltroDropDownList.SelectedIndex == 1)
            {
                TiposSalidas ts = new TiposSalidas();
                AuxDropDownList.DataSource     = ts.Listado("*", "1=1", "");
                AuxDropDownList.DataTextField  = "Detalle";
                AuxDropDownList.DataValueField = "TipoSalidaId";
                AuxDropDownList.DataBind();
                FiltroTextBox.Visible   = false;
                AuxDropDownList.Visible = true;
                Utilitarios.Operacion   = "S.TipoSalidaId = ";
            }
            if (FiltroDropDownList.SelectedIndex == 2)
            {
                Mensajeros M = new Mensajeros();
                AuxDropDownList.DataSource     = M.Listado("*", "1=1", "");
                AuxDropDownList.DataTextField  = "Nombres";
                AuxDropDownList.DataValueField = "MensajeroId";
                AuxDropDownList.DataBind();
                FiltroTextBox.Visible   = false;
                AuxDropDownList.Visible = true;
                Utilitarios.Operacion   = "S.MensajeroId = ";
            }

            //if (FiltroDropDownList.SelectedIndex == 3)
            //{
            //    TiposEquipos te = new TiposEquipos();
            //    AuxDropDownList.DataSource = te.Listado("*", "1=1", "");
            //    AuxDropDownList.DataTextField = "Detalle";
            //    AuxDropDownList.DataValueField = "TipoEquipoId";
            //    AuxDropDownList.DataBind();
            //    FiltroTextBox.Visible = false;
            //    AuxDropDownList.Visible = true;
            //    Utilitarios.Operacion = "EQ.TipoEquipoId = ";

            //}
        }
예제 #3
0
        protected void FiltroDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (FiltroDropDownList.SelectedIndex == 0)
            {
                AuxDropDownList.Visible             = false;
                FiltroTextBox.Visible               = true;
                ValidationSummary1.Enabled          = true;
                RequiredFieldValidator6.Enabled     = true;
                RegularExpressionValidator2.Enabled = true;
                Utilitarios.Operacion               = "EQ.EquipoId = ";
            }
            if (FiltroDropDownList.SelectedIndex == 1)
            {
                MarcaEquipos me = new MarcaEquipos();
                AuxDropDownList.DataSource     = me.Listado("*", "1=1", "");
                AuxDropDownList.DataTextField  = "Detalle";
                AuxDropDownList.DataValueField = "MarcaId";
                AuxDropDownList.DataBind();
                FiltroTextBox.Visible   = false;
                AuxDropDownList.Visible = true;
                Utilitarios.Operacion   = "EQ.MarcaId = ";
            }
            if (FiltroDropDownList.SelectedIndex == 2)
            {
                Estado es = new Estado();
                AuxDropDownList.DataSource     = es.Listado("*", "1=1", "");
                AuxDropDownList.DataTextField  = "Descripcion";
                AuxDropDownList.DataValueField = "EstadoId";
                AuxDropDownList.DataBind();
                FiltroTextBox.Visible   = false;
                AuxDropDownList.Visible = true;
                Utilitarios.Operacion   = "EQ.EstadoId = ";
            }

            if (FiltroDropDownList.SelectedIndex == 3)
            {
                TiposEquipos te = new TiposEquipos();
                AuxDropDownList.DataSource     = te.Listado("*", "1=1", "");
                AuxDropDownList.DataTextField  = "Detalle";
                AuxDropDownList.DataValueField = "TipoEquipoId";
                AuxDropDownList.DataBind();
                FiltroTextBox.Visible   = false;
                AuxDropDownList.Visible = true;
                Utilitarios.Operacion   = "EQ.TipoEquipoId = ";
            }
        }