Пример #1
0
        public EntrantApplication(
            Entrant Entrant,
            int ApplicationNumber,
            DateTime RegistrationDate,
            bool NeedHostel,
            string StatusApp,
            CompetitiveGroup CompetitiveGroup,
            int ReturnDocumentsType,

            FinSourceAndEduForms FinSourceAndEduForms,
            ObservableCollection <Document> ApplicationDocuments,
            ObservableCollection <EntranceTestResults> EntranceTestResults,
            ObservableCollection <InstitutionAchievement> InstitutionAchievments,
            bool Original)
        {
            this.Entrant                = Entrant;
            this.ApplicationNumber      = ApplicationNumber;
            this.RegistrationDate       = RegistrationDate;
            this.NeedHostel             = NeedHostel;
            this.StatusApp              = StatusApp;
            this.CompetitiveGroup       = CompetitiveGroup;
            this.ReturnDocumentsType    = ReturnDocumentsType;
            this.FinSourceAndEduForms   = FinSourceAndEduForms;
            this.ApplicationDocuments   = ApplicationDocuments;
            this.EntranceTestResults    = EntranceTestResults;
            this.InstitutionAchievments = InstitutionAchievments;
            this.Original               = Original;
        }
Пример #2
0
        public ObservableCollection <EntrantApplication> GetApplicationsCompGroup(CompetitiveGroup competitiveGroup)
        {
            ObservableCollection <EntrantApplication> ApplicationCompGroup = new ObservableCollection <EntrantApplication>();
            ObservableCollection <EntrantApplication> AllApps = GetAll();

            foreach (EntrantApplication application in AllApps)
            {
                if (application.CompetitiveGroup == competitiveGroup)
                {
                    ApplicationCompGroup.Add(application);
                }
            }
            return(ApplicationCompGroup);
        }
Пример #3
0
        public void AddEntrant(Entrant entrant,
                               DateTime RegistrationDate,
                               bool NeedHostel,
                               string StatusApp,
                               CompetitiveGroup CompetitiveGroup,
                               SimpleClass ReturnDocumentsType,
                               FinSourceAndEduForms FinSourceAndEduForms,
                               ObservableCollection <Document> ApplicationDocuments,
                               ObservableCollection <EntranceTestResults> EntranceTestResults,
                               ObservableCollection <InstitutionAchievement> InstitutionAchievments,
                               bool Original,
                               ObservableCollection <EntrantApplication> applications)
        {
            bool isAcheived = false;

            foreach (EntrantApplication application in applications)
            {
                if ((application.Entrant.Person.PersonPassports[0].Series == entrant.Person.PersonPassports[0].Series) &&
                    (application.Entrant.Person.PersonPassports[0].Number == entrant.Person.PersonPassports[0].Number))
                {
                    isAcheived = true;
                }
            }
            if (isAcheived == true)
            {
                int ApplicationNumber  = applications.Count;
                EntrantApplication app = new EntrantApplication(
                    entrant, ApplicationNumber, RegistrationDate,
                    NeedHostel, StatusApp, CompetitiveGroup,
                    1, FinSourceAndEduForms,
                    ApplicationDocuments, EntranceTestResults,
                    InstitutionAchievments, Original);

                applications.Add(app);
            }
            else
            {
            }
        }