From a956574892e84ff145539d543da3a84354c67724 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 13 Feb 2015 14:39:03 +0000 Subject: [PATCH] =?UTF-8?q?if=20user=20selects=20a=20section=20to=20be=20?= =?UTF-8?q?=E2=80=98Default=20Step=20Section=E2=80=99,=20also=20set=20the?= =?UTF-8?q?=20procedure=20config=20=E2=80=98SectionStart=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VEPROMS User Interface/frmSectionProperties.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index 7a4ffa92..eee66c0e 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -132,9 +132,22 @@ namespace VEPROMS { ssav.SectionConfig.Section_OriginalSteps = "N"; ssav.Save(); + ItemInfo.Refresh(ssav); } } } + // also need to set the procedure's config sectionstart to the selected section + // if it is not set: + using (Procedure p = Procedure.Get(_SectionConfig.MySection.MySectionInfo.MyProcedure.ItemID)) + { + if (p.ProcedureConfig.SectionStart != _SectionConfig.MySection.MySectionInfo.ItemID.ToString()) + { + p.ProcedureConfig.SectionStart = _SectionConfig.MySection.MySectionInfo.ItemID.ToString(); + p.Save(); + ItemInfo.Refresh(p); + } + } + } this.DialogResult = DialogResult.OK; this.Close();