diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index da145e34..91c04b70 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -309,6 +309,7 @@ namespace DataLoader bool isautogen = false; string stype = dr["type"].ToString(); string s = dr["text"].ToString().PadRight(130, ' '); + string rid = dr["recid"].ToString(); // RECID string num = s.Substring(85, 20).TrimEnd(); string fmt = s.Substring(75, 10).TrimEnd(); if (fmt == "") fmt = null; @@ -429,6 +430,17 @@ namespace DataLoader { ci.AddItem("SubSection", "PH", "N"); } + // Save section level Checkoff information + int chkOffType = (rid[0] & 0x007F) - '0'; + if (chkOffType > 0) + ci.AddItem("Section", "CheckoffSelection", chkOffType.ToString()); + + if (stype.Length > 1) + { + int chkOffHeading = (stype[1] & 0x007F) - '0'; + if (chkOffHeading > 0) + ci.AddItem("Section", "CheckoffHeading", chkOffHeading.ToString()); + } } else {