From f4097b64edd196805850c0f961340d5d9b9e1625 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 4 Jun 2010 19:43:15 +0000 Subject: [PATCH] Added information for checkoffs --- PROMS/DataLoader/Sections.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 {