Esempio n. 1
0
        public NeedFitTest()
        {
            MemberCollection memberCollection = new MemberCollection();

            members = new ObservableCollection <Member>();

            foreach (Member member in memberCollection.members)
            {
                bool addToList = true;
                foreach (TrainingActivity training in member.DepartmentTrainings)
                {
                    if (training.TrainingName == "SCBA Annual Fit Test")
                    {
                        if (training.TrainingDate != default)
                        {
                            addToList = false;
                        }
                    }
                }
                if (addToList)
                {
                    members.Add(member);
                }
            }
        }
        private ObservableCollection <Member> CreateProbationMembers()
        {
            MemberCollection allMembers       = new MemberCollection();
            List <Member>    probationMembers = allMembers.members.Where(x => x.DepartmentClass == stringResourceManager.GetString("probation")).ToList();

            return(new ObservableCollection <Member>(probationMembers));
        }
        public HazMatRefresherList()
        {
            MemberCollection memberCollection = new MemberCollection();

            members = new ObservableCollection <Member>();

            foreach (Member member in memberCollection.members)
            {
                bool addToList = true;
                foreach (TrainingActivity training in member.DepartmentTrainings)
                {
                    if (training.TrainingName == "HazMat Operations Refresher")
                    {
                        if (training.TrainingDate != default)
                        {
                            addToList = false;
                        }
                    }
                }
                if (addToList)
                {
                    members.Add(member);
                }
            }
        }
Esempio n. 4
0
        public NeedPSS()
        {
            MemberCollection memberCollection = new MemberCollection();

            members = new ObservableCollection <Member>();

            foreach (Member member in memberCollection.members)
            {
                bool addToList = false;
                foreach (TrainingActivity training in member.DepartmentTrainings)
                {
                    if (training.TrainingName == "P.S.S.- Refresher" && member.DepartmentClass == "A")
                    {
                        if (training.TrainingDate == default)
                        {
                            addToList = true;
                        }
                    }
                }
                if (addToList)
                {
                    members.Add(member);
                }
            }
        }
Esempio n. 5
0
        public RefresherList()
        {
            MemberCollection memberCollection = new MemberCollection();

            refresherListCollection = new ObservableCollection <Member>();
            foreach (Member member in memberCollection.members)
            {
                bool needsRefresher = true;
                if (member.YearsOfService < 20)
                {
                    foreach (TrainingActivity training in member.RefresherAttendance)
                    {
                        if (training.TrainingDate != default)
                        {
                            needsRefresher = false;
                        }
                    }
                    if (needsRefresher)
                    {
                        refresherListCollection.Add(member);
                    }
                }
            }
        }