SourceCode/PROMS/fmtxml/PlantSpecific_Calvert.cs
Kathy f332618227 BGE: Handle {} around ro values
BGE: Added an x-Location of end message for a section
Use x-location of end message for a section; tab format for sequential tabs at 4th level; hls tab spaces; indent in transition format 9
BGE: Use x-location of end message for a section
BGE: support for top continue messages that contain tab for continued step
resolve {Step Text} token in transition; modify code that processes transition format to use collection matches rather than search for ‘{‘
support AllUnits ro flag
support ‘{‘ and ‘}’ around ro value
top continue message with tab; location of top continue message in both AER/RNO columns for dual column; support indent in transition format during print
support two top continue messages (aer/rno) that can have different text; fix bug in splitting procedure title text if it contains hard spaces
2014-04-29 13:12:10 +00:00

149 lines
8.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace fmtxml
{
public partial class FmtFileToXml
{
private void AddBGEEOPfmt(ref FormatData fmtdata)
{
fmtdata.PrintData.UnitNumber = "True";
fmtdata.PrintData.SpecialCaseCalvert = "True";
fmtdata.SectData.SectionNumber.Level0Big = "True";
fmtdata.SectData.SectionHeader.Level0Big = "True";
fmtdata.SectData.StepSectionData.StpSectLayData.ColS = 30;
fmtdata.SectData.StepSectionData.StpSectLayData.ColRTable = "0,192,126";
fmtdata.SectData.StepSectionData.SequentialTabFormat[4].TabFormat = "{seq})";
fmtdata.SectData.StepSectionData.SequentialTabFormat[4].PrintTabFormat = "{seq})";
fmtdata.TransData.UseSpecificTransitionModifier = "true";
fmtdata.StepData[2].TabData.Ident = " {numeric}. ";
fmtdata.StepData[2].TabData.IdentEdit = " {numeric}. ";
fmtdata.StepData[2].TabData.RNOIdent = " . ";
fmtdata.StepData[2].TabData.RNOIdentEdit = " . ";
fmtdata.StepData[6].SeparateBox = "True";
//fmtdata.StepData[6].MatchUpRNO = "False";
fmtdata.StepData[7].SeparateBox = "True";
//fmtdata.StepData[7].MatchUpRNO = "False";
fmtdata.StepData[29].CenterOneLineOnly = "False"; // this is BGE's message type (used as paragraph off section.
fmtdata.StepData[29].MatchUpRNO = "False";
fmtdata.StepData[29].AlignNullTabWSectHead = "True";
fmtdata.TransData.TransTypeData[4].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}";
fmtdata.TransData.TransTypeData[5].TransFormat = @"{Proc Num}, \ul {Proc Title}\ulnone , {Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}";
fmtdata.TransData.TransTypeData[6].TransFormat = @"{Sect Num}, \ul {Sect Title}\ulnone , Step {First Step}{Page Num}";
fmtdata.TransData.TransTypeData[9].TransFormat = @"{Proc Num} {IND}\ul {Proc Title}\ulnone ";
fmtdata.TransData.TransTypeData[10].TransFormat = @"{First Step}, \ul {Step Text}\ulnone {Page Num}";
}
private void AddBGEEOPOverridefmt(ref FormatData fmtdata)
{
fmtdata.TransData.TransTypeData[0].TransUI = "ProcMenu, SectDefault, StepAllowNone, StepFirst";
fmtdata.TransData.TransTypeData[4].TransUI = "ProcCur, SectMenuAny, StepAllowNone, StepFirst";
fmtdata.TransData.TransTypeData[5].TransUI = "ProcMenu, SectMenuAny, StepAllowNone, StepFirst";
//Placekeeper settings
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKBottomNote = "NOTE: Continuously Applicable Steps are designated with a \"C\" in the Done column.";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKTopContinueMessage = "(continued)";
fmtdata.SectData.AccSectionData.PlaceKeeperData.Font = new VE_Font();
fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.FontFamily = "Arial";
fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.FontSize = "11";
fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.FontStyle = "None";
fmtdata.SectData.AccSectionData.PlaceKeeperData.Font.CPI = "12";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns = new PKColumn[4];
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderText = "START";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColPos = 0;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColWidth = 100;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont = new VE_Font();
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.FontFamily = "Arial";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.FontSize = "11";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.FontStyle = "Bold";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[0].PKColHeaderFont.CPI = "12";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderText = "FUNCTION";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColPos = 0;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColWidth = 500;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont = new VE_Font();
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.FontFamily = "Arial";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.FontSize = "11";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.FontStyle = "Bold";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[1].PKColHeaderFont.CPI = "12";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderText = "DONE";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColPos = 0;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColWidth = 100;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont = new VE_Font();
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.FontFamily = "Arial";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.FontSize = "11";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.FontStyle = "Bold";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[2].PKColHeaderFont.CPI = "12";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderText = "PAGE";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColPos = 0;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColWidth = 100;
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont = new VE_Font();
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.FontFamily = "Arial";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.FontSize = "11";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.FontStyle = "Bold";
fmtdata.SectData.AccSectionData.PlaceKeeperData.PKColumns[3].PKColHeaderFont.CPI = "12";
}
}
public partial class FmtToXml
{
private void AddBGEEOPDOC(ref DocStyles dcstyles)
{
dcstyles.DcStyles[0].TopMargin = 96;
dcstyles.DcStyles[1].PageLength = 600;
dcstyles.DcStyles[1].PageWidth = 552;
dcstyles.DcStyles[1].EndMargin = 206;
dcstyles.DcStyles[2].CBMargin = 96;
dcstyles.DcStyles[2].CBMarginR = 335;
dcstyles.DcStyles[2].CBLoc = 1;
dcstyles.DcStyles[2].EndMargin = 75;
dcstyles.DcStyles[2].PageWidth = 552;
dcstyles.DcStyles[2].CenterLineX = 240;
dcstyles.DcStyles[2].CenterLineYTop = 647;
dcstyles.DcStyles[2].CenterLineYBottom = 24;
dcstyles.DcStyles[3].PageWidth = 552;
dcstyles.DcStyles[3].CenterLineX = 240;
dcstyles.DcStyles[3].CenterLineYTop = 624;
dcstyles.DcStyles[3].CenterLineYBottom = 24;
}
private void AddBGEEOPPage(ref PageStyles pgstyles)
{
pgstyles.PgStyles[0].Items[2].Col = 480;
pgstyles.PgStyles[0].Items[3].Col = 480;
pgstyles.PgStyles[0].Items[4].Col = 480;
pgstyles.PgStyles[1].Items[2].Col = 480;
pgstyles.PgStyles[1].Items[3].Col = 480;
pgstyles.PgStyles[1].Items[4].Col = 480;
pgstyles.PgStyles[2].Items[2].Col = 480;
pgstyles.PgStyles[2].Items[3].Col = 480;
pgstyles.PgStyles[2].Items[4].Col = 480;
pgstyles.PgStyles[2].Items[6].Col = 120;
pgstyles.PgStyles[4].Items[2].Col = 480;
pgstyles.PgStyles[4].Items[3].Col = 480;
pgstyles.PgStyles[5].Items[2].Col = 480;
pgstyles.PgStyles[5].Items[3].Col = 480;
pgstyles.PgStyles[6].Items[2].Col = 474;
pgstyles.PgStyles[6].Items[3].Col = 474;
pgstyles.PgStyles[6].Items[4].Col = 474;
pgstyles.PgStyles[7].Items[2].Col = 474;
pgstyles.PgStyles[7].Items[3].Col = 474;
pgstyles.PgStyles[8].Items[2].Col = 474;
pgstyles.PgStyles[8].Items[3].Col = 474;
pgstyles.PgStyles[8].Items[4].Col = 474;
pgstyles.PgStyles[9].Items[2].Col = 474;
pgstyles.PgStyles[9].Items[3].Col = 474;
pgstyles.PgStyles[10].Items[2].Col = 474;
pgstyles.PgStyles[10].Items[3].Col = 474;
pgstyles.PgStyles[11].Items[2].Col = 480;
pgstyles.PgStyles[11].Items[3].Col = 480;
pgstyles.PgStyles[11].Items[4].Col = 480;
pgstyles.PgStyles[13].Items[2].Col = 474;
pgstyles.PgStyles[13].Items[3].Col = 474;
pgstyles.PgStyles[13].Items[4].Col = 474;
pgstyles.PgStyles[14].Items[2].Col = 474;
pgstyles.PgStyles[14].Items[3].Col = 474;
}
}
}