Logic to override format settings after inheritance processing
This commit is contained in:
parent
9bea7abb56
commit
3638da920e
@ -4404,6 +4404,7 @@ namespace fmtxml
|
|||||||
// Now do entire format inheritance - then write out.
|
// Now do entire format inheritance - then write out.
|
||||||
success = CompareParentSub(fmtdata, ref subdata);
|
success = CompareParentSub(fmtdata, ref subdata);
|
||||||
success = CompareParentSub(BaseFormat, ref subdata);
|
success = CompareParentSub(BaseFormat, ref subdata);
|
||||||
|
AddPlantSpecificOverrideAfterInheritance(fmtName, ref subdata);
|
||||||
success = WriteOutXml(subdata);
|
success = WriteOutXml(subdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4412,6 +4413,17 @@ namespace fmtxml
|
|||||||
if (HasBase) PopStepLists(); // leave the base format on 'stack', i.e. only pop if !base.
|
if (HasBase) PopStepLists(); // leave the base format on 'stack', i.e. only pop if !base.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddPlantSpecificOverrideAfterInheritance(string genFileName, ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
string genName = genFileName.Substring(genFileName.LastIndexOf('\\') + 1);
|
||||||
|
switch (genName.ToUpper())
|
||||||
|
{
|
||||||
|
case "CPL.X03":
|
||||||
|
OverrideCPL_X03(ref fmtdata);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void SetBaseStepNumericValues(ref FormatData fmtdata)
|
private void SetBaseStepNumericValues(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
Step stp = fmtdata.StepData[0];
|
Step stp = fmtdata.StepData[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user