C2012-037 per Ginna’s request, added the Revision Number to the Cover page in the SAMGs format.

This commit is contained in:
John Jenko 2012-11-29 16:43:26 +00:00
parent 03db9cdbd1
commit 330ade52ed

View File

@ -326,14 +326,17 @@ namespace fmtxml
case "SHE.PAG":
AddSHEPage(ref pgstyles);
break;
/* Under Development
case "TP.PAG":
AddTPPage(ref pgstyles);
case "RGESAM1.PAG":
AddRGESam1Page(ref pgstyles);
break;
case "TP.Z00":
AddTP00Page(ref pgstyles);
break;
* */
/* Under Development
case "TP.PAG":
AddTPPage(ref pgstyles);
break;
case "TP.Z00":
AddTP00Page(ref pgstyles);
break;
* */
}
}
@ -370,6 +373,27 @@ namespace fmtxml
pgstyles.PgStyles[8].Items[1].Col = -16; // {HEADER1}
pgstyles.PgStyles[8].Items[5].Col = -16; // {BOX4}
}
private void AddRGESam1Page(ref PageStyles pgstyles)
{
// CoverPage - add the Revision to the pagelist
int cnt = pgstyles.PgStyles.Length+1;
PSItem[] Fpsitms = null;
PSItem pi = new PSItem();
pi.Style = new VE_Font();
pi.Token = "REVISION {REV}";
pi.Row = 382;
pi.Col = 242;
pi.Justify = "PSCenter";
pi.Style.FontFamily = "Courier New";
pi.Style.FontSize = "12";
pi.Style.CPI = "10";
Fpsitms = new PSItem[cnt];
pgstyles.PgStyles[3].Items.CopyTo(Fpsitms, 0);
Fpsitms[cnt - 1] = pi;
pgstyles.PgStyles[3].Items = Fpsitms;
}
/* Under Development
// TP_ALL
private void AddTPPage(ref PageStyles pgstyles)