Ejemplo n.º 1
0
        private void Year_button_Click(object sender, EventArgs e)
        {
            period = Misc.Podrs_class.PeriodType.Year;

            Quartal_combo.SelectedIndex = -1;
            Month_combo.SelectedIndex   = -1;

            From_Picker.Value = new DateTime(Year, 1, 1);
            To_Picker.Value   = From_Picker.Value.AddMonths(11);
            CheckExist(null, null);
        }
Ejemplo n.º 2
0
        private void Month_combo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Month_combo.SelectedIndex > -1)
            {
                period = Misc.Podrs_class.PeriodType.Month;
                Quartal_combo.SelectedIndex = -1;

                From_Picker.Value = new DateTime(Year, Month_combo.SelectedIndex + 1, 1);
                To_Picker.Value   = new DateTime(Year, Month_combo.SelectedIndex + 1, DateTime.DaysInMonth(Year, Month_combo.SelectedIndex + 1));

                CheckExist(null, null);
            }
        }
Ejemplo n.º 3
0
        private void Quartal_combo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Quartal_combo.SelectedIndex > -1)
            {
                period = Misc.Podrs_class.PeriodType.Quartal;
                Month_combo.SelectedIndex = -1;

                From_Picker.Value = new DateTime(Year, Quartal_combo.SelectedIndex * 3 + 1, 1);
                To_Picker.Value   = From_Picker.Value.AddMonths(2);

                CheckExist(null, null);
            }
        }