Restore Kathy's code that I stepped on with my update
This commit is contained in:
parent
f44fed0eca
commit
8e2b179738
@ -43,6 +43,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
//}
|
//}
|
||||||
private Section _Section;
|
private Section _Section;
|
||||||
private SectionInfo _SectionInfo;
|
private SectionInfo _SectionInfo;
|
||||||
|
private static int _SectionConfigUnique = 0;
|
||||||
|
private static int SectionConfigUnique
|
||||||
|
{ get { return ++_SectionConfigUnique; } }
|
||||||
|
private int _MySectionConfigUnique = SectionConfigUnique;
|
||||||
|
public int MySectionConfigUnique // Absolutely Unique ID - Info
|
||||||
|
{ get { return _MySectionConfigUnique; } }
|
||||||
|
|
||||||
public SectionConfig(Section section)
|
public SectionConfig(Section section)
|
||||||
{
|
{
|
||||||
@ -279,20 +285,20 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (s == string.Empty)
|
if (s == string.Empty)
|
||||||
s = _Xp.ParentValue("Section", "Pagination"); // get the parent value
|
s = _Xp.ParentValue("Section", "Pagination"); // get the parent value
|
||||||
//If there is no parent value, then use the volian default
|
//If there is no parent value, then use the volian default
|
||||||
if (s == string.Empty)
|
//if (s == string.Empty)
|
||||||
{
|
//{
|
||||||
if (MyFormat != null)
|
// if (MyFormat != null)
|
||||||
{
|
// {
|
||||||
bool rval = MyFormat.MyStepSectionLayoutData.BreakOnSections;
|
// bool rval = MyFormat.MyStepSectionLayoutData.BreakOnSections;
|
||||||
return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default
|
// return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
bool rval = MyDefaultFormat.MyStepSectionLayoutData.BreakOnSections;
|
// bool rval = MyDefaultFormat.MyStepSectionLayoutData.BreakOnSections;
|
||||||
return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default
|
// return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
if (s == string.Empty) return SectionPagination.Continuous;
|
||||||
return (SectionPagination)int.Parse(s);
|
return (SectionPagination)int.Parse(s);
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
@ -304,7 +310,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
|
|
||||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||||
{
|
{
|
||||||
bool rval = MyFormat.MyStepSectionLayoutData.BreakOnSections;
|
bool rval = _Section.MySectionInfo.ActiveFormat.MyStepSectionLayoutData.BreakOnSections;
|
||||||
parval = (rval) ? ((int)(SectionPagination.Separate)).ToString() : ((int)(SectionPagination.Continuous)).ToString();
|
parval = (rval) ? ((int)(SectionPagination.Separate)).ToString() : ((int)(SectionPagination.Continuous)).ToString();
|
||||||
//parval = ((int)(SectionPagination.Default)).ToString();
|
//parval = ((int)(SectionPagination.Default)).ToString();
|
||||||
}
|
}
|
||||||
@ -319,7 +325,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
[Category("View Settings")]
|
[Category("View Settings")]
|
||||||
//PROPGRID: Hide Include in Background/Deviation
|
//PROPGRID: Hide Include in Background/Deviation
|
||||||
[Browsable(false)]
|
|
||||||
[DisplayName("Include in Background/Deviation")]
|
[DisplayName("Include in Background/Deviation")]
|
||||||
[RefreshProperties(RefreshProperties.All)]
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
[Description("Section LinkEnhanced")]
|
[Description("Section LinkEnhanced")]
|
||||||
@ -337,7 +342,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
[Category("General")]
|
[Category("General")]
|
||||||
//PROPGRID: Hide Include On Table Of Contents
|
//PROPGRID: Hide Include On Table Of Contents
|
||||||
[Browsable(false)]
|
|
||||||
[DisplayName("Include On Table Of Contents")]
|
[DisplayName("Include On Table Of Contents")]
|
||||||
[RefreshProperties(RefreshProperties.All)]
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
[Description("Section TOC")]
|
[Description("Section TOC")]
|
||||||
@ -345,7 +349,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _Xp["Section", "TOC"];
|
string tmp = _Xp["Section", "TOC"];
|
||||||
|
return tmp == null || tmp == "" ? "N" : tmp;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
@ -355,7 +360,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
[Category("Section")]
|
[Category("Section")]
|
||||||
//PROPGRID: Hide AutoGen
|
//PROPGRID: Hide AutoGen
|
||||||
[Browsable(false)]
|
|
||||||
[DisplayName("Section AutoGen")]
|
[DisplayName("Section AutoGen")]
|
||||||
[RefreshProperties(RefreshProperties.All)]
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
[Description("Section AutoGen")]
|
[Description("Section AutoGen")]
|
||||||
@ -373,7 +377,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
[Category("Section")]
|
[Category("Section")]
|
||||||
//PROPGRID: Hide Subsection PH
|
//PROPGRID: Hide Subsection PH
|
||||||
[Browsable(false)]
|
|
||||||
[DisplayName("Section PrintHdr")]
|
[DisplayName("Section PrintHdr")]
|
||||||
[RefreshProperties(RefreshProperties.All)]
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
[Description("Section PrintHdr")]
|
[Description("Section PrintHdr")]
|
||||||
@ -627,6 +630,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
[Category("Format")]
|
[Category("Format")]
|
||||||
[DisplayName("Checkoff Header Selection")]
|
[DisplayName("Checkoff Header Selection")]
|
||||||
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
[Description("Checkoff Header Selection")]
|
[Description("Checkoff Header Selection")]
|
||||||
public int Section_CheckoffHeaderSelection
|
public int Section_CheckoffHeaderSelection
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user