Callaway improvements
Callaway improvements (ReadOnly step format property) Initial FNPNMP Initial fnpnmp
This commit is contained in:
parent
3363a94037
commit
7cbe3f651f
@ -112,6 +112,9 @@ namespace fmtxml
|
|||||||
case "CALOTO.FMT":
|
case "CALOTO.FMT":
|
||||||
AddCAL2fmt(ref fmtdata);
|
AddCAL2fmt(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
|
case "CALBCK.FMT":
|
||||||
|
AddCALBCKfmt(ref fmtdata);
|
||||||
|
break;
|
||||||
case "FNP.FMT":
|
case "FNP.FMT":
|
||||||
AddFNPfmt(ref fmtdata);
|
AddFNPfmt(ref fmtdata);
|
||||||
break;
|
break;
|
||||||
@ -135,6 +138,21 @@ namespace fmtxml
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddCALBCKfmt(ref FormatData fmtdata)
|
||||||
|
{
|
||||||
|
fmtdata.StepData[42].ReadOnly = "True";
|
||||||
|
fmtdata.StepData[43].ReadOnly = "True";
|
||||||
|
fmtdata.StepData[2].TabData.IdentAltPrint = @"\ul EOP STEP:\ulnone \STEP: ";
|
||||||
|
fmtdata.StepData[2].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone ";
|
||||||
|
fmtdata.StepData[6].TabData.IdentAltPrint = @"\ul EOP STEP:\ulnone \STEP: ";
|
||||||
|
fmtdata.StepData[6].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone ";
|
||||||
|
fmtdata.StepData[7].TabData.IdentAltPrint = @"\ul EOP STEP:\ulnone \STEP: ";
|
||||||
|
fmtdata.StepData[7].TabData.RNOIdent = @"\ul WOG ERG STEP:\ulnone ";
|
||||||
|
fmtdata.StepData[6].WidthOverride = "490";
|
||||||
|
fmtdata.StepData[7].WidthOverride = "490";
|
||||||
|
fmtdata.StepData[24].WidthOverride = "490";
|
||||||
|
}
|
||||||
private void AddFNPfmt(ref FormatData fmtdata)
|
private void AddFNPfmt(ref FormatData fmtdata)
|
||||||
{
|
{
|
||||||
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "445,186,120";
|
fmtdata.SectData.StepSectionData.StpSectLayData.WidSTableEdit = "445,186,120";
|
||||||
@ -1516,6 +1534,9 @@ namespace fmtxml
|
|||||||
case "CAL2.PAG":
|
case "CAL2.PAG":
|
||||||
AddCAL2Page(ref pgstyles);
|
AddCAL2Page(ref pgstyles);
|
||||||
break;
|
break;
|
||||||
|
case "CALBCK.PAG":
|
||||||
|
AddCALBCKPage(ref pgstyles);
|
||||||
|
break;
|
||||||
case "CPLRDEV.PAG":
|
case "CPLRDEV.PAG":
|
||||||
AddCPLRDevPage(ref pgstyles);
|
AddCPLRDevPage(ref pgstyles);
|
||||||
break;
|
break;
|
||||||
@ -1534,6 +1555,13 @@ namespace fmtxml
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddCALBCKPage(ref PageStyles pgstyles)
|
||||||
|
{
|
||||||
|
pgstyles.PgStyles[1].Items[3].Style.FontSize = "14";
|
||||||
|
pgstyles.PgStyles[1].Items[4].Style.FontSize = "14";
|
||||||
|
pgstyles.PgStyles[0].Items[7].Col = 518;
|
||||||
|
}
|
||||||
|
|
||||||
private void AddCAL2Page(ref PageStyles pgstyles)
|
private void AddCAL2Page(ref PageStyles pgstyles)
|
||||||
{
|
{
|
||||||
pgstyles.PgStyles[6].Items[2].Col = 240;
|
pgstyles.PgStyles[6].Items[2].Col = 240;
|
||||||
@ -2953,6 +2981,9 @@ namespace fmtxml
|
|||||||
case "CAL2.Y00":
|
case "CAL2.Y00":
|
||||||
AddCAL2DOC(ref dcstyles);
|
AddCAL2DOC(ref dcstyles);
|
||||||
break;
|
break;
|
||||||
|
case "CALBCK.DOC":
|
||||||
|
AddCALBCKDOC(ref dcstyles);
|
||||||
|
break;
|
||||||
case "CPL.DOC":
|
case "CPL.DOC":
|
||||||
AddCPLDOC(ref dcstyles);
|
AddCPLDOC(ref dcstyles);
|
||||||
break;
|
break;
|
||||||
@ -2971,6 +3002,12 @@ namespace fmtxml
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AddCALBCKDOC(ref DocStyles dcstyles)
|
||||||
|
{
|
||||||
|
dcstyles.DcStyles[0].PageWidth = 560;
|
||||||
|
dcstyles.DcStyles[0].ContTop = "";
|
||||||
|
}
|
||||||
|
|
||||||
private void AddCAL2DOC(ref DocStyles dcstyles)
|
private void AddCAL2DOC(ref DocStyles dcstyles)
|
||||||
{
|
{
|
||||||
dcstyles.DcStyles[1].PageLength = 672;
|
dcstyles.DcStyles[1].PageLength = 672;
|
||||||
|
BIN
PROMS/fmtxml/FNPNMPall.xml
Normal file
BIN
PROMS/fmtxml/FNPNMPall.xml
Normal file
Binary file not shown.
@ -871,6 +871,7 @@ public struct Step
|
|||||||
public int Index;
|
public int Index;
|
||||||
public string Type;
|
public string Type;
|
||||||
public string ParentType;
|
public string ParentType;
|
||||||
|
public string ReadOnly;
|
||||||
public string Inactive;
|
public string Inactive;
|
||||||
public string ColOverride;
|
public string ColOverride;
|
||||||
public string ColOverrideEdit;
|
public string ColOverrideEdit;
|
||||||
@ -5202,6 +5203,7 @@ namespace fmtxml
|
|||||||
#endregion
|
#endregion
|
||||||
#region DoStepInherit
|
#region DoStepInherit
|
||||||
delegate string StepPartStr(Step stp);
|
delegate string StepPartStr(Step stp);
|
||||||
|
private string StepPartReadOnly(Step stp) { return stp.ReadOnly; }
|
||||||
private string StepPartInactive(Step stp) { return stp.Inactive; }
|
private string StepPartInactive(Step stp) { return stp.Inactive; }
|
||||||
private string StepPartColOverride(Step stp) { return stp.ColOverride; }
|
private string StepPartColOverride(Step stp) { return stp.ColOverride; }
|
||||||
private string StepPartColOverrideEdit(Step stp) { return stp.ColOverrideEdit; }
|
private string StepPartColOverrideEdit(Step stp) { return stp.ColOverrideEdit; }
|
||||||
@ -5417,6 +5419,7 @@ namespace fmtxml
|
|||||||
|
|
||||||
private void FixInheritance(ref Step step, Dictionary<string, Step> dicParents)
|
private void FixInheritance(ref Step step, Dictionary<string, Step> dicParents)
|
||||||
{
|
{
|
||||||
|
if (CheckInheritedStr(new StepPartStr(StepPartReadOnly), step, dicParents)) step.ReadOnly = null;
|
||||||
if (CheckInheritedStr(new StepPartStr(StepPartInactive), step, dicParents)) step.Inactive = null;
|
if (CheckInheritedStr(new StepPartStr(StepPartInactive), step, dicParents)) step.Inactive = null;
|
||||||
if (CheckInheritedStr(new StepPartStr(StepPartColOverride), step, dicParents)) step.ColOverride = NullString;
|
if (CheckInheritedStr(new StepPartStr(StepPartColOverride), step, dicParents)) step.ColOverride = NullString;
|
||||||
if (CheckInheritedStr(new StepPartStr(StepPartColOverrideEdit), step, dicParents)) step.ColOverrideEdit = NullString;
|
if (CheckInheritedStr(new StepPartStr(StepPartColOverrideEdit), step, dicParents)) step.ColOverrideEdit = NullString;
|
||||||
|
@ -304,7 +304,7 @@ namespace fmtxml
|
|||||||
this.btnWestinghouse.Name = "btnWestinghouse";
|
this.btnWestinghouse.Name = "btnWestinghouse";
|
||||||
this.btnWestinghouse.Size = new System.Drawing.Size(164, 26);
|
this.btnWestinghouse.Size = new System.Drawing.Size(164, 26);
|
||||||
this.btnWestinghouse.TabIndex = 21;
|
this.btnWestinghouse.TabIndex = 21;
|
||||||
this.btnWestinghouse.Text = "Copy Westinghouse Fmt Gen";
|
this.btnWestinghouse.Text = "Copy New Formats";
|
||||||
this.btnWestinghouse.UseVisualStyleBackColor = true;
|
this.btnWestinghouse.UseVisualStyleBackColor = true;
|
||||||
this.btnWestinghouse.Click += new System.EventHandler(this.btnWestinghouse_Click);
|
this.btnWestinghouse.Click += new System.EventHandler(this.btnWestinghouse_Click);
|
||||||
//
|
//
|
||||||
@ -604,6 +604,10 @@ namespace fmtxml
|
|||||||
CopySVG("wstalr.svg");
|
CopySVG("wstalr.svg");
|
||||||
CopySVG("wstbck.svg");
|
CopySVG("wstbck.svg");
|
||||||
CopySVG("wstdcs.svg");
|
CopySVG("wstdcs.svg");
|
||||||
|
|
||||||
|
CopyFormat("fnpnmpall.xml");
|
||||||
|
CopySVG("fnpnmp.svg");
|
||||||
|
|
||||||
MyStatus = string.Format("Copied Westinghouse Format/Genmac {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds);
|
MyStatus = string.Format("Copied Westinghouse Format/Genmac {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds);
|
||||||
MessageBox.Show("DONE Copy Westinghouse Format/Genmac - Results are in " + tbResultPath.Text + @"fmtall' and 'genmacall'");
|
MessageBox.Show("DONE Copy Westinghouse Format/Genmac - Results are in " + tbResultPath.Text + @"fmtall' and 'genmacall'");
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
BIN
PROMS/fmtxml/fnpnmp.svg
Normal file
BIN
PROMS/fmtxml/fnpnmp.svg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user