Allow for multi-line step designators
This commit is contained in:
parent
18bc7355e5
commit
b427d24b63
@ -2246,6 +2246,25 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return ConvertToDisplayText(str,false);
|
return ConvertToDisplayText(str,false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Used in Comanche Peak EOP and Flex formats for step designators. Will allow a hard return to be used that that caution type.
|
||||||
|
// need to use the SameRowAsParentMultiLines format flag in that step type.
|
||||||
|
// regular DisplayText will convert the hard return to a semi-colon.
|
||||||
|
public string MulitLineStepDesignatorDisplayText
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string str = MyContent.Text;
|
||||||
|
if (MyDocVersion != null)
|
||||||
|
{
|
||||||
|
str = Regex.Replace(str, @"\<[uU]\>", MyDocVersion.DocVersionConfig.Unit_Number);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_MyLog.WarnFormat("Disconnected Data - ItemID = {0}", ItemID);
|
||||||
|
}
|
||||||
|
return ConvertToMulitLineStepDesignatorDisplayText(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
public string DisplayText
|
public string DisplayText
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -2293,6 +2312,19 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
//get { return ConvertToDisplayText(MyContent.Number); }
|
//get { return ConvertToDisplayText(MyContent.Number); }
|
||||||
}
|
}
|
||||||
|
// for step designators (a redefined caution type used in Comanche Peak with the SameRowAsParentMultiLines format flag)
|
||||||
|
// we what to allow for a hard return to allow for multiple designator lines - jsj 5/21/2015
|
||||||
|
public static string ConvertToMulitLineStepDesignatorDisplayText(string txt)
|
||||||
|
{
|
||||||
|
string retval = txt;
|
||||||
|
retval = StripRtfFormatting(retval);
|
||||||
|
retval = StripLinks(retval);
|
||||||
|
retval = ReplaceSpecialCharacters(retval);
|
||||||
|
retval = retval.Replace("\u2011", "-");
|
||||||
|
retval = retval.Replace("\r\n", @"\line");
|
||||||
|
retval = retval.Replace("\n", @"\line");
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
public static string ConvertToDisplayText(string txt)
|
public static string ConvertToDisplayText(string txt)
|
||||||
{
|
{
|
||||||
return ConvertToDisplayText(txt, true);
|
return ConvertToDisplayText(txt, true);
|
||||||
@ -2505,6 +2537,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return ActiveFormat.PlantFormat.FormatData.StepDataList[FormatStepType].SameRowAsParent;
|
return ActiveFormat.PlantFormat.FormatData.StepDataList[FormatStepType].SameRowAsParent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool SameRowAsParentMultiLines
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ActiveFormat.PlantFormat.FormatData.StepDataList[FormatStepType].SameRowAsParentMultiLines;
|
||||||
|
}
|
||||||
|
}
|
||||||
public string WidthOverride
|
public string WidthOverride
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
Loading…
x
Reference in New Issue
Block a user