示例#1
0
 /// <summary>
 /// Retorna una lista de objetos TimespamView
 /// </summary>
 /// <param name="date"></param>
 /// <param name="chekWith"></param>
 /// <returns></returns>
 public List <TimespamView> Get_ArrayOfTimes(DateTime date, Boolean chekWith)
 {
     if (chekWith)
     {
         if (!Date_IsContained(date))
         {
             return(null);
         }
     }
     return(ResourceSchedulingBE.Get_ArrayOfTimes(date, this.TimeStart_timesp, this.TimeEnd_timesp, this.Duration.Value, this.Description));
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="weekdays_to_bin_Array"></param>
        /// <returns></returns>
        public static string GetDayNames(bool[] weekdays_to_bin_Array)
        {
            List <String> str = new List <String>();

            for (int i = weekdays_to_bin_Array.Length - 1; i >= 0; i--)
            {
                if (weekdays_to_bin_Array[i])
                {
                    str.Add(ResourceSchedulingBE.Get_DayName_Spanish(i));
                }
            }
            return(string.Join("|", str));
        }
示例#3
0
 /// <summary>
 /// Retorna una lista de objetos TimespamView
 /// </summary>
 /// <param name="date"></param>
 /// <returns></returns>
 public List <TimespamView> Get_ArrayOfTimes(DateTime date)
 {
     return(ResourceSchedulingBE.Get_ArrayOfTimes(date, this.TimeStart_timesp, this.TimeEnd_timesp, this.Duration.Value, this.Description));
 }