B2021-066: Procedure Level PC/PC in tree view
This commit is contained in:
@@ -2875,7 +2875,18 @@ namespace VEPROMS.CSLA.Library
|
||||
string str = MyContent.Number;
|
||||
if (MyDocVersion != null)
|
||||
{
|
||||
str = (this.IsProcedure) ? MyDocVersion.UnitSpecific(MyContent.Number, 0) : MyContent.Number;
|
||||
// call to UnitSpecific 0 is all, need what is applicable
|
||||
if (IsProcedure)
|
||||
{
|
||||
// B2021-066: show Procedure level applicability in tree view
|
||||
if (ActiveFormat.PlantFormat.FormatData.ProcData.ProcAppl)
|
||||
str = MyDocVersion.UnitSpecific(MyContent.Number, 1, this);
|
||||
else
|
||||
str = MyDocVersion.UnitSpecific(MyContent.Number, 1);
|
||||
|
||||
}
|
||||
else
|
||||
str = MyContent.Number;
|
||||
str = Regex.Replace(str, @"\<U-ID\>", MyDocVersion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);
|
||||
str = Regex.Replace(str, @"\<ID\>", MyDocVersion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);
|
||||
}
|
||||
@@ -6917,6 +6928,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (ActiveFormat.PlantFormat.FormatData.ProcData.ProcAppl)
|
||||
{
|
||||
MyConfig = null; // force refresh
|
||||
ProcedureConfig cfg = MyConfig as ProcedureConfig;
|
||||
return (cfg.MasterSlave_Applicability.GetFlags().Count == 0 || cfg.MasterSlave_Applicability.GetFlags().Contains(ApplicabilityIndex));
|
||||
}
|
||||
|
Reference in New Issue
Block a user