Beispiel #1
0
        List <TimespamView> Get_ArrayOfTimes()
        {
            List <TimespamView> array       = new List <TimespamView>();
            List <TimespamView> partialList = null;

            foreach (ResourceSchedulingBE ShiftScheduling in ShiftSchedulingList)
            {
                partialList = ShiftScheduling.Get_ArrayOfTimes(dateEdit1.DateTime, true);
                if (partialList != null)
                {
                    array.AddRange(partialList);
                }
            }
            return(array);
        }
        /// <summary>
        /// Contruye los intervalos de tiempo para ShiftSchedulingList del profesional
        /// </summary>
        /// <returns></returns>
        List <TimespamView> Get_ArrayOfTimes()
        {
            _TimespamViewList = new List <TimespamView>();
            List <TimespamView> partialList = null;

            //recorrer la lista de programacion de tiempos o lista de turnos del profesional
            foreach (ResourceSchedulingBE ShiftScheduling in ShiftSchedulingList)
            {
                partialList = ShiftScheduling.Get_ArrayOfTimes(this.Date, true);
                if (partialList != null)
                {
                    _TimespamViewList.AddRange(partialList);
                }
            }
            //_TimespamViewList.Sort(new TimeSpanComparer());
            return(_TimespamViewList);
        }