Exemple #1
0
 public Student(string Name, int group, int gpa, Gender gender, EducationForm educationForm, int familySalary)
 {
     name          = Name;
     Gpa           = gpa;
     Gender        = gender;
     EducationForm = educationForm;
     FamilySalary  = familySalary;
 }
Exemple #2
0
 public Student(string fullName, string group, double avgGrade, int profit, Gender gender, EducationForm form)
 {
     FullName     = fullName;
     Group        = group;
     AverageGrade = avgGrade;
     Profit       = profit;
     Gender       = gender;
     Form         = form;
 }
Exemple #3
0
        public async Task Post(EducationForm _educationForm)
        {
            _educationForm.CreateDate = GetDate;
            await aztuAkademik.EducationForm.AddAsync(_educationForm).ConfigureAwait(false);

            await aztuAkademik.SaveChangesAsync().ConfigureAwait(false);

            await Classes.TLog.Log("EducationForm", "", _educationForm.Id, 1, User_Id, IpAdress, AInformation).ConfigureAwait(false);
        }
Exemple #4
0
        public async Task Delete(short id)
        {
            EducationForm educationForm = await aztuAkademik.EducationForm.FirstOrDefaultAsync(x => x.Id == id).ConfigureAwait(false);

            educationForm.DeleteDate = GetDate;
            educationForm.StatusId   = 0;

            await aztuAkademik.SaveChangesAsync().ConfigureAwait(false);

            await Classes.TLog.Log("EducationForm", "", id, 3, User_Id, IpAdress, AInformation).ConfigureAwait(false);
        }
Exemple #5
0
        public async Task <int> Put(EducationForm _educationForm)
        {
            if (ModelState.IsValid)
            {
                _educationForm.UpdateDate = GetDate;
                aztuAkademik.Attach(_educationForm);
                aztuAkademik.Entry(_educationForm).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
                aztuAkademik.Entry(_educationForm).Property(x => x.CreateDate).IsModified = false;

                await aztuAkademik.SaveChangesAsync().ConfigureAwait(false);

                await Classes.TLog.Log("EducationForm", "", _educationForm.Id, 2, User_Id, IpAdress, AInformation).ConfigureAwait(false);

                return(1);
            }

            return(0);
        }
 public AdmissionStatistic(EducationForm educationForm, bool isTodayStatistic = false)
 {
     _educationForm    = educationForm;
     _isTodayStatistic = isTodayStatistic;
 }
 public GeneralizedEntrantList(EducationForm educationForm)
 {
     _educationForm = educationForm;
 }
Exemple #8
0
 private string EducationFormToString(EducationForm form)
 {
     return(form == EducationForm.DAILY ? "дневная" : "заочная");
 }
Exemple #9
0
 public PublicEntrantList(EducationForm educationForm)
 {
     _educationForm = educationForm;
 }