This commit is contained in:
Kathy Ruffing 2012-03-08 14:23:06 +00:00
parent da260ce27a
commit 1f8af44de6

View File

@ -362,6 +362,7 @@ namespace VEPROMS.CSLA.Library
get get
{ {
if (!IsSection) return false; if (!IsSection) return false;
if (MyDocStyle.StructureStyle.Style == null) return false;
return ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoTableOfContents) == E_PurchaseOptions.AutoTableOfContents && return ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoTableOfContents) == E_PurchaseOptions.AutoTableOfContents &&
(MyDocStyle.StructureStyle.Style & E_DocStructStyle.TableOfContents) == E_DocStructStyle.TableOfContents); (MyDocStyle.StructureStyle.Style & E_DocStructStyle.TableOfContents) == E_DocStructStyle.TableOfContents);
} }
@ -2601,8 +2602,8 @@ namespace VEPROMS.CSLA.Library
private int SectionDefaultCheckOffIndex() private int SectionDefaultCheckOffIndex()
{ {
ProcData pd = ActiveFormat.PlantFormat.FormatData.ProcData; ProcData pd = ActiveFormat.PlantFormat.FormatData.ProcData;
SectionConfig sc = ActiveSection.MyConfig as SectionConfig;
if (pd.CheckOffData != null && pd.CheckOffData.CheckOffList != null && pd.CheckOffData.CheckOffList.Count == 2) return 0; // if only two items, first is macro - use it. if (pd.CheckOffData != null && pd.CheckOffData.CheckOffList != null && pd.CheckOffData.CheckOffList.Count == 2) return 0; // if only two items, first is macro - use it.
SectionConfig sc = ActiveSection.MyConfig as SectionConfig;
return sc.Section_CheckoffListSelection; return sc.Section_CheckoffListSelection;
} }
public CheckOff GetCheckOffStep() public CheckOff GetCheckOffStep()