From 242d03bba64cfa2b56ec686aebe08cdd44ef7296 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 23 Jan 2014 21:24:46 +0000 Subject: [PATCH] Format changes for Catawba and McGuire Turn off Replace Words in ROs, fixed transition UI functionality Fixed transition UI functionality, added Attachment section type in background format --- PROMS/fmtxml/AppendPlantSpecific.cs | 27 ++++ PROMS/fmtxml/PlantSpecific_Catawba.cs | 8 ++ PROMS/fmtxml/PlantSpecific_McGuire.cs | 7 ++ PROMS/fmtxml/PlantSpecific_Robinson.cs | 166 +++++++++++++++++++++++++ 4 files changed, 208 insertions(+) diff --git a/PROMS/fmtxml/AppendPlantSpecific.cs b/PROMS/fmtxml/AppendPlantSpecific.cs index 463e13ce..d4a93d01 100644 --- a/PROMS/fmtxml/AppendPlantSpecific.cs +++ b/PROMS/fmtxml/AppendPlantSpecific.cs @@ -34,6 +34,9 @@ namespace fmtxml case "TP.FMT": AddTPFmt(ref fmtdata); break; + case "TPBCK2.FMT": + AddTPBCK2Fmt(ref fmtdata); + break; case "RGE.FMT": AddRGEFmt(ref fmtdata); break; @@ -105,6 +108,9 @@ namespace fmtxml case "IP2.FMT": AddIP2fmt(ref fmtdata); break; + case "IP2BCK.FMT": + AddIP2BCKFmt(ref fmtdata); + break; case "SUM.FMT": AddSUMfmt(ref fmtdata); break; @@ -171,6 +177,9 @@ namespace fmtxml case "MCGBOX.FMT": AddMCGfmt(ref fmtdata); break; + case "MCGDEV.FMT": + AddCATDEVfmt(ref fmtdata); + break; case "CAT.FMT": case "CATBOX.FMT": AddCATfmt(ref fmtdata); @@ -178,6 +187,9 @@ namespace fmtxml case "CATADEV.FMT": AddCATADEVfmt(ref fmtdata); break; + case "CATDEV.FMT": + AddCATDEVfmt(ref fmtdata); + break; case "GEN.FMT": AddGENfmt(ref fmtdata); break; @@ -284,6 +296,14 @@ namespace fmtxml fmtdata.StepData[9].TabData.RNOIdent = "{!C0}. "; } + private void AddIP2BCKFmt(ref FormatData fmtdata) + { + /* Under development + * Turn this on when we start working on Indian Point Backgrounds + * */ + //fmtdata.TransData.TransTypeData[7].TransUI = "ProcMenu, SectDefault, StepFirst"; + } + private void AddWCNCKLFmt(ref FormatData fmtdata) { fmtdata.BoxData[3].End = 518; @@ -304,6 +324,13 @@ namespace fmtxml // introduced to allow setting of the number of spaces before the tab. fmtdata.StepData[1].CautionOrNoteSubstepIndent = "2"; } + private void AddTPBCK2Fmt(ref FormatData fmtdata) + { + /* Under development + * Turn this on when we start working on Turkey Point Backgrounds + * */ + //fmtdata.TransData.TransTypeData[7].TransUI = "ProcMenu, SectDefault, StepFirst"; + } private void AddRGEFmt(ref FormatData fmtdata) { // RGE is now call CEG diff --git a/PROMS/fmtxml/PlantSpecific_Catawba.cs b/PROMS/fmtxml/PlantSpecific_Catawba.cs index 3669cf54..bfa4a065 100644 --- a/PROMS/fmtxml/PlantSpecific_Catawba.cs +++ b/PROMS/fmtxml/PlantSpecific_Catawba.cs @@ -13,6 +13,11 @@ namespace fmtxml // Fix Logic for CAPSPIfLastLower fmtdata.ROData.CapRoIfLastLower = "False"; fmtdata.ROData.CapSPIfLastLower = "True"; + fmtdata.SectData.ReplaceWordsInROs = "False"; + } + private void AddCATDEVfmt(ref FormatData fmtdata) + { + fmtdata.SectData.ReplaceWordsInROs = "False"; } private void AddCATfmt(ref FormatData fmtdata) // Catawba { @@ -23,6 +28,7 @@ namespace fmtxml fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -3; fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 390; fmtdata.SectData.StepSectionData.AdjustRNOCautionNoteWidth = "True"; + fmtdata.SectData.ReplaceWordsInROs = "False"; fmtdata.ProcData.TitleLength = 45; // Base @@ -107,6 +113,8 @@ namespace fmtxml fmtdata.TransData.TransTypeData[5].TransMenu = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; fmtdata.TransData.TransTypeData[5].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; + fmtdata.TransData.TransTypeData[6].TransUI = "ProcCur, SectMenuStep, StepFirst"; + //RNO Separator fmtdata.SectData.StepSectionData.StpSectPrtData.RNOSepString = "\xA0 "; diff --git a/PROMS/fmtxml/PlantSpecific_McGuire.cs b/PROMS/fmtxml/PlantSpecific_McGuire.cs index 7d7c9811..5ab5419e 100644 --- a/PROMS/fmtxml/PlantSpecific_McGuire.cs +++ b/PROMS/fmtxml/PlantSpecific_McGuire.cs @@ -16,6 +16,7 @@ namespace fmtxml fmtdata.SectData.StepSectionData.StpSectLayData.ColT = -3; fmtdata.SectData.StepSectionData.StpSectLayData.WidT = 390; fmtdata.SectData.StepSectionData.AdjustRNOCautionNoteWidth = "True"; + fmtdata.SectData.ReplaceWordsInROs = "False"; fmtdata.ProcData.TitleLength = 45; // Base @@ -98,6 +99,12 @@ namespace fmtxml fmtdata.TransData.TransTypeData[5].TransFormat = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; fmtdata.TransData.TransTypeData[5].TransMenu = "{Proc Num} ({Proc Title}), {Sect Num} ({Sect Title}), Step {First Step}"; fmtdata.TransData.TransTypeData[5].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst"; + + fmtdata.TransData.TransTypeData[6].TransUI = "ProcCur, SectMenuStep, StepFirst"; + } + private void AddMCGDEVfmt(ref FormatData fmtdata) + { + fmtdata.SectData.ReplaceWordsInROs = "False"; } } public partial class FmtToXml diff --git a/PROMS/fmtxml/PlantSpecific_Robinson.cs b/PROMS/fmtxml/PlantSpecific_Robinson.cs index 1564c440..a470629e 100644 --- a/PROMS/fmtxml/PlantSpecific_Robinson.cs +++ b/PROMS/fmtxml/PlantSpecific_Robinson.cs @@ -237,6 +237,8 @@ namespace fmtxml fmtdata.Name = "Duke Energy - Robinson Enhanced Background Additional Styles"; fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "496,216,144"; fmtdata.SectData.StepSectionData.StpSectLayData.WidSTablePrint = "496,216,144"; + + fmtdata.TransData.TransTypeData[7].TransUI = "ProcMenu, SectMenuStep, StepFirst"; } @@ -637,6 +639,9 @@ namespace fmtxml } private void AddCPBCK(ref PageStyles pgstyles) { + // add a new page style for Attachments with the section number in the page header + Array.Resize(ref pgstyles.PgStyles, pgstyles.PgStyles.Length + 1); + //SetRobinsonPageListFont(ref pgstyles); pgstyles.Name = "Duke Energy - Robinson Enhanced Background Page Styles"; // Step Description Table @@ -655,6 +660,123 @@ namespace fmtxml pgstyles.PgStyles[2].Items[3].Col = 246; pgstyles.PgStyles[2].Items[5].Col = 246; pgstyles.PgStyles[2].Items[7].Col = 228; + // Attachment with Section number and Title in header + pgstyles.PgStyles[3].Name = "Attachment Pages Section Number and Title"; + pgstyles.PgStyles[3].Items[8].Token = "{SECTIONLEVELNUMBER}"; + // Attachment with Section Number in header + pgstyles.PgStyles[4].Name = "Attachment with Section Number"; + pgstyles.PgStyles[4].Index = 4; + if (pgstyles.PgStyles[4].Items == null) + Array.Resize(ref pgstyles.PgStyles[4].Items, 11); + pgstyles.PgStyles[4].Items[0].Token = "{DRAFTPAGE}{REFERENCEPAGE}{MASTERPAGE}{SAMPLEPAGE}"; + pgstyles.PgStyles[4].Items[0].Row = 12; + pgstyles.PgStyles[4].Items[0].Col=3; + pgstyles.PgStyles[4].Items[0].Justify="PSCenter"; + pgstyles.PgStyles[4].Items[0].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[0].Style.FontFamily = "Prestige Elite Tall"; + pgstyles.PgStyles[4].Items[0].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[0].Style.FontStyle = "None"; + pgstyles.PgStyles[4].Items[0].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[1].Token = "{HEADER1}"; + pgstyles.PgStyles[4].Items[1].Row = 12; + pgstyles.PgStyles[4].Items[1].Col = -18; + pgstyles.PgStyles[4].Items[1].Justify = "PSLeft"; + pgstyles.PgStyles[4].Items[1].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[1].Style.FontFamily = "Prestige Elite Tall"; + pgstyles.PgStyles[4].Items[1].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[1].Style.FontStyle = "None"; + pgstyles.PgStyles[4].Items[1].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[2].Token = "{EOPNUM}-BD"; + pgstyles.PgStyles[4].Items[2].Row = 36; + pgstyles.PgStyles[4].Items[2].Col = 6; + pgstyles.PgStyles[4].Items[2].Justify = "PSLeft, PSTop"; + pgstyles.PgStyles[4].Items[2].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[2].Style.FontFamily = "Letter Gothic"; + pgstyles.PgStyles[4].Items[2].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[2].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[2].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[3].Token = "{PROCTITLE1}"; + pgstyles.PgStyles[4].Items[3].Row = 48; + pgstyles.PgStyles[4].Items[3].Col = 243; + pgstyles.PgStyles[4].Items[3].Justify = "PSTop"; + pgstyles.PgStyles[4].Items[3].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[3].Style.FontFamily = "Letter Gothic"; + pgstyles.PgStyles[4].Items[3].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[3].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[3].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[4].Token = "{PAGE} of {OF}"; + pgstyles.PgStyles[4].Items[4].Row = 36; + pgstyles.PgStyles[4].Items[4].Col = 450; + pgstyles.PgStyles[4].Items[4].Justify = "PSLeft, PSTop"; + pgstyles.PgStyles[4].Items[4].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[4].Style.FontFamily = "Letter Gothic"; + pgstyles.PgStyles[4].Items[4].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[4].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[4].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[5].Token = "{PROCTITLE2}"; + pgstyles.PgStyles[4].Items[5].Row = 48; + pgstyles.PgStyles[4].Items[5].Col = 243; + pgstyles.PgStyles[4].Items[5].Justify = "PSTop"; + pgstyles.PgStyles[4].Items[5].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[5].Style.FontFamily = "Letter Gothic"; + pgstyles.PgStyles[4].Items[5].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[5].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[5].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[6].Token = "Rev {REV}"; + pgstyles.PgStyles[4].Items[6].Row = 60; + pgstyles.PgStyles[4].Items[6].Col = 450; + pgstyles.PgStyles[4].Items[6].Justify = "PSLeft"; + pgstyles.PgStyles[4].Items[6].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[6].Style.FontFamily = "Letter Gothic"; + pgstyles.PgStyles[4].Items[6].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[6].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[6].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[7].Token = "BASIS DOCUMENT"; + pgstyles.PgStyles[4].Items[7].Row = 60; + pgstyles.PgStyles[4].Items[7].Col = 276; + pgstyles.PgStyles[4].Items[7].Justify = "PSCenter"; + pgstyles.PgStyles[4].Items[7].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[7].Style.FontFamily = "Arial"; + pgstyles.PgStyles[4].Items[7].Style.FontSize = "14"; + pgstyles.PgStyles[4].Items[7].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[7].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[8].Token = "{SECTIONLEVELNUMBER}"; + pgstyles.PgStyles[4].Items[8].Row = 86; + pgstyles.PgStyles[4].Items[8].Col = 240; + pgstyles.PgStyles[4].Items[8].Justify = "PSCenter"; + pgstyles.PgStyles[4].Items[8].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[8].Style.FontFamily = "Letter Gothic"; + pgstyles.PgStyles[4].Items[8].Style.FontSize = "10"; + pgstyles.PgStyles[4].Items[8].Style.FontStyle = "Bold"; + pgstyles.PgStyles[4].Items[8].Style.CPI= "12"; + + pgstyles.PgStyles[4].Items[9].Token = "{HLRNO}"; + pgstyles.PgStyles[4].Items[9].Row = 108; + pgstyles.PgStyles[4].Items[9].Col = 525; + pgstyles.PgStyles[4].Items[9].Justify = "PSRight, PSTrue"; + pgstyles.PgStyles[4].Items[9].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[9].Style.FontFamily = "Courier New"; + pgstyles.PgStyles[4].Items[9].Style.FontSize = "12"; + pgstyles.PgStyles[4].Items[9].Style.FontStyle = "None"; + pgstyles.PgStyles[4].Items[9].Style.CPI= "10"; + + pgstyles.PgStyles[4].Items[10].Token = "{HLSTAB}"; + pgstyles.PgStyles[4].Items[10].Row = 108; + pgstyles.PgStyles[4].Items[10].Col = 0; + pgstyles.PgStyles[4].Items[10].Justify = "PSLeft"; + pgstyles.PgStyles[4].Items[10].Style = new VE_Font(); + pgstyles.PgStyles[4].Items[10].Style.FontFamily = "Courier New"; + pgstyles.PgStyles[4].Items[10].Style.FontSize = "12"; + pgstyles.PgStyles[4].Items[10].Style.FontStyle = "None"; + pgstyles.PgStyles[4].Items[10].Style.CPI = "10"; } private void AddCPBCK_Z00(ref PageStyles pgstyles) { @@ -788,6 +910,50 @@ namespace fmtxml dcstyles.Name = "Duke Energy - Robinson Enhanced Background Styles"; //SetRobinsonDocStyleFont(ref dcstyles); dcstyles.DcStyles[2].PageWidth = 585; + + // change title of Attachment doc style + dcstyles.DcStyles[3].Name = "Attachment With Section Number and Title"; + + //adding new Attachment style prints the section number in the page header + /** + **/ + Array.Resize(ref dcstyles.DcStyles, dcstyles.DcStyles.Length + 1); + + dcstyles.DcStyles[4].Name = "Attachment with Section Number"; + dcstyles.DcStyles[4].Index = 4; + dcstyles.DcStyles[4].numberingsequence = 1; + dcstyles.DcStyles[4].IsStepSection = true; + dcstyles.DcStyles[4].UseCheckOffs = false; + dcstyles.DcStyles[4].UseColSByLevel = false; + dcstyles.DcStyles[4].oldtonew = 7; + dcstyles.DcStyles[4].CancelSectTitle = false; + dcstyles.DcStyles[4].SpecialStepsFoldout=false; + dcstyles.DcStyles[4].UndSpecialStepsFoldout=false; + dcstyles.DcStyles[4].ExtraLineHeader=false; + dcstyles.DcStyles[4].AlignHLSTabWithSect=false; + dcstyles.DcStyles[4].pagestyle=4; + dcstyles.DcStyles[4].dstyle = new VE_Font(); + dcstyles.DcStyles[4].dstyle.FontFamily = "Courier New"; + dcstyles.DcStyles[4].dstyle.FontSize ="12"; + dcstyles.DcStyles[4].dstyle.FontStyle="None"; + dcstyles.DcStyles[4].dstyle.CPI = "10"; + dcstyles.DcStyles[4].TopMargin=144; + dcstyles.DcStyles[4].FooterLen=12; + dcstyles.DcStyles[4].PageLength=612; + dcstyles.DcStyles[4].PageWidth=489.6F; + dcstyles.DcStyles[4].LeftMargin=72; + dcstyles.DcStyles[4].ContStyle = new VE_Font(); + dcstyles.DcStyles[4].ContStyle.FontFamily= "Courier New"; + dcstyles.DcStyles[4].ContStyle.FontSize = "12"; + dcstyles.DcStyles[4].ContStyle.FontStyle = "None"; + dcstyles.DcStyles[4].ContTop = " (Continued)"; + dcstyles.DcStyles[4].ContTopHLS = 1; + dcstyles.DcStyles[4].CTMargin = 0; + dcstyles.DcStyles[4].ContBottom = " (Continued on next page)"; + dcstyles.DcStyles[4].CBMargin = 7.2F; + dcstyles.DcStyles[4].CBLoc = 0; + dcstyles.DcStyles[4].DocStructStyle = new VE_DocStyle(); + dcstyles.DcStyles[4].DocStructStyle.DocStyleUse = E_DocStyleUse.UseOnAllPages; } private void AddCPBCK_Y00(ref DocStyles dcstyles) {