Adjust widths of items within the template for non-CONDITION/RESPONSE steps

Determine if step is within a single column template step
Use width for template items (uses change in format file); fixed HLS continue message location; center table around page center if under a single column template step
This commit is contained in:
2014-08-08 13:46:01 +00:00
parent f6c6956381
commit 10ae0c3ab1
3 changed files with 32 additions and 8 deletions

View File

@@ -3593,11 +3593,28 @@ namespace VEPROMS.CSLA.Library
return _TemplateColumnMode ?? -1;
}
}
public bool IsInTemplate()
public bool IsInTemplate() // is this step defined by template, i.e. included in template list
{
if (IsStep && FormatStepData.MyFormat.PlantFormat.FormatData.TopTemplateTypes != null && FormatStepData.MyFormat.PlantFormat.FormatData.TopTemplateTypes.ContainsKey((int)MyContent.Type - 20001)) return true;
return false;
}
public bool IsWithInSingleColumnTemplate() // is this step within a step defined by a 'single-column' template item
{
if (IsStep && FormatStepData.MyFormat.PlantFormat.FormatData.TopTemplateTypes != null)
{
ItemInfo tmp = this;
while (tmp.IsStep)
{
if (tmp.TemplateIndex > 0)
{
if (FormatStepData.MyFormat.PlantFormat.FormatData.Templates[tmp.TemplateIndex].nocolm==0) return true;
return false;
}
tmp = tmp.MyParent;
}
}
return false;
}
public int GetSmartTemplateTopLevelIndxOfThisType(int oftype) // used for inserting steps
{
if (FormatStepData == null) return -1;