Esempio n. 1
0
        public PHDAssignmentViewModel Assigment_View(int id_person)
        {
            PHDAssignmentViewModel result = new PHDAssignmentViewModel();
            var assigments = Ph_Assigments.GetAll();
            var assigm = assigments.FirstOrDefault(g => g.id_person == id_person);

            if (assigm != null)
            {
                result.id_department = assigm.id_department;
                result.id_phdAssignment = assigm.id_phdAssignment;
                result.id_educationDuration = assigm.id_educationDuration;
                result.id_person = assigm.id_person;
                result.id_educationForm = assigm.id_educationForm;
                result.id_module =  assigm.id_module;
                result.id_speciality = assigm.id_speciality;
                result.StartDate = assigm.StartDate;
                result.EndDate = assigm.EndDate;
                result.id_acceptanceReason = assigm.id_acceptanceReason;
                result.UseDormitory = assigm.UseDormitory;
                result.PHDCode = assigm.PhdCode;
                result.StartOrderNumber = assigm.StartOrderNumber;
                result.StartOrderDate = assigm.StartOrderDate;
                result.EndOrderDate = assigm.EndOrderDate;
                result.UseScholarship = assigm.UseScholarship;
                result.id_status = assigm.id_status;
                result.id_studyType = assigm.id_studyType;
                result.UseHolidayFacilities = assigm.UseHolidayFacilities;
            }

            return result;
        }
Esempio n. 2
0
        public PhdPersonViewModel Phd_Person_View(PHDAssignmentViewModel assigment) //PHDDiplomDataViewModel diploma)
        {
            PhdPersonViewModel result = new PhdPersonViewModel();
            result.PHDAssignmentViewModel = assigment;
            //result.PHDDiplomDataViewModel = diploma;

            return result;
        }