Fixed issue of floating foldouts not printing for a procedure that was copied (Shearon Harris)

This commit is contained in:
John Jenko 2014-09-11 17:34:23 +00:00
parent 367542e10f
commit 018599a9e7

View File

@ -1566,6 +1566,21 @@ namespace VEPROMS.CSLA.Library
if (ss != null && ss != "") sectstartid = System.Convert.ToInt32(ss); if (ss != null && ss != "") sectstartid = System.Convert.ToInt32(ss);
else return false; else return false;
if (ItemID == sectstartid) return true; if (ItemID == sectstartid) return true;
SectionInfo si = SectionInfo.Get(sectstartid);
if (si == null) return false;
if (si.MyProcedure.ItemID == MyProcedure.ItemID) return false;
if (si.DisplayNumber == DisplayNumber && si.DisplayText == DisplayText)
{
using (Procedure p = Procedure.Get(parent.ItemID))
{
if (p.ProcedureConfig.SectionStart != ItemID.ToString())
{
p.ProcedureConfig.SectionStart = ItemID.ToString();
p.Save();
}
}
return true;
}
return false; return false;
} }
} }