public List<ScheduleItem> CheckOneDaySchedule()
        {
            ScheduleDataSet data = new ScheduleDataSet();

            ScheduleDataSet.search_eip_t_scheduleRow paramRow = data.search_eip_t_schedule.Newsearch_eip_t_scheduleRow();

            paramRow.user_id = SettingManager.UserId;

            data.search_eip_t_schedule.Rows.Add(paramRow);

            ScheduleModel m = new ScheduleModel();
            m.Execute(m.GetOneDayScheduleInfo, data);

            return this.GetOneDaySchedule(data);
        }
        public List<ScheduleItem> CheckSchedule()
        {
            ScheduleDataSet data = new ScheduleDataSet();

            if (dt.Minute >= 0 && dt.Minute < 5)
            {
                // 現在時刻[分]と定期チェック[分]の合計が 5 以上の場合
                if (dt.Minute + SettingManager.CheckTime >= 5)
                {
                    // スケジュールの確認
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 0, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 5 && dt.Minute < 10)
            {
                if (dt.Minute + SettingManager.CheckTime >= 10)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 5, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 10 && dt.Minute < 15)
            {
                if (dt.Minute + SettingManager.CheckTime >= 15)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 10, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 15 && dt.Minute < 20)
            {
                if (dt.Minute + SettingManager.CheckTime >= 20)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 15, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 20 && dt.Minute < 25)
            {
                if (dt.Minute + SettingManager.CheckTime >= 25)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 20, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 25 && dt.Minute < 30)
            {
                if (dt.Minute + SettingManager.CheckTime >= 30)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 25, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 30 && dt.Minute < 35)
            {
                if (dt.Minute + SettingManager.CheckTime >= 35)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 30, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 35 && dt.Minute < 40)
            {
                if (dt.Minute + SettingManager.CheckTime >= 40)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 35, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 40 && dt.Minute < 45)
            {
                if (dt.Minute + SettingManager.CheckTime >= 45)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 40, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 45 && dt.Minute < 50)
            {
                if (dt.Minute + SettingManager.CheckTime >= 50)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 45, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 50 && dt.Minute < 55)
            {
                if (dt.Minute + SettingManager.CheckTime >= 55)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 50, SettingManager.CheckTime));
                }
            }
            else if (dt.Minute >= 55 && dt.Minute <= 59)
            {
                if (dt.Minute + SettingManager.CheckTime >= 59)
                {
                    data = this.GetScheduleData(this.GetCheckScheduleTime(dt, 55, SettingManager.CheckTime));
                }
            }

            if (data.eip_t_schedule.Count > 0)
            {
                // もうすぐ始まるスケジュールを取得
                return this.GetSchedule(data);
            }

            return null;
        }
        /// <summary>
        /// スケジュールを検索
        /// </summary>
        /// <param name="start_date"></param>
        /// <returns></returns>
        private ScheduleDataSet GetScheduleData(string start_date)
        {
            ScheduleDataSet data = new ScheduleDataSet();

            ScheduleDataSet.search_eip_t_scheduleRow paramRow = data.search_eip_t_schedule.Newsearch_eip_t_scheduleRow();

            paramRow.user_id = SettingManager.UserId;
            paramRow.start_date = start_date;
            paramRow.check_time = SettingManager.CheckTime.ToString();
            if (SettingManager.CheckOtherSchedule)
            {
                paramRow.other_user_id_list = SettingManager.GroupUserId;
            }

            data.search_eip_t_schedule.Rows.Add(paramRow);

            ScheduleModel m = new ScheduleModel();
            m.Execute(m.GetScheduleInfo, data);

            return data;
        }
        /// <summary>
        /// スケジュール情報の取得
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        private List<ScheduleItem> GetSchedule(ScheduleDataSet data)
        {
            List<ScheduleItem> list = new List<ScheduleItem>();
            StringBuilder sb = new StringBuilder();

            string scheduleId = "";

            foreach (ScheduleDataSet.eip_t_scheduleRow row in data.eip_t_schedule)
            {
                if (!scheduleId.Equals(row.schedule_id))
                {
                    ScheduleItem scheduleItem = new ScheduleItem();
                    scheduleItem.ScheduleId = row.schedule_id;
                    scheduleItem.ScheduleName = row.name;
                    scheduleItem.StartDate = row.start_date;
                    scheduleItem.EndDate = row.end_date;
                    scheduleItem.UserName = row.last_name + " " + row.first_name;
                    if (SettingManager.UserId.Equals(row.user_id))
                    {
                        scheduleItem.isMySchedule = true;
                    }
                    list.Add(scheduleItem);
                }
                scheduleId = row.schedule_id;
            }
            return list;
        }