From 330ade52eda61335dd165aae42a5af32e1d9a150 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Nov 2012 16:43:26 +0000 Subject: [PATCH] =?UTF-8?q?C2012-037=20=20per=20Ginna=E2=80=99s=20request,?= =?UTF-8?q?=20added=20the=20Revision=20Number=20to=20the=20Cover=20page=20?= =?UTF-8?q?in=20the=20SAMGs=20format.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/fmtxml/AppendPlantSpecific.cs | 38 +++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/PROMS/fmtxml/AppendPlantSpecific.cs b/PROMS/fmtxml/AppendPlantSpecific.cs index 99c48fdb..57397671 100644 --- a/PROMS/fmtxml/AppendPlantSpecific.cs +++ b/PROMS/fmtxml/AppendPlantSpecific.cs @@ -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)