From 7a9bdf9dd7a771eb2c7759f57a0279e9433e5b76 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 26 Aug 2014 19:51:50 +0000 Subject: [PATCH] =?UTF-8?q?Copied=20the=20=E2=80=9CAttachment=20Step=20?= =?UTF-8?q?=E2=80=93=20No=20Header=E2=80=9D=20section=20type=20from=20the?= =?UTF-8?q?=20Calvert=20OI=20format=20to=20the=20Alarm=20format=20for=20us?= =?UTF-8?q?e=20in=20some=20Common=20Alarm=20procedures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/fmtxml/PlantSpecific_Calvert.cs | 138 +++++++++++++++++++++++++- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/PROMS/fmtxml/PlantSpecific_Calvert.cs b/PROMS/fmtxml/PlantSpecific_Calvert.cs index d50aef5d..b18ab944 100644 --- a/PROMS/fmtxml/PlantSpecific_Calvert.cs +++ b/PROMS/fmtxml/PlantSpecific_Calvert.cs @@ -282,7 +282,7 @@ namespace fmtxml // remove the INIT item in proc steps: int numstyles = pgstyles.PgStyles.Length; // number of current PgStyles - PageStyle[] pgs = new PageStyle[numstyles]; + PageStyle[] pgs = new PageStyle[numstyles+1]; PageStyle ps; // copy existing page lists except for the one with the INIT for (int i = 0; i < numstyles - 1; i++) @@ -377,6 +377,112 @@ namespace fmtxml ps.Items = Fpsitms; pgs[4] = ps; + // now add the Attachment Step - No Header + ps = new PageStyle(); + ps.Name = "Attachment Step - No Header"; + ps.Index = 5; + + Fpsitms = new PSItem[8]; + + 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 = 438; + 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 = "{SECTIONLEVELNUMBER}"; + pi.Row = 36; + pi.Col = 438; + 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 = "Rev. {REVUNIT}"; + pi.Row = 48; + pi.Col = 438; + 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[3] = pi; + + pi = new PSItem(); + pi.Token = "{PROCTITLE}"; + pi.Row = 48; + 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[4] = pi; + + pi = new PSItem(); + pi.Token = "Page {DOCCURPAGE} of {DOCTOTPAGE}"; + pi.Row = 60; + pi.Col = 438; + 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[5] = pi; + + pi = new PSItem(); + pi.Token = "{BOX5}"; + pi.Row = 60; + pi.Col = 6; + pi.Justify = "PSLeft"; + pi.Style = new VE_Font(); + pi.Style.FontFamily = "Prestige Elite Tall"; + pi.Style.FontSize = "10"; + pi.Style.FontStyle = "None"; + pi.Style.CPI = "12"; + Fpsitms[6] = pi; + + pi = new PSItem(); + pi.Token = "{SECTIONLEVELTITLE}"; + pi.Row = 96; + pi.Col = 255; + pi.Justify = "PSCenter"; + pi.Style = new VE_Font(); + pi.Style.FontFamily = "Arial"; + pi.Style.FontSize = "14"; + pi.Style.FontStyle = "Underline, Bold"; + pi.Style.CPI = "12"; + Fpsitms[7] = pi; + + ps.Items = Fpsitms; + pgs[5] = ps; + pgstyles.PgStyles = pgs; // save new pagelist } @@ -387,6 +493,36 @@ namespace fmtxml dcstyles.DcStyles[0].CBLoc = 4; dcstyles.DcStyles[0].CBMargin = 35; dcstyles.DcStyles[0].CBMarginR = 287; + + //adding new "Attachment Step - No Header" docstyle + Array.Resize(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1); + + dcstyles.DcStyles[5].Name = "Attachment Step - No Header"; + dcstyles.DcStyles[5].Index = 5; + dcstyles.DcStyles[5].numberingsequence = 4; + dcstyles.DcStyles[5].IsStepSection = true; + dcstyles.DcStyles[5].UseCheckOffs = false; + dcstyles.DcStyles[5].UseColSByLevel = true; + dcstyles.DcStyles[5].oldtonew = 1048576; + dcstyles.DcStyles[5].CancelSectTitle = true; + dcstyles.DcStyles[5].SpecialStepsFoldout = false; + dcstyles.DcStyles[5].UndSpecialStepsFoldout = false; + dcstyles.DcStyles[5].ExtraLineHeader = false; + dcstyles.DcStyles[5].AlignHLSTabWithSect = false; + dcstyles.DcStyles[5].pagestyle = 5; + dcstyles.DcStyles[5].TopMargin = 120F; + dcstyles.DcStyles[5].FooterLen = 0F; + dcstyles.DcStyles[5].PageLength = 600; + dcstyles.DcStyles[5].PageWidth = 576F; + dcstyles.DcStyles[5].LeftMargin = 48F; + dcstyles.DcStyles[5].dstyle = new VE_Font(); + dcstyles.DcStyles[5].dstyle.FontFamily = "Arial"; + dcstyles.DcStyles[5].dstyle.FontSize = "11"; + dcstyles.DcStyles[5].dstyle.FontStyle = "None"; + dcstyles.DcStyles[5].dstyle.CPI = "12"; + dcstyles.DcStyles[5].DocStructStyle = new VE_DocStyle(); + dcstyles.DcStyles[5].DocStructStyle.DocStyleUse = E_DocStyleUse.UseOnAllPages; + dcstyles.DcStyles[5].DocStructStyle.DocStyle = "DontNumberInTOC"; } } }