Esempio n. 1
0
 public void ClearAllData()
 {
     YearsGrid.DataSource = null;
     YearsGrid.DataBind();
     YearsGrid_Values.DataSource = null;
     YearsGrid_Values.DataBind();
     MonthGrid.DataSource = null;
     MonthGrid.DataBind();
     MonthGrid_Values.DataSource = null;
     MonthGrid_Values.DataBind();
     DaysGrid.DataSource = null;
     DaysGrid.DataBind();
     DateUpdate.Update();
 }
Esempio n. 2
0
    private void LoadAllForVehicleFile(DataBlock dataBlock, List <int> selectedIds, List <int> yearsList)
    {
        YearsGrid.DataSource = GetYearsDataTable(yearsList);
        YearsGrid.DataBind();
        YearsGrid_Values.DataSource = GetVehicleYearsValuesDataTable(dataBlock, selectedIds, yearsList);
        YearsGrid_Values.DataBind();

        MonthGrid.DataSource = GetMonthDataTable();
        MonthGrid.DataBind();
        if (yearsList.Count > 0)
        {
            MonthGrid_Values.DataSource = GetVehicleMonthValuesDataTable(dataBlock, selectedIds, yearsList[0]);
            MonthGrid_Values.DataBind();
        }

        if (yearsList.Count > 0)
        {
            DaysGrid.DataSource = GetVehicleDayValuesDataTable(dataBlock, selectedIds, yearsList[0], 1);
            DaysGrid.DataBind();
        }
    }