Ejemplo n.º 1
0
        public void DeleteDayHour(int Week, int Day, Day.type TypeChoice)
        {
            String Type = TypeChoice.ToString();

            if (Type == "REGULAR")
            {
                WeekAndDay[Week, Day].RegHours = 0;
            }
            else if (Type == "SICK")
            {
                WeekAndDay[Week, Day].SickHours = 0;
            }
            else if (Type == "VACATION")
            {
                WeekAndDay[Week, Day].VacHours = 0;
            }
            FillHours();
        }
Ejemplo n.º 2
0
        public void EditDayHours(int Week, int Day, Day.type TypeChoice, float Hours)
        {
            String Type = TypeChoice.ToString();

            if (Type == "REGULAR")
            {
                WeekAndDay[Week, Day].RegHours = 0;
            }
            else if (Type == "SICK")
            {
                WeekAndDay[Week, Day].SickHours = 0;
            }
            else if (Type == "VACATION")
            {
                WeekAndDay[Week, Day].VacHours = 0;
            }
            WeekAndDay[Week, Day].SetHours(TypeChoice, Hours);
            FillHours();
        }