Process pagenum transitions for BGE
Added unit number config item to user interface for printing pagelist items for BGE Added Print_UnitNumberForPageList config item BGE: don’t remove ‘.’ At end of tab when making a section/step tab Check for pagenum transitions for resolving transition text (the type BGE has) Added UnitNumber, Level0Big and UseSpecificTransitionModifier flags
This commit is contained in:
@@ -838,6 +838,32 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("UnitNumberForPageList")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("For Printing of Unit 1, 2 or 1 & 2 on cover page and in header of other pages")]
|
||||
public string Print_UnitNumberForPageList
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["PrintSettings", "UnitNumberForPageList"];
|
||||
|
||||
// If there is no value, then default to "1", i.e. Unit 1.
|
||||
if (s == string.Empty) s = "1"; // default
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (_SaveChangesToDocVersionConfig)
|
||||
{
|
||||
string parval = _Xp.ParentValue("PrintSettings", "UnitNumberForPageList");
|
||||
|
||||
_Xp["PrintSettings", "UnitNumberForPageList"] = value;
|
||||
|
||||
OnPropertyChanged("Print_UnitNumberForPageList");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Unit // From PROC.INI
|
||||
//MultiUnitCount
|
||||
|
@@ -5069,6 +5069,11 @@ namespace VEPROMS.CSLA.Library
|
||||
else
|
||||
return DisplayNumber;
|
||||
}
|
||||
|
||||
// if displaynumber ends with a '.', don't worry about catching the condition that a tab can be made such as
|
||||
// 'x. x', i.e. space between the . and the rest of tab. This was added for BGEEOPs.
|
||||
if (DisplayNumber.LastIndexOf('.') == DisplayNumber.Length - 1) return DisplayNumber;
|
||||
|
||||
string retStr = null;
|
||||
string ch = DisplayNumber != null && DisplayNumber != "" ? DisplayNumber.Substring(0,1) : null;
|
||||
int Snum = GetSectionNum();
|
||||
|
@@ -97,7 +97,8 @@ namespace VEPROMS.CSLA.Library
|
||||
ItemInfo myItemToID = MyItemToID;
|
||||
if (tranLookup.ContainsKey(item.ItemID)) item = tranLookup[item.ItemID];
|
||||
bool hasPageNum = false;
|
||||
if (item.ActiveFormat.PlantFormat.FormatData.TransData.UseTransitionModifier)
|
||||
if (item.ActiveFormat.PlantFormat.FormatData.TransData.UseTransitionModifier ||
|
||||
item.ActiveFormat.PlantFormat.FormatData.TransData.UseSpecificTransitionModifier)
|
||||
{
|
||||
TransitionConfig tc = new TransitionConfig(Config);
|
||||
if (tc != null && tc.Transition_Formatted.ToUpper() == "TRUE") hasPageNum = true;
|
||||
|
@@ -689,6 +689,22 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _RevDateWithForwardSlash, "@RevDateWithForwardSlash");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _UnitNumber;
|
||||
public bool UnitNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _UnitNumber, "@UnitNumber");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _SpecialCaseCalvert;
|
||||
public bool SpecialCaseCalvert
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _SpecialCaseCalvert, "@SpecialCaseCalvert");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _SpecialStepsFoldout;
|
||||
public bool SpecialStepsFoldout
|
||||
{
|
||||
@@ -1768,6 +1784,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _Just, "@Just");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _Level0Big;
|
||||
public bool Level0Big
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _Level0Big, "@Level0Big");
|
||||
}
|
||||
}
|
||||
private VE_Font _Font;
|
||||
public VE_Font Font
|
||||
{
|
||||
@@ -1800,6 +1824,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _Just, "@Just");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _Level0Big;
|
||||
public bool Level0Big
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _Level0Big, "@Level0Big");
|
||||
}
|
||||
}
|
||||
private VE_Font _Font;
|
||||
public VE_Font Font
|
||||
{
|
||||
@@ -5292,6 +5324,14 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _UseTransitionModifier, "@UseTransitionModifier");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _UseSpecificTransitionModifier;
|
||||
public bool UseSpecificTransitionModifier
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _UseSpecificTransitionModifier, "@UseSpecificTransitionModifier");
|
||||
}
|
||||
}
|
||||
private LazyLoad<bool> _UseSecTitles;
|
||||
public bool UseSecTitles
|
||||
{
|
||||
|
Reference in New Issue
Block a user