コード例 #1
0
        /// <summary>
        /// Get schedule for current week
        /// </summary>
        /// <param name="week">Week number</param>
        public static void GetTable(int week)
        {
            List <Result> lstresult = schedulebl.GetTable(week);

            if (lstresult == null || lstresult.Count < 0)
            {
                Console.WriteLine("There is no schedule for this week");
            }
            else
            {
                Console.WriteLine("Full Name : Week Day : Shift ");
                for (int i = 0; i < lstresult.Count; i++)
                {
                    Console.WriteLine("{0} : {1} : {2} ", lstresult[i].fullname, lstresult[i].weekday, lstresult[i].shift);
                }
            }
        }