Exemple #1
0
        public void addOneShiftPre()
        {
            switch (CurrentDateTimeStart.Hour)
            {
            case 8:
                CurrentDateTimeStart = CurrentDateTimeStart.AddHours(36);
                break;

            case 20:
                CurrentDateTimeStart = CurrentDateTimeStart.AddHours(60);
                break;

            default:
                break;
            }
        }
Exemple #2
0
        public void addOneShift()
        {
            switch (CurrentDateTimeStart.Hour)
            {
            //если 8 утра, прибавляем 36 часов до начала следующей смены
            case 8:
                CurrentDateTimeStart = CurrentDateTimeStart.AddHours(36);
                CountOfShfts++;
                break;

            //если 20 вечера, прибавляем 60 часов до начала следующей смены
            case 20:
                CurrentDateTimeStart = CurrentDateTimeStart.AddHours(60);
                CountOfShfts++;
                break;

            default:
                break;
            }
        }