Esempio n. 1
0
 public JournalAnswers(AnswerMetadata answerMetadata)
 {
     AnswerMetadataList = new List <AnswerMetadata> {
         answerMetadata
     };
     Answers = new List <IAnswer>();
 }
Esempio n. 2
0
        public static AnswerMetadata GetJournalInfo(DataRow row)
        {
            var journalInfo = new AnswerMetadata();

            journalInfo.Ssghafd         = row["ssghafd"].ToString();
            journalInfo.Ssghnavn        = row["ssghnavn"].ToString();
            journalInfo.Safdnavn        = row["safdnavn"].ToString();
            journalInfo.Pid             = row.ToString("pid");
            journalInfo.Projekt         = row.ToString("projekt");
            journalInfo.Pkoen           = (Gender)row.ToInt("pkoen");
            journalInfo.Palder          = row.ToInt("palder");
            journalInfo.Pnation         = row.ToString("pnation");
            journalInfo.Besvarelsesdato = StringHelperExtensions.ToDate(row["besvarelsesdato"].ToString());
            journalInfo.Pfoedt          = row["pfoedt"].ToString();
            journalInfo.FollowUp        = row["follow_up"].ToString();
            return(journalInfo);
        }