示例#1
0
        private List <string> GetAllPropertyNameOfScientificReportTypeViewModel()
        {
            var scientificReportTypeViewModel = new ScientificReportTypeViewModel();

            var type = scientificReportTypeViewModel.GetType();

            return(ReflectionUtilities.GetAllPropertyNamesOfType(type));
        }
示例#2
0
 public ScientificReportViewModel(ScientificReport scientificReport) : this()
 {
     if (scientificReport != null)
     {
         Id      = scientificReport.Id;
         Name    = scientificReport.Name;
         Content = scientificReport.Content;
         Time    = scientificReport.Time;
         ScientificReportType = new ScientificReportTypeViewModel(scientificReport.ScientificReportType);
         Lecturers            = GetLecturer(scientificReport);
         //User = new UserViewModel(scientificReport.User);
     }
 }