Compare commits
190 Commits
85f683371c
...
C2024-004_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09d0f73396 | ||
|
|
96e85e8c5c | ||
|
|
f6f7d6a8c7 | ||
| 616acf0e37 | |||
| 3cff87cf97 | |||
|
|
9202d903a5 | ||
|
|
a9a9a56c09 | ||
| aee7819a9c | |||
|
|
d3bc1c4725 | ||
| d0474b22f9 | |||
| 5bd1f94be0 | |||
|
|
629fe1b615 | ||
|
|
c92b888ec2 | ||
| 5df42daa71 | |||
|
|
9349396d9a | ||
|
|
38425a05f9 | ||
|
|
9d1b99b08e | ||
|
|
4f7a762bf1 | ||
|
|
11cb2e0efd | ||
| 78f58bea19 | |||
|
|
a2e830d0c3 | ||
|
|
2ffab17caf | ||
|
|
49aba5c67b | ||
| 1b24177b68 | |||
| bf7a967633 | |||
| f5669e50a8 | |||
|
|
2ae0d0d454 | ||
|
|
241785846e | ||
|
|
0d6fd6950c | ||
|
|
bb99d6444c | ||
|
|
db4f114caf | ||
| 80d83da9c9 | |||
| 54e02e6263 | |||
| c4af911f15 | |||
| f9690ee772 | |||
| 623c6a7941 | |||
| 7a5129208c | |||
| e15c56f1e2 | |||
|
|
5d808e436a | ||
| 20e40a5c49 | |||
| 885dae812d | |||
| 35bd91f7e8 | |||
| 305f2768bb | |||
| 5f733161c6 | |||
| 4fc13acd1a | |||
| 365f6a23c8 | |||
| 331d5751c3 | |||
| dfb965edbc | |||
|
|
c7cc69fd73 | ||
| d187aa885d | |||
| b1b4535d9b | |||
| b085a727f0 | |||
| e548e1da63 | |||
| c320634d3d | |||
| af889a8818 | |||
| c265975cbe | |||
| a41a398e7e | |||
|
|
5edaf30601 | ||
| df0c5259c0 | |||
| 10c25dbe44 | |||
| 2df37533a8 | |||
| 6392ee3f0f | |||
| 96ddce8b73 | |||
| c88caefe5d | |||
| eb26b7a123 | |||
| c865b67398 | |||
| 89814777b4 | |||
| de7e2d5f2a | |||
| f51866236f | |||
| a9eec83382 | |||
| fd5739bbcd | |||
| 076e0bfe8e | |||
| 07d10c571b | |||
| 20cbff0255 | |||
| b643f7fdf8 | |||
| 0607fcf261 | |||
| 1289e52600 | |||
| fccc47483f | |||
| 5ffd99bd0e | |||
|
|
dffea37fad | ||
| 811076d432 | |||
| 1bdfb7d1e3 | |||
| 4a3ca1c074 | |||
|
|
9d50f55f71 | ||
|
|
b8e8e80acb | ||
|
|
c77320d4e7 | ||
| 59bc3141e8 | |||
| dc73cc3a50 | |||
| 1433f14a0b | |||
| 6e3fc49517 | |||
| d0f7da7ef6 | |||
| b0776fb8b7 | |||
| cae3e2323d | |||
| ce8497e61f | |||
| 72eaac478f | |||
| 776d9891d9 | |||
|
|
6e37911462 | ||
|
|
d2cad3a9f7 | ||
| 3f94097f73 | |||
| e45422755f | |||
| 09b5cb4be4 | |||
| 50f18ff803 | |||
|
|
6c733d54fc | ||
| 64bdb9fb76 | |||
| 389a3013b5 | |||
| 21c2012c15 | |||
| e309c4a814 | |||
| 95a39e5a12 | |||
|
|
2c587dd848 | ||
| 07f67414a9 | |||
| da4cbfd112 | |||
| e392c1fcc7 | |||
| eeacf9b969 | |||
| cf13e2f7d5 | |||
| 5db530f4e8 | |||
| d42e8115ec | |||
| 4f68414a8a | |||
| 9fd9eac16a | |||
| c4e3ba10c6 | |||
| 3c632d4abc | |||
| ccb2bab805 | |||
| a5a0d389e2 | |||
| 97dbfad875 | |||
|
|
51ef1d127d | ||
|
|
31301c4717 | ||
|
|
b01a9edc1e | ||
| ac1041fa10 | |||
| f7a692248e | |||
| 49500f0926 | |||
| 77cf0f09b4 | |||
|
|
4292581840 | ||
| d9018c44e7 | |||
| 490c61c225 | |||
| 021bcb3c65 | |||
| 8e433cc28e | |||
| 33972bed19 | |||
|
|
ed65bded13 | ||
|
|
c5e145e4f6 | ||
| 2c4a8a79ee | |||
| 42180012fe | |||
| 00268c8fac | |||
| eabfcf7b82 | |||
| 264b444464 | |||
|
|
b1efb03958 | ||
| 821ce21e24 | |||
|
|
02b0fa9b6d | ||
|
|
315a897444 | ||
| 820f82e977 | |||
| 126eff7614 | |||
| 82eeaeb351 | |||
| 78f83eb2a5 | |||
|
|
e38a706931 | ||
|
|
8a8507395f | ||
|
|
e0faa6403f | ||
|
|
88391824eb | ||
|
|
b6f1c9cdb5 | ||
|
|
3a44d4cd0e | ||
|
|
e6f9ae3623 | ||
| 8fa08b09fa | |||
| 578b8842f7 | |||
| 1db167e5ca | |||
| 78020ca40a | |||
| fcaa0ce41d | |||
| 6fed25bbfa | |||
| eee137a324 | |||
| 3710e871a9 | |||
|
|
b3c6ce633d | ||
| 15048a317f | |||
|
|
527422876a | ||
|
|
11f307ec0d | ||
|
|
77706f22e4 | ||
| 9e56422df8 | |||
| 092ed83ca4 | |||
| 6078d30a94 | |||
| 9804cf0fce | |||
| faed1cdfd6 | |||
| 7d5997cd43 | |||
| 72457d956e | |||
| d55df8beb0 | |||
|
|
b2d238f8e1 | ||
| 837978da92 | |||
| 2005eab8cb | |||
| f3b5b425c0 | |||
| dcfdf5f852 | |||
| 77d31a4a99 | |||
| b09c6d654c | |||
| 5a1116f359 | |||
| e171aa66fe | |||
|
|
8883ac6358 | ||
|
|
92345f8f91 |
@@ -27,7 +27,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
|
||||
@@ -32,9 +32,9 @@ namespace AdjustBuildRevision
|
||||
{
|
||||
// Allow for setting build revision on either proms or the roeditor:
|
||||
if (Directory.GetCurrentDirectory().ToUpper().Contains("REFOBJ"))
|
||||
outline = Regex.Replace(line, @"([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)""\)", DateTime.Now.ToString("2.2.yyMM.dHH") + "\")");
|
||||
outline = Regex.Replace(line, @"([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)""\)", DateTime.Now.ToString("2.3.yyMM.dHH") + "\")");
|
||||
else
|
||||
outline = Regex.Replace(line, @"([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)""\)", DateTime.Now.ToString("2.1.yyMM.dHH") + "\")");
|
||||
outline = Regex.Replace(line, @"([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)""\)", DateTime.Now.ToString("2.2.yyMM.dHH") + "\")");
|
||||
// if (outline != line)
|
||||
// {
|
||||
// Console.WriteLine("Before: '{0}'", line);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup></configuration>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/>
|
||||
</startup>
|
||||
<userSettings>
|
||||
<Baseline.Properties.Settings>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Baseline</RootNamespace>
|
||||
<AssemblyName>Baseline</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SccProjectName>
|
||||
</SccProjectName>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>FlexableMessageBox</RootNamespace>
|
||||
<AssemblyName>FlexableMessageBox</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<SccProjectName>
|
||||
|
||||
@@ -241,6 +241,21 @@ namespace JR.Utils.GUI.Forms
|
||||
return FlexibleMessageBoxForm.Show(owner, text, caption, buttons, icon, defaultButton);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shows the specified message box.
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner.</param>
|
||||
/// <param name="text">The text.</param>
|
||||
/// <param name="caption">The caption.</param>
|
||||
/// <param name="buttons">The buttons.</param>
|
||||
/// <param name="icon">The icon.</param>
|
||||
/// <param name="defaultButton">The default button.</param>
|
||||
/// <returns>The dialog result.</returns>
|
||||
public static DialogResult ShowCustom(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
|
||||
{
|
||||
return FlexibleMessageBoxForm.ShowCustom(null, text, caption, buttons, icon);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal form class
|
||||
@@ -420,15 +435,15 @@ namespace JR.Utils.GUI.Forms
|
||||
private static readonly String STANDARD_MESSAGEBOX_SEPARATOR_SPACES = " ";
|
||||
|
||||
//These are the possible buttons (in a standard MessageBox)
|
||||
private enum ButtonID { OK = 0, CANCEL, YES, NO, ABORT, RETRY, IGNORE };
|
||||
|
||||
private enum ButtonID { OK = 0, CANCEL, YES, NO, ABORT, RETRY, IGNORE, OVERWRITE, RENAME };
|
||||
|
||||
//These are the buttons texts for different languages.
|
||||
//If you want to add a new language, add it here and in the GetButtonText-Function
|
||||
private enum TwoLetterISOLanguageID { en, de, es, it };
|
||||
private static readonly String[] BUTTON_TEXTS_ENGLISH_EN = { "OK", "Cancel", "&Yes", "&No", "&Abort", "&Retry", "&Ignore" }; //Note: This is also the fallback language
|
||||
private static readonly String[] BUTTON_TEXTS_GERMAN_DE = { "OK", "Abbrechen", "&Ja", "&Nein", "&Abbrechen", "&Wiederholen", "&Ignorieren" };
|
||||
private static readonly String[] BUTTON_TEXTS_SPANISH_ES = { "Aceptar", "Cancelar", "&Sí", "&No", "&Abortar", "&Reintentar", "&Ignorar" };
|
||||
private static readonly String[] BUTTON_TEXTS_ITALIAN_IT = { "OK", "Annulla", "&Sì", "&No", "&Interrompi", "&Riprova", "&Ignora" };
|
||||
private static readonly String[] BUTTON_TEXTS_ENGLISH_EN = { "OK", "Cancel", "&Yes", "&No", "&Abort", "&Retry", "&Ignore", "&Overwrite", "&Rename" }; //Note: This is also the fallback language
|
||||
private static readonly String[] BUTTON_TEXTS_GERMAN_DE = { "OK", "Abbrechen", "&Ja", "&Nein", "&Abbrechen", "&Wiederholen", "&Ignorieren", "&Overwrite", "&Rename" };
|
||||
private static readonly String[] BUTTON_TEXTS_SPANISH_ES = { "Aceptar", "Cancelar", "&Sí", "&No", "&Abortar", "&Reintentar", "&Ignorar", "&Overwrite", "&Rename" };
|
||||
private static readonly String[] BUTTON_TEXTS_ITALIAN_IT = { "OK", "Annulla", "&Sì", "&No", "&Interrompi", "&Riprova", "&Ignora", "&Overwrite", "&Rename" };
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -693,6 +708,7 @@ namespace JR.Utils.GUI.Forms
|
||||
|
||||
flexibleMessageBoxForm.CancelButton = flexibleMessageBoxForm.button3;
|
||||
break;
|
||||
|
||||
|
||||
case MessageBoxButtons.OK:
|
||||
default:
|
||||
@@ -709,16 +725,38 @@ namespace JR.Utils.GUI.Forms
|
||||
flexibleMessageBoxForm.defaultButton = defaultButton;
|
||||
}
|
||||
|
||||
#endregion
|
||||
private static void SetDialogButtonsCustom(FlexibleMessageBoxForm flexibleMessageBoxForm)
|
||||
{
|
||||
flexibleMessageBoxForm.visibleButtonsCount = 3;
|
||||
|
||||
#region Private event handlers
|
||||
flexibleMessageBoxForm.button1.Visible = true;
|
||||
flexibleMessageBoxForm.button1.Text = flexibleMessageBoxForm.GetButtonText(ButtonID.CANCEL);
|
||||
flexibleMessageBoxForm.button1.DialogResult = DialogResult.Abort;
|
||||
|
||||
/// <summary>
|
||||
/// Handles the Shown event of the FlexibleMessageBoxForm control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
|
||||
private void FlexibleMessageBoxForm_Shown(object sender, EventArgs e)
|
||||
flexibleMessageBoxForm.button2.Visible = true;
|
||||
flexibleMessageBoxForm.button2.Text = flexibleMessageBoxForm.GetButtonText(ButtonID.OVERWRITE);
|
||||
flexibleMessageBoxForm.button2.DialogResult = DialogResult.Retry;
|
||||
|
||||
flexibleMessageBoxForm.button3.Visible = true;
|
||||
flexibleMessageBoxForm.button3.Text = flexibleMessageBoxForm.GetButtonText(ButtonID.RENAME);
|
||||
flexibleMessageBoxForm.button3.DialogResult = DialogResult.Ignore;
|
||||
|
||||
flexibleMessageBoxForm.ControlBox = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private event handlers
|
||||
|
||||
/// <summary>
|
||||
/// Handles the Shown event of the FlexibleMessageBoxForm control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
|
||||
private void FlexibleMessageBoxForm_Shown(object sender, EventArgs e)
|
||||
{
|
||||
int buttonIndexToFocus = 1;
|
||||
Button buttonToFocus;
|
||||
@@ -866,6 +904,46 @@ namespace JR.Utils.GUI.Forms
|
||||
return flexibleMessageBoxForm.ShowDialog(owner);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shows the specified message box.
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner.</param>
|
||||
/// <param name="text">The text.</param>
|
||||
/// <param name="caption">The caption.</param>
|
||||
/// <param name="buttons">The buttons.</param>
|
||||
/// <param name="icon">The icon.</param>
|
||||
/// <param name="defaultButton">The default button.</param>
|
||||
/// <returns>The dialog result.</returns>
|
||||
public static DialogResult ShowCustom(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
|
||||
{
|
||||
//Create a new instance of the FlexibleMessageBox form
|
||||
var flexibleMessageBoxForm = new FlexibleMessageBoxForm();
|
||||
flexibleMessageBoxForm.ShowInTaskbar = false;
|
||||
|
||||
//Bind the caption and the message text
|
||||
flexibleMessageBoxForm.CaptionText = caption;
|
||||
flexibleMessageBoxForm.MessageText = text;
|
||||
flexibleMessageBoxForm.FlexibleMessageBoxFormBindingSource.DataSource = flexibleMessageBoxForm;
|
||||
|
||||
//Set the buttons visibilities and texts. Also set a default button.
|
||||
SetDialogButtonsCustom(flexibleMessageBoxForm);
|
||||
|
||||
//Set the dialogs icon. When no icon is used: Correct placement and width of rich text box.
|
||||
SetDialogIcon(flexibleMessageBoxForm, icon);
|
||||
|
||||
//Set the font for all controls
|
||||
flexibleMessageBoxForm.Font = FONT;
|
||||
flexibleMessageBoxForm.richTextBoxMessage.Font = FONT;
|
||||
|
||||
//Calculate the dialogs start size (Try to auto-size width to show longest text row). Also set the maximum dialog size.
|
||||
SetDialogSizes(flexibleMessageBoxForm, text, caption);
|
||||
|
||||
//Set the dialogs start position when given. Otherwise center the dialog on the current screen.
|
||||
SetDialogStartPosition(flexibleMessageBoxForm, owner);
|
||||
//Show the dialog
|
||||
return flexibleMessageBoxForm.ShowDialog(owner);
|
||||
}
|
||||
|
||||
#endregion
|
||||
} //class FlexibleMessageBoxForm
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
@@ -126,6 +126,7 @@
|
||||
<Content Include="fmtall\BVPSAOPall.xml" />
|
||||
<Content Include="fmtall\BVPSAtchall.xml" />
|
||||
<Content Include="fmtall\BVPSBCKall.xml" />
|
||||
<Content Include="fmtall\BVPSAOPDEVall.xml" />
|
||||
<Content Include="fmtall\BVPSFlexDEVall.xml" />
|
||||
<Content Include="fmtall\BVPSDEVall.xml" />
|
||||
<Content Include="fmtall\BVPSNIBCKall.xml" />
|
||||
@@ -406,6 +407,7 @@
|
||||
<Content Include="genmacall\BVPSAOP.svg" />
|
||||
<Content Include="genmacall\BVPSAtch.svg" />
|
||||
<Content Include="genmacall\BVPSbck.svg" />
|
||||
<Content Include="genmacall\BVPSAOPdev.svg" />
|
||||
<Content Include="genmacall\BVPSFlexdev.svg" />
|
||||
<Content Include="genmacall\BVPSdev.svg" />
|
||||
<Content Include="genmacall\BVPSNIBCK.svg" />
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup></configuration>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
PROMS/Formats/fmtall/BVPSAOPDEVall.xml
Normal file
BIN
PROMS/Formats/fmtall/BVPSAOPDEVall.xml
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
PROMS/Formats/genmacall/BVPSAOPdev.svg
Normal file
BIN
PROMS/Formats/genmacall/BVPSAOPdev.svg
Normal file
Binary file not shown.
Binary file not shown.
@@ -18,7 +18,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup><runtime>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup><runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">
|
||||
</assemblyBinding></runtime></configuration>
|
||||
|
||||
@@ -23,8 +23,8 @@ using System.Runtime.CompilerServices;
|
||||
// Build YYMM (two digit year, two digit month)
|
||||
// Revision DHH (day - no leading zero, two digit hour - military time
|
||||
//
|
||||
[assembly: AssemblyVersion("2.2.2306.2212")]
|
||||
[assembly: AssemblyFileVersion("2.2.2306.2212")]
|
||||
[assembly: AssemblyVersion("2.3.2404.1611")]
|
||||
[assembly: AssemblyFileVersion("2.3.2404.1611")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
@@ -89,6 +89,8 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup><runtime>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup><runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">
|
||||
</assemblyBinding></runtime>
|
||||
<appSettings>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -60,6 +60,6 @@
|
||||
</logger>
|
||||
</log4net>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>RoAccessToSql</RootNamespace>
|
||||
<AssemblyName>RoAccessToSql</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<SccProjectName>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,73 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="VEPROMS.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
<section name="UISampleNetBar1.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
<section name="VEPROMS.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
<section name="UISampleNetBar1.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<log4net>
|
||||
<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
|
||||
<param name="File" value="${USERPROFILE}/My Documents/VEPROMS/ErrorLog.txt" />
|
||||
<param name="File" value="${USERPROFILE}/My Documents/VEPROMS/ErrorLog.txt"/>
|
||||
<!--<param name="File" value="${APPDATA}/Volian/Proms2010/ErrorLog.txt" />-->
|
||||
<!--<param name="File" value="${LOCALAPPDATA}/Temp/VEPROMS/ErrorLog.txt" />-->
|
||||
<param name="AppendToFile" value="true" />
|
||||
<param name="AppendToFile" value="true"/>
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<!--<param name="Header" value="[Header]\r\n" />-->
|
||||
<!--<param name="Footer" value="[Footer]\r\n" />-->
|
||||
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
|
||||
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<conversionPattern value="--> %date [%thread] %-5level %logger (%property{log4net:HostName}) [%ndc] - %message%newline" />
|
||||
<conversionPattern value="--> %date [%thread] %-5level %logger (%property{log4net:HostName}) [%ndc] - %message%newline"/>
|
||||
</layout>
|
||||
</appender>
|
||||
<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
|
||||
<threshold value="WARN" />
|
||||
<threshold value="WARN"/>
|
||||
<mapping>
|
||||
<level value="DEBUG" />
|
||||
<eventLogEntryType value="Information" />
|
||||
<level value="DEBUG"/>
|
||||
<eventLogEntryType value="Information"/>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<level value="INFO" />
|
||||
<eventLogEntryType value="Information" />
|
||||
<level value="INFO"/>
|
||||
<eventLogEntryType value="Information"/>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<level value="WARN" />
|
||||
<eventLogEntryType value="Warning" />
|
||||
<level value="WARN"/>
|
||||
<eventLogEntryType value="Warning"/>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<level value="ERROR" />
|
||||
<eventLogEntryType value="Error" />
|
||||
<level value="ERROR"/>
|
||||
<eventLogEntryType value="Error"/>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<level value="FATAL" />
|
||||
<eventLogEntryType value="Error" />
|
||||
<level value="FATAL"/>
|
||||
<eventLogEntryType value="Error"/>
|
||||
</mapping>
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<param name="ConversionPattern" value="---> %d [%t] %-5p %c - %m%n" />
|
||||
<param name="ConversionPattern" value="---> %d [%t] %-5p %c - %m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
<root>
|
||||
<level value="ALL" />
|
||||
<appender-ref ref="ConsoleAppender" />
|
||||
<appender-ref ref="LogFileAppender" />
|
||||
<appender-ref ref="EventLogAppender" />
|
||||
<level value="ALL"/>
|
||||
<appender-ref ref="ConsoleAppender"/>
|
||||
<appender-ref ref="LogFileAppender"/>
|
||||
<appender-ref ref="EventLogAppender"/>
|
||||
</root>
|
||||
<logger name="VEPROMS.CSLA.Library">
|
||||
<level value="INFO" />
|
||||
<level value="INFO"/>
|
||||
</logger>
|
||||
<logger name="Volian.Controls.Library">
|
||||
<level value="INFO" />
|
||||
<level value="INFO"/>
|
||||
</logger>
|
||||
</log4net>
|
||||
<appSettings>
|
||||
<add key="OperatingMode" value="Production" />
|
||||
<add key="OperatingMode" value="Production"/>
|
||||
<!--"Debug" "Production" "Demo"/-->
|
||||
<add key="OriginalPageBreak" value="False" />
|
||||
<add key="CslaAuthentication" value="Windows" />
|
||||
<add key="OriginalPageBreak" value="False"/>
|
||||
<add key="CslaAuthentication" value="Windows"/>
|
||||
<!--
|
||||
<add key="CslaDataPortalProxy"
|
||||
value="Csla.DataPortalClient.RemotingProxy, Csla"/>
|
||||
@@ -85,17 +85,17 @@
|
||||
value="EnterpriseServicesHost.EnterpriseServicesProxy,
|
||||
EnterpriseServicesHost"/>
|
||||
-->
|
||||
<add key="ClientSettingsProvider.ServiceUri" value="" />
|
||||
<add key="ClientSettingsProvider.ServiceUri" value=""/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="VEPROMS" connectionString="Data Source=VOLIAN-SERVER;User Id=proms2010;password=proms2010;Initial Catalog=VEPROMS" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_LOCAL" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_RMARK_DEBUG" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_RMARK_DEMO" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS" connectionString="Data Source=VOLIAN-SERVER;User Id=proms2010;password=proms2010;Initial Catalog=VEPROMS" providerName="System.Data.SqlClient"/>
|
||||
<add name="VEPROMS_LOCAL" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient"/>
|
||||
<add name="VEPROMS_RMARK_DEBUG" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient"/>
|
||||
<add name="VEPROMS_RMARK_DEMO" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient"/>
|
||||
<!--<add name="VEPROMS_BODINE_DEBUG" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_BODINE_DEMO" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />-->
|
||||
<add name="VEPROMS_BODINE_DEBUG" connectionString="Data Source=JCB2-HP\VOLIAN08;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_BODINE_DEMO" connectionString="Data Source=JCB2-HP\VOLIAN08;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_BODINE_DEBUG" connectionString="Data Source=JCB2-HP\VOLIAN08;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient"/>
|
||||
<add name="VEPROMS_BODINE_DEMO" connectionString="Data Source=JCB2-HP\VOLIAN08;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient"/>
|
||||
<!--<add name="VEPROMS_BODINE_DEBUG" connectionString="Data Source=JCB2-HP\VOLIAN12;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_BODINE_DEMO" connectionString="Data Source=JCB2-HP\VOLIAN12;Initial Catalog={MENU};Integrated Security=True" providerName="System.Data.SqlClient" />-->
|
||||
</connectionStrings>
|
||||
@@ -135,10 +135,10 @@
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="QATItems" serializeAs="String">
|
||||
<value />
|
||||
<value/>
|
||||
</setting>
|
||||
<setting name="DefaultDB" serializeAs="String">
|
||||
<value />
|
||||
<value/>
|
||||
</setting>
|
||||
<setting name="LastVersion" serializeAs="String">
|
||||
<value>0.0</value>
|
||||
@@ -150,10 +150,10 @@
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="SMTPServer" serializeAs="String">
|
||||
<value />
|
||||
<value/>
|
||||
</setting>
|
||||
<setting name="SMTPUser" serializeAs="String">
|
||||
<value />
|
||||
<value/>
|
||||
</setting>
|
||||
<setting name="UpdateSettings" serializeAs="String">
|
||||
<value>True</value>
|
||||
@@ -181,18 +181,22 @@
|
||||
</UISampleNetBar1.Properties.Settings>
|
||||
</userSettings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/>
|
||||
</startup>
|
||||
<runtime>
|
||||
<AppContextSwitchOverrides
|
||||
value="Switch.System.Windows.Forms.DoNotLoadLatestRichEditControl=true" />
|
||||
</runtime>
|
||||
<system.web>
|
||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||
<providers>
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
|
||||
</providers>
|
||||
</membership>
|
||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||
<providers>
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
|
||||
</providers>
|
||||
</roleManager>
|
||||
</system.web>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
||||
@@ -1320,6 +1320,10 @@ namespace VEPROMS
|
||||
if (swtbtnPDFLinks.Value)
|
||||
swtbtnPDFdtPrefixSuffix.Value = false;
|
||||
BuildPDFFileName();
|
||||
// C2024-013: When Create RO & Transition Hyperlinks in pdf is ON, disable the MergePdf
|
||||
// button. The Create RO & Transition Hyperlinks option looks for individual file names
|
||||
// for procedures.
|
||||
btnMergePDFs.Enabled = !swtbtnPDFLinks.Value;
|
||||
}
|
||||
|
||||
// C2019-004: Allow user to define duplex blank page text. The text box for blank page text is always enabled for procedures with
|
||||
|
||||
@@ -22148,6 +22148,495 @@ AS
|
||||
[Folders].[FormatID]=@FormatID
|
||||
|
||||
RETURN
|
||||
GO
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[vesp_ListUnlinkedItems]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [vesp_ListUnlinkedItems];
|
||||
GO
|
||||
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
Copyright 2024 - Volian Enterprises, Inc. All rights reserved.
|
||||
*****************************************************************************/
|
||||
/*
|
||||
==========================================================================================================
|
||||
Author: Kathy Ruffing
|
||||
Create Date: 03/27/2024
|
||||
Description: B2024-018: Gets list of procedures/sections/steps for possible enhanced linking
|
||||
==========================================================================================================
|
||||
*/
|
||||
Create Procedure[dbo].[vesp_ListUnlinkedItems]
|
||||
(
|
||||
@ItemID int,
|
||||
@EnhType int
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
BEGIN
|
||||
DECLARE @ParItemID int
|
||||
DECLARE @EItemID int
|
||||
set @EItemID = (select top 1 VIS.EItemID from vefn_AllSiblingItems(@ItemID)--Find All Siblings
|
||||
outer apply vefn_GetNewEnhancedData(ItemID,@EnhType) VIS -- That are Linked
|
||||
where EitemID is not null)
|
||||
|
||||
if @EItemID is null
|
||||
BEGIN
|
||||
select @EItemID = epp.ItemID
|
||||
from (select * from Parts where ItemID in(select itemID from vefn_AllSiblingItems(@ItemID)))SPP -- FindParent
|
||||
JOIN ITEMS SII ON sPP.ContentID = sII.ContentID -- Get Parent Content ID
|
||||
outer apply vefn_GetNewEnhancedData(SII.ItemID,@EnhType) VIS -- Get Enhanced ID for Parent
|
||||
JOIN ITEMS EII ON VIS.EItemID = EII.ItemID -- Get Enhanced Parent Content ID
|
||||
JOIN PARTS EPP ON EPP.ContentID = EII.ContentID and SPP.FromType = epp.FromType -- Get first Child
|
||||
END
|
||||
if @EItemID is null -- B2024-018: If not found at the current level, check at the parent level
|
||||
BEGIN
|
||||
|
||||
select @ParItemID = dbo.ve_getparentitem(@ItemID)
|
||||
select @EItemID = epp.ItemID
|
||||
from (select * from Parts where ItemID in(select itemID from vefn_AllSiblingItems(@ParItemID)))SPP -- FindParent
|
||||
JOIN ITEMS SII ON sPP.ContentID = sII.ContentID -- Get Parent Content ID
|
||||
outer apply vefn_GetNewEnhancedData(SII.ItemID,@EnhType) VIS -- Get Enhanced ID for Parent
|
||||
JOIN ITEMS EII ON VIS.EItemID = EII.ItemID -- Get Enhanced Parent Content ID
|
||||
JOIN PARTS EPP ON EPP.ContentID = EII.ContentID --and SPP.FromType = epp.FromType (had to remove types may be proc/sect)
|
||||
|
||||
END
|
||||
if @EItemID is null
|
||||
BEGIN
|
||||
select @EItemID = DV2.ItemID from (select *,cast(config as xml) xconfig from DocVersions
|
||||
where ItemID in(select itemID from vefn_AllSiblingItems(@ItemID))) SDV -- Source DocVersion
|
||||
cross apply (select * from vefn_GetEnhancedDocVersions(SDV.VersionID) where @EnhType = Type) EDV -- Enhanced DocVersion
|
||||
Join DocVersions DV2 ON DV2.VersionID = EDV.VersionID -- First Procedure
|
||||
END
|
||||
Select ItemID,PreviousID,II.ContentID,II.[DTS],II.[UserID],II.[LastChanged],
|
||||
(SELECT COUNT(*) FROM [Annotations] WHERE [Annotations].[ItemID]=[II].[ItemID]) [AnnotationCount],
|
||||
(SELECT COUNT(*) FROM [DocVersions] WHERE [DocVersions].[ItemID]=[II].[ItemID]) [DocVersionCount],
|
||||
(SELECT COUNT(*) FROM [Items] [Children] WHERE [Children].[PreviousID]=[II].[ItemID]) [NextCount],
|
||||
(SELECT COUNT(*) FROM [Parts] WHERE [Parts].[ItemID]=[II].[ItemID]) [PartCount],
|
||||
(SELECT COUNT(*) FROM [Transitions] WHERE [Transitions].[RangeID]=[II].[ItemID]) [Transition_RangeIDCount],
|
||||
(SELECT COUNT(*) FROM [Transitions] WHERE [Transitions].[ToID]=[II].[ItemID]) [Transition_ToIDCount]
|
||||
from Items II
|
||||
Left Join Entries EE ON II.ContentID = EE.ContentID
|
||||
where ItemID In (select SIB.ItemID from vefn_AllSiblingItems(@EItemID) SIB
|
||||
outer apply vefn_GetNewEnhancedData(ItemID,0) VIE
|
||||
Where VIE.EItemID is null)
|
||||
and EE.ContentID is null
|
||||
END
|
||||
Go
|
||||
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [vesp_ListUnlinkedItems] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [vesp_ListUnlinkedItems] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
/*
|
||||
==========================================================================================================
|
||||
Begin: C2024-004: KL - Update Copy Replace functionality, (remove ''copy of'')
|
||||
==========================================================================================================
|
||||
*/
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[CopyItemAndChildren]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [CopyItemAndChildren];
|
||||
GO
|
||||
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
Copyright 2024 - Volian Enterprises, Inc. All rights reserved.
|
||||
*****************************************************************************/
|
||||
/*
|
||||
==========================================================================================================
|
||||
Author: Kevin Laskey
|
||||
Modified Date: 07/09/2024
|
||||
Description: Copy Item and its Children
|
||||
==========================================================================================================
|
||||
*/
|
||||
CREATE PROCEDURE [dbo].[CopyItemAndChildren]
|
||||
(
|
||||
@StartItemID INT,
|
||||
@DestFormatID INT,
|
||||
@UserID NVARCHAR(100),
|
||||
@NewStartItemID int output
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
BEGIN TRY -- Try Block
|
||||
|
||||
--+-----------------------------------------------------------------+
|
||||
--& BEGIN TRANSACTION to make these changes temporary &
|
||||
--+-----------------------------------------------------------------+
|
||||
BEGIN TRANSACTION
|
||||
if exists (select * from tblitems where itemid = @StartItemID and DeleteStatus !=0)
|
||||
BEGIN
|
||||
RAISERROR ('###Cannot Paste Step###This step has been deleted',16,1)
|
||||
RETURN
|
||||
END
|
||||
DECLARE @Children AS TABLE
|
||||
(
|
||||
ItemID INT PRIMARY KEY,
|
||||
NewItemID INT,
|
||||
ContentID INT,
|
||||
NewContentID INT,
|
||||
FormatID INT,
|
||||
NewFormatID INT
|
||||
)
|
||||
DECLARE @NewDocuments AS TABLE
|
||||
(
|
||||
DocID INT PRIMARY KEY,
|
||||
NewDocID INT
|
||||
)
|
||||
-- Locals
|
||||
DECLARE @DTS DATETIME -- DTS of all New Items
|
||||
DECLARE @StartContentID INT
|
||||
Select @StartContentID = ContentID from Items where ItemID = @StartItemID
|
||||
SET @DTS = GETDATE() -- Get the current Date and Time
|
||||
-- Get a list of all of the Items to be copied based upon StartItemID and EndItemID
|
||||
-- If the StartItemID = EndItemID then it is a single item and it's children
|
||||
INSERT INTO @Children SELECT ItemID,ItemID,ContentID,ContentID,FormatID,FormatID FROM vefn_ChildItemsRange(@StartItemID,@StartItemID,null)
|
||||
-- <<< Copy Contents >>>
|
||||
-- Create new content rows to match the existing rows. Set the type to the Current ContentID temporarily
|
||||
-- so that the new content rows can be associated with the existing content rows.
|
||||
-- Rem 'Copy Of ' + before first [Number] for C2024-004 (KL)
|
||||
INSERT INTO Contents
|
||||
([Number],[Text],[Type],[FormatID],[Config],[DTS],[UserID])
|
||||
select CASE when [ContentID] = @StartContentID and [Type]<20000 then [Number] else [Number] end,
|
||||
[Text],[ContentID],[FormatID],[Config],@DTS,@UserID
|
||||
from Contents where ContentID in(Select ContentID from @Children)
|
||||
-- Update the @Children with the NewConentIDs
|
||||
--print 'A ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE NN set NN.NewContentID = CC.ContentID
|
||||
From Contents CC
|
||||
Join @Children NN on NN.ContentID = CC.Type AND CC.DTS = @DTS and CC.UserID = @UserID
|
||||
-- Reset the Type column in the Contents table with the Type column from the original Records.
|
||||
--print 'B ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
DECLARE @SourceType INT
|
||||
Select @SourceType = Type from Contents where ContentID = @StartContentID
|
||||
if @SourceType = 0
|
||||
BEGIN
|
||||
UPDATE CC set CC.Type = CC2.Type, CC.DTS = CC2.DTS, CC.UserID = CC2.UserID
|
||||
From Contents CC
|
||||
Join @Children NN on NN.NewContentID = CC.ContentID
|
||||
Join Contents CC2 on NN.ContentID = CC2.ContentID
|
||||
END
|
||||
else
|
||||
BEGIN
|
||||
UPDATE CC set CC.Type = CC2.Type
|
||||
From Contents CC
|
||||
Join @Children NN on NN.NewContentID = CC.ContentID
|
||||
Join Contents CC2 on NN.ContentID = CC2.ContentID
|
||||
END
|
||||
--print 'B1 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Contents are done
|
||||
-- SELECT * From Contents where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Grids >>>
|
||||
INSERT INTO [Grids]([ContentID],[Data],[Config],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],[Data],[Config],@DTS,@UserID
|
||||
FROM [Grids] GG Join @Children NN on GG.ContentID = NN.ContentID
|
||||
-- <<< Copy Images >>>
|
||||
--print 'B2 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
INSERT INTO [Images]([ContentID],[ImageType],[FileName],[Data],[Config],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],[ImageType],[FileName],[Data],[Config],@DTS,@UserID
|
||||
FROM [Images] II Join @Children NN on II.ContentID = NN.ContentID
|
||||
-- Create new item rows based upon the current item rows and the @Children table, with the NewContentIDs
|
||||
--print 'B3 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
INSERT INTO [Items] ([PreviousID],[ContentID],[DTS],[UserID])
|
||||
SELECT II.[PreviousID], -- Leave the PreviousID as is for now
|
||||
NN.NewContentID, @DTS, @UserID
|
||||
from @Children NN
|
||||
join Items II on II.ContentID = NN.ContentID
|
||||
-- Update the @Children with the NewItemIDs
|
||||
--print 'B4 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE NN set NN.NewItemID = II.ItemID
|
||||
From Items II
|
||||
Join @Children NN on NN.NewContentID = II.ContentID AND II.DTS = @DTS and II.UserID = @UserID
|
||||
DECLARE @NewItemID int
|
||||
SELECT @NewItemID = NewItemID
|
||||
FROM @Children
|
||||
WHERE ItemID = @StartItemID
|
||||
--print 'B5 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE NN SET NN.[NewFormatID] = CC.[FormatID]
|
||||
FROM @Children NN
|
||||
Join vefn_ChildItemsRange(@NewItemID,@NewItemID,@DestFormatID) CC
|
||||
ON NN.NewItemID = CC.ItemID
|
||||
-- The @Children table is now complete
|
||||
--SELECT * From @Children
|
||||
-- Update the PreviousID in the new Item rows, to the new ItemIDs based upon the old ItemIDs
|
||||
--print 'B6 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
Update II Set II.[PreviousID] = NN.NewItemID
|
||||
from Items II
|
||||
Join @Children NN on NN.ItemID = II.PreviousID AND II.DTS = @DTS and II.UserID = @UserID
|
||||
-- Get the new ItemIDs based upon the old ItemIDs
|
||||
SELECT @NewStartItemID = NewItemID from @Children where ItemID = @StartItemID
|
||||
--SELECT @NewEndItemID = NewItemID from @Children where ItemID = @EndItemID
|
||||
-- Set the PreviousID for the starting Item to null temporarily.
|
||||
-- This will be adjusted based upon where the step is inserted.
|
||||
--print 'B7 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
Update Items Set PreviousID = null where ItemID = @NewStartItemID
|
||||
if @SourceType = 0
|
||||
BEGIN
|
||||
UPDATE II SET II.DTS = II2.DTS, II.UserID = II2.UserID
|
||||
From Items II
|
||||
Join @Children NN on NN.NewItemID = II.ItemID
|
||||
Join Items II2 on NN.ItemID = II2.ItemID
|
||||
WHERE NN.ItemID = @StartItemID
|
||||
END
|
||||
--print 'C ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Items are done
|
||||
--SELECT * From Items where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Parts >>>
|
||||
INSERT INTO [Parts] ([ContentID],[FromType],[ItemID],[DTS],[UserID])
|
||||
Select NNF.NewContentID,[FromType],NNT.NewItemID, @DTS, @UserID from Parts PP
|
||||
JOIN @Children NNF on PP.ContentID = NNF.ContentID
|
||||
JOIN @Children NNT on PP.ItemID = NNT.ItemID
|
||||
--print 'D ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Parts are done
|
||||
-- SELECT * From Parts where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Annotations >>>
|
||||
INSERT INTO [Annotations] ([ItemID],[TypeID],[RtfText],[SearchText],[Config],[DTS],[UserID])
|
||||
Select NewItemID, TypeID, RtfText, SearchText, Config, @DTS, @UserID
|
||||
from Annotations AA Join @Children NN on AA.ItemID = NN.ItemID
|
||||
--print 'E ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Annotations are done
|
||||
-- SELECT * From Annotations where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Documents and Entries>>>
|
||||
-- logic to create Entries for Library Documents
|
||||
INSERT INTO [Entries] ([ContentID],[DocID],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],EE.[DocID],@DTS,@UserID
|
||||
FROM [Entries] EE JOIN @Children NN on NN.ContentID = EE.ContentID
|
||||
JOIN [Documents] DD on EE.[DocID] = DD.[DocID] and Isnull(LibTitle,'') <> ''
|
||||
-- Logic to create new documents for any documents used that do not have libtitles
|
||||
INSERT INTO [Documents] ([LibTitle],[DocContent],[DocAscii],[Config],[DTS],[UserID],[FileExtension])
|
||||
OUTPUT CAST(INSERTED.[LibTitle] as INT),INSERTED.[DocID] INTO @NewDocuments
|
||||
SELECT str(DD.[DocID]),[DocContent],[DocAscii],[Config],@DTS,@UserID,[FileExtension]
|
||||
FROM [Entries] EE JOIN @Children NN on NN.ContentID = EE.ContentID
|
||||
JOIN [Documents] DD on EE.[DocID] = DD.[DocID] and Isnull(LibTitle,'') = ''
|
||||
UPDATE DD SET LibTitle = ''
|
||||
FROM Documents DD JOIN @NewDocuments ND on DD.[DocID] = ND.[NewDocID]
|
||||
where DTS = @DTS and UserID = @UserID
|
||||
--print 'F ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Documents are Done
|
||||
-- SELECT * From Documents where DTS = @DTS and UserID = @UserID
|
||||
-- Logic to create entries for these newly created documents
|
||||
INSERT INTO [Entries] ([ContentID],[DocID],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],ND.[NewDocID],@DTS,@UserID
|
||||
FROM [Entries] EE JOIN @Children NN on NN.ContentID = EE.ContentID
|
||||
JOIN @NewDocuments ND on EE.[DocID] = ND.[DocID]
|
||||
-- Logic to Create DROUsages for these newly created documents
|
||||
INSERT INTO [DROUsages] ([DocID],[ROID],[Config],[DTS],[UserID],[RODbID])
|
||||
SELECT ND.[NewDocID],[ROID],[Config],@DTS,@UserID,[RODbID]
|
||||
FROM [DROUsages] RR
|
||||
JOIN @NewDocuments ND on RR.[DocID] = ND.[DocID]
|
||||
|
||||
--print 'G ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Entries are done
|
||||
-- SELECT * From Entries EE JOIN Documents DD on ee.DocID = DD.DocID where EE.DTS = @DTS and EE.UserID = @UserID
|
||||
-- <<< Copy RoUsages >>>
|
||||
INSERT INTO [RoUsages] ([ContentID],[ROID],[Config],[DTS],[UserID],[RODbID])
|
||||
SELECT NN.[NewContentID],CAST([ROUsageID] as nvarchar(16)),[Config],@DTS,@UserID,[RODbID]
|
||||
FROM [RoUsages] RR Join @Children NN on RR.ContentID = NN.ContentID
|
||||
-- Update content records for newly copied records to use correct RO usage ids in the RO tags
|
||||
DECLARE @RowsAffected int
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE CC SET [TEXT] = C2.NewText
|
||||
FROM CONTENTS CC
|
||||
JOIN (SELECT C1.ContentID, .dbo.vefn_FixROText(C1.Text, CAST([ROID] as int), [ROUsageID]) NewText
|
||||
FROM CONTENTS C1
|
||||
JOIN @Children NN on C1.ContentID = NN.NewContentID
|
||||
JOIN RoUsages RO on NN.NewContentID = RO.ContentID where Len([ROID]) < 12) C2 ON CC.ContentID = C2.ContentID
|
||||
WHERE [TEXT] <> C2.NewText
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
-- Update grid records for newly copied records to use correct RO usage ids in the RO tags
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE GG SET [Data] = G2.NewData
|
||||
FROM GRIDS GG
|
||||
JOIN (SELECT G1.ContentID, .dbo.vefn_FixROData(G1.Data, CAST([ROID] as int), [ROUsageID]) NewData
|
||||
FROM GRIDS G1
|
||||
JOIN @Children NN on G1.ContentID = NN.NewContentID
|
||||
JOIN RoUsages RO on NN.NewContentID = RO.ContentID where Len([ROID]) < 12) G2 ON GG.ContentID = G2.ContentID
|
||||
WHERE Cast([Data] as nvarchar(max)) <> cast(G2.NewData as nvarchar(max))
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
UPDATE RON SET [ROID] = ROO.[ROID]
|
||||
FROM RoUsages RON
|
||||
JOIN @Children NN on RON.ContentID = NN.NewContentID
|
||||
JOIN RoUsages ROO on CAST(RON.ROID as int) = ROO.RoUsageID
|
||||
where Len(RON.[ROID]) < 12
|
||||
--print 'H ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- RoUsages are done
|
||||
-- SELECT * From RoUsages where DTS = @DTS and UserID = @UserID
|
||||
|
||||
-- <<< Copy Transtions >>>
|
||||
-- Note that the inserted record has the 'TranType' field set to old transitionid. This is done
|
||||
-- so that the next step can replace the old transitionid with the new transitionid in the
|
||||
-- content record's transition tokens. The TranType gets reset after the content records are
|
||||
-- updated.
|
||||
-- Also note that the 'toid/rangeid' may need converted to newly copied ids or may not. If it's
|
||||
-- not a range, then it always is converted to new, if there is a new. If it's a range, both
|
||||
-- the toid & the rangeid must be new in order for the conversion to be correct. You cannot
|
||||
-- have part of the range pointing to the new and part of the range pointing to the original
|
||||
-- locations.
|
||||
|
||||
INSERT INTO .[dbo].[Transitions] ([FromID],[ToID],[RangeID],[IsRange],[TranType],[Config],[DTS],[UserID])
|
||||
SELECT NNF.[NewContentID],
|
||||
-- if both toid & range are null, use the original toid & rangeid
|
||||
CASE WHEN NNT.[NewItemID] is null or NNR.[NewItemID] is null THEN [ToID] ELSE NNT.[NewItemID] END,
|
||||
CASE WHEN NNT.[NewItemID] is null or NNR.[NewItemID] is null THEN [RangeID] ELSE NNR.[NewItemID] END,
|
||||
[IsRange],[TransitionID],[Config],@DTS,@UserID
|
||||
FROM .[dbo].[Transitions] TT
|
||||
JOIN @Children NNF on TT.[FromID] = NNF.[ContentID]
|
||||
LEFT JOIN @Children NNT on TT.[ToID] = NNT.[ItemID]
|
||||
LEFT JOIN @Children NNR on TT.[RangeID] = NNR.[ItemID]
|
||||
--print 'H1 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- -- Update content records for newly copied records to use correct TransitionIDs in the Transition tags
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE CC SET [TEXT] = C2.NewText
|
||||
FROM CONTENTS CC
|
||||
JOIN (SELECT C1.ContentID, .dbo.vefn_FixTransitionTextForCopy(C1.Text, TRO.TransitionID, TRO.TranType, TRO.[ToID], TRO.[RangeID],TR.[TransitionID], TR.[ToID], TR.[RangeID], .dbo.vefn_GetNewTranType(NN.FormatID, NN.NewFormatID, TRO.TranType)) NewText
|
||||
FROM CONTENTS C1
|
||||
JOIN @Children NN on C1.ContentID = NN.NewContentID
|
||||
JOIN Transitions TR on NN.NewContentID = TR.FromID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID) C2 ON CC.ContentID = C2.ContentID
|
||||
WHERE [TEXT] <> C2.NewText
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
--print 'H2 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--set nocount off
|
||||
-- -- Update grid records for newly copied records to use correct TransitionIDs in the Transition tags
|
||||
declare @grids table
|
||||
(
|
||||
contentid int primary key,
|
||||
data xml
|
||||
)
|
||||
insert into @grids select gg.contentid,gg.data from GRIDS GG
|
||||
where gg.contentid in (select nn.newcontentid from
|
||||
@Children NN
|
||||
JOIN Transitions TR on NN.NewContentID = TR.FromID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID)
|
||||
--print 'H2.1 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--select * from @grids
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE GG SET [DATA] = G2.NewData
|
||||
FROM @GRIDS GG
|
||||
JOIN (SELECT G1.ContentID, .dbo.vefn_FixTransitionDataForCopy(G1.Data, TRO.TransitionID, TRO.TranType, TRO.[ToID], TRO.[RangeID],TR.[TransitionID], TR.[ToID], TR.[RangeID], .dbo.vefn_GetNewTranType(NN.FormatID, NN.NewFormatID, TRO.TranType)) NewData
|
||||
FROM @GRIDS G1
|
||||
JOIN @Children NN on G1.ContentID = NN.NewContentID
|
||||
JOIN Transitions TR on NN.NewContentID = TR.FromID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID) G2 ON GG.ContentID = G2.ContentID
|
||||
WHERE Cast([DATA] as nvarchar(max)) <> CAST(G2.NewData as nvarchar(max))
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
--print 'H2.2 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
update GG set data = g1.data from Grids gg join @grids g1 on gg.contentid = g1.contentid
|
||||
--print 'H3 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--set nocount on
|
||||
-- Add 'Verification Required' AnnotationType
|
||||
DECLARE @typeID int
|
||||
SELECT @typeID = TypeID from AnnotationTypes where Name = 'Verification Required'
|
||||
IF(@typeID IS NULL)
|
||||
BEGIN
|
||||
INSERT INTO [AnnotationTypes] ([Name],[UserID]) VALUES ('Verification Required','Volian')
|
||||
SELECT @typeID = SCOPE_IDENTITY()
|
||||
END
|
||||
-- Add "Verification Required" Annotation for each Transition whose transition format changes
|
||||
INSERT INTO [Annotations] ([ItemID],[TypeID],[SearchText],[UserID])
|
||||
SELECT NN.NewItemID, @typeID,'Verify Transition Format',@UserID
|
||||
FROM Transitions TR
|
||||
JOIN @Children NN on TR.FromID = NN.NewContentID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID
|
||||
WHERE .dbo.vefn_CompareTranFormat(NN.FormatID, NN.NewFormatID, TRO.TranType) <> 0
|
||||
--print 'H4 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE TR SET TR.[TranType] = .dbo.vefn_GetNewTranType(NN.FormatID, NN.NewFormatID, TRO.TranType)
|
||||
FROM Transitions TR
|
||||
JOIN @Children NN on TR.FromID = NN.NewContentID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID
|
||||
--print 'H5 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Transitions are done
|
||||
-- SELECT * From Transitions where DTS = @DTS and UserID = @UserID
|
||||
--print 'Z ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--foldouts fixing code
|
||||
if exists (select * from contents where contentid in (select newcontentid from @children) and config like '%FloatingFoldout%')
|
||||
begin
|
||||
--insert into #mytemp
|
||||
select cc.contentid,xsteps.value('@FloatingFoldout','int') oldfoldoutid,(select newitemid
|
||||
from @children
|
||||
where itemid = xsteps.value('@FloatingFoldout','int')) newfoldoutid,xconfig
|
||||
into #mytemp
|
||||
from (select *,cast(config as xml) xconfig from contents where contentid in (select newcontentid from @children)) cc
|
||||
cross apply xconfig.nodes('Config/Step') tsteps(xsteps)
|
||||
--build @cmd string
|
||||
declare @cmd nvarchar(max)
|
||||
declare cmds cursor for
|
||||
select distinct 'update #mytemp set xconfig.modify(''replace value of (Config/Step/@FloatingFoldout)[1] with "'
|
||||
+ cast(newfoldoutid as varchar(10))
|
||||
+ '"'') where xconfig.value(''(Config/Step/@FloatingFoldout)[1]'',''int'') = '
|
||||
+ cast(oldfoldoutid as varchar(10))
|
||||
from #mytemp
|
||||
--execute cursor over rows
|
||||
open cmds
|
||||
fetch next from cmds into @cmd
|
||||
while @@fetch_status = 0
|
||||
begin
|
||||
exec sp_executesql @cmd
|
||||
fetch next from cmds into @cmd
|
||||
end
|
||||
close cmds
|
||||
deallocate cmds
|
||||
--actually update contents
|
||||
update cc set config = cast(xconfig as varchar(max)) from contents cc join #mytemp mt on cc.contentid = mt.contentid
|
||||
--get rid of #mytemp
|
||||
drop table #mytemp
|
||||
end
|
||||
--end foldouts fixing code
|
||||
--section start
|
||||
DECLARE @NewContentID int
|
||||
Select @NewContentID = NewContentID from @Children where ItemID = @StartItemID
|
||||
DECLARE @Config varchar(max)
|
||||
DECLARE @XConfig xml
|
||||
select @Config = config from contents where contentid = @NewContentID
|
||||
select @XConfig = cast(@Config as xml)
|
||||
if @Config like '%SectionStart%' begin
|
||||
DECLARE @SectionStart int
|
||||
select @SectionStart = xproc.value('@SectionStart','int') from @xconfig.nodes('Config/Procedure') tproc(xproc)
|
||||
DECLARE @NewSectionStart int
|
||||
select @NewSectionStart = newitemid from @children where itemid = @SectionStart
|
||||
DECLARE @cmd2 nvarchar(max)
|
||||
set @cmd2 = '
|
||||
declare @XConfig xml;
|
||||
set @XConfig = cast(''' + @Config + ''' as xml);
|
||||
set @XConfig.modify(''replace value of (Config/Procedure/@SectionStart)[1] with "' + cast(@NewSectionStart as nvarchar(10)) + '"'');
|
||||
update contents set config = cast(@XConfig as varchar(max)) where contentid = ' + cast(@NewContentID as nvarchar(10)) + ';'
|
||||
exec sp_executesql @cmd2
|
||||
end
|
||||
--end section start
|
||||
IF( @@TRANCOUNT > 0 ) COMMIT
|
||||
END TRY
|
||||
BEGIN CATCH -- Catch Block
|
||||
IF( @@TRANCOUNT = 1 ) ROLLBACK -- Only rollback if top level
|
||||
ELSE IF( @@TRANCOUNT > 1 ) COMMIT -- Otherwise commit. Top level will rollback
|
||||
EXEC vlnErrorHandler
|
||||
END CATCH
|
||||
|
||||
Go
|
||||
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [CopyItemAndChildren] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [CopyItemAndChildren] Error on Creation'
|
||||
GO
|
||||
|
||||
/*
|
||||
==========================================================================================================
|
||||
End: C2024-004: KL - Update Copy Replace functionality, (remove ''copy of'')
|
||||
==========================================================================================================
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
@@ -22184,8 +22673,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '10/03/2023 11:00 AM'
|
||||
set @RevDescription = 'C2023-017: Added logic to filter the format list when selecting a format to be applied to a section'
|
||||
set @RevDate = '07/09/2024 9:00 AM'
|
||||
set @RevDescription = 'C2024-004: Update Copy Replace functionality'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,92 +0,0 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("PROMS")]
|
||||
[assembly: AssemblyDescription("Create, Edit, and Maintain Procedures Sets.")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Volian Enterprises, Inc.")]
|
||||
[assembly: AssemblyProduct("PROMS")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2012. All Rights Reserved.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("2ffeb031-bf85-4153-baa2-2d4da2fd5556")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build YYMM (two digit year, two digit month)
|
||||
// Revision DHH (day - no leading zero, two digit hour - military time
|
||||
//
|
||||
[assembly: AssemblyVersion("11.6.1205.316")]
|
||||
[assembly: AssemblyFileVersion("11.6.1205.316")]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2
PROMS/VEPROMS User Interface/VEPROMS.gclicx
Normal file
2
PROMS/VEPROMS User Interface/VEPROMS.gclicx
Normal file
@@ -0,0 +1,2 @@
|
||||
da3d5d14-691f-4908-aa3c-fd3239734232;-8584908724854775808;VkVQUk9NUy5leGU=;ZGEzZDVkMTQtNjkxZi00OTA4LWFhM2MtZmQzMjM5NzM0MjMy,MjQyNzYxODZYWFhYWFhYWDAzNg,Sk9ITi1XSU4xMA,RmFsc2U,ODg0Mw,RmFsc2U,MA,MA,djIwMjQuMQ,,;PxeAWRi6mhDqvUMfJhk9Tniu/8ZnOLQv64hLh05xWM+MPyBs3yYfs3vEn5TLW779QNr1k8F6tV3gOAoLG+JSPZoG3NXmdTe6LJya05W+zWyb0H+jj2ReXN2dNR9fbZNDd3ClAeuzNpsM0pw62aYpOe2Tp6fx9gOFx1/0g8g4/8g
|
||||
da3d5d14-691f-4908-aa3c-fd3239734232;-8584865524854775808;VkVQUk9NUy5leGU=;ZGEzZDVkMTQtNjkxZi00OTA4LWFhM2MtZmQzMjM5NzM0MjMy,NjE5MDczODdYWFhYWFhYWDA1Mw,Q0hSSVM,RmFsc2U,ODg5NA,RmFsc2U,MA,MA,djIwMjQuMQ,,;luo/kWHt4XRAYR+3s8m8QoRagBcvXLv0mHvCYU2VCIeACFord4tdtTGmSUvmGhEmUiAd7YvaTlDlFrlni6CWaVlxa1mdbWuWsNVUkRnyJZ8kOAt1A+3SGfHecCsqotTW7apXjwW5qXLZ/fcgutioe7xaXgniFQysshTdUWt26T8
|
||||
@@ -19,7 +19,7 @@
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
@@ -99,12 +99,7 @@
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="C1.Win.C1FlexGrid.2, Version=2.0.20162.188, Culture=neutral, PublicKeyToken=79882d576c6336da, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="C1.Win.C1SpellChecker.2, Version=2.0.20162.188, Culture=neutral, PublicKeyToken=79882d576c6336da, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="C1.Win.C1FlexGrid.2, Version=2.0.20213.532, Culture=neutral, PublicKeyToken=79882d576c6336da, processorArchitecture=MSIL" />
|
||||
<Reference Include="Csla">
|
||||
<HintPath>..\..\..\..\3rdPartyLibraries\CSLA\Csla.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -139,6 +134,7 @@
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="UIAutomationProvider" />
|
||||
<Reference Include="VEPROMS.CSLA.Library, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\VEPROMS.CSLA.Library\bin\Debug\VEPROMS.CSLA.Library.dll</HintPath>
|
||||
@@ -427,6 +423,7 @@
|
||||
<Compile Include="VlnWeb.Designer.cs">
|
||||
<DependentUpon>VlnWeb.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="VEPROMS.gclicx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Separator.png" />
|
||||
|
||||
@@ -99,6 +99,10 @@ namespace VEPROMS
|
||||
MyProcedure = procedureInfo;
|
||||
InitializeComponent();
|
||||
this.Text = mode + " Dialog for " + procedureInfo.DisplayNumber;
|
||||
|
||||
//Preset path for single procedures.
|
||||
PEIPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\PEI_" + Database.VEPROMS_SqlConnection.Database;
|
||||
txtExport.Text = string.Format(@"{0}\{1}.pxml", PEIPath, MyProcedure.DisplayNumber.Replace("/", "_").Replace("\\", "_"));
|
||||
}
|
||||
private void dlgExportImport_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -172,6 +176,7 @@ namespace VEPROMS
|
||||
}
|
||||
else if (MyProcedure != null)
|
||||
{
|
||||
txtExport.Enabled = true;
|
||||
txtExport.Text = string.Format(@"{0}\{1}.pxml", PEIPath, MyProcedure.DisplayNumber.Replace("/", "_").Replace("\\", "_"));
|
||||
}
|
||||
}
|
||||
@@ -190,6 +195,8 @@ namespace VEPROMS
|
||||
private bool successfullExport = true;
|
||||
private void btnDoExport_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
btnExport.Enabled = false;
|
||||
string msg = "Finished Exporting:\n\n";
|
||||
if (_MyMode.ToUpper().Contains("FORMAT"))
|
||||
@@ -220,6 +227,42 @@ namespace VEPROMS
|
||||
}
|
||||
else if (MyProcedure != null)
|
||||
{
|
||||
var fileLocation = txtExport.Text;
|
||||
if (File.Exists(fileLocation))
|
||||
{ // C2022-029 if an existing export of the same name is found, provide option to overwrite it
|
||||
DialogResult ovewriteEx = FlexibleMessageBox.ShowCustom(null, "There is already another export file with the same name. You can choose to either overwrite the existing file or have the existing file renamed with the original creation date appended.\r\n\r\nSelecting 'Cancel' will cancel the export.", "What would you like to do?", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);// == DialogResult.Yes;
|
||||
|
||||
// Extract directory, filename, and extension
|
||||
string directory = Path.GetDirectoryName(fileLocation);
|
||||
string filename = Path.GetFileNameWithoutExtension(fileLocation);
|
||||
string extension = Path.GetExtension(fileLocation);
|
||||
fileLocation = $"{directory}\\{filename}{extension}";
|
||||
|
||||
if (ovewriteEx == DialogResult.Abort)
|
||||
{
|
||||
MessageBox.Show("Export has been cancelled", "You have chosen to cancel the export.", MessageBoxButtons.OK, MessageBoxIcon.Information); // C2020-042 changed mesage box title
|
||||
btnCloseExport.Enabled = true;
|
||||
return;
|
||||
}
|
||||
else if (ovewriteEx == DialogResult.Retry)
|
||||
{
|
||||
//Overwrite will occur, set msg.
|
||||
msg = "The export file has been overwritten. ";
|
||||
}
|
||||
else if (ovewriteEx == DialogResult.Ignore)
|
||||
{
|
||||
// Get the modified date of the existing file, create a datestamp for use in name, set newlocation to move to
|
||||
DateTime modifiedDate = File.GetLastWriteTime(fileLocation);
|
||||
string datestamp = modifiedDate.ToString("yyyyMMddHHmmss");
|
||||
string newFileLocation = $"{directory}\\{filename}_{datestamp}{extension}";
|
||||
|
||||
//Move and set msg.
|
||||
File.Move(fileLocation, newFileLocation);
|
||||
msg = "The previous export has been renamed, the export file has been created. ";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
MyStart = DateTime.Now;
|
||||
btnDoExport.Enabled = false;
|
||||
@@ -230,7 +273,7 @@ namespace VEPROMS
|
||||
XmlElement xe = xd.CreateElement("formats");
|
||||
xd.DocumentElement.AppendChild(xe);
|
||||
ExportFormats(FormatInfoList.GetFormatInfoListUsed(), xe, "formats", false);
|
||||
xd.Save(txtExport.Text);
|
||||
xd.Save(fileLocation);
|
||||
TimeSpan elapsed = DateTime.Now.Subtract(MyStart);
|
||||
lblExportStatus.Text = "Export Completed in " + elapsed.ToString();
|
||||
this.Cursor = Cursors.Default;
|
||||
@@ -706,7 +749,7 @@ namespace VEPROMS
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FlexibleMessageBox.Show("The import failed, check the error log for more information.", "Import Failed", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show(null, "The import failed, check the error log for more information.", "Import Failed", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
_MyLog.Warn("Failure During Import", ex);
|
||||
}
|
||||
return false;
|
||||
@@ -4173,7 +4216,19 @@ namespace VEPROMS
|
||||
|
||||
if (glookFor != greplaceWith)
|
||||
{
|
||||
content.MyGrid.Data = content.MyGrid.Data.Replace(glookFor, greplaceWith);
|
||||
// B2024-011: For unit RO in grid, old grid data had the ROID in the #Link:ReferencedObject ending in '0000'
|
||||
// so when compared with the newer format "0041" it was not found and not replaced with updated rousageid
|
||||
bool hasNewROID = (content.MyGrid.Data.Contains(glookFor));
|
||||
if (hasNewROID)
|
||||
content.MyGrid.Data = content.MyGrid.Data.Replace(glookFor, greplaceWith);
|
||||
else if (!hasNewROID && glookFor.Contains("0041") && glookFor.Contains("FFFF"))
|
||||
{
|
||||
string newGlookFor = glookFor;
|
||||
newGlookFor = newGlookFor.Replace("0041", "0000");
|
||||
if (content.MyGrid.Data.Contains(newGlookFor))
|
||||
content.MyGrid.Data = content.MyGrid.Data.Replace(newGlookFor, greplaceWith);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -400,6 +400,7 @@ namespace VEPROMS
|
||||
this.pnlImport.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Location = new System.Drawing.Point(165, 111);
|
||||
this.btnCancel.Location = new System.Drawing.Point(179, 111);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(64, 23);
|
||||
this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
@@ -88,7 +88,7 @@
|
||||
this.dateTimeInput1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.dateTimeInput1.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown;
|
||||
this.dateTimeInput1.ButtonDropDown.Visible = true;
|
||||
this.dateTimeInput1.CustomFormat = "MM/dd/yyyy";
|
||||
this.dateTimeInput1.CustomFormat = "MM/dd/yyyy HH:mm:ss";
|
||||
this.dateTimeInput1.DateTimeSelectorVisibility = DevComponents.Editors.DateTimeAdv.eDateTimeSelectorVisibility.DateSelector;
|
||||
this.dateTimeInput1.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
|
||||
this.dateTimeInput1.IsPopupCalendarOpen = false;
|
||||
@@ -122,7 +122,7 @@
|
||||
this.dateTimeInput1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.dateTimeInput1.MonthCalendar.TodayButtonVisible = true;
|
||||
this.dateTimeInput1.Name = "dateTimeInput1";
|
||||
this.dateTimeInput1.Size = new System.Drawing.Size(113, 20);
|
||||
this.dateTimeInput1.Size = new System.Drawing.Size(146, 20);
|
||||
this.dateTimeInput1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.dateTimeInput1, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bar Start Date", "", "Only the changes made after this date will have change bars.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(138, 67)));
|
||||
this.dateTimeInput1.TabIndex = 4;
|
||||
@@ -133,7 +133,7 @@
|
||||
//
|
||||
this.btnNow.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnNow.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnNow.Location = new System.Drawing.Point(149, 51);
|
||||
this.btnNow.Location = new System.Drawing.Point(182, 51);
|
||||
this.btnNow.Name = "btnNow";
|
||||
this.btnNow.Size = new System.Drawing.Size(49, 23);
|
||||
this.btnNow.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
@@ -146,7 +146,7 @@
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(241, 144);
|
||||
this.ClientSize = new System.Drawing.Size(268, 144);
|
||||
this.Controls.Add(this.btnNow);
|
||||
this.Controls.Add(this.dateTimeInput1);
|
||||
this.Controls.Add(this.label1);
|
||||
|
||||
@@ -32,13 +32,46 @@ namespace VEPROMS
|
||||
{
|
||||
string cbdt = MyProcConfig.Print_ChangeBarDate;
|
||||
string[] tmp = cbdt.Split(' ');
|
||||
cbdt = tmp[0] + " 00:00:00";
|
||||
dateTimeInput1.Value = (cbdt == null || cbdt == "") ? DateTime.Now : DateTime.Parse(cbdt);
|
||||
|
||||
if (tmp[0] == null || tmp[0] == "") // First time date set.
|
||||
{
|
||||
cbdt = DateTime.Now.ToString("MM/dd/yyyy") + " " + DateTime.Now.ToString("HH:mm:ss");
|
||||
dateTimeInput1.Value = DateTime.Parse(cbdt);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
DateTime tmpdt = DateTime.Parse(cbdt);
|
||||
if (tmpdt.Date == DateTime.Today) // Date has before been set.
|
||||
{
|
||||
TimeSpan start = TimeSpan.Parse("00:00:00");
|
||||
|
||||
var time = tmpdt.TimeOfDay;
|
||||
if (start < time) // If time is greater than 12:00:00 AM
|
||||
{
|
||||
cbdt = DateTime.Now.ToString("MM/dd/yyyy") + " " + tmpdt.TimeOfDay.ToString();
|
||||
dateTimeInput1.Value = DateTime.Parse(cbdt);
|
||||
return;
|
||||
}
|
||||
else // if time is 12:00:00 AM
|
||||
{
|
||||
cbdt = DateTime.Now.ToString("MM/dd/yyyy") + " " + " 00:00:00";
|
||||
dateTimeInput1.Value = DateTime.Parse(cbdt);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cbdt = tmpdt.ToString();
|
||||
dateTimeInput1.Value = DateTime.Parse(cbdt);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
MyProcConfig.Print_ChangeBarDate = dateTimeInput1.Value.ToString("MM/dd/yyyy 00:00:00");// ("MM/dd/yyyy HH:mm:ss");
|
||||
MyProcConfig.Print_ChangeBarDate = dateTimeInput1.Value.ToString("MM/dd/yyyy HH:mm:ss");// ("MM/dd/yyyy HH:mm:ss");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -112,12 +112,12 @@
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
26
PROMS/VEPROMS User Interface/frmVEPROMS.Designer.cs
generated
26
PROMS/VEPROMS User Interface/frmVEPROMS.Designer.cs
generated
@@ -45,7 +45,6 @@ namespace VEPROMS
|
||||
this.itemContainer3 = new DevComponents.DotNetBar.ItemContainer();
|
||||
this.btnNew = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.btnOpen = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.btnPrint = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.btnPrepare = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.btnAdmin = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.btnUpdateFormats = new DevComponents.DotNetBar.ButtonItem();
|
||||
@@ -68,6 +67,7 @@ namespace VEPROMS
|
||||
this.cbScrunch = new System.Windows.Forms.CheckBox();
|
||||
this.btnNext = new System.Windows.Forms.Button();
|
||||
this.cmbFont = new System.Windows.Forms.ComboBox();
|
||||
this.lblDummy = new System.Windows.Forms.Label();
|
||||
this.labelItem10 = new DevComponents.DotNetBar.LabelItem();
|
||||
this.bottomProgBar = new DevComponents.DotNetBar.ProgressBarItem();
|
||||
this.labelItem9 = new DevComponents.DotNetBar.LabelItem();
|
||||
@@ -338,7 +338,6 @@ namespace VEPROMS
|
||||
this.itemContainer3.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
|
||||
this.btnNew,
|
||||
this.btnOpen,
|
||||
this.btnPrint,
|
||||
this.btnPrepare,
|
||||
this.btnAdmin});
|
||||
//
|
||||
@@ -364,16 +363,7 @@ namespace VEPROMS
|
||||
this.btnOpen.SubItemsExpandWidth = 24;
|
||||
this.btnOpen.Text = "&Open...";
|
||||
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
|
||||
//
|
||||
// btnPrint
|
||||
//
|
||||
this.btnPrint.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
|
||||
this.btnPrint.Enabled = false;
|
||||
this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
|
||||
this.btnPrint.Name = "btnPrint";
|
||||
this.btnPrint.SubItemsExpandWidth = 24;
|
||||
this.btnPrint.Text = "Create &PDF";
|
||||
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
|
||||
|
||||
//
|
||||
// btnPrepare
|
||||
//
|
||||
@@ -514,6 +504,7 @@ namespace VEPROMS
|
||||
this.bottomBar.Controls.Add(this.cbScrunch);
|
||||
this.bottomBar.Controls.Add(this.btnNext);
|
||||
this.bottomBar.Controls.Add(this.cmbFont);
|
||||
this.bottomBar.Controls.Add(this.lblDummy);
|
||||
this.bottomBar.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bottomBar.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||
this.bottomBar.IsMaximized = false;
|
||||
@@ -601,6 +592,15 @@ namespace VEPROMS
|
||||
this.cmbFont.TabIndex = 0;
|
||||
this.cmbFont.SelectedIndexChanged += new System.EventHandler(this.cmbFont_SelectedIndexChanged);
|
||||
//
|
||||
// lblDummy
|
||||
//
|
||||
this.lblDummy.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.lblDummy.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
|
||||
this.lblDummy.Location = new System.Drawing.Point(1013, 0);
|
||||
this.lblDummy.Name = "lblDummy";
|
||||
this.lblDummy.Size = new System.Drawing.Size(10, 25);
|
||||
this.lblDummy.Visible = false;
|
||||
//
|
||||
// labelItem10
|
||||
//
|
||||
this.labelItem10.BorderSide = DevComponents.DotNetBar.eBorderSide.Left;
|
||||
@@ -1635,7 +1635,6 @@ namespace VEPROMS
|
||||
private DevComponents.DotNetBar.ButtonItem btnNew;
|
||||
private DevComponents.DotNetBar.ButtonItem btnOpen;
|
||||
private DevComponents.DotNetBar.ButtonItem btnPrepare;
|
||||
private DevComponents.DotNetBar.ButtonItem btnPrint;
|
||||
private DevComponents.DotNetBar.ItemContainer icRecentDocs;
|
||||
private DevComponents.DotNetBar.LabelItem labelItem8;
|
||||
private DevComponents.DotNetBar.ItemContainer itemContainer5;
|
||||
@@ -1732,6 +1731,7 @@ namespace VEPROMS
|
||||
private DevComponents.DotNetBar.ButtonItem btnShortCuts;
|
||||
private DevComponents.DotNetBar.LabelItem lblItemID;
|
||||
private System.Windows.Forms.ComboBox cmbFont;
|
||||
private System.Windows.Forms.Label lblDummy;
|
||||
private DevComponents.DotNetBar.LabelItem lblResolution;
|
||||
private DevComponents.DotNetBar.LabelItem lblUser;
|
||||
private DevComponents.DotNetBar.LabelItem lblLastChange;
|
||||
|
||||
@@ -2098,7 +2098,6 @@ namespace VEPROMS
|
||||
btnAdministrativeTools.Click += new EventHandler(btnAdministrativeTools_Click);
|
||||
btnAdmin.SubItems.Add(btnAdministrativeTools);
|
||||
|
||||
this.superTooltip1.SetSuperTooltip(btnPrint, new SuperTooltipInfo("Create PDF", null, null, null, null, eTooltipColor.Gray));
|
||||
this.superTooltip1.SetSuperTooltip(btnExit, new SuperTooltipInfo("Exit", null, null, null, null, eTooltipColor.Gray));
|
||||
this.superTooltip1.SetSuperTooltip(btnOptions, new SuperTooltipInfo("Options", null, null, null, null, eTooltipColor.Gray));
|
||||
this.superTooltip1.SetSuperTooltip(btnManageSecurity, new SuperTooltipInfo("Manage Security", null, null, null, null, eTooltipColor.Gray));
|
||||
@@ -3126,22 +3125,44 @@ namespace VEPROMS
|
||||
if (dvi != null)
|
||||
{
|
||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(dvi, true);
|
||||
if (dvi.MultiUnitCount == 0) prnDlg.SelectedSlave = -1;
|
||||
if (dvi.MultiUnitCount == 0)
|
||||
{
|
||||
prnDlg.SelectedSlave = -1;
|
||||
}
|
||||
else if (dvi.MultiUnitCount > 0)
|
||||
{
|
||||
string[] arguments = Environment.GetCommandLineArgs();
|
||||
for (int i = 0; i < arguments.Length; i++)
|
||||
{
|
||||
if (arguments[i].Contains("/C="))
|
||||
{
|
||||
Console.WriteLine("In arguments loop");
|
||||
//int num;
|
||||
string[] childarg = arguments[i].Split('=');
|
||||
if (int.TryParse(childarg[1], out int num))
|
||||
{
|
||||
prnDlg.SelectedSlave = num;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
prnDlg.AllowDateTimePrefixSuffix = false; //C2018-033 don't append any selected date/time pdf file prefix or suffix (defined in working draft properties)
|
||||
prnDlg.ShowDialog(this); // RHM 20120925 - Center dialog over PROMS window
|
||||
//prnDlg.FormClosed += new FormClosedEventHandler(prnDlg_FormClosed);
|
||||
//while (!_RunNext) Application.DoEvents();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
ranAuto = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ranAuto)
|
||||
{
|
||||
this.Close();
|
||||
if (ranAuto)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3202,6 +3223,14 @@ namespace VEPROMS
|
||||
txtSearch.Visible = false;
|
||||
lblLastChange.Visible = false;
|
||||
btnStepRTF.Visible = false;
|
||||
lblDummy.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// C2024-007: On Proms main form, allow for control of whether the FontMenu
|
||||
// combo box is displayed. Only done when running in debugmode
|
||||
cmbFont.Visible = Volian.Base.Library.VlnSettings.GetCommandFlag("FontMenu");
|
||||
lblDummy.Visible = !Volian.Base.Library.VlnSettings.GetCommandFlag("FontMenu");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4084,10 +4113,6 @@ namespace VEPROMS
|
||||
|
||||
lblUser.Text = tc.SelectedDisplayTabItem.MyUserRole;
|
||||
|
||||
if (tc.SelectedDisplayTabItem.MyItemInfo.MyDocVersion.MultiUnitCount > 1)
|
||||
btnPrint.Visible = false;
|
||||
else
|
||||
btnPrint.Visible = true;
|
||||
|
||||
// Reset the ribbon buttons B2016-148 (ex. a copystep done in a different procedure tab my require the paste step options to be active
|
||||
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.MyStepTabPanel != null) // MyStepTabPanel will be null if the active tab is a Word Attachment
|
||||
@@ -4342,7 +4367,6 @@ namespace VEPROMS
|
||||
ctrlAnnotationDetails.UpdateAnnotationGrid(_CurrentItem); // set the CurrentItem (send Message) when the MSWord section is opened.
|
||||
}
|
||||
|
||||
btnPrint.Enabled = (_CurrentItem != null);
|
||||
}
|
||||
|
||||
void _LastStepRTB_EditModeChanged(object sender, EventArgs args)
|
||||
@@ -4834,12 +4858,7 @@ namespace VEPROMS
|
||||
StepRTB.MyFontFamily = cmbFont.SelectedValue as FontFamily;
|
||||
}
|
||||
|
||||
private void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(this._CurrentItem.MyProcedure);
|
||||
prnDlg.MySessionInfo = MySessionInfo;
|
||||
prnDlg.ShowDialog(this); // RHM 20120925 - Center dialog over PROMS window
|
||||
}
|
||||
|
||||
|
||||
private void lblResolution_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace VEPROMS
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmVersionsProperties));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.ppBtnCancel = new System.Windows.Forms.Button();
|
||||
this.ppBtnOK = new System.Windows.Forms.Button();
|
||||
this.ppBtnDefaultChgBar = new DevComponents.DotNetBar.ButtonX();
|
||||
@@ -95,17 +95,14 @@ namespace VEPROMS
|
||||
this.ppLblDefSettingsInfo = new System.Windows.Forms.Label();
|
||||
this.dlgROFolder = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.tcVersions = new DevComponents.DotNetBar.TabControl();
|
||||
this.tcpGeneral = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.tiGeneral = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tcpRefereceObjects = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppBtnRoToSql = new System.Windows.Forms.Button();
|
||||
this.tbRoDb = new System.Windows.Forms.TextBox();
|
||||
this.ppBtnRoDbBrowse = new System.Windows.Forms.Button();
|
||||
this.btnRoDbProperties = new DevComponents.DotNetBar.ButtonX();
|
||||
this.cmbRoDb = new System.Windows.Forms.ComboBox();
|
||||
this.ppGpbxUpROvals = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.tiRefObjs = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.gpxMOSLandLocation = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.ppCmbxMOSLandcornerLoc = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.tbxMOSLandyloc = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.tbxMOSLandxloc = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.lblMOSLandcorner = new System.Windows.Forms.Label();
|
||||
this.lblMOSLandyloc = new System.Windows.Forms.Label();
|
||||
this.lblMOSLandxloc = new System.Windows.Forms.Label();
|
||||
this.ppChbxMOSview = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.gpxMOSLocation = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.ppCmbxMOScornerLoc = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
@@ -124,6 +121,16 @@ namespace VEPROMS
|
||||
this.ppCmbxMOSformat = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.lblMOSformat = new System.Windows.Forms.Label();
|
||||
this.tiMergedOutputSettings = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tcpGeneral = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.tiGeneral = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tcpRefereceObjects = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppBtnRoToSql = new System.Windows.Forms.Button();
|
||||
this.tbRoDb = new System.Windows.Forms.TextBox();
|
||||
this.ppBtnRoDbBrowse = new System.Windows.Forms.Button();
|
||||
this.btnRoDbProperties = new DevComponents.DotNetBar.ButtonX();
|
||||
this.cmbRoDb = new System.Windows.Forms.ComboBox();
|
||||
this.ppGpbxUpROvals = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.tiRefObjs = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.ppChbxEnhancedAllowMods = new System.Windows.Forms.CheckBox();
|
||||
this.btnUnlinkDocVersion = new System.Windows.Forms.Button();
|
||||
@@ -210,25 +217,19 @@ namespace VEPROMS
|
||||
this.ROPrefixBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.PDFLocationBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.formatInfoListBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.gpxMOSLandLocation = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.ppCmbxMOSLandcornerLoc = new DevComponents.DotNetBar.Controls.ComboBoxEx();
|
||||
this.tbxMOSLandyloc = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.tbxMOSLandxloc = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.lblMOSLandcorner = new System.Windows.Forms.Label();
|
||||
this.lblMOSLandyloc = new System.Windows.Forms.Label();
|
||||
this.lblMOSLandxloc = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.imageCodecInfoBindingSource)).BeginInit();
|
||||
this.ppGpbxUserSpecCB.SuspendLayout();
|
||||
this.ppGpbxUserSpecTxt.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tcVersions)).BeginInit();
|
||||
this.tcVersions.SuspendLayout();
|
||||
this.tabControlPanel2.SuspendLayout();
|
||||
this.gpxMOSLandLocation.SuspendLayout();
|
||||
this.gpxMOSLocation.SuspendLayout();
|
||||
this.gpxMOSfont.SuspendLayout();
|
||||
this.tcpGeneral.SuspendLayout();
|
||||
this.tcpRefereceObjects.SuspendLayout();
|
||||
this.ppGpbxUpROvals.SuspendLayout();
|
||||
this.tabControlPanel2.SuspendLayout();
|
||||
this.gpxMOSLocation.SuspendLayout();
|
||||
this.gpxMOSfont.SuspendLayout();
|
||||
this.tabControlPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsMiniEnhanced)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsEnhanced)).BeginInit();
|
||||
@@ -247,14 +248,13 @@ namespace VEPROMS
|
||||
this.panVerBtns.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.ROPrefixBindingSource)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).BeginInit();
|
||||
this.gpxMOSLandLocation.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ppBtnCancel
|
||||
//
|
||||
this.ppBtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ppBtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.ppBtnCancel.Location = new System.Drawing.Point(742, 342);
|
||||
this.ppBtnCancel.Location = new System.Drawing.Point(742, 338);
|
||||
this.ppBtnCancel.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppBtnCancel.Name = "ppBtnCancel";
|
||||
this.ppBtnCancel.Size = new System.Drawing.Size(56, 21);
|
||||
@@ -266,7 +266,7 @@ namespace VEPROMS
|
||||
// ppBtnOK
|
||||
//
|
||||
this.ppBtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.ppBtnOK.Location = new System.Drawing.Point(669, 342);
|
||||
this.ppBtnOK.Location = new System.Drawing.Point(669, 338);
|
||||
this.ppBtnOK.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppBtnOK.Name = "ppBtnOK";
|
||||
this.ppBtnOK.Size = new System.Drawing.Size(56, 21);
|
||||
@@ -1102,9 +1102,9 @@ namespace VEPROMS
|
||||
this.tcVersions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tcVersions.BackColor = System.Drawing.Color.Transparent;
|
||||
this.tcVersions.CanReorderTabs = true;
|
||||
this.tcVersions.Controls.Add(this.tabControlPanel2);
|
||||
this.tcVersions.Controls.Add(this.tcpGeneral);
|
||||
this.tcVersions.Controls.Add(this.tcpRefereceObjects);
|
||||
this.tcVersions.Controls.Add(this.tcpGeneral);
|
||||
this.tcVersions.Controls.Add(this.tabControlPanel2);
|
||||
this.tcVersions.Controls.Add(this.tabControlPanel1);
|
||||
this.tcVersions.Controls.Add(this.tcpApplicability);
|
||||
this.tcVersions.Controls.Add(this.tabControlPanel5);
|
||||
@@ -1130,173 +1130,6 @@ namespace VEPROMS
|
||||
this.tcVersions.TabsVisible = false;
|
||||
this.tcVersions.Text = "tabControl1";
|
||||
//
|
||||
// tcpGeneral
|
||||
//
|
||||
this.tcpGeneral.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.tcpGeneral.Controls.Add(this.ppCmbxProcSetType);
|
||||
this.tcpGeneral.Controls.Add(this.ppRTxtName);
|
||||
this.tcpGeneral.Controls.Add(this.label9);
|
||||
this.tcpGeneral.Controls.Add(this.ppRTxtProcSetRev);
|
||||
this.tcpGeneral.Controls.Add(this.lblProcSetRev);
|
||||
this.tcpGeneral.Controls.Add(this.label4);
|
||||
this.tcpGeneral.Controls.Add(this.label3);
|
||||
this.tcpGeneral.Controls.Add(this.ppRTxtTitle);
|
||||
this.tcpGeneral.Controls.Add(this.ppTxtBxUserID);
|
||||
this.tcpGeneral.Controls.Add(this.ppDTPicker);
|
||||
this.tcpGeneral.Controls.Add(this.label2);
|
||||
this.tcpGeneral.Controls.Add(this.label1);
|
||||
this.tcpGeneral.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tcpGeneral.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcpGeneral.Location = new System.Drawing.Point(0, 22);
|
||||
this.tcpGeneral.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tcpGeneral.Name = "tcpGeneral";
|
||||
this.tcpGeneral.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.tcpGeneral.Size = new System.Drawing.Size(625, 311);
|
||||
this.tcpGeneral.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tcpGeneral.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tcpGeneral.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tcpGeneral.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tcpGeneral.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tcpGeneral.Style.GradientAngle = 90;
|
||||
this.tcpGeneral.TabIndex = 1;
|
||||
this.tcpGeneral.TabItem = this.tiGeneral;
|
||||
//
|
||||
// tiGeneral
|
||||
//
|
||||
this.tiGeneral.AttachedControl = this.tcpGeneral;
|
||||
this.tiGeneral.Name = "tiGeneral";
|
||||
this.tiGeneral.Text = "General";
|
||||
//
|
||||
// tcpRefereceObjects
|
||||
//
|
||||
this.tcpRefereceObjects.Controls.Add(this.ppBtnRoToSql);
|
||||
this.tcpRefereceObjects.Controls.Add(this.tbRoDb);
|
||||
this.tcpRefereceObjects.Controls.Add(this.ppBtnRoDbBrowse);
|
||||
this.tcpRefereceObjects.Controls.Add(this.btnRoDbProperties);
|
||||
this.tcpRefereceObjects.Controls.Add(this.cmbRoDb);
|
||||
this.tcpRefereceObjects.Controls.Add(this.ppGpbxUpROvals);
|
||||
this.tcpRefereceObjects.Controls.Add(this.label6);
|
||||
this.tcpRefereceObjects.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tcpRefereceObjects.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcpRefereceObjects.Location = new System.Drawing.Point(0, 22);
|
||||
this.tcpRefereceObjects.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tcpRefereceObjects.Name = "tcpRefereceObjects";
|
||||
this.tcpRefereceObjects.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.tcpRefereceObjects.Size = new System.Drawing.Size(625, 311);
|
||||
this.tcpRefereceObjects.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tcpRefereceObjects.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tcpRefereceObjects.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tcpRefereceObjects.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tcpRefereceObjects.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tcpRefereceObjects.Style.GradientAngle = 90;
|
||||
this.tcpRefereceObjects.TabIndex = 2;
|
||||
this.tcpRefereceObjects.TabItem = this.tiRefObjs;
|
||||
this.tcpRefereceObjects.Enter += new System.EventHandler(this.tabpage_Enter);
|
||||
//
|
||||
// ppBtnRoToSql
|
||||
//
|
||||
this.ppBtnRoToSql.Location = new System.Drawing.Point(337, 146);
|
||||
this.ppBtnRoToSql.Name = "ppBtnRoToSql";
|
||||
this.ppBtnRoToSql.Size = new System.Drawing.Size(163, 46);
|
||||
this.ppBtnRoToSql.TabIndex = 48;
|
||||
this.ppBtnRoToSql.Text = "Migrate Data to Sql";
|
||||
this.ppBtnRoToSql.UseVisualStyleBackColor = true;
|
||||
this.ppBtnRoToSql.Visible = false;
|
||||
this.ppBtnRoToSql.Click += new System.EventHandler(this.ppBtnRoToSql_Click);
|
||||
//
|
||||
// tbRoDb
|
||||
//
|
||||
this.tbRoDb.Enabled = false;
|
||||
this.tbRoDb.Location = new System.Drawing.Point(80, 13);
|
||||
this.tbRoDb.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tbRoDb.Name = "tbRoDb";
|
||||
this.tbRoDb.Size = new System.Drawing.Size(318, 20);
|
||||
this.tbRoDb.TabIndex = 20;
|
||||
//
|
||||
// ppBtnRoDbBrowse
|
||||
//
|
||||
this.ppBtnRoDbBrowse.Location = new System.Drawing.Point(406, 34);
|
||||
this.ppBtnRoDbBrowse.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppBtnRoDbBrowse.Name = "ppBtnRoDbBrowse";
|
||||
this.ppBtnRoDbBrowse.Size = new System.Drawing.Size(51, 20);
|
||||
this.ppBtnRoDbBrowse.TabIndex = 22;
|
||||
this.ppBtnRoDbBrowse.Text = "Browse...";
|
||||
this.ppBtnRoDbBrowse.UseVisualStyleBackColor = true;
|
||||
this.ppBtnRoDbBrowse.Click += new System.EventHandler(this.ppBtnRoDbBrowse_Click);
|
||||
//
|
||||
// btnRoDbProperties
|
||||
//
|
||||
this.btnRoDbProperties.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnRoDbProperties.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnRoDbProperties.Image = ((System.Drawing.Image)(resources.GetObject("btnRoDbProperties.Image")));
|
||||
this.btnRoDbProperties.Location = new System.Drawing.Point(406, 10);
|
||||
this.btnRoDbProperties.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnRoDbProperties.Name = "btnRoDbProperties";
|
||||
this.btnRoDbProperties.Size = new System.Drawing.Size(33, 23);
|
||||
this.btnRoDbProperties.TabIndex = 21;
|
||||
this.btnRoDbProperties.Click += new System.EventHandler(this.btnRoDbProperties_Click);
|
||||
//
|
||||
// cmbRoDb
|
||||
//
|
||||
this.cmbRoDb.FormattingEnabled = true;
|
||||
this.cmbRoDb.Location = new System.Drawing.Point(80, 13);
|
||||
this.cmbRoDb.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.cmbRoDb.Name = "cmbRoDb";
|
||||
this.cmbRoDb.Size = new System.Drawing.Size(318, 21);
|
||||
this.cmbRoDb.TabIndex = 47;
|
||||
this.cmbRoDb.SelectedIndexChanged += new System.EventHandler(this.cmbRoDb_SelectedIndexChanged);
|
||||
//
|
||||
// ppGpbxUpROvals
|
||||
//
|
||||
this.ppGpbxUpROvals.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ppGpbxUpROvals.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.ppGpbxUpROvals.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.ppGpbxUpROvals.Controls.Add(this.ppBtnResetRoVals);
|
||||
this.ppGpbxUpROvals.Controls.Add(this.ppBtnUpRoVals);
|
||||
this.ppGpbxUpROvals.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.ppGpbxUpROvals.Location = new System.Drawing.Point(34, 69);
|
||||
this.ppGpbxUpROvals.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppGpbxUpROvals.Name = "ppGpbxUpROvals";
|
||||
this.ppGpbxUpROvals.Size = new System.Drawing.Size(112, 162);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxUpROvals.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.ppGpbxUpROvals.Style.BackColorGradientAngle = 90;
|
||||
this.ppGpbxUpROvals.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.ppGpbxUpROvals.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderBottomWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.ppGpbxUpROvals.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderLeftWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderRightWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderTopWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.CornerDiameter = 4;
|
||||
this.ppGpbxUpROvals.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.ppGpbxUpROvals.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.ppGpbxUpROvals.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.ppGpbxUpROvals.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxUpROvals.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxUpROvals.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.ppGpbxUpROvals.TabIndex = 46;
|
||||
this.ppGpbxUpROvals.Text = "RO Values";
|
||||
//
|
||||
// tiRefObjs
|
||||
//
|
||||
this.tiRefObjs.AttachedControl = this.tcpRefereceObjects;
|
||||
this.tiRefObjs.Name = "tiRefObjs";
|
||||
this.tiRefObjs.Text = "Referenced Objects";
|
||||
//
|
||||
// tabControlPanel2
|
||||
//
|
||||
this.tabControlPanel2.Controls.Add(this.gpxMOSLandLocation);
|
||||
@@ -1324,6 +1157,128 @@ namespace VEPROMS
|
||||
this.tabControlPanel2.TabIndex = 30;
|
||||
this.tabControlPanel2.TabItem = this.tiMergedOutputSettings;
|
||||
//
|
||||
// gpxMOSLandLocation
|
||||
//
|
||||
this.gpxMOSLandLocation.BackColor = System.Drawing.Color.Transparent;
|
||||
this.gpxMOSLandLocation.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.gpxMOSLandLocation.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.gpxMOSLandLocation.Controls.Add(this.ppCmbxMOSLandcornerLoc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.tbxMOSLandyloc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.tbxMOSLandxloc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.lblMOSLandcorner);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.lblMOSLandyloc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.lblMOSLandxloc);
|
||||
this.gpxMOSLandLocation.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.gpxMOSLandLocation.Location = new System.Drawing.Point(284, 164);
|
||||
this.gpxMOSLandLocation.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.gpxMOSLandLocation.Name = "gpxMOSLandLocation";
|
||||
this.gpxMOSLandLocation.Size = new System.Drawing.Size(209, 98);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpxMOSLandLocation.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.gpxMOSLandLocation.Style.BackColorGradientAngle = 90;
|
||||
this.gpxMOSLandLocation.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.gpxMOSLandLocation.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderBottomWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.gpxMOSLandLocation.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderLeftWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderRightWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderTopWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.CornerDiameter = 4;
|
||||
this.gpxMOSLandLocation.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.gpxMOSLandLocation.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.gpxMOSLandLocation.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.gpxMOSLandLocation.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpxMOSLandLocation.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpxMOSLandLocation.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.gpxMOSLandLocation.TabIndex = 7;
|
||||
this.gpxMOSLandLocation.Text = "Landscape Location";
|
||||
//
|
||||
// ppCmbxMOSLandcornerLoc
|
||||
//
|
||||
this.ppCmbxMOSLandcornerLoc.DisplayMember = "Text";
|
||||
this.ppCmbxMOSLandcornerLoc.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||
this.ppCmbxMOSLandcornerLoc.FormattingEnabled = true;
|
||||
this.ppCmbxMOSLandcornerLoc.ItemHeight = 16;
|
||||
this.ppCmbxMOSLandcornerLoc.Location = new System.Drawing.Point(59, 53);
|
||||
this.ppCmbxMOSLandcornerLoc.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppCmbxMOSLandcornerLoc.Name = "ppCmbxMOSLandcornerLoc";
|
||||
this.ppCmbxMOSLandcornerLoc.Size = new System.Drawing.Size(144, 22);
|
||||
this.ppCmbxMOSLandcornerLoc.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.ppCmbxMOSLandcornerLoc.TabIndex = 9;
|
||||
this.ppCmbxMOSLandcornerLoc.WatermarkText = "corner location";
|
||||
//
|
||||
// tbxMOSLandyloc
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.tbxMOSLandyloc.Border.Class = "TextBoxBorder";
|
||||
this.tbxMOSLandyloc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.tbxMOSLandyloc.Location = new System.Drawing.Point(62, 30);
|
||||
this.tbxMOSLandyloc.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tbxMOSLandyloc.Name = "tbxMOSLandyloc";
|
||||
this.tbxMOSLandyloc.PreventEnterBeep = true;
|
||||
this.tbxMOSLandyloc.Size = new System.Drawing.Size(75, 20);
|
||||
this.tbxMOSLandyloc.TabIndex = 8;
|
||||
//
|
||||
// tbxMOSLandxloc
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.tbxMOSLandxloc.Border.Class = "TextBoxBorder";
|
||||
this.tbxMOSLandxloc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.tbxMOSLandxloc.Location = new System.Drawing.Point(62, 10);
|
||||
this.tbxMOSLandxloc.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tbxMOSLandxloc.Name = "tbxMOSLandxloc";
|
||||
this.tbxMOSLandxloc.PreventEnterBeep = true;
|
||||
this.tbxMOSLandxloc.Size = new System.Drawing.Size(75, 20);
|
||||
this.tbxMOSLandxloc.TabIndex = 7;
|
||||
//
|
||||
// lblMOSLandcorner
|
||||
//
|
||||
this.lblMOSLandcorner.AutoSize = true;
|
||||
this.lblMOSLandcorner.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMOSLandcorner.Location = new System.Drawing.Point(14, 54);
|
||||
this.lblMOSLandcorner.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.lblMOSLandcorner.Name = "lblMOSLandcorner";
|
||||
this.lblMOSLandcorner.Size = new System.Drawing.Size(41, 13);
|
||||
this.lblMOSLandcorner.TabIndex = 6;
|
||||
this.lblMOSLandcorner.Text = "Corner:";
|
||||
//
|
||||
// lblMOSLandyloc
|
||||
//
|
||||
this.lblMOSLandyloc.AutoSize = true;
|
||||
this.lblMOSLandyloc.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMOSLandyloc.Location = new System.Drawing.Point(14, 32);
|
||||
this.lblMOSLandyloc.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.lblMOSLandyloc.Name = "lblMOSLandyloc";
|
||||
this.lblMOSLandyloc.Size = new System.Drawing.Size(34, 13);
|
||||
this.lblMOSLandyloc.TabIndex = 5;
|
||||
this.lblMOSLandyloc.Text = "Y (in):";
|
||||
//
|
||||
// lblMOSLandxloc
|
||||
//
|
||||
this.lblMOSLandxloc.AutoSize = true;
|
||||
this.lblMOSLandxloc.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMOSLandxloc.Location = new System.Drawing.Point(14, 10);
|
||||
this.lblMOSLandxloc.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.lblMOSLandxloc.Name = "lblMOSLandxloc";
|
||||
this.lblMOSLandxloc.Size = new System.Drawing.Size(34, 13);
|
||||
this.lblMOSLandxloc.TabIndex = 4;
|
||||
this.lblMOSLandxloc.Text = "X (in):";
|
||||
//
|
||||
// ppChbxMOSview
|
||||
//
|
||||
this.ppChbxMOSview.BackColor = System.Drawing.Color.Transparent;
|
||||
@@ -1613,6 +1568,174 @@ namespace VEPROMS
|
||||
this.tiMergedOutputSettings.Name = "tiMergedOutputSettings";
|
||||
this.tiMergedOutputSettings.Text = "Merged Output Settings";
|
||||
//
|
||||
// tcpGeneral
|
||||
//
|
||||
this.tcpGeneral.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.tcpGeneral.Controls.Add(this.ppCmbxProcSetType);
|
||||
this.tcpGeneral.Controls.Add(this.ppRTxtName);
|
||||
this.tcpGeneral.Controls.Add(this.label9);
|
||||
this.tcpGeneral.Controls.Add(this.ppRTxtProcSetRev);
|
||||
this.tcpGeneral.Controls.Add(this.lblProcSetRev);
|
||||
this.tcpGeneral.Controls.Add(this.label4);
|
||||
this.tcpGeneral.Controls.Add(this.label3);
|
||||
this.tcpGeneral.Controls.Add(this.ppRTxtTitle);
|
||||
this.tcpGeneral.Controls.Add(this.ppTxtBxUserID);
|
||||
this.tcpGeneral.Controls.Add(this.ppDTPicker);
|
||||
this.tcpGeneral.Controls.Add(this.label2);
|
||||
this.tcpGeneral.Controls.Add(this.label1);
|
||||
this.tcpGeneral.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tcpGeneral.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcpGeneral.Location = new System.Drawing.Point(0, 22);
|
||||
this.tcpGeneral.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tcpGeneral.Name = "tcpGeneral";
|
||||
this.tcpGeneral.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.tcpGeneral.Size = new System.Drawing.Size(625, 311);
|
||||
this.tcpGeneral.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tcpGeneral.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tcpGeneral.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tcpGeneral.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tcpGeneral.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tcpGeneral.Style.GradientAngle = 90;
|
||||
this.tcpGeneral.TabIndex = 1;
|
||||
this.tcpGeneral.TabItem = this.tiGeneral;
|
||||
//
|
||||
// tiGeneral
|
||||
//
|
||||
this.tiGeneral.AttachedControl = this.tcpGeneral;
|
||||
this.tiGeneral.Name = "tiGeneral";
|
||||
this.tiGeneral.Text = "General";
|
||||
//
|
||||
// tcpRefereceObjects
|
||||
//
|
||||
this.tcpRefereceObjects.Controls.Add(this.ppBtnRoToSql);
|
||||
this.tcpRefereceObjects.Controls.Add(this.tbRoDb);
|
||||
this.tcpRefereceObjects.Controls.Add(this.ppBtnRoDbBrowse);
|
||||
this.tcpRefereceObjects.Controls.Add(this.btnRoDbProperties);
|
||||
this.tcpRefereceObjects.Controls.Add(this.cmbRoDb);
|
||||
this.tcpRefereceObjects.Controls.Add(this.ppGpbxUpROvals);
|
||||
this.tcpRefereceObjects.Controls.Add(this.label6);
|
||||
this.tcpRefereceObjects.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tcpRefereceObjects.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcpRefereceObjects.Location = new System.Drawing.Point(0, 22);
|
||||
this.tcpRefereceObjects.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tcpRefereceObjects.Name = "tcpRefereceObjects";
|
||||
this.tcpRefereceObjects.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.tcpRefereceObjects.Size = new System.Drawing.Size(625, 311);
|
||||
this.tcpRefereceObjects.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
|
||||
this.tcpRefereceObjects.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
|
||||
this.tcpRefereceObjects.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tcpRefereceObjects.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
|
||||
this.tcpRefereceObjects.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tcpRefereceObjects.Style.GradientAngle = 90;
|
||||
this.tcpRefereceObjects.TabIndex = 2;
|
||||
this.tcpRefereceObjects.TabItem = this.tiRefObjs;
|
||||
this.tcpRefereceObjects.Enter += new System.EventHandler(this.tabpage_Enter);
|
||||
//
|
||||
// ppBtnRoToSql
|
||||
//
|
||||
this.ppBtnRoToSql.Location = new System.Drawing.Point(337, 146);
|
||||
this.ppBtnRoToSql.Name = "ppBtnRoToSql";
|
||||
this.ppBtnRoToSql.Size = new System.Drawing.Size(163, 46);
|
||||
this.ppBtnRoToSql.TabIndex = 48;
|
||||
this.ppBtnRoToSql.Text = "Migrate Data to Sql";
|
||||
this.ppBtnRoToSql.UseVisualStyleBackColor = true;
|
||||
this.ppBtnRoToSql.Visible = false;
|
||||
this.ppBtnRoToSql.Click += new System.EventHandler(this.ppBtnRoToSql_Click);
|
||||
//
|
||||
// tbRoDb
|
||||
//
|
||||
this.tbRoDb.Enabled = false;
|
||||
this.tbRoDb.Location = new System.Drawing.Point(80, 13);
|
||||
this.tbRoDb.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tbRoDb.Name = "tbRoDb";
|
||||
this.tbRoDb.Size = new System.Drawing.Size(318, 20);
|
||||
this.tbRoDb.TabIndex = 20;
|
||||
this.tbRoDb.TextChanged += new System.EventHandler(this.tbRoDb_TextChanged);
|
||||
//
|
||||
// ppBtnRoDbBrowse
|
||||
//
|
||||
this.ppBtnRoDbBrowse.Location = new System.Drawing.Point(406, 34);
|
||||
this.ppBtnRoDbBrowse.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppBtnRoDbBrowse.Name = "ppBtnRoDbBrowse";
|
||||
this.ppBtnRoDbBrowse.Size = new System.Drawing.Size(51, 20);
|
||||
this.ppBtnRoDbBrowse.TabIndex = 22;
|
||||
this.ppBtnRoDbBrowse.Text = "Browse...";
|
||||
this.ppBtnRoDbBrowse.UseVisualStyleBackColor = true;
|
||||
this.ppBtnRoDbBrowse.Click += new System.EventHandler(this.ppBtnRoDbBrowse_Click);
|
||||
//
|
||||
// btnRoDbProperties
|
||||
//
|
||||
this.btnRoDbProperties.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnRoDbProperties.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnRoDbProperties.Image = ((System.Drawing.Image)(resources.GetObject("btnRoDbProperties.Image")));
|
||||
this.btnRoDbProperties.Location = new System.Drawing.Point(406, 10);
|
||||
this.btnRoDbProperties.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnRoDbProperties.Name = "btnRoDbProperties";
|
||||
this.btnRoDbProperties.Size = new System.Drawing.Size(33, 23);
|
||||
this.btnRoDbProperties.TabIndex = 21;
|
||||
this.btnRoDbProperties.Click += new System.EventHandler(this.btnRoDbProperties_Click);
|
||||
//
|
||||
// cmbRoDb
|
||||
//
|
||||
this.cmbRoDb.FormattingEnabled = true;
|
||||
this.cmbRoDb.Location = new System.Drawing.Point(80, 13);
|
||||
this.cmbRoDb.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.cmbRoDb.Name = "cmbRoDb";
|
||||
this.cmbRoDb.Size = new System.Drawing.Size(318, 21);
|
||||
this.cmbRoDb.TabIndex = 47;
|
||||
this.cmbRoDb.SelectedIndexChanged += new System.EventHandler(this.cmbRoDb_SelectedIndexChanged);
|
||||
//
|
||||
// ppGpbxUpROvals
|
||||
//
|
||||
this.ppGpbxUpROvals.BackColor = System.Drawing.Color.Transparent;
|
||||
this.ppGpbxUpROvals.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.ppGpbxUpROvals.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.ppGpbxUpROvals.Controls.Add(this.ppBtnResetRoVals);
|
||||
this.ppGpbxUpROvals.Controls.Add(this.ppBtnUpRoVals);
|
||||
this.ppGpbxUpROvals.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.ppGpbxUpROvals.Location = new System.Drawing.Point(34, 69);
|
||||
this.ppGpbxUpROvals.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppGpbxUpROvals.Name = "ppGpbxUpROvals";
|
||||
this.ppGpbxUpROvals.Size = new System.Drawing.Size(112, 162);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxUpROvals.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.ppGpbxUpROvals.Style.BackColorGradientAngle = 90;
|
||||
this.ppGpbxUpROvals.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.ppGpbxUpROvals.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderBottomWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.ppGpbxUpROvals.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderLeftWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderRightWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.ppGpbxUpROvals.Style.BorderTopWidth = 1;
|
||||
this.ppGpbxUpROvals.Style.CornerDiameter = 4;
|
||||
this.ppGpbxUpROvals.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.ppGpbxUpROvals.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.ppGpbxUpROvals.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.ppGpbxUpROvals.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxUpROvals.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.ppGpbxUpROvals.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.ppGpbxUpROvals.TabIndex = 46;
|
||||
this.ppGpbxUpROvals.Text = "RO Values";
|
||||
//
|
||||
// tiRefObjs
|
||||
//
|
||||
this.tiRefObjs.AttachedControl = this.tcpRefereceObjects;
|
||||
this.tiRefObjs.Name = "tiRefObjs";
|
||||
this.tiRefObjs.Text = "Referenced Objects";
|
||||
//
|
||||
// tabControlPanel1
|
||||
//
|
||||
this.tabControlPanel1.Controls.Add(this.ppChbxEnhancedAllowMods);
|
||||
@@ -2172,14 +2295,14 @@ namespace VEPROMS
|
||||
this.documentEntryCountDataGridViewTextBoxColumn,
|
||||
this.libTitleDataGridViewTextBoxColumn});
|
||||
this.ppGrdLibDocList.DataSource = this.documentInfoListBindingSource;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.ppGrdLibDocList.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.ppGrdLibDocList.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.ppGrdLibDocList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.ppGrdLibDocList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
|
||||
this.ppGrdLibDocList.HighlightSelectedColumnHeaders = false;
|
||||
@@ -2196,8 +2319,8 @@ namespace VEPROMS
|
||||
// documentEntryCountDataGridViewTextBoxColumn
|
||||
//
|
||||
this.documentEntryCountDataGridViewTextBoxColumn.DataPropertyName = "DocumentEntryCount";
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.documentEntryCountDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.documentEntryCountDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.documentEntryCountDataGridViewTextBoxColumn.HeaderText = "Number of Usages";
|
||||
this.documentEntryCountDataGridViewTextBoxColumn.Name = "documentEntryCountDataGridViewTextBoxColumn";
|
||||
this.documentEntryCountDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
@@ -2664,132 +2787,14 @@ namespace VEPROMS
|
||||
this.btnGeneral.Text = "General";
|
||||
this.btnGeneral.Click += new System.EventHandler(this.btnGeneral_Click);
|
||||
//
|
||||
// ROPrefixBindingSource
|
||||
//
|
||||
this.ROPrefixBindingSource.CurrentChanged += new System.EventHandler(this.ROPrefixBindingSource_CurrentChanged);
|
||||
//
|
||||
// formatInfoListBindingSource
|
||||
//
|
||||
this.formatInfoListBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.FormatInfo);
|
||||
//
|
||||
// gpxMOSLandLocation
|
||||
//
|
||||
this.gpxMOSLandLocation.BackColor = System.Drawing.Color.Transparent;
|
||||
this.gpxMOSLandLocation.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.gpxMOSLandLocation.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.gpxMOSLandLocation.Controls.Add(this.ppCmbxMOSLandcornerLoc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.tbxMOSLandyloc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.tbxMOSLandxloc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.lblMOSLandcorner);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.lblMOSLandyloc);
|
||||
this.gpxMOSLandLocation.Controls.Add(this.lblMOSLandxloc);
|
||||
this.gpxMOSLandLocation.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.gpxMOSLandLocation.Location = new System.Drawing.Point(284, 164);
|
||||
this.gpxMOSLandLocation.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.gpxMOSLandLocation.Name = "gpxMOSLandLocation";
|
||||
this.gpxMOSLandLocation.Size = new System.Drawing.Size(209, 98);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpxMOSLandLocation.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.gpxMOSLandLocation.Style.BackColorGradientAngle = 90;
|
||||
this.gpxMOSLandLocation.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.gpxMOSLandLocation.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderBottomWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.gpxMOSLandLocation.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderLeftWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderRightWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.gpxMOSLandLocation.Style.BorderTopWidth = 1;
|
||||
this.gpxMOSLandLocation.Style.CornerDiameter = 4;
|
||||
this.gpxMOSLandLocation.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.gpxMOSLandLocation.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.gpxMOSLandLocation.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.gpxMOSLandLocation.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpxMOSLandLocation.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.gpxMOSLandLocation.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.gpxMOSLandLocation.TabIndex = 7;
|
||||
this.gpxMOSLandLocation.Text = "Landscape Location";
|
||||
//
|
||||
// ppCmbxMOSLandcornerLoc
|
||||
//
|
||||
this.ppCmbxMOSLandcornerLoc.DisplayMember = "Text";
|
||||
this.ppCmbxMOSLandcornerLoc.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||
this.ppCmbxMOSLandcornerLoc.FormattingEnabled = true;
|
||||
this.ppCmbxMOSLandcornerLoc.ItemHeight = 16;
|
||||
this.ppCmbxMOSLandcornerLoc.Location = new System.Drawing.Point(59, 53);
|
||||
this.ppCmbxMOSLandcornerLoc.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.ppCmbxMOSLandcornerLoc.Name = "ppCmbxMOSLandcornerLoc";
|
||||
this.ppCmbxMOSLandcornerLoc.Size = new System.Drawing.Size(144, 22);
|
||||
this.ppCmbxMOSLandcornerLoc.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.ppCmbxMOSLandcornerLoc.TabIndex = 9;
|
||||
this.ppCmbxMOSLandcornerLoc.WatermarkText = "corner location";
|
||||
//
|
||||
// tbxMOSLandyloc
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.tbxMOSLandyloc.Border.Class = "TextBoxBorder";
|
||||
this.tbxMOSLandyloc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.tbxMOSLandyloc.Location = new System.Drawing.Point(62, 30);
|
||||
this.tbxMOSLandyloc.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tbxMOSLandyloc.Name = "tbxMOSLandyloc";
|
||||
this.tbxMOSLandyloc.PreventEnterBeep = true;
|
||||
this.tbxMOSLandyloc.Size = new System.Drawing.Size(75, 20);
|
||||
this.tbxMOSLandyloc.TabIndex = 8;
|
||||
//
|
||||
// tbxMOSLandxloc
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.tbxMOSLandxloc.Border.Class = "TextBoxBorder";
|
||||
this.tbxMOSLandxloc.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.tbxMOSLandxloc.Location = new System.Drawing.Point(62, 10);
|
||||
this.tbxMOSLandxloc.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.tbxMOSLandxloc.Name = "tbxMOSLandxloc";
|
||||
this.tbxMOSLandxloc.PreventEnterBeep = true;
|
||||
this.tbxMOSLandxloc.Size = new System.Drawing.Size(75, 20);
|
||||
this.tbxMOSLandxloc.TabIndex = 7;
|
||||
//
|
||||
// lblMOSLandcorner
|
||||
//
|
||||
this.lblMOSLandcorner.AutoSize = true;
|
||||
this.lblMOSLandcorner.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMOSLandcorner.Location = new System.Drawing.Point(14, 54);
|
||||
this.lblMOSLandcorner.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.lblMOSLandcorner.Name = "lblMOSLandcorner";
|
||||
this.lblMOSLandcorner.Size = new System.Drawing.Size(41, 13);
|
||||
this.lblMOSLandcorner.TabIndex = 6;
|
||||
this.lblMOSLandcorner.Text = "Corner:";
|
||||
//
|
||||
// lblMOSLandyloc
|
||||
//
|
||||
this.lblMOSLandyloc.AutoSize = true;
|
||||
this.lblMOSLandyloc.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMOSLandyloc.Location = new System.Drawing.Point(14, 32);
|
||||
this.lblMOSLandyloc.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.lblMOSLandyloc.Name = "lblMOSLandyloc";
|
||||
this.lblMOSLandyloc.Size = new System.Drawing.Size(34, 13);
|
||||
this.lblMOSLandyloc.TabIndex = 5;
|
||||
this.lblMOSLandyloc.Text = "Y (in):";
|
||||
//
|
||||
// lblMOSLandxloc
|
||||
//
|
||||
this.lblMOSLandxloc.AutoSize = true;
|
||||
this.lblMOSLandxloc.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMOSLandxloc.Location = new System.Drawing.Point(14, 10);
|
||||
this.lblMOSLandxloc.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
||||
this.lblMOSLandxloc.Name = "lblMOSLandxloc";
|
||||
this.lblMOSLandxloc.Size = new System.Drawing.Size(34, 13);
|
||||
this.lblMOSLandxloc.TabIndex = 4;
|
||||
this.lblMOSLandxloc.Text = "X (in):";
|
||||
//
|
||||
// frmVersionsProperties
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@@ -2797,7 +2802,7 @@ namespace VEPROMS
|
||||
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.CancelButton = this.ppBtnCancel;
|
||||
this.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ClientSize = new System.Drawing.Size(806, 365);
|
||||
this.ClientSize = new System.Drawing.Size(802, 361);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.panVerBtns);
|
||||
this.Controls.Add(this.tcVersions);
|
||||
@@ -2824,17 +2829,19 @@ namespace VEPROMS
|
||||
this.ppGpbxUserSpecTxt.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tcVersions)).EndInit();
|
||||
this.tcVersions.ResumeLayout(false);
|
||||
this.tabControlPanel2.ResumeLayout(false);
|
||||
this.tabControlPanel2.PerformLayout();
|
||||
this.gpxMOSLandLocation.ResumeLayout(false);
|
||||
this.gpxMOSLandLocation.PerformLayout();
|
||||
this.gpxMOSLocation.ResumeLayout(false);
|
||||
this.gpxMOSLocation.PerformLayout();
|
||||
this.gpxMOSfont.ResumeLayout(false);
|
||||
this.gpxMOSfont.PerformLayout();
|
||||
this.tcpGeneral.ResumeLayout(false);
|
||||
this.tcpGeneral.PerformLayout();
|
||||
this.tcpRefereceObjects.ResumeLayout(false);
|
||||
this.tcpRefereceObjects.PerformLayout();
|
||||
this.ppGpbxUpROvals.ResumeLayout(false);
|
||||
this.tabControlPanel2.ResumeLayout(false);
|
||||
this.tabControlPanel2.PerformLayout();
|
||||
this.gpxMOSLocation.ResumeLayout(false);
|
||||
this.gpxMOSLocation.PerformLayout();
|
||||
this.gpxMOSfont.ResumeLayout(false);
|
||||
this.gpxMOSfont.PerformLayout();
|
||||
this.tabControlPanel1.ResumeLayout(false);
|
||||
this.tabControlPanel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsMiniEnhanced)).EndInit();
|
||||
@@ -2859,8 +2866,6 @@ namespace VEPROMS
|
||||
this.panVerBtns.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.ROPrefixBindingSource)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).EndInit();
|
||||
this.gpxMOSLandLocation.ResumeLayout(false);
|
||||
this.gpxMOSLandLocation.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace VEPROMS
|
||||
private List<MiniConfig> _DeletedApples;
|
||||
private List<EnhancedMiniConfig> _Enhanced;
|
||||
private DocVersionConfig _DocVersionConfig;
|
||||
private string _OrgPDFPath; // B2024-030 used to save last PDF path
|
||||
|
||||
// Default values
|
||||
private string _DefaultFormatName = null;
|
||||
@@ -97,6 +98,7 @@ namespace VEPROMS
|
||||
|
||||
_Initializing = true;
|
||||
InitializeComponent();
|
||||
_OrgPDFPath = _DocVersionConfig.Print_PDFLocation; // B2024-030 save last PDF path
|
||||
btnGeneral.PerformClick(); // always start with General tab or button
|
||||
_Initializing = false;
|
||||
|
||||
@@ -323,8 +325,6 @@ namespace VEPROMS
|
||||
tiApplicability.Visible = false;
|
||||
}
|
||||
|
||||
ppTxtBxPDFLoc.TextChanged += new EventHandler(ppTxtBxPDFLoc_TextChanged);
|
||||
|
||||
//end add new applicability stuff
|
||||
lblProcSetRev.Visible = ppRTxtProcSetRev.Visible = _DocVersionConfig.MyDocVersion.MyDocVersionInfo.ActiveFormat.MyStepSectionPrintData.UseXtraRevNumber;
|
||||
|
||||
@@ -538,11 +538,32 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
|
||||
// The following code was added to fix Bug B2013-117
|
||||
private void ppTxtBxPDFLoc_TextChanged(object sender, EventArgs e)
|
||||
//B2024-030 Check the PDF Location path and prompt to create the folders if needed
|
||||
private void CheckPDFLocationPath()
|
||||
{
|
||||
if (_Initializing == false)
|
||||
_DocVersionConfig.Print_PDFLocation = ppTxtBxPDFLoc.Text;
|
||||
string pdfloc = ppTxtBxPDFLoc.Text;
|
||||
if (pdfloc == string.Empty) return;
|
||||
if (!Directory.Exists(ppTxtBxPDFLoc.Text))
|
||||
{
|
||||
string msg = string.Format(" The Folder: '{0}' does not exist. \n\nCreate it?", ppTxtBxPDFLoc.Text);
|
||||
DialogResult dr = MessageBox.Show(msg, "PDF Location Folder Not Found", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (dr == DialogResult.Yes)
|
||||
{
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory(ppTxtBxPDFLoc.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "Error trying to create folder", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
_DocVersionConfig.Print_PDFLocation = _OrgPDFPath; // reset to the path we started with
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_DocVersionConfig.Print_PDFLocation = _OrgPDFPath; // reset to the path we started with
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private string AddSlaveNode(MiniConfig mc)
|
||||
@@ -588,6 +609,9 @@ namespace VEPROMS
|
||||
|
||||
private void btnVersionsPropOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
//B2024-030 Check the PDF Location path and prompt to create the folders if needed
|
||||
CheckPDFLocationPath();
|
||||
|
||||
docVersionConfigBindingSource.EndEdit(); // need to end the edit session first or any format selection chanage will not stick B2015-157
|
||||
|
||||
// if there is a change to the format, clean up any overridden formats that point to the selected item before saving the format change:
|
||||
@@ -773,7 +797,6 @@ namespace VEPROMS
|
||||
|
||||
// B2019-132 update the association count for this working draft
|
||||
_DocVersionConfig.MyDocVersion.MyDocVersionInfo.RefreshDocVersionAssociations();
|
||||
|
||||
this.Close();
|
||||
}
|
||||
|
||||
@@ -1928,6 +1951,16 @@ namespace VEPROMS
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
private void tbRoDb_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ROPrefixBindingSource_CurrentChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -123,6 +123,12 @@
|
||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>415, 17</value>
|
||||
</metadata>
|
||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>415, 17</value>
|
||||
</metadata>
|
||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>643, 17</value>
|
||||
</metadata>
|
||||
<data name="ppCmbxFormat.SuperTooltip" xml:space="preserve">
|
||||
<value>Allows you to specify the default format to use for all procedures in this set.
|
||||
|
||||
@@ -210,9 +216,21 @@ Check "Show Default Settings" to display the "default" duplexing setting (below
|
||||
<metadata name="bsEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>817, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsMiniEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 65</value>
|
||||
</metadata>
|
||||
<metadata name="bsEnhanced.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>817, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsMiniApple.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>118, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsMiniApple.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>118, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsApples.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsApples.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
||||
@@ -285,16 +285,22 @@ namespace VEPROMS.CSLA.Library
|
||||
#region ROTextConvertMethods
|
||||
// B2023-037: Handle <=, >=, +-, -> and <- symbols. Convert to unicode for output, i.e. print and edit/view (when editing
|
||||
// step, will show as 2 characters, not unicode, unless ro inserted when code replaced link text with unicode.
|
||||
public static string ROConvertSymbols(string retval)
|
||||
public static string ROConvertSymbols(string retval, bool arr1, bool arr2)
|
||||
{
|
||||
retval = retval.Replace("\\u8209?>", @"\u8594?"); // Right Arrow
|
||||
retval = retval.Replace("<\\u8209?", @"\u8592?"); // Left Arrow
|
||||
retval = retval.Replace("->", @"\u8594?"); // Right Arrow
|
||||
retval = retval.Replace("<-", @"\u8592?"); // Left Arrow
|
||||
retval = retval.Replace("<=", @"\u8804?"); // Less than or Equal
|
||||
retval = retval.Replace(">=", @"\u8805?"); // Greater than or Equal
|
||||
retval = retval.Replace("+\\u8209?", @"\'b1"); // plus minus
|
||||
retval = retval.Replace("+-", @"\'b1"); // plus minus
|
||||
if (arr1)
|
||||
{
|
||||
retval = retval.Replace("\\u8209?>", @"\u8594?"); // Right Arrow
|
||||
retval = retval.Replace("<\\u8209?", @"\u8592?"); // Left Arrow
|
||||
retval = retval.Replace("->", @"\u8594?"); // Right Arrow
|
||||
retval = retval.Replace("<-", @"\u8592?"); // Left Arrow
|
||||
}
|
||||
if (arr2)
|
||||
{
|
||||
retval = retval.Replace("<=", @"\u8804?"); // Less than or Equal
|
||||
retval = retval.Replace(">=", @"\u8805?"); // Greater than or Equal
|
||||
retval = retval.Replace("+\\u8209?", @"\'b1"); // plus minus
|
||||
retval = retval.Replace("+-", @"\'b1"); // plus minus
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
#endregion
|
||||
@@ -484,7 +490,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return rc;
|
||||
}
|
||||
|
||||
public string GetTranslatedRoValue(string roid, bool DoCaret, bool DoDOSSuperSubScript, bool convertRoSymbols)
|
||||
public string GetTranslatedRoValue(string roid, bool DoCaret, bool DoDOSSuperSubScript, bool convertRoSymbols, ItemInfo myiteminfo)
|
||||
{
|
||||
roid = FormatRoidKey(roid, true);
|
||||
|
||||
@@ -496,7 +502,13 @@ namespace VEPROMS.CSLA.Library
|
||||
retval = ReplaceUnicode(retval, DoCaret);
|
||||
// B2023-037: Handle <=, >=, +-, -> and <- symbols. Convert to unicode for output, i.e. print and edit/view (when editing
|
||||
// step, will show as 2 characters, not unicode, unless ro inserted when code replaced link text with unicode.
|
||||
if (convertRoSymbols) retval = ROFSTLookup.ROConvertSymbols(retval);
|
||||
|
||||
//(_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue ||
|
||||
// _MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue))
|
||||
bool arrows1 = myiteminfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue;
|
||||
bool arrows2 = myiteminfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue;
|
||||
|
||||
if (convertRoSymbols) retval = ROFSTLookup.ROConvertSymbols(retval, arrows1, arrows2);
|
||||
|
||||
retval = ConvertFortranFormatToScienctificNotation(retval);
|
||||
|
||||
|
||||
@@ -1616,7 +1616,7 @@ namespace VEPROMS.CSLA.Library
|
||||
foreach (ContentRoUsage ro in cont.ContentRoUsages)
|
||||
{
|
||||
RoUsageInfo rou = RoUsageInfo.Get(ro.ROUsageID);
|
||||
string myvalue = mylookup.GetTranslatedRoValue(rou.ROID, tmp.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, tmp.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false);
|
||||
string myvalue = mylookup.GetTranslatedRoValue(rou.ROID, tmp.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, tmp.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false, tmp);
|
||||
|
||||
ROFSTLookup.rochild rocc = mylookup.GetRoChild(rou.ROID);
|
||||
|
||||
@@ -1844,7 +1844,7 @@ namespace VEPROMS.CSLA.Library
|
||||
ROFSTLookup mylookup = myRoFst.GetROFSTLookup(tmp.ContentItems[0].MyProcedure.MyDocVersion);
|
||||
foreach (RoUsageInfo rou in tmp.ContentRoUsages)
|
||||
{
|
||||
string myvalue = mylookup.GetTranslatedRoValue(rou.ROID, tmp.ContentItems[0].ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, tmp.ContentItems[0].ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false);
|
||||
string myvalue = mylookup.GetTranslatedRoValue(rou.ROID, tmp.ContentItems[0].ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, tmp.ContentItems[0].ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false, tmp.ContentItems[0]);
|
||||
ROFSTLookup.rochild rocc = mylookup.GetRoChild(rou.ROID);
|
||||
int mytype = rocc.type;
|
||||
ctmp.FixContentText(rou, myvalue, mytype, myRoFst);
|
||||
|
||||
@@ -468,10 +468,12 @@ namespace VEPROMS.CSLA.Library
|
||||
return text;
|
||||
}
|
||||
// B2022-035: resolve unit specific designators - moved code to here so that other objects can use it
|
||||
// B2024-025 added <ID> to the replace list
|
||||
public static string ResolveUnitSpecific(DocVersionInfo mydocversion, string text)
|
||||
{
|
||||
if (mydocversion == null) return text;
|
||||
text = Regex.Replace(text, @"\<U\>", mydocversion.DocVersionConfig.Unit_Number, RegexOptions.IgnoreCase);
|
||||
text = Regex.Replace(text, @"\<ID\>", mydocversion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);
|
||||
text = Regex.Replace(text, @"\<(U(-|\\u8209\?)ID)\>", mydocversion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);
|
||||
text = Regex.Replace(text, @"\<(U(-|\\u8209\?)NAME)\>", mydocversion.DocVersionConfig.Unit_Name, RegexOptions.IgnoreCase);
|
||||
text = Regex.Replace(text, @"\<(U(-|\\u8209\?)TEXT)\>", mydocversion.DocVersionConfig.Unit_Text, RegexOptions.IgnoreCase);
|
||||
@@ -694,10 +696,12 @@ namespace VEPROMS.CSLA.Library
|
||||
// B2017-147: backquotes should be translated to degrees for edit/print:
|
||||
newvalue = newvalue.Replace("`", @"\'b0");
|
||||
// B2023-037: Handle <=, >=, +-, -> and <- symbols. If the format has flags to convert these RO symbols, it
|
||||
bool arrows1 = _MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue;
|
||||
bool arrows2 = _MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue;
|
||||
// is done here so that output (print & edit/view) has symbol, not 2 characters.
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue ||
|
||||
_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue)
|
||||
newvalue = ROFSTLookup.ROConvertSymbols(newvalue);
|
||||
if (!_MyItemInfo.IsTable && (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue ||
|
||||
_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue))
|
||||
newvalue = ROFSTLookup.ROConvertSymbols(newvalue, arrows1, arrows2);
|
||||
|
||||
if (gg != newvalue)
|
||||
text = text.Substring(0, myIndex) + newvalue + text.Substring(myIndex + myLength);
|
||||
|
||||
@@ -908,7 +908,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
string oldText = this.MyContent.Text;
|
||||
|
||||
string roval = lookup.GetTranslatedRoValue(rousage.ROID, this.ActiveSection.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, this.ActiveSection.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false);
|
||||
string roval = lookup.GetTranslatedRoValue(rousage.ROID, this.ActiveSection.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, this.ActiveSection.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false, this);
|
||||
ROFSTLookup.rochild roch = lookup.GetRoChild(rousage.ROID);
|
||||
|
||||
this.MyContent.FixContentText(rousage, roval, roch.type, rofstinfo, this);
|
||||
@@ -964,7 +964,7 @@ namespace VEPROMS.CSLA.Library
|
||||
ROCheckCount++;
|
||||
string oldText = itemInfo.MyContent.Text;
|
||||
|
||||
string roval = lookup.GetTranslatedRoValue(rousage.ROID, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false);
|
||||
string roval = lookup.GetTranslatedRoValue(rousage.ROID, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false, sectionInfo);
|
||||
ROFSTLookup.rochild roch = lookup.GetRoChild(rousage.ROID);
|
||||
|
||||
itemInfo.MyContent.FixContentText(rousage, roval, roch.type, origROFst, itemInfo);
|
||||
@@ -1184,7 +1184,10 @@ namespace VEPROMS.CSLA.Library
|
||||
if (sectionInfo != null)
|
||||
{
|
||||
// B2023-037: loading print text, resolve the RO symbols
|
||||
string roval = lookup.GetTranslatedRoValue(rousage.ROID, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues,sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue|| sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue);
|
||||
|
||||
bool GTLT = !itemInfo.IsTable && sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue;
|
||||
bool GLTArrows = !itemInfo.IsTable && sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue;
|
||||
string roval = lookup.GetTranslatedRoValue(rousage.ROID, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, sectionInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, GTLT || GLTArrows, itemInfo);
|
||||
ROFSTLookup.rochild roch = lookup.GetRoChild(rousage.ROID);
|
||||
itemInfo.MyContent.FixContentText(rousage, roval, roch.type, rofstinfo, itemInfo);
|
||||
}
|
||||
@@ -2931,8 +2934,22 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
string str = MyContent.Text;
|
||||
// B2022-035: resolve unit specific designators
|
||||
if (str.ToUpper().Contains(@"<U")) str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(this.MyDocVersion, str);
|
||||
return ConvertToDisplayText(str, false);
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(this.MyDocVersion, str);
|
||||
return ConvertToDisplayText(str, false, " "); // B2024-013 added " " to replace hard returns with a space instead of semi-colon
|
||||
}
|
||||
}
|
||||
// B2024-013 added for Vogtle Units 3 & 4, used with {TOPSECTIONTITLE} pagelist item
|
||||
// this will format the text and keep the hard return command
|
||||
public string FormattedDisplayTextKeepHardReturn
|
||||
{
|
||||
get
|
||||
{
|
||||
string str = MyContent.Text;
|
||||
// B2022-035: resolve unit specific designators
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(this.MyDocVersion, str);
|
||||
return ConvertToDisplayText(str, false, ""); // pass in empty string for hard retun char will keep hard return
|
||||
}
|
||||
}
|
||||
// Used in Comanche Peak EOP and Flex formats for step designators. Will allow a hard return to be used that that caution type.
|
||||
@@ -2945,7 +2962,8 @@ namespace VEPROMS.CSLA.Library
|
||||
string str = MyContent.Text;
|
||||
if (MyDocVersion != null)
|
||||
{
|
||||
str = Regex.Replace(str, @"\<[uU]\>", MyDocVersion.DocVersionConfig.Unit_Number);
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(MyDocVersion, str);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2964,16 +2982,13 @@ namespace VEPROMS.CSLA.Library
|
||||
if (MyDocVersion != null)
|
||||
{
|
||||
// B2022-035: resolve unit specific designators
|
||||
if (str.ToUpper().Contains("<U")) str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(MyDocVersion, str);
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(MyDocVersion, str);
|
||||
}
|
||||
else
|
||||
{
|
||||
_MyLog.WarnFormat("Disconnected Data - ItemID = {0}", ItemID);
|
||||
}
|
||||
//if (str.Contains("<u>"))
|
||||
// str = str.Replace("<u>", MyDocVersion.DocVersionConfig.Unit_Number);
|
||||
//if (str.Contains("<U>"))
|
||||
// str = str.Replace("<U>", MyDocVersion.DocVersionConfig.Unit_Number);
|
||||
return ConvertToDisplayText(str);
|
||||
}
|
||||
}
|
||||
@@ -3032,7 +3047,8 @@ namespace VEPROMS.CSLA.Library
|
||||
string str = MyContent.Text;
|
||||
if (MyDocVersion != null)
|
||||
{
|
||||
str = Regex.Replace(str, @"\<[uU]\>", MyDocVersion.DocVersionConfig.Unit_Number);
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(MyDocVersion, str);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3065,8 +3081,8 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
else
|
||||
str = MyContent.Number;
|
||||
str = Regex.Replace(str, @"\<U-ID\>", MyDocVersion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);
|
||||
str = Regex.Replace(str, @"\<ID\>", MyDocVersion.DocVersionConfig.Unit_ID, RegexOptions.IgnoreCase);
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(MyDocVersion, str);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3079,7 +3095,9 @@ namespace VEPROMS.CSLA.Library
|
||||
// str = str.Replace(@"<S\u8209?ID>", MyDocVersion.DocVersionConfig.Unit_ID);
|
||||
str = ConvertToDisplayText(str);
|
||||
if (MyDocVersion != null) // B2020-086 check for null doc version - happens if item we are trying to open is no longer there (disconnected)
|
||||
str = Regex.Replace(str, @"\<[uU]\>", MyDocVersion.DocVersionConfig.Unit_Number); // B2017-019 - process "<u>" in section number
|
||||
// B2017-019 - process "<u>" in section number
|
||||
// B2024-025 - process all of the applicability token (<U-xxx>, <U>, <ID>)
|
||||
str = VEPROMS.CSLA.Library.DisplayText.ResolveUnitSpecific(MyDocVersion, str);
|
||||
return str;
|
||||
}
|
||||
//get { return ConvertToDisplayText(MyContent.Number); }
|
||||
@@ -3109,7 +3127,12 @@ namespace VEPROMS.CSLA.Library
|
||||
return ConvertToDisplayText(txt, true);
|
||||
}
|
||||
|
||||
public static string ConvertToDisplayText(string txt, bool stripRTF)
|
||||
// B2024-013 This allos us to control "what with" or "whether to" replace hard returns
|
||||
// Semi-colons where printing on auto table of contents for section titles with hard returns
|
||||
// added HardReturnChar string to parameter. The default is to use the semi-colon, for auto table of contents
|
||||
// we replace it with a space, for Vogtle Unit 3 & 4 we retain the hard return when printing the section
|
||||
|
||||
public static string ConvertToDisplayText(string txt, bool stripRTF, string HardReturnChar = ";")
|
||||
{
|
||||
string retval = txt;
|
||||
|
||||
@@ -3120,9 +3143,12 @@ namespace VEPROMS.CSLA.Library
|
||||
retval = ReplaceSpecialCharacters(retval);
|
||||
retval = retval.Replace("\u2011", "-");
|
||||
retval = retval.Replace("\u2572", @"\"); // replace backslash symbol with a backslash
|
||||
retval = Regex.Replace(retval, @"\\line ?", ";"); // better handing of hard returns - replace with semi-colon for use on tree view
|
||||
retval = retval.Replace("\r\n", ";");
|
||||
retval = retval.Replace("\n", ";"); //added for consistency checking with approved version
|
||||
if (HardReturnChar != "") // B2024-013 if a null string don't replace the hard return
|
||||
{
|
||||
retval = Regex.Replace(retval, @"\\line ?", HardReturnChar); // better handing of hard returns - replace with semi-colon for use on tree view
|
||||
retval = retval.Replace("\r\n", HardReturnChar);
|
||||
retval = retval.Replace("\n", HardReturnChar); //added for consistency checking with approved version
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
@@ -4420,7 +4446,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// F2018-025 Westinghouse when a high level step is used as a section number/title,
|
||||
// adjust the step/substep numbering where the first level substep uses the high level step tabbing format
|
||||
// and the following sub-substeps tabbing format are "shifted" accordingly (ex should look like ASS-101 Attachment 1 section 4 tabbing)
|
||||
if (!IsHigh && MyHLS != null && MyHLS.FormatStepData.AppendDotZero)
|
||||
if (!IsHigh && MyHLS != null && MyHLS.FormatStepData.AppendDotZero)
|
||||
{
|
||||
if (localPrintLevel > 1)
|
||||
{
|
||||
@@ -4428,7 +4454,14 @@ namespace VEPROMS.CSLA.Library
|
||||
itmp = (localPrintLevel + PrintBias + OffsetTab) % seqtabs.MaxIndex;
|
||||
}
|
||||
}
|
||||
if (!tbformat.Contains(@"{!C"))
|
||||
// F2024-037 reset the seq sub-step numbering if the parent is an un-numbered high level step
|
||||
// F2024-049 changed to specify the level via the format file (Generic EOP and Vogtle 3&4)
|
||||
else if (sd.StepSectionLayoutData.ResetSeqNumberingAfterUnnumberedHLS != null && IsSequential && MyParent != null && MyParent.IsHigh && MyParent.MyTab.Text.Length == 0)
|
||||
{
|
||||
localPrintLevel = (int)sd.StepSectionLayoutData.ResetSeqNumberingAfterUnnumberedHLS;
|
||||
itmp = (localPrintLevel + PrintBias + OffsetTab) % seqtabs.MaxIndex;
|
||||
}
|
||||
if (!tbformat.Contains(@"{!C"))
|
||||
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
||||
else
|
||||
tbformat = tbformat.Replace("{seq}", seqtabs[itmp].PrintTabFormat);
|
||||
@@ -4536,6 +4569,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
bool isAlpha = tbformat.ToUpper().Contains("ALPHA");
|
||||
int ordinal = Ordinal;
|
||||
bool trimSeqValue = FormatStepData.TabData.TrimSeqTabValue; // F2024-043 remove space around SEQ tab value
|
||||
bool useLinked = false; // if this is enhanced, and the LinkedTab isn't numeric, flag to use 'LinkedTab' for the tab.
|
||||
if (ActiveSection != null && ActiveSection.IsEnhancedSection) // C2018-003 fixed use of getting the active section
|
||||
{
|
||||
@@ -4567,6 +4601,7 @@ namespace VEPROMS.CSLA.Library
|
||||
tbformat = tbformat.Replace("{numeric}", LinkedTab.Trim(" .".ToCharArray()).PadLeft(2));
|
||||
}
|
||||
string alpha = useLinked?LinkedTab.Trim():AlphabeticalNumbering(ordinal);
|
||||
if (trimSeqValue) alpha = alpha.Trim(); // F2024-043 trim white around SEQ tab value (for sub-steps)
|
||||
// B2017-211 Roman High Level steps should be followed by Uppercase alpha substeps - This is being limited to Calvert SAMG Format
|
||||
if (_ActiveFormat.Name =="BGESAM1" &&MyParent != null && MyParent.IsHigh && MyParent.IsStep && MyParent.FormatStepData.TabData.IdentEdit.Contains("ROMAN"))
|
||||
tbformat = tbformat.Replace("{alpha}", alpha);
|
||||
@@ -4609,7 +4644,8 @@ namespace VEPROMS.CSLA.Library
|
||||
tbformat = tbformat.Replace("{numeric}", stpTab);
|
||||
}
|
||||
else
|
||||
tbformat = tbformat.Replace("{numeric}", trimTabStart ? ordinal.ToString() : FormatStepData.AtLeastTwoDigits ? ordinal.ToString().PadLeft(2, '0') : ordinal.ToString().PadLeft(2));
|
||||
// F2024-043 added trimSeqValue to trim white around SEQ tab value (for sub-steps)
|
||||
tbformat = tbformat.Replace("{numeric}", (trimTabStart || trimSeqValue) ? ordinal.ToString() : FormatStepData.AtLeastTwoDigits ? ordinal.ToString().PadLeft(2, '0') : ordinal.ToString().PadLeft(2));
|
||||
if (tbformate != null)
|
||||
{
|
||||
if (useLinked)
|
||||
|
||||
@@ -1309,7 +1309,8 @@ namespace VEPROMS.CSLA.Library
|
||||
else if (addType == EAddpingPart.Replace) // what about user interface for enhanced pasted steps?
|
||||
{
|
||||
ItemInfo enhReplaceItem = ItemInfo.Get(edSource.ItemID);
|
||||
newEnhancedItemInfo = Item.PasteReplace(enhReplaceItem, tmpCopyEnhancedID, chgid);
|
||||
TreeNode trn = null;
|
||||
newEnhancedItemInfo = Item.PasteReplace(enhReplaceItem, tmpCopyEnhancedID, chgid, trn);
|
||||
}
|
||||
|
||||
// update the config data for the new enhanced item (procedure, section or step) to point back to the correct source
|
||||
@@ -1943,6 +1944,54 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
#endregion
|
||||
#region DataPortal
|
||||
private void DataPortal_Fetch(PastingPartEnhancedCriteria criteria)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemInfo.DataPortal_Fetch", GetHashCode());
|
||||
try
|
||||
{
|
||||
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||
{
|
||||
Csla.ApplicationContext.LocalContext["cn"] = cn;
|
||||
using (SqlCommand cm = cn.CreateCommand())
|
||||
{
|
||||
cm.CommandType = CommandType.StoredProcedure;
|
||||
cm.Parameters.AddWithValue("@StartItemID", criteria.StartItemID); // copy children
|
||||
cm.Parameters.AddWithValue("@ItemID", criteria.ItemID); //copy to
|
||||
cm.Parameters.AddWithValue("@Type", criteria.Type);
|
||||
cm.Parameters.AddWithValue("@DTS", criteria.DTS);
|
||||
cm.Parameters.AddWithValue("@UserID", criteria.UserID);
|
||||
SqlParameter param_ItemID = new SqlParameter("@NewItemID", SqlDbType.Int);
|
||||
param_ItemID.Direction = ParameterDirection.Output;
|
||||
cm.Parameters.Add(param_ItemID);
|
||||
cm.CommandText = "PasteItemEnhancedReplace";
|
||||
//cm.CommandText = "PasteItemReplace";
|
||||
cm.CommandTimeout = Database.DefaultTimeout;
|
||||
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))
|
||||
{
|
||||
//int newItemID = (int)cm.Parameters["@NewItemID"].Value;
|
||||
if (!dr.Read())
|
||||
{
|
||||
_ErrorMessage = "No Record Found";
|
||||
return;
|
||||
}
|
||||
ReadData(dr);
|
||||
}
|
||||
}
|
||||
// removing of item only needed for local data portal
|
||||
if (Csla.ApplicationContext.ExecutionLocation == Csla.ApplicationContext.ExecutionLocations.Client)
|
||||
Csla.ApplicationContext.LocalContext.Remove("cn");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (!ex.Message.Contains("This step has been deleted") && !ex.Message.Contains("This current step has been deleted in another session"))
|
||||
{
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemInfo.DataPortal_Fetch", ex);
|
||||
}
|
||||
_ErrorMessage = ex.Message;
|
||||
throw new DbCslaException("ItemInfo.DataPortal_Fetch", ex);
|
||||
}
|
||||
}
|
||||
private void DataPortal_Fetch(PastingPartCriteria criteria)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemInfo.DataPortal_Fetch", GetHashCode());
|
||||
@@ -2065,6 +2114,68 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PastingPartEnhancedCriteria
|
||||
[Serializable()]
|
||||
public class PastingPartEnhancedCriteria
|
||||
{
|
||||
#region Properties
|
||||
private int _StartItemID;
|
||||
public int StartItemID
|
||||
{
|
||||
get { return _StartItemID; }
|
||||
set { _StartItemID = value; }
|
||||
}
|
||||
private int _ItemID; // paste relative to this itemid
|
||||
public int ItemID
|
||||
{
|
||||
get { return _ItemID; }
|
||||
set { _ItemID = value; }
|
||||
}
|
||||
private EAddpingPart _AddType;
|
||||
public EAddpingPart AddType
|
||||
{
|
||||
get { return _AddType; }
|
||||
set { _AddType = value; }
|
||||
}
|
||||
private int? _FromType = null;
|
||||
public int? FromType
|
||||
{
|
||||
get { return _FromType; }
|
||||
set { _FromType = value; }
|
||||
}
|
||||
private int? _Type = null;
|
||||
public int? Type
|
||||
{
|
||||
get { return _Type; }
|
||||
set { _Type = value; }
|
||||
}
|
||||
private DateTime _DTS;
|
||||
public DateTime DTS
|
||||
{
|
||||
get { return _DTS; }
|
||||
set { _DTS = value; }
|
||||
}
|
||||
private string _UserID;
|
||||
public string UserID
|
||||
{
|
||||
get { return _UserID; }
|
||||
set { _UserID = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Constructor
|
||||
public PastingPartEnhancedCriteria(int startItemid, int itemID, EAddpingPart addType, int? type, int? fromType, DateTime dts, string userID)
|
||||
{
|
||||
_StartItemID = startItemid;
|
||||
_ItemID = itemID;
|
||||
_AddType = addType;
|
||||
_Type = type;
|
||||
_FromType = fromType;
|
||||
_DTS = dts;
|
||||
_UserID = userID;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
#region PastingPartCriteria
|
||||
[Serializable()]
|
||||
public class PastingPartCriteria
|
||||
@@ -2355,6 +2466,17 @@ namespace VEPROMS.CSLA.Library
|
||||
_MyPrevious = null; // Reset list so that the next line gets a new list
|
||||
if (MyPrevious != null) MyPrevious.RefreshNextItems(); // Update List for new value
|
||||
}
|
||||
internal static ItemInfo CopyPasteReplaceEnhancedItemInfoFetch(int copyStartID, ItemInfo itemInfo) // int itemID, int? type, int? fromType)
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
tmp = DataPortal.Fetch<StepInfo>(new ItemInfo.PastingPartEnhancedCriteria(copyStartID, itemInfo.ItemID, ItemInfo.EAddpingPart.Replace, itemInfo.MyContent.Type, itemInfo.MyContent.Type, DateTime.Now, Volian.Base.Library.VlnSettings.UserID));
|
||||
if (tmp == null)
|
||||
{
|
||||
tmp = ItemInfo.Get(copyStartID);
|
||||
}
|
||||
AddToCache(tmp);
|
||||
return tmp;
|
||||
}
|
||||
internal static ItemInfo CopyPasteReplaceItemInfoFetch(int copyStartID, ItemInfo itemInfo) // int itemID, int? type, int? fromType)
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
@@ -2497,13 +2619,24 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
#endregion
|
||||
#region PasteReplace
|
||||
public static ItemInfo PasteReplace(ItemInfo itemInfo, int copyStartID, string chgid)
|
||||
|
||||
|
||||
|
||||
public static ItemInfo PasteReplace(ItemInfo itemInfo, int copyStartID, string chgid, TreeNode treeNodeReplace)
|
||||
{
|
||||
bool tmp= false;
|
||||
return PasteReplace(itemInfo, copyStartID, chgid, ref tmp);
|
||||
if (itemInfo.IsEnhancedStep)
|
||||
{
|
||||
// don't replace the step, just remove current children & add new children:
|
||||
if (!CanDeleteObject())
|
||||
throw new System.Security.SecurityException("User not authorized to remove a Item");
|
||||
|
||||
}
|
||||
bool tmp = false;
|
||||
return PasteReplace(itemInfo, copyStartID, chgid, treeNodeReplace, ref tmp);
|
||||
}
|
||||
// B2017-179 return a bool (firstTrans) if we could not replace the step but the user wants to position to the first transition that needs resolved
|
||||
public static ItemInfo PasteReplace(ItemInfo itemInfo, int copyStartID, string chgid, ref bool firstTrans)
|
||||
// B2017-179 return a bool (firstTrans) if we could not replace the step but the user wants to position to the first transition that needs resolved
|
||||
public static ItemInfo PasteReplace(ItemInfo itemInfo, int copyStartID, string chgid, TreeNode treeNodeReplace, ref bool firstTrans)
|
||||
{
|
||||
firstTrans = false;
|
||||
if (!CanDeleteObject())
|
||||
@@ -2514,8 +2647,17 @@ namespace VEPROMS.CSLA.Library
|
||||
ItemInfo newItemInfo = null;
|
||||
try
|
||||
{
|
||||
newItemInfo = ItemInfo.CopyPasteReplaceItemInfoFetch(copyStartID, itemInfo); //itemInfo.ItemID, itemInfo.MyContent.Type, itemInfo.MyContent.Type);
|
||||
if (newItemInfo == null) return null;
|
||||
// if this item is an enhanced item, do a pastereplace specific to it:
|
||||
if (itemInfo.IsEnhancedStep)
|
||||
{
|
||||
newItemInfo = ItemInfo.CopyPasteReplaceEnhancedItemInfoFetch(copyStartID, itemInfo);
|
||||
if (newItemInfo == null) return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
newItemInfo = ItemInfo.CopyPasteReplaceItemInfoFetch(copyStartID, itemInfo); //itemInfo.ItemID, itemInfo.MyContent.Type, itemInfo.MyContent.Type);
|
||||
if (newItemInfo == null) return null;
|
||||
}
|
||||
}
|
||||
catch (Exception ex1)
|
||||
{
|
||||
@@ -2560,7 +2702,14 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
else
|
||||
{
|
||||
newItemInfo.MyParent.OnNewChild(new ItemInfoInsertEventArgs(newItemInfo, ItemInfo.EAddpingPart.Child));
|
||||
//Create tree node for copied procedure when no other procedures exist in the folder
|
||||
VETreeNode vtn = treeNodeReplace as VETreeNode;
|
||||
DocVersionInfo dvi = vtn.VEObject as DocVersionInfo;
|
||||
|
||||
ItemInfo newProc = dvi.PasteChild(copyStartID);
|
||||
VETreeNode tn1 = new VETreeNode(newProc);
|
||||
treeNodeReplace.Nodes.Add(tn1); // add tree node to end of list.
|
||||
treeNodeReplace = tn1;
|
||||
}
|
||||
return newItemInfo;
|
||||
}
|
||||
@@ -2573,23 +2722,23 @@ namespace VEPROMS.CSLA.Library
|
||||
firstTrans = true; // B2017-179 set the firstTrans to true and return the itminfo of the first transition location that needs resolved
|
||||
return iii;
|
||||
}
|
||||
if (!HandleSqlExceptionOnCopy(ex))
|
||||
{
|
||||
if (ex.Message.Contains("has External Transitions and has no next step")
|
||||
|| ex.Message.Contains("has External Transitions to Procedure")
|
||||
|| ex.Message.Contains("has External Transitions to it's children")
|
||||
|| ex.Message.Contains("This step has been deleted")
|
||||
)
|
||||
throw ex;
|
||||
if (!HandleSqlExceptionOnCopy(ex))
|
||||
{
|
||||
if (ex.Message.Contains("has External Transitions and has no next step")
|
||||
|| ex.Message.Contains("has External Transitions to Procedure")
|
||||
|| ex.Message.Contains("has External Transitions to it's children")
|
||||
|| ex.Message.Contains("This step has been deleted")
|
||||
)
|
||||
throw ex;
|
||||
FlexibleMessageBox.Show("Details were written to the Error Log.", "Paste Replace Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return itemInfo;
|
||||
}
|
||||
else
|
||||
return itemInfo;
|
||||
return itemInfo;
|
||||
}
|
||||
else
|
||||
return itemInfo;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
private static bool HandleSqlExceptionOnCopy(Exception ex)
|
||||
private static bool HandleSqlExceptionOnCopy(Exception ex)
|
||||
{
|
||||
if (ex.Message.Contains("This step has been deleted"))
|
||||
{
|
||||
|
||||
@@ -722,7 +722,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
foreach (ItemInfo ii in roUsg.MyContent.ContentItems)
|
||||
{
|
||||
string val = newLookup.GetTranslatedRoValue(padroid, ii.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, ii.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false);
|
||||
string val = newLookup.GetTranslatedRoValue(padroid, ii.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, ii.ActiveFormat.PlantFormat.FormatData.SectData.UseTildaPoundCharsForSuperSubScriptInROValues, false, ii);
|
||||
content.FixContentText(roUsg, val, roch.type, origROFstInfo, true);
|
||||
|
||||
if (content.IsDirty)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user