Fix to UpdateTransitionText for bugs B2012-071 and B2012-079 One ContentAudit for all transitions Indentify Automatic Transition renumbering with current user

If the user selects a deleted item from history, a messagebox is displayed Include deleted items in the Change List
Fixed CloseTabItem so that closed DockTab fires events
Added event handler for changes to the procedure content so that updating the Rev Date and Rev Number will refresh the step item change bars
Remove event handler for changes to the procedure content on dispose
Added Section headers for the Annotation portion of the Chronology and Summary reports
This commit is contained in:
Rich
2012-04-04 19:08:56 +00:00
parent 74097dc316
commit b4e85fd3b0
7 changed files with 113 additions and 16 deletions

View File

@@ -117,7 +117,12 @@ namespace Volian.Controls.Library
{
ContentAuditInfo cai = lbChanges.SelectedItem as ContentAuditInfo;
if (cai != null)
OnHistorySelectionChanged(new DisplayHistoryEventArgs(cai.ItemID));
{
if (cai.DeleteStatus > 0)
MessageBox.Show("This item has been deleted.","Deleted Item",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
else
OnHistorySelectionChanged(new DisplayHistoryEventArgs(cai.ItemID));
}
else
{
AnnotationAuditInfo aai = lbChanges.SelectedItem as AnnotationAuditInfo;
@@ -415,7 +420,7 @@ namespace Volian.Controls.Library
_AnnotationList = aail2;
foreach (ContentAuditInfo cai in cail2)
{
if (cai.DTS > MyProcedureInfo.DTS)
if (cai.DTS > MyProcedureInfo.DTS || cai.ActionWhen > MyProcedureInfo.DTS)
{
string itemTitle = FixPath(cai.Path);
lbChanges.Items.Add(cai);

View File

@@ -464,7 +464,8 @@ namespace Volian.Controls.Library
private void CloseTabItem(DisplayTabItem myTabItem)
{
Bar b = myTabItem.ContainerControl as Bar;
b.Items.Remove(myTabItem);
b.CloseDockTab(myTabItem);
//b.Items.Remove(myTabItem);
RemoveItem(myTabItem);
}
/// <summary>

View File

@@ -189,6 +189,7 @@ namespace Volian.Controls.Library
}
// Deal with changes in content data
value.MyContent.Changed += new ContentInfoEvent(MyContent_Changed);
value.MyProcedure.MyContent.Changed += new ContentInfoEvent(MyContent_Changed);
// Deal with change in item data
value.Changed += new ItemInfoEvent(value_Changed);
value.OrdinalChanged += new ItemInfoEvent(value_OrdinalChanged);

View File

@@ -19,6 +19,7 @@ namespace Volian.Controls.Library
}
base.Dispose(disposing);
MyItemInfo.MyContent.Changed -= new VEPROMS.CSLA.Library.ContentInfoEvent(MyContent_Changed);
MyItemInfo.MyProcedure.MyContent.Changed -= new VEPROMS.CSLA.Library.ContentInfoEvent(MyContent_Changed);
}
#region Component Designer generated code

Binary file not shown.