diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 0ac27afe..405692c4 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -683,7 +683,7 @@ namespace VEPROMS.CSLA.Library { get { - SectionConfig scfg = (SectionConfig)MyActiveSection.MyConfig; + SectionConfig scfg = (SectionConfig)ActiveSection.MyConfig; if (MyDocStyle.StructureStyle.Style == null || scfg == null) return false; bool PlacekeepOption = ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoPlacekeeper) == E_PurchaseOptions.AutoPlacekeeper) && scfg.Section_Placekeeper.Equals("Y"); diff --git a/PROMS/Volian.Controls.Library/DisplayTags.cs b/PROMS/Volian.Controls.Library/DisplayTags.cs index 7e3acd9a..9292becc 100644 --- a/PROMS/Volian.Controls.Library/DisplayTags.cs +++ b/PROMS/Volian.Controls.Library/DisplayTags.cs @@ -147,7 +147,7 @@ namespace Volian.Controls.Library cbPageBreak.Checked = false; // will be set below if HLS & config has it on cbPlaceKeeper.Checked = false; // will be set below if HLS & config has this set cbPageBreak.Enabled = CurItemInfo.IsHigh; - cbPlaceKeeper.Enabled = ((SectionConfig)CurItemInfo.MyActiveSection.MyConfig).Section_Placekeeper == "Y"; + cbPlaceKeeper.Enabled = ((SectionConfig)CurItemInfo.ActiveSection.MyConfig).Section_Placekeeper == "Y"; cbCAS.Enabled = true; rbChgBarOff.Enabled = true; rbChgBarOn.Enabled = true; @@ -180,7 +180,7 @@ namespace Volian.Controls.Library { if (CurItemInfo.IsHigh) cbPageBreak.Checked = sc.Step_NewManualPagebreak; - cbPlaceKeeper.Checked = sc.Step_Placekeeper; + cbPlaceKeeper.Checked = sc.Step_Placekeeper.ToUpper() != "N"; cbCAS.Checked = sc.Step_CAS; } bool _checkoffsAllowed = true; @@ -337,7 +337,7 @@ namespace Volian.Controls.Library MyEditItem.SaveContents(); StepConfig sc = CurItemInfo.MyConfig as StepConfig; if (sc == null) return; - sc.Step_Placekeeper = cbPlaceKeeper.Checked; + sc.Step_Placekeeper = (cbPlaceKeeper.Checked)?"Y":"N"; } private void listBoxStepTypes_SelectedIndexChanged(object sender, EventArgs e) {