private void LimpioFormulario()
 {
     TBNumero.Text     = "";
     TBNumero.Enabled  = true;
     BtnBuscar.Enabled = true;
     DDLCompania.ClearSelection();
     DDLCompania.Enabled = false;
     DDLTerminal.ClearSelection();
     DDLTerminal.Enabled     = false;
     TBFechaPartida.Text     = "";
     CalFechaPartida.Enabled = false;
     TBFechaArribo.Text      = "";
     CalFechaArribo.Enabled  = false;
     DDLHoraPartida.ClearSelection();
     DDLHoraPartida.Enabled = false;
     DDLMinutosPartida.ClearSelection();
     DDLMinutosPartida.Enabled = false;
     DDLHoraArribo.ClearSelection();
     DDLHoraArribo.Enabled = false;
     DDLMinutosArribo.ClearSelection();
     DDLHoraArribo.Enabled  = false;
     TBCantAsientos.Text    = "";
     TBCantAsientos.Enabled = false;
     DDLServicio.ClearSelection();
     DDLServicio.Enabled     = false;
     TBDocumentacion.Text    = "";
     TBDocumentacion.Enabled = false;
     BtnAlta.Enabled         = false;
     BtnModificar.Enabled    = false;
     BtnEliminar.Enabled     = false;
     BtnLimpiar.Enabled      = true;
 }
コード例 #2
0
 protected void bntLimpiarFiltros_Click(object sender, EventArgs e)
 {
     DDLCompania.ClearSelection();
     DDLDestino.ClearSelection();
     Años1.ClearSelection();
     RepeaterCViajes.DataSource = (List <Viajes>)Session["TodosLosViajes"];
     RepeaterCViajes.DataBind();
 }
コード例 #3
0
    private void LimpioFormulario()
    {
        DDLTerminal.ClearSelection();
        DDLCompania.ClearSelection();
        CalDesde.SelectedDates.Clear();
        CalHasta.SelectedDates.Clear();
        TBDesFechaPartida.Text = "";
        TBHasFechaPartida.Text = "";
        FiltroDestinoObligatorio();
        LblError.Text = "";

        //El listado de viajes ya son los de despues de la fecha de hoy -error de la entrega pasada
        RepeaterViajes.DataSource = Session["ListaViajes"];
        RepeaterViajes.DataBind();
    }
コード例 #4
0
    private void LimpioFormulario()
    {
        DDLTerminal.ClearSelection();
        DDLCompania.ClearSelection();
        CalDesde.SelectedDates.Clear();
        CalHasta.SelectedDates.Clear();
        TBDesFechaPartida.Text = "";
        TBHasFechaPartida.Text = "";
        FiltroDestinoObligatorio();
        LblError.Text = "";

        //Uso LinQ para tener solo los viajes que aún no hayan partido
        List <Viajes> viajesnopartieron = (from unViaje in (List <Viajes>)Session["ListaViajes"]
                                           where unViaje.Fecha_partida >= DateTime.Now
                                           select unViaje).ToList <Viajes>();

        RepeaterViajes.DataSource = viajesnopartieron;
        RepeaterViajes.DataBind();
    }