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:
@@ -422,20 +422,49 @@ namespace VEPROMS.CSLA.Library
|
||||
// This returns a list of all of the transitions that may have been affected
|
||||
using(TransitionInfoList trans = TransitionInfoList.GetAffected(this.ItemID))
|
||||
{
|
||||
#region B2012-071 fix JCB
|
||||
Content oldContent = null;
|
||||
foreach (TransitionInfo tran in trans)
|
||||
{
|
||||
using (Content content = tran.MyContent.Get())
|
||||
{
|
||||
content.FixTransitionText(tran);
|
||||
if (content.IsDirty)
|
||||
if (oldContent != null && content.ContentID != oldContent.ContentID)
|
||||
{
|
||||
content.DTS = DateTime.Now;
|
||||
content.Save();
|
||||
if (oldContent.IsDirty)
|
||||
{
|
||||
oldContent.DTS = DateTime.Now;
|
||||
#region B2012-079 fix JCB
|
||||
oldContent.UserID = Volian.Base.Library.VlnSettings.UserID + " - Renumber";
|
||||
#endregion B2012-079 fix JCB
|
||||
oldContent.Save();
|
||||
}
|
||||
else // Update ContentInfo objects to reflect the change in the transition
|
||||
ContentInfo.Refresh(oldContent);
|
||||
oldContent = content;
|
||||
}
|
||||
else // Update ContentInfo objects to reflect the change in the transition
|
||||
ContentInfo.Refresh(content);
|
||||
if (oldContent == null) oldContent = content;
|
||||
oldContent.FixTransitionText(tran);
|
||||
//if (content.IsDirty)
|
||||
//{
|
||||
// content.DTS = DateTime.Now;
|
||||
// content.Save();
|
||||
//}
|
||||
}
|
||||
}
|
||||
if (oldContent != null)
|
||||
{
|
||||
if (oldContent.IsDirty)
|
||||
{
|
||||
oldContent.DTS = DateTime.Now;
|
||||
#region B2012-079 fix JCB
|
||||
oldContent.UserID = Volian.Base.Library.VlnSettings.UserID + " - Renumber";
|
||||
#endregion B2012-079 fix JCB
|
||||
oldContent.Save();
|
||||
}
|
||||
else // Update ContentInfo objects to reflect the change in the transition
|
||||
ContentInfo.Refresh(oldContent);
|
||||
}
|
||||
#endregion B2012-071 fix JCB
|
||||
}
|
||||
}
|
||||
public void UpdatePastedStepTransitionText()
|
||||
|
Reference in New Issue
Block a user