B2020-076: Create template steps when insert step from treeview with editor not open (made 2 methods public)
This commit is contained in:
@@ -358,7 +358,7 @@ namespace VEPROMS.CSLA.Library
|
||||
((ItemInfo)ActiveParent).MyContent.RefreshContentParts();
|
||||
return tmp;
|
||||
}
|
||||
private ItemInfo InsertSmartTemplateSubStep(string text, string number, ItemInfo tmp, EAddpingPart adPart, int type, E_FromType fromTypeTop)
|
||||
public ItemInfo InsertSmartTemplateSubStep(string text, string number, ItemInfo tmp, EAddpingPart adPart, int type, E_FromType fromTypeTop)
|
||||
{
|
||||
int newItemID = 0;
|
||||
int topType = GetSmartTemplateTopLevelIndxOfThisType(type);
|
||||
@@ -414,7 +414,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return tmp;
|
||||
}
|
||||
|
||||
private ItemInfo InsertSmartTemplateSteps(string text, string number, ItemInfo tmp, EAddpingPart adPart, int type)
|
||||
public ItemInfo InsertSmartTemplateSteps(string text, string number, ItemInfo tmp, EAddpingPart adPart, int type)
|
||||
{
|
||||
int newItemID = 0;
|
||||
int topType = GetSmartTemplateTopLevelIndx();
|
||||
@@ -686,7 +686,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public ItemInfo InsertSiblingAfter(string text, string number, int? type)
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
ItemInfo tmp = null; // KBR need template code in tree view?
|
||||
if (!IsSection && (FormatStepData.UseSmartTemplate || (MyHLS != null && MyHLS.FormatStepData.UseSmartTemplate) || FormatStepData.UseOldTemplate))
|
||||
tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.After, (int)((type == null)? MyContent.Type : type)); // B2018-051 use the type passed in instead of current step type
|
||||
if (tmp == null)
|
||||
|
Reference in New Issue
Block a user