Compare commits
107 Commits
B2025-030
...
bc1370ab29
| Author | SHA1 | Date | |
|---|---|---|---|
| bc1370ab29 | |||
| eaf2b14cfc | |||
| 1cf7d81aa5 | |||
| f11a9536f0 | |||
| c7bdcf0104 | |||
| df026499d5 | |||
| a3aa4157b8 | |||
| 8f3268e1bc | |||
| 5721d440e9 | |||
| 505c396283 | |||
| 643e6bc94f | |||
| 76502e6d97 | |||
| 851a0b3810 | |||
| fd8dbb4c8b | |||
| 4ffd994c5e | |||
| a34828113a | |||
| 461329468c | |||
| 35de5df04d | |||
| 4f0548fd60 | |||
| 5c1d96cc51 | |||
| 57049c0c52 | |||
| 31326e1c91 | |||
| 3c60994a0a | |||
| 773cc42346 | |||
| f46a1f39dc | |||
| b7175bf77f | |||
| ec22232aa8 | |||
| f303cd2236 | |||
| f40cef4416 | |||
| fbca97d38d | |||
| 28bd2cba5c | |||
| 4b35f73bbf | |||
| f4706eb126 | |||
| 21bcb90558 | |||
| ae48ac0cae | |||
| cb4979d5bc | |||
| 7d3ae74e1f | |||
| 9d680aa500 | |||
| 0d50b1c2fe | |||
| 75e034863f | |||
| 3b42de1571 | |||
| 668472286e | |||
| e00d34c99d | |||
| 9fb496dfb3 | |||
| f4eaa4a3ef | |||
| 5d50ed6bdf | |||
| d7ace4eaf9 | |||
| 16a4d335ea | |||
| ba69bb0772 | |||
| 455940caa2 | |||
| 439344757e | |||
| ad912691c9 | |||
| 237144aff6 | |||
| 810332d558 | |||
| f8431d0ba1 | |||
| 57c3bfa16a | |||
| 61f1077608 | |||
| 8877e968b9 | |||
| 4575c90bee | |||
| 21279a87ae | |||
| 3d5ad4a17e | |||
| 9bb7b044a8 | |||
| dc8f2f7561 | |||
| 829dbf84da | |||
| 7b156c17f8 | |||
| cbf7cbc164 | |||
| b04faa816e | |||
| 517ebe2902 | |||
| 03d0d314e3 | |||
| 3e804c5cce | |||
| ee2b8b538e | |||
| fdfd34fe92 | |||
| 2d6fb6523b | |||
| 3084bf3982 | |||
| 5ba51e8392 | |||
| fb5eb43e34 | |||
| b154056276 | |||
| c67b8f9ca1 | |||
| 95e4181360 | |||
| 32dffbe56b | |||
| 6b3c8d373b | |||
| db29107f47 | |||
| 355537f2ab | |||
| 0729ef0c21 | |||
| 6fe82bfd0f | |||
| 39bf072363 | |||
| da7c384fd8 | |||
| 95130fd9a0 | |||
| 978e2344a3 | |||
| c9bf45602c | |||
| aa160b2036 | |||
| f82b32d351 | |||
| e519dc9a57 | |||
| f020c37db9 | |||
| 5a4ec3b6b1 | |||
| 2602d6c9d2 | |||
| ff403583d7 | |||
| c5577cc2bd | |||
| 78be6e5dc1 | |||
| b954a41375 | |||
| 0100a11cfe | |||
| 04cf2e8534 | |||
| be00724818 | |||
| 274d93c61a | |||
| 7dc4c30436 | |||
| 028ef4bc31 | |||
| 42124d65c7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17
PROMS/Formats/frmFormatCopy.Designer.cs
generated
17
PROMS/Formats/frmFormatCopy.Designer.cs
generated
@@ -35,7 +35,6 @@ namespace Formats
|
||||
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
|
||||
this.labelX2 = new DevComponents.DotNetBar.LabelX();
|
||||
this.LstBxExcludeFiles = new DevComponents.DotNetBar.ListBoxAdv();
|
||||
this.cbIncludeDemoFormats = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txbxPROMSFormatsPath
|
||||
@@ -132,26 +131,11 @@ namespace Formats
|
||||
this.LstBxExcludeFiles.TabIndex = 6;
|
||||
this.LstBxExcludeFiles.Text = "listBoxAdv1";
|
||||
//
|
||||
// cbIncludeDemoFormats
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.cbIncludeDemoFormats.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.cbIncludeDemoFormats.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.cbIncludeDemoFormats.Location = new System.Drawing.Point(43, 156);
|
||||
this.cbIncludeDemoFormats.Name = "cbIncludeDemoFormats";
|
||||
this.cbIncludeDemoFormats.Size = new System.Drawing.Size(160, 23);
|
||||
this.cbIncludeDemoFormats.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2010;
|
||||
this.cbIncludeDemoFormats.TabIndex = 7;
|
||||
this.cbIncludeDemoFormats.Text = "Include Demo Formats";
|
||||
//
|
||||
// frmFormatCopy
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(496, 191);
|
||||
this.Controls.Add(this.cbIncludeDemoFormats);
|
||||
this.Controls.Add(this.LstBxExcludeFiles);
|
||||
this.Controls.Add(this.labelX2);
|
||||
this.Controls.Add(this.buttonX2);
|
||||
@@ -174,7 +158,6 @@ namespace Formats
|
||||
private DevComponents.DotNetBar.ButtonX buttonX2;
|
||||
private DevComponents.DotNetBar.LabelX labelX2;
|
||||
private DevComponents.DotNetBar.ListBoxAdv LstBxExcludeFiles;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbIncludeDemoFormats;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,17 +96,13 @@ namespace Formats
|
||||
if (!txbxPROMSFormatsPath.Text.EndsWith(@"\")) txbxPROMSFormatsPath.Text += @"\";
|
||||
}
|
||||
|
||||
// Added a PROMSDemo to the list of excluded format files
|
||||
public string[] excludeThese = { "WPS", "WPB", "VCBEPP", "PROMSDemo" };
|
||||
|
||||
// Added logic to support in inclusion of the PROMSDemo formats if the checkbox on the
|
||||
// dialog is check
|
||||
public string[] excludeThese = { "WPS", "WPB", "VCBEPP" };
|
||||
|
||||
private bool ExcludeFromCopy(string fn)
|
||||
{
|
||||
// don't copy formats whos file name starts with..
|
||||
foreach (string excludeThis in excludeThese)
|
||||
if (fn.ToUpper().StartsWith(excludeThis)
|
||||
&& !(cbIncludeDemoFormats.Checked && fn.ToUpper().StartsWith("PROMSDEMO"))) return true;
|
||||
if (fn.ToUpper().StartsWith(excludeThis)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -165,5 +161,5 @@ namespace Formats
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -547,17 +547,6 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _AdjSectTitleLoc, "@AdjSectTitleLoc");
|
||||
}
|
||||
}
|
||||
|
||||
// this will add additional spacing between the Section Numbers and Titles
|
||||
private LazyLoad<float?> _SectTitleOffsetOverride;
|
||||
public float? SectTitleOffsetOverride
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _SectTitleOffsetOverride, "@SectTitleOffsetOverride");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion AdjSectTitleLoc
|
||||
|
||||
#region ShowAlarmPointWindowInfo
|
||||
@@ -664,21 +653,6 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region AltMultiUnitWording
|
||||
[Category("Miscellaneous")]
|
||||
[Description("Alternate Wording for Printing when MultiUnit")]
|
||||
|
||||
// this will utilize Alternate Wording for Printing when MultiUnit and PrintCommonForZeroUnit is set
|
||||
private LazyLoad<string> _AltMultiUnitWording;
|
||||
public string AltMultiUnitWording
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _AltMultiUnitWording, "@AltMultiUnitWording");
|
||||
}
|
||||
}
|
||||
#endregion IncludeInTOC
|
||||
public override string ToString()
|
||||
{
|
||||
return String.Format("{0:D2} - {1}", Index, Name);
|
||||
|
||||
@@ -897,7 +897,11 @@ namespace Volian.Controls.Library
|
||||
// B2023-072: Don't crash if annotation type was deleted for the restore annotation
|
||||
if (ai == null)
|
||||
{
|
||||
FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
||||
if (ati == null)
|
||||
{
|
||||
FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
return;
|
||||
}
|
||||
OnAnnotationRestored(ai, ai.MyItem);
|
||||
|
||||
@@ -2074,6 +2074,7 @@ namespace Volian.Controls.Library
|
||||
case "Paste Procedure After":
|
||||
case "Paste Section":
|
||||
case "Paste Section Before":
|
||||
case "Replace Existing Section":
|
||||
case "Paste Section After":
|
||||
case "Paste Step":
|
||||
case "Paste Step Before":
|
||||
@@ -2082,18 +2083,8 @@ namespace Volian.Controls.Library
|
||||
case "Paste Subsection":
|
||||
tv_NodePaste(mi.Text);
|
||||
break;
|
||||
case "Replace Existing Section":
|
||||
//C2025-032 - Add check if user is sure want to paste replace section
|
||||
DialogResult ovewriteExPS = FlexibleMessageBox.Show("This will overwrite the selected section with the one you copied, would you like to overwrite it?\r\n\r\nSelecting 'Cancel' will cancel the paste action.", "Overwrite the section?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
|
||||
|
||||
if (ovewriteExPS == DialogResult.Cancel) break;
|
||||
else
|
||||
{
|
||||
tv_NodePaste(mi.Text);
|
||||
break;
|
||||
}
|
||||
case "Replace Existing Procedure":
|
||||
DialogResult ovewriteEx = FlexibleMessageBox.Show("This will overwrite the selected procedure with the one you copied, would you like to overwrite it?\r\n\r\nSelecting 'Cancel' will cancel the paste action.", "Overwrite the procedure?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);// == DialogResult.Yes;
|
||||
DialogResult ovewriteEx = FlexibleMessageBox.Show("This will overwrite the selected procedure with then one you copied, would you like to overwrite it?\r\n\r\nSelecting 'Cancel' will cancel the paste action.", "Overwrite the procedure?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);// == DialogResult.Yes;
|
||||
|
||||
if (ovewriteEx == DialogResult.Cancel) break;
|
||||
else
|
||||
|
||||
@@ -1761,16 +1761,6 @@ i = 0;
|
||||
case "[HEADER4]":
|
||||
case "{HEADER5}":
|
||||
case "[HEADER5]":
|
||||
case "{HEADER6}":
|
||||
case "[HEADER6]":
|
||||
case "{HEADER7}":
|
||||
case "[HEADER7]":
|
||||
case "{HEADER8}":
|
||||
case "[HEADER8]":
|
||||
case "{HEADER9}":
|
||||
case "[HEADER9]":
|
||||
case "{HEADER10}":
|
||||
case "[HEADER10]":
|
||||
case "{BOX1}":
|
||||
case "[BOX1]":
|
||||
case "{BOX2}":
|
||||
@@ -2109,12 +2099,7 @@ i = 0;
|
||||
case "[UNITNUMBER]":
|
||||
string unbr = MySection.MyDocVersion.DocVersionConfig.Unit_Number;
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.PrintData.PrintCommonForZeroUnit && unbr == "0")
|
||||
{
|
||||
if (String.IsNullOrEmpty(MySection.MyDocStyle.AltMultiUnitWording))
|
||||
plstr = "COMMON"; // for Comanche Peak, replace "Unit 0" with "COMMON"
|
||||
else
|
||||
plstr = MySection.MyDocStyle.AltMultiUnitWording; // for Comanche Peak Abnormal, replace "Unit 0" with "UNIT 1 AND 2"
|
||||
}
|
||||
plstr = "COMMON"; // for Comanche Peak, replace "Unit 0" with "COMMON"
|
||||
else
|
||||
plstr = plstr.Replace(token, unbr);
|
||||
break;
|
||||
|
||||
@@ -6199,12 +6199,6 @@ namespace Volian.Print.Library
|
||||
XOffset += (float)formatInfo.PlantFormat.FormatData.SectData.MetaSectionList[level].SecTitlePositionAdj;
|
||||
XOffset -= xMetaAdj;
|
||||
}
|
||||
|
||||
if (itemInfo.MyDocStyle.SectTitleOffsetOverride != null)
|
||||
{
|
||||
XOffset += (float)itemInfo.MyDocStyle.SectTitleOffsetOverride;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else if (formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Just == "PSCenter")
|
||||
|
||||
Reference in New Issue
Block a user