BGEALN page/doc style fixes
Added a SpecialCaseCalvertAlarm flag to keep code changes isolated. Various print fixes TranslateFMT.XSL
This commit is contained in:
parent
55f835915d
commit
b24dfe988d
@ -701,6 +701,9 @@ namespace fmtxml
|
||||
case "BGEEOP.Z00":
|
||||
AddBGEEOPPage_Z00(ref pgstyles);
|
||||
break;
|
||||
case "BGEALN.PAG":
|
||||
AddBGEALNPage(ref pgstyles);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1255,6 +1258,9 @@ namespace fmtxml
|
||||
case "BGEEOP.Y00":
|
||||
AddBGEEOPDOC_Y00(ref dcstyles);
|
||||
break;
|
||||
case "BGEALN.DOC":
|
||||
AddBGEALNDOC(ref dcstyles);
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void AddFNPCASDOC(ref DocStyles dcstyles)
|
||||
|
@ -425,6 +425,7 @@ public struct GeneralPrint
|
||||
public string UnitNumber;
|
||||
// Added for BGE: didn't want to name it for them, but that's what it is
|
||||
public string SpecialCaseCalvert;
|
||||
public string SpecialCaseCalvertAlarm;
|
||||
// added for Comanche Peak to print "COMMON" in place of "Unit 0" (from pagelist)
|
||||
public string PrintCommonForZeroUnit; // added for Comanche Peak to print "COMMON" in place of "Unit 0" (from pagelist)
|
||||
//public string SpecialStepsFoldout;
|
||||
@ -4931,6 +4932,7 @@ namespace fmtxml
|
||||
if (mainFmt.PrintData.RevDateWithForwardSlash != null && mainFmt.PrintData.RevDateWithForwardSlash == subFmt.PrintData.RevDateWithForwardSlash) subFmt.PrintData.RevDateWithForwardSlash = "null";
|
||||
if (mainFmt.PrintData.UnitNumber != null && mainFmt.PrintData.UnitNumber == subFmt.PrintData.UnitNumber) subFmt.PrintData.UnitNumber = "null"; if (mainFmt.PrintData.UnitNumber != null && mainFmt.PrintData.UnitNumber == subFmt.PrintData.UnitNumber) subFmt.PrintData.UnitNumber = "null";
|
||||
if (mainFmt.PrintData.SpecialCaseCalvert != null && mainFmt.PrintData.SpecialCaseCalvert == subFmt.PrintData.SpecialCaseCalvert) subFmt.PrintData.SpecialCaseCalvert = "null";
|
||||
if (mainFmt.PrintData.SpecialCaseCalvertAlarm != null && mainFmt.PrintData.SpecialCaseCalvertAlarm == subFmt.PrintData.SpecialCaseCalvertAlarm) subFmt.PrintData.SpecialCaseCalvertAlarm = "null";
|
||||
if (mainFmt.PrintData.PrintCommonForZeroUnit != null && mainFmt.PrintData.PrintCommonForZeroUnit == subFmt.PrintData.PrintCommonForZeroUnit) subFmt.PrintData.PrintCommonForZeroUnit = "null";
|
||||
//if (mainFmt.PrintData.SpecialStepsFoldout != null && mainFmt.PrintData.SpecialStepsFoldout == subFmt.PrintData.SpecialStepsFoldout) subFmt.PrintData.SpecialStepsFoldout = "null";
|
||||
if (mainFmt.PrintData.AccessoryDocsInDuplex != null && mainFmt.PrintData.AccessoryDocsInDuplex == subFmt.PrintData.AccessoryDocsInDuplex) subFmt.PrintData.AccessoryDocsInDuplex = "null";
|
||||
|
@ -9,13 +9,33 @@ namespace fmtxml
|
||||
{
|
||||
private void AddBGEALNfmt(ref FormatData fmtdata)
|
||||
{
|
||||
fmtdata.TPL = "0, 0, 0, 0, 0, 0, title\n1, 1, 65, 10,-19, -32768,\n2, 42, 0, 26, -1, 0,DEVICE\n2, 42, 27, 31, -1, 0,SETPOINT\n2, 42, 0, 0, 0, 0,POSSIBLE CAUSES\n2, 42, 0, 0, 0, 0,AUTOMATIC ACTIONS\n2, 42, 0, 0, 12294, 5186, CONDITION RESPONSE\n2, 42, 0, 0, 0, 0,ANNUNCIATOR COMPENSATORY ACTIONS\n2, 42, 0, 0, 0, 0,REFERENCES\n\n";
|
||||
fmtdata.SectData.StepSectionData.StpSectLayData.CautionNoteOrder = "7,6,22"; // Note,Caution,Warning
|
||||
fmtdata.SectData.StepSectionData.CompressHPSub = "False";
|
||||
fmtdata.SectData.StepSectionData.CompressPropSubSup = "True";
|
||||
fmtdata.PrintData.SpecialCaseCalvert = "True";
|
||||
fmtdata.PrintData.UnitNumber = "True";
|
||||
fmtdata.PrintData.SpecialCaseCalvert = "True"; // do I need this for alarms
|
||||
fmtdata.PrintData.SpecialCaseCalvertAlarm = "True";
|
||||
fmtdata.ProcData.TitleLength = 37;
|
||||
fmtdata.ProcData.CoverTitleLength = 45;
|
||||
fmtdata.SectData.StepSectionData.SequentialTabFormat[1].TabFormat = " {seq}. ";
|
||||
fmtdata.SectData.StepSectionData.SequentialTabFormat[1].PrintTabFormat = " {seq}. ";
|
||||
fmtdata.StepData[2].TabData.IdentEdit = "WINDOW ";
|
||||
fmtdata.StepData[2].TabData.Ident = "WINDOW ";
|
||||
fmtdata.StepData[42].UseOldTemplate = "True";
|
||||
fmtdata.StepData[2].UseOldTemplate = "True";
|
||||
fmtdata.StepData[6].StepLayoutData.EveryNLines = "-99";
|
||||
fmtdata.StepData[7].StepLayoutData.EveryNLines = "-99";
|
||||
fmtdata.StepData[20].StepLayoutData.EveryNLines = "1";
|
||||
fmtdata.StepData[22].StepLayoutData.EveryNLines = "-99";
|
||||
fmtdata.StepData[43].UseOldTemplate = "True";
|
||||
fmtdata.StepData[14].StepLayoutData.EveryNLines = "-99";
|
||||
fmtdata.StepData[31].StepLayoutData.EveryNLines = "-99"; // not sure if I need this - inheritance
|
||||
fmtdata.StepData[20].StepPrintData.Justify = "Center";
|
||||
fmtdata.StepData[20].OneLineBeforeTab = "True";
|
||||
fmtdata.BoxData[1].TxtStart = 356;
|
||||
fmtdata.BoxData[1].TxtWidth = 130;
|
||||
fmtdata.BoxData[1].BXMLS = null;
|
||||
fmtdata.BoxData[1].BXMRS = null;
|
||||
}
|
||||
private void AddBGEEOPfmt(ref FormatData fmtdata)
|
||||
{
|
||||
@ -222,5 +242,118 @@ namespace fmtxml
|
||||
pgstyles.PgStyles[1].Items[7].Style.FontStyle = "None";
|
||||
pgstyles.PgStyles[1].Items[7].Style.CPI = "12";
|
||||
}
|
||||
|
||||
private void AddBGEALNPage(ref PageStyles pgstyles)
|
||||
{
|
||||
pgstyles.PgStyles[1].Items[4].Token = "{COVERPROCTITLE}";
|
||||
|
||||
// remove the INIT item in proc steps:
|
||||
int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles
|
||||
PageStyle[] pgs = new PageStyle[numstyles];
|
||||
PageStyle ps;
|
||||
// copy existing page lists except for the one with the INIT
|
||||
for (int i = 0; i < numstyles - 1; i++)
|
||||
{
|
||||
if (i != 4)
|
||||
{
|
||||
ps = new PageStyle();
|
||||
ps = pgstyles.PgStyles[i];
|
||||
pgs[i] = ps;
|
||||
}
|
||||
}
|
||||
// now do the proc step pageslists without the INIT
|
||||
ps = new PageStyle();
|
||||
ps.Name = "Procedure Steps";
|
||||
ps.Index = 4;
|
||||
|
||||
PSItem[] Fpsitms = null;
|
||||
Fpsitms = new PSItem[6];
|
||||
|
||||
PSItem pi = new PSItem();
|
||||
pi.Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}";
|
||||
pi.Row = 12;
|
||||
pi.Col = -3;
|
||||
pi.Justify = "PSCenter";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Prestige Elite Tall";
|
||||
pi.Style.FontSize = "10";
|
||||
pi.Style.FontStyle = "None";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[0] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{EOPNUM}";
|
||||
pi.Row = 24;
|
||||
pi.Col = 432;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[1] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "Rev. {REVUNIT}";
|
||||
pi.Row = 36;
|
||||
pi.Col = 432;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[2] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{PROCTITLE}";
|
||||
pi.Row = 36;
|
||||
pi.Col = 255;
|
||||
pi.Justify = "PSCenter";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[3] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "Page {PAGE} of {OF}";
|
||||
pi.Row = 48;
|
||||
pi.Col = 432;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "Bold";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[4] = pi;
|
||||
|
||||
pi = new PSItem();
|
||||
pi.Token = "{BOX5}";
|
||||
pi.Row = 48;
|
||||
pi.Col = 6;
|
||||
pi.Justify = "PSLeft";
|
||||
pi.Style = new VE_Font();
|
||||
pi.Style.FontFamily = "Arial";
|
||||
pi.Style.FontSize = "11";
|
||||
pi.Style.FontStyle = "None";
|
||||
pi.Style.CPI = "12";
|
||||
Fpsitms[5] = pi;
|
||||
|
||||
ps.Items = Fpsitms;
|
||||
pgs[4] = ps;
|
||||
|
||||
pgstyles.PgStyles = pgs; // save new pagelist
|
||||
}
|
||||
|
||||
private void AddBGEALNDOC(ref DocStyles dcstyles)
|
||||
{
|
||||
dcstyles.DcStyles[0].ComponentList = true;
|
||||
dcstyles.DcStyles[0].PageWidth = 558;
|
||||
dcstyles.DcStyles[0].CBLoc = 4;
|
||||
dcstyles.DcStyles[0].CBMargin = 35;
|
||||
dcstyles.DcStyles[0].CBMarginR = 287;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user