Compare commits
102 Commits
C2024-038
...
df026499d5
| Author | SHA1 | Date | |
|---|---|---|---|
| df026499d5 | |||
| a3aa4157b8 | |||
| 8f3268e1bc | |||
| 5721d440e9 | |||
| 505c396283 | |||
| 643e6bc94f | |||
| 76502e6d97 | |||
| 851a0b3810 | |||
| fd8dbb4c8b | |||
| 4ffd994c5e | |||
| a34828113a | |||
| 461329468c | |||
| 35de5df04d | |||
| 4f0548fd60 | |||
| 5c1d96cc51 | |||
| 57049c0c52 | |||
| 31326e1c91 | |||
| 3c60994a0a | |||
| 773cc42346 | |||
| f46a1f39dc | |||
| b7175bf77f | |||
| ec22232aa8 | |||
| f303cd2236 | |||
| f40cef4416 | |||
| fbca97d38d | |||
| 28bd2cba5c | |||
| 4b35f73bbf | |||
| f4706eb126 | |||
| 21bcb90558 | |||
| ae48ac0cae | |||
| cb4979d5bc | |||
| 7d3ae74e1f | |||
| 9d680aa500 | |||
| 0d50b1c2fe | |||
| 75e034863f | |||
| 3b42de1571 | |||
| 668472286e | |||
| e00d34c99d | |||
| 9fb496dfb3 | |||
| f4eaa4a3ef | |||
| 5d50ed6bdf | |||
| d7ace4eaf9 | |||
| 16a4d335ea | |||
| ba69bb0772 | |||
| 455940caa2 | |||
| 439344757e | |||
| ad912691c9 | |||
| 237144aff6 | |||
| 810332d558 | |||
| f8431d0ba1 | |||
| 57c3bfa16a | |||
| 61f1077608 | |||
| 8877e968b9 | |||
| 4575c90bee | |||
| 21279a87ae | |||
| 3d5ad4a17e | |||
| 9bb7b044a8 | |||
| dc8f2f7561 | |||
| 829dbf84da | |||
| 7b156c17f8 | |||
| cbf7cbc164 | |||
| b04faa816e | |||
| 517ebe2902 | |||
| 03d0d314e3 | |||
| 3e804c5cce | |||
| ee2b8b538e | |||
| fdfd34fe92 | |||
| 2d6fb6523b | |||
| 3084bf3982 | |||
| 5ba51e8392 | |||
| fb5eb43e34 | |||
| b154056276 | |||
| c67b8f9ca1 | |||
| 95e4181360 | |||
| 32dffbe56b | |||
| 6b3c8d373b | |||
| db29107f47 | |||
| 355537f2ab | |||
| 0729ef0c21 | |||
| 6fe82bfd0f | |||
| 39bf072363 | |||
| da7c384fd8 | |||
| 95130fd9a0 | |||
| 978e2344a3 | |||
| c9bf45602c | |||
| aa160b2036 | |||
| f82b32d351 | |||
| e519dc9a57 | |||
| f020c37db9 | |||
| 5a4ec3b6b1 | |||
| 2602d6c9d2 | |||
| ff403583d7 | |||
| c5577cc2bd | |||
| 78be6e5dc1 | |||
| b954a41375 | |||
| 0100a11cfe | |||
| 04cf2e8534 | |||
| be00724818 | |||
| 274d93c61a | |||
| 7dc4c30436 | |||
| 028ef4bc31 | |||
| 42124d65c7 |
@@ -48,7 +48,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.6Build\DevComponents.DotNetBar2.dll</HintPath>
|
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.8.1Build\DevComponents.DotNetBar2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.6Build\DevComponents.DotNetBar2.dll</HintPath>
|
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.8.1Build\DevComponents.DotNetBar2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.6Build\DevComponents.DotNetBar2.dll</HintPath>
|
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.8.1Build\DevComponents.DotNetBar2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
|
<Reference Include="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
|||||||
@@ -576,7 +576,7 @@
|
|||||||
this.myTVdel.Name = "myTVdel";
|
this.myTVdel.Name = "myTVdel";
|
||||||
this.myTVdel.Size = new System.Drawing.Size(299, 367);
|
this.myTVdel.Size = new System.Drawing.Size(299, 367);
|
||||||
this.myTVdel.TabIndex = 34;
|
this.myTVdel.TabIndex = 34;
|
||||||
this.myTVdel.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.myTV_AfterCheck);
|
this.myTVdel.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.myTV_AfterCheck_DelAnn);
|
||||||
//
|
//
|
||||||
// btnDeleteItems
|
// btnDeleteItems
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -124,11 +124,9 @@ namespace VEPROMS
|
|||||||
// check to see if at least one tree node is checked.
|
// check to see if at least one tree node is checked.
|
||||||
// Used to determin whether to make the process button active for
|
// Used to determin whether to make the process button active for
|
||||||
// Refresh Transitions and for Update RO Values
|
// Refresh Transitions and for Update RO Values
|
||||||
// B2025-013 Admin Tool Tree Behavior
|
private bool AtLeastOneNodeChecked()
|
||||||
//Made this generic so same logic for all the TreeViews on this form
|
|
||||||
private bool AtLeastOneNodeChecked(TreeNodeCollection col)
|
|
||||||
{
|
{
|
||||||
foreach (TreeNode tn in col)
|
foreach (TreeNode tn in myTV.Nodes)
|
||||||
if (NodeIsChecked(tn))
|
if (NodeIsChecked(tn))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
@@ -1232,30 +1230,24 @@ namespace VEPROMS
|
|||||||
|
|
||||||
private void myTV_AfterCheck(object sender, TreeViewEventArgs e)
|
private void myTV_AfterCheck(object sender, TreeViewEventArgs e)
|
||||||
{
|
{
|
||||||
//B2025 - 013 Admin Tool Tree Behavior
|
|
||||||
//only want to perform this if
|
|
||||||
// not an unknown action
|
|
||||||
// aka is a mouse click
|
|
||||||
// if this is fire-ing because clicked a parent or a child of an item
|
|
||||||
// want this to only fire once - for the item clicked - not for parents/children
|
|
||||||
if (e.Action != TreeViewAction.Unknown)
|
if (e.Action != TreeViewAction.Unknown)
|
||||||
{
|
{
|
||||||
if (e.Node.Nodes.Count > 0)
|
if (e.Node.Nodes.Count > 0)
|
||||||
{
|
{
|
||||||
CheckChildNodes(e.Node, e.Node.Checked);
|
CheckChildNodes(e.Node, e.Node.Checked);
|
||||||
}
|
}
|
||||||
//B2025-013 Admin Tool Tree Behavior
|
}
|
||||||
//if a node gets unchecked,
|
if (swDeleteAnnotations.Value)
|
||||||
//then uncheck both its parents and children
|
{
|
||||||
if (!e.Node.Checked)
|
if (e.Node.Checked)
|
||||||
{
|
{
|
||||||
DiselectParentNodes(e.Node.Parent);
|
DiselectParentNodes(e.Node.Parent);
|
||||||
DiselectChildNodes(e.Node.Nodes);
|
DiselectChildNodes(e.Node.Nodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
btnFixLinks.Enabled = btnDeleteItems.Enabled = AtLeastOneNodeChecked(((TreeView)sender).Nodes); // C2017-030 support for Refresh Transitions/Update RO Values
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btnFixLinks.Enabled = AtLeastOneNodeChecked(); // C2017-030 support for Refresh Transitions/Update RO Values
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DiselectParentNodes(TreeNode parent)
|
private void DiselectParentNodes(TreeNode parent)
|
||||||
@@ -1291,6 +1283,76 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//After check model to select and deselect nodes on the delete and annotation tree.
|
||||||
|
private void myTV_AfterCheck_DelAnn(object sender, TreeViewEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Action != TreeViewAction.Unknown)
|
||||||
|
{
|
||||||
|
if (e.Node.Nodes.Count > 0)
|
||||||
|
{
|
||||||
|
CheckChildNodes_DelAnn(e.Node, e.Node.Checked);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.Node.Checked)
|
||||||
|
{
|
||||||
|
// Ensure child nodes follow the parent node's state
|
||||||
|
CheckChildNodes_DelAnn(e.Node, e.Node.Checked);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Automatically deselect parent nodes if current node is unchecked
|
||||||
|
if (swDeleteFolder.Value)
|
||||||
|
DiselectParentNodes_DelAnn(e.Node);
|
||||||
|
}
|
||||||
|
|
||||||
|
btnFixLinks.Enabled = AtLeastOneNodeChecked_DelAnn(); // Ensure button is enabled based on custom logic
|
||||||
|
}
|
||||||
|
private void DiselectParentNodes_DelAnn(TreeNode node)
|
||||||
|
{
|
||||||
|
TreeNode parent = node.Parent;
|
||||||
|
while (parent != null)
|
||||||
|
{
|
||||||
|
parent.Checked = false;
|
||||||
|
parent = parent.Parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void DiselectChildNodes_DelAnn(TreeNodeCollection children)
|
||||||
|
{
|
||||||
|
foreach (TreeNode child in children)
|
||||||
|
{
|
||||||
|
child.Checked = false;
|
||||||
|
DiselectChildNodes_DelAnn(child.Nodes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void CheckChildNodes_DelAnn(TreeNode treeNode, bool isChecked)
|
||||||
|
{
|
||||||
|
foreach (TreeNode tn in treeNode.Nodes)
|
||||||
|
{
|
||||||
|
tn.Checked = isChecked;
|
||||||
|
|
||||||
|
if (tn.Nodes.Count > 0)
|
||||||
|
CheckChildNodes_DelAnn(tn, isChecked);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private bool AtLeastOneNodeChecked_DelAnn()
|
||||||
|
{
|
||||||
|
foreach (TreeNode node in myTV.Nodes)
|
||||||
|
{
|
||||||
|
if (node.Checked || AnyChildNodeChecked_DelAnn(node))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
private bool AnyChildNodeChecked_DelAnn(TreeNode node)
|
||||||
|
{
|
||||||
|
foreach (TreeNode childNode in node.Nodes)
|
||||||
|
{
|
||||||
|
if (childNode.Checked || AnyChildNodeChecked_DelAnn(childNode))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private ProgressBarItem _ProgressBar = null;
|
private ProgressBarItem _ProgressBar = null;
|
||||||
|
|
||||||
@@ -1726,24 +1788,14 @@ namespace VEPROMS
|
|||||||
List<ProcedureInfo> pil = new List<ProcedureInfo>();
|
List<ProcedureInfo> pil = new List<ProcedureInfo>();
|
||||||
List<DocVersionInfo> dvil = new List<DocVersionInfo>();
|
List<DocVersionInfo> dvil = new List<DocVersionInfo>();
|
||||||
|
|
||||||
//B2025-013 Admin Tool Tree Behavior
|
|
||||||
//For Procedures & Doc Versions
|
|
||||||
//To avoid processing duplicates
|
|
||||||
//only want to add highest nodes selected
|
|
||||||
// i.e. if both an item and it's parent is checked, then add the parent
|
|
||||||
// not each individual item
|
|
||||||
// if a parent isn't checked, then add the individual item
|
|
||||||
// one exception to this is if the parent is not in the docversions
|
|
||||||
// for example: the top node - VEPROMS
|
|
||||||
//if that is selected, then we will add its children instead of it.
|
|
||||||
// Create a list of procedures the user selected
|
// Create a list of procedures the user selected
|
||||||
foreach (TreeNode tn in myProcedures.Keys)
|
foreach (TreeNode tn in myProcedures.Keys)
|
||||||
if (tn.Checked && (tn.Parent == null || !tn.Parent.Checked || !myDocVersions.ContainsKey(tn.Parent)))
|
if (tn.Checked)
|
||||||
pil.Add(myProcedures[tn]);
|
pil.Add(myProcedures[tn]);
|
||||||
|
|
||||||
// Create a list of doc versions the user selected
|
// Create a list of doc versions the user selected
|
||||||
foreach (TreeNode tn in myDocVersions.Keys)
|
foreach (TreeNode tn in myDocVersions.Keys)
|
||||||
if (tn.Checked && (tn.Parent == null || !tn.Parent.Checked || !myDocVersions.ContainsKey(tn.Parent)))
|
if (tn.Checked)
|
||||||
dvil.Add(myDocVersions[tn]);
|
dvil.Add(myDocVersions[tn]);
|
||||||
|
|
||||||
bool cancelledOut = false; // Flag to indicate if the process should be cancelled
|
bool cancelledOut = false; // Flag to indicate if the process should be cancelled
|
||||||
@@ -1936,6 +1988,15 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<ProcedureInfo> RetrieveChkAnnotations()
|
||||||
|
{
|
||||||
|
List<ProcedureInfo> pil = new List<ProcedureInfo>();
|
||||||
|
foreach (TreeNode tn in myProcedures.Keys)
|
||||||
|
if (tn.Checked)
|
||||||
|
pil.Add(myProcedures[tn]);
|
||||||
|
return pil;
|
||||||
|
}
|
||||||
|
|
||||||
//C2025-011 RO Update Admin Tool Memory Enhancements
|
//C2025-011 RO Update Admin Tool Memory Enhancements
|
||||||
private void txtProcess_TextChanged(object sender, EventArgs e)
|
private void txtProcess_TextChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -194,23 +194,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
|
|
||||||
public partial class AnnotationAuditInfoList
|
public partial class AnnotationAuditInfoList
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// C2024- 038 - Summary of Changes report generation enhancements
|
|
||||||
/// Constructor - takes a Generic list of AnnotationAuditInfo
|
|
||||||
/// and creates a AnnotationAuditInfoList
|
|
||||||
/// </summary>
|
|
||||||
public AnnotationAuditInfoList(List<AnnotationAuditInfo> lst)
|
|
||||||
{
|
|
||||||
IsReadOnly = false;
|
|
||||||
if (lst != null)
|
|
||||||
{
|
|
||||||
foreach (AnnotationAuditInfo itm in lst)
|
|
||||||
this.Add(itm);
|
|
||||||
}
|
|
||||||
IsReadOnly = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return a list of all AnnotationAuditInfo by ItemID.
|
/// Return a list of all AnnotationAuditInfo by ItemID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -504,23 +487,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
|
|
||||||
public partial class ContentAuditInfoList
|
public partial class ContentAuditInfoList
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// C2024- 038 - Summary of Changes report generation enhancements
|
|
||||||
/// Constructor - takes a Generic list of ContentAuditInfo
|
|
||||||
/// and creates a ContentAuditInfoList
|
|
||||||
/// </summary>
|
|
||||||
public ContentAuditInfoList(List<ContentAuditInfo> lst)
|
|
||||||
{
|
|
||||||
IsReadOnly = false;
|
|
||||||
if (lst != null)
|
|
||||||
{
|
|
||||||
foreach (ContentAuditInfo itm in lst)
|
|
||||||
this.Add(itm);
|
|
||||||
}
|
|
||||||
IsReadOnly = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return a list of all ContentAuditInfo by ContentID.
|
/// Return a list of all ContentAuditInfo by ContentID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.6Build\DevComponents.DotNetBar2.dll</HintPath>
|
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.8.1Build\DevComponents.DotNetBar2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.6Build\DevComponents.DotNetBar2.dll</HintPath>
|
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.8.1Build\DevComponents.DotNetBar2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ using System.IO;
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using JR.Utils.GUI.Forms;
|
using JR.Utils.GUI.Forms;
|
||||||
using Volian.Base.Library;
|
using Volian.Base.Library;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace Volian.Controls.Library
|
namespace Volian.Controls.Library
|
||||||
{
|
{
|
||||||
@@ -164,7 +163,7 @@ namespace Volian.Controls.Library
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
DateTime revDate;
|
DateTime revDate;
|
||||||
if (!DateTime.TryParse(cfg.Print_RevDate, out revDate)) revDate = MyProcedureInfo.ChangeBarDate; // DateTime.Now;
|
if (!DateTime.TryParse(cfg.Print_RevDate, out revDate)) revDate = MyProcedureInfo.ChangeBarDate; // DateTime.Now;
|
||||||
SetRevDate(revDate);
|
SetRevDate(revDate);
|
||||||
//SetRevDate(DateTime.Parse(cfg.Print_RevDate));
|
//SetRevDate(DateTime.Parse(cfg.Print_RevDate));
|
||||||
}
|
}
|
||||||
@@ -264,7 +263,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
||||||
// B2023-066: Crash when trying to access a deleted annotation type (added the ati==null check)
|
// B2023-066: Crash when trying to access a deleted annotation type (added the ati==null check)
|
||||||
tn = annotationDeleted.Nodes.Add(ati == null ? "Deleted Annotation Type" : ati.Name);
|
tn = annotationDeleted.Nodes.Add(ati==null?"Deleted Annotation Type":ati.Name);
|
||||||
}
|
}
|
||||||
TreeNode cn = tn.Nodes.Add(aai.ListString());
|
TreeNode cn = tn.Nodes.Add(aai.ListString());
|
||||||
cn.Tag = aai;
|
cn.Tag = aai;
|
||||||
@@ -518,7 +517,7 @@ namespace Volian.Controls.Library
|
|||||||
if (delC.Type >= 0 && delC.Type < 1000)
|
if (delC.Type >= 0 && delC.Type < 1000)
|
||||||
{
|
{
|
||||||
int indx = delC.Config.IndexOf("DelProcReason");
|
int indx = delC.Config.IndexOf("DelProcReason");
|
||||||
if (indx >= 0 && delC.Config.Length > indx + 15) // 15 accounts for 'DelProcReason = "'
|
if (indx >= 0 && delC.Config.Length > indx+15) // 15 accounts for 'DelProcReason = "'
|
||||||
{
|
{
|
||||||
string reason = delC.Config.Substring(indx + 15);
|
string reason = delC.Config.Substring(indx + 15);
|
||||||
if (reason != null && reason.Length > 0)
|
if (reason != null && reason.Length > 0)
|
||||||
@@ -530,7 +529,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TreeNode tnn = deletedItems.Nodes.Add(iai.ToString() + "; Reason: " + strR);
|
TreeNode tnn = deletedItems.Nodes.Add(iai.ToString()+"; Reason: " + strR);
|
||||||
tnn.Tag = iai;
|
tnn.Tag = iai;
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
@@ -559,7 +558,7 @@ namespace Volian.Controls.Library
|
|||||||
if (MyProcedureInfo == null)
|
if (MyProcedureInfo == null)
|
||||||
{
|
{
|
||||||
this.ParentForm.Cursor = Cursors.Default;
|
this.ParentForm.Cursor = Cursors.Default;
|
||||||
btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = cbSumExcludeAnn.Enabled = DT_SumAsOf.Enabled = lbChanges.Items.Count > 0;
|
btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = lbChanges.Items.Count > 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ContentAuditInfoList cail2;
|
ContentAuditInfoList cail2;
|
||||||
@@ -587,7 +586,7 @@ namespace Volian.Controls.Library
|
|||||||
// B2020-156: When procedure title is changed, it does not print in Summary/Chronolgy of changes.
|
// B2020-156: When procedure title is changed, it does not print in Summary/Chronolgy of changes.
|
||||||
// Need to only check the date (not the date/time) for some procedures, the original item was listed
|
// Need to only check the date (not the date/time) for some procedures, the original item was listed
|
||||||
// in the list box and should not be because some MyRevDate's did not have time included.
|
// in the list box and should not be because some MyRevDate's did not have time included.
|
||||||
if (CompareDateOrDateTime(cai.DTS, MyRevDate) || cai.ActionWhen > MyRevDate)
|
if (CompareDateOrDateTime(cai.DTS,MyRevDate) || cai.ActionWhen > MyRevDate)
|
||||||
{
|
{
|
||||||
string itemTitle = FixPath(cai.Path);
|
string itemTitle = FixPath(cai.Path);
|
||||||
lbChanges.Items.Add(cai);
|
lbChanges.Items.Add(cai);
|
||||||
@@ -615,7 +614,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
//Console.WriteLine("WalkProcedure fini: {0} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalSeconds);
|
//Console.WriteLine("WalkProcedure fini: {0} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalSeconds);
|
||||||
this.ParentForm.Cursor = Cursors.Default;
|
this.ParentForm.Cursor = Cursors.Default;
|
||||||
btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = cbSumExcludeAnn.Enabled = DT_SumAsOf.Enabled = lbChanges.Items.Count > 0;
|
btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = lbChanges.Items.Count > 0;
|
||||||
RefreshRequired = false;
|
RefreshRequired = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -649,73 +648,9 @@ namespace Volian.Controls.Library
|
|||||||
//_AnnotationList = AnnotationAuditInfoList.GetChronology(0, 0, MyProcedureInfo.ChangeBarDate);
|
//_AnnotationList = AnnotationAuditInfoList.GetChronology(0, 0, MyProcedureInfo.ChangeBarDate);
|
||||||
//added setting selected slave in order for reports to replace unit number,etc jcb 20101010
|
//added setting selected slave in order for reports to replace unit number,etc jcb 20101010
|
||||||
MyItemInfo.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = ApplDisplayMode;
|
MyItemInfo.MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = ApplDisplayMode;
|
||||||
|
// OnSummaryPrintRequest(new DisplayHistoryReportEventArgs(Volian.Base.Library.VlnSettings.TemporaryFolder + @"\MySummary.pdf", MyItemInfo.MyProcedure, _SummaryAuditList, _AnnotationList));
|
||||||
var dhr = new DisplayHistoryReportEventArgs(string.Format(@"{0}\{1} Summary of Changes.pdf", Volian.Base.Library.VlnSettings.TemporaryFolder, MyItemInfo.MyProcedure.PDFNumber), MyItemInfo.MyProcedure, null, null);
|
OnSummaryPrintRequest(new DisplayHistoryReportEventArgs(string.Format(@"{0}\{1} Summary of Changes.pdf", Volian.Base.Library.VlnSettings.TemporaryFolder, MyItemInfo.MyProcedure.PDFNumber), MyItemInfo.MyProcedure, _SummaryAuditList, _AnnotationList));
|
||||||
|
//}
|
||||||
//C2024- 038 - Summary of Changes report generation enhancements
|
|
||||||
//check if need to modify
|
|
||||||
// _SummaryAuditList
|
|
||||||
if (DT_SumAsOf.Checked)
|
|
||||||
dhr.AuditList = FilterSummaryByDate(_SummaryAuditList, DT_SumAsOf.Value);
|
|
||||||
else
|
|
||||||
dhr.AuditList = _SummaryAuditList;
|
|
||||||
|
|
||||||
//C2024- 038 - Summary of Changes report generation enhancements
|
|
||||||
// if Exclude Annotations Checked
|
|
||||||
// send an empty list instead of
|
|
||||||
//_AnnotationList
|
|
||||||
if (cbSumExcludeAnn.Checked)
|
|
||||||
dhr.AnnotationList = new AnnotationAuditInfoList(null);
|
|
||||||
else if (DT_SumAsOf.Checked)
|
|
||||||
dhr.AnnotationList = FilterSummaryByDate_Annotations(_AnnotationList, DT_SumAsOf.Value);
|
|
||||||
else
|
|
||||||
{ dhr.AnnotationList = _AnnotationList; }
|
|
||||||
|
|
||||||
OnSummaryPrintRequest(dhr);
|
|
||||||
}
|
|
||||||
|
|
||||||
//C2024- 038 - Summary of Changes report generation enhancements
|
|
||||||
//modify _SummaryAuditList
|
|
||||||
//to limit to a specific date
|
|
||||||
private ContentAuditInfoList FilterSummaryByDate(ContentAuditInfoList summaryAuditList, DateTime value)
|
|
||||||
{
|
|
||||||
List<ContentAuditInfo> slst = summaryAuditList.Clone().ToList();
|
|
||||||
|
|
||||||
//Grab the first change to each item before the date and set that to the AsOf date
|
|
||||||
foreach (ContentAuditInfo firstbeforedate in slst.GroupBy(x => x.ItemID).Select(x => x.OrderByDescending(y => y.DTS).FirstOrDefault(d => d.DTS < value)))
|
|
||||||
{
|
|
||||||
if (firstbeforedate != null && firstbeforedate.ActionWhat != "Deleted")
|
|
||||||
{
|
|
||||||
firstbeforedate.ActionWhat = $"As Of: {value.ToShortDateString()}";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//remove all items before the date we are checking against
|
|
||||||
//note that for deleted - sometimes the DTS is not correct and
|
|
||||||
//need to use the ActionWhen
|
|
||||||
slst.RemoveAll(x => x.DTS < value && !x.ActionWhat.StartsWith("As Of:") && (x.ActionWhat != "Deleted" || (x.ActionWhen < x.DTS ? x.DTS : x.ActionWhen) < value));
|
|
||||||
|
|
||||||
//remove all items where first text matches the last text
|
|
||||||
//unless it was added after the date we are checking against
|
|
||||||
//or the last item is a deletion that occurred after
|
|
||||||
//the date we are checking against
|
|
||||||
var itms = slst.Select(x => x.ItemID).Distinct().ToList();
|
|
||||||
foreach (int itmID in itms)
|
|
||||||
{
|
|
||||||
ContentAuditInfo first = slst.Where(i => i.ItemID == itmID).OrderBy(y => y.DTS).FirstOrDefault();
|
|
||||||
ContentAuditInfo last = slst.Where(i => i.ItemID == itmID).OrderByDescending(y => y.DTS).FirstOrDefault();
|
|
||||||
if (first != null && last != null && first.DTS < value && (last.ActionWhat != "Deleted" || (last.ActionWhen < last.DTS ? last.DTS : last.ActionWhen) < value) && ItemInfo.ConvertToDisplayText(first.Text) == ItemInfo.ConvertToDisplayText(last.Text))
|
|
||||||
slst.RemoveAll(x => x.ItemID == itmID);
|
|
||||||
}
|
|
||||||
|
|
||||||
return new ContentAuditInfoList(slst);
|
|
||||||
}
|
|
||||||
|
|
||||||
//C2024- 038 - Summary of Changes report generation enhancements
|
|
||||||
//modify _SummaryAuditList
|
|
||||||
//to limit to a specific date
|
|
||||||
private AnnotationAuditInfoList FilterSummaryByDate_Annotations(AnnotationAuditInfoList annotationAuditList, DateTime value)
|
|
||||||
{
|
|
||||||
return new AnnotationAuditInfoList(annotationAuditList.Where(x => x.DTS >= value).ToList());
|
|
||||||
}
|
}
|
||||||
private void btnRefresh_Click(object sender, EventArgs e)
|
private void btnRefresh_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -1125,7 +1060,7 @@ namespace Volian.Controls.Library
|
|||||||
set { _AuditList = value; }
|
set { _AuditList = value; }
|
||||||
}
|
}
|
||||||
private AnnotationAuditInfoList _AnnotationList;
|
private AnnotationAuditInfoList _AnnotationList;
|
||||||
public AnnotationAuditInfoList AnnotationList
|
public AnnotationAuditInfoList AnnotationList
|
||||||
{
|
{
|
||||||
get { return _AnnotationList; }
|
get { return _AnnotationList; }
|
||||||
set { _AnnotationList = value; }
|
set { _AnnotationList = value; }
|
||||||
|
|||||||
BIN
PROMS/Volian.Controls.Library/DisplayHistory.designer.cs
generated
BIN
PROMS/Volian.Controls.Library/DisplayHistory.designer.cs
generated
Binary file not shown.
@@ -1699,8 +1699,6 @@ namespace Volian.Controls.Library
|
|||||||
else lbSrchResultsIncTrans.DisplayMember = _DisplayMember;
|
else lbSrchResultsIncTrans.DisplayMember = _DisplayMember;
|
||||||
if (_SearchResults != null)
|
if (_SearchResults != null)
|
||||||
{
|
{
|
||||||
// record count flag
|
|
||||||
bool reccnt = true;
|
|
||||||
// B2021-076: Proms search results are not presented in order when printed to PDF
|
// B2021-076: Proms search results are not presented in order when printed to PDF
|
||||||
// B2023-041 - backed out previous change as it was not needed and was preventing the sorting of search results text
|
// B2023-041 - backed out previous change as it was not needed and was preventing the sorting of search results text
|
||||||
if (cbSorted.Checked)
|
if (cbSorted.Checked)
|
||||||
@@ -1715,37 +1713,11 @@ namespace Volian.Controls.Library
|
|||||||
// B2021-076: Proms search results are not presented in order when printed to PDF
|
// B2021-076: Proms search results are not presented in order when printed to PDF
|
||||||
var sortedResults = _SearchResults.OrderBy(x => x.SearchDefaultSort).ToList();
|
var sortedResults = _SearchResults.OrderBy(x => x.SearchDefaultSort).ToList();
|
||||||
|
|
||||||
// if searching for just a "?" remove all the special code matches and leaving only the true matches.
|
|
||||||
if (SearchString == "\\?")
|
|
||||||
{
|
|
||||||
string pat = @"\?";
|
|
||||||
Regex r = new Regex(pat, RegexOptions.IgnoreCase);
|
|
||||||
for (int i = 0; i < sortedResults.Count; i++)
|
|
||||||
{
|
|
||||||
|
|
||||||
Match m = r.Match(sortedResults[i].DisplayText);
|
|
||||||
if (m.Success)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sortedResults.Remove(sortedResults[i]);
|
|
||||||
|
|
||||||
i--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
grpPanSearchResults.Text = string.Format("Search Results Found: {0}", sortedResults.Count);
|
|
||||||
reccnt = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tabSearchTypes.SelectedTab != tabSearchTypes.Tabs[4]) lbSrchResults.DataSource = sortedResults;
|
if (tabSearchTypes.SelectedTab != tabSearchTypes.Tabs[4]) lbSrchResults.DataSource = sortedResults;
|
||||||
else lbSrchResultsIncTrans.DataSource = sortedResults;
|
else lbSrchResultsIncTrans.DataSource = sortedResults;
|
||||||
}
|
}
|
||||||
if (reccnt)
|
|
||||||
{
|
grpPanSearchResults.Text = string.Format("Search Results Found: {0}", _SearchResults.Count);
|
||||||
grpPanSearchResults.Text = string.Format("Search Results Found: {0}", _SearchResults.Count);
|
|
||||||
}
|
|
||||||
grpPanSearchResults.Style.BackColor = Color.LightGreen;// Color.YellowGreen; Color.DarkSeaGreen;
|
grpPanSearchResults.Style.BackColor = Color.LightGreen;// Color.YellowGreen; Color.DarkSeaGreen;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2104,7 +2076,6 @@ namespace Volian.Controls.Library
|
|||||||
//TypesSelected = (typstr != null) ? "Searched Step Types: " + typstr : "Searched All Step Types";
|
//TypesSelected = (typstr != null) ? "Searched Step Types: " + typstr : "Searched All Step Types";
|
||||||
//TypesSelected = "Searched Step Types: " + ((typstr != null) ? typstr : "All Step Types");
|
//TypesSelected = "Searched Step Types: " + ((typstr != null) ? typstr : "All Step Types");
|
||||||
SearchResults = ItemInfoList.GetListFromTextSearch(DVISearchList, TypeSearchList, TextSearchString /*.Replace(@"\",@"\u9586?")*/, cbxBooleanTxtSrch.Checked ? 2 : cbxCaseSensitive.Checked ? 1 : 0, cbxIncROTextSrch.Checked ? ItemSearchIncludeLinks.Value : ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars, unitPrefix, byWordPrefix, byWordSuffix);
|
SearchResults = ItemInfoList.GetListFromTextSearch(DVISearchList, TypeSearchList, TextSearchString /*.Replace(@"\",@"\u9586?")*/, cbxBooleanTxtSrch.Checked ? 2 : cbxCaseSensitive.Checked ? 1 : 0, cbxIncROTextSrch.Checked ? ItemSearchIncludeLinks.Value : ItemSearchIncludeLinks.Nothing, includeRTFformat, includeSpecialChars, unitPrefix, byWordPrefix, byWordSuffix);
|
||||||
|
|
||||||
cmbResultsStyleIndex = 3; // display step text in results
|
cmbResultsStyleIndex = 3; // display step text in results
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
<Reference Include="DevComponents.DotNetBar2, Version=14.1.0.37, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.6Build\DevComponents.DotNetBar2.dll</HintPath>
|
<HintPath>..\..\..\..\3rdPartyLibraries\DotNetBar\DotNetBar4.8.1Build\DevComponents.DotNetBar2.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
@@ -443,9 +443,6 @@
|
|||||||
<DependentUpon>DisplayBookMarks.cs</DependentUpon>
|
<DependentUpon>DisplayBookMarks.cs</DependentUpon>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="DisplayHistory.resx">
|
|
||||||
<DependentUpon>DisplayHistory.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="DisplayLibDocs.resx">
|
<EmbeddedResource Include="DisplayLibDocs.resx">
|
||||||
<DependentUpon>DisplayLibDocs.cs</DependentUpon>
|
<DependentUpon>DisplayLibDocs.cs</DependentUpon>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
|||||||
@@ -1090,7 +1090,7 @@ namespace Volian.Print.Library
|
|||||||
firstCAI = null;
|
firstCAI = null;
|
||||||
lastCAI = null;
|
lastCAI = null;
|
||||||
}
|
}
|
||||||
else if (firstCAI.ActionWhat == lastCAI.ActionWhat || firstCAI.ActionWhat.StartsWith("As Of:"))
|
else if (firstCAI.ActionWhat == lastCAI.ActionWhat)
|
||||||
{
|
{
|
||||||
auditList1.Add(firstCAI);
|
auditList1.Add(firstCAI);
|
||||||
auditList1.Add(lastCAI);
|
auditList1.Add(lastCAI);
|
||||||
@@ -1153,7 +1153,7 @@ namespace Volian.Print.Library
|
|||||||
firstCAI = null;
|
firstCAI = null;
|
||||||
lastCAI = null;
|
lastCAI = null;
|
||||||
}
|
}
|
||||||
else if (firstCAI.ActionWhat == lastCAI.ActionWhat || firstCAI.ActionWhat.StartsWith("As Of:"))
|
else if (firstCAI.ActionWhat == lastCAI.ActionWhat)
|
||||||
{
|
{
|
||||||
auditList1.Add(firstCAI);
|
auditList1.Add(firstCAI);
|
||||||
auditList1.Add(lastCAI);
|
auditList1.Add(lastCAI);
|
||||||
|
|||||||
Reference in New Issue
Block a user