Added code to handle non-date formatted revision dates (eg: DRAFT)
Modified method to populate ContentAuditInfoList used in chronology and summary report Modified method to populate AnnotationAuditInfoList used in chronology and summary report Modified code to use ChangeBarDate when preparing chronology and summary reports
This commit is contained in:
@@ -272,7 +272,7 @@ namespace Volian.Print.Library
|
||||
if (cai.ContentID != lastID) maxDTS = DateTime.MinValue;
|
||||
h = new Phrase();
|
||||
h.Font = f3;
|
||||
string actionWhat = (cai.ActionWhat == "Added" && cai.DTS <= MyProc.DTS) ? "Original" : cai.ActionWhat != "Changed" ? cai.ActionWhat : cai.DTS <= maxDTS ? "Restored" : cai.DTS > MyProc.DTS ? cai.ActionWhat : "Original";
|
||||
string actionWhat = (cai.ActionWhat == "Added" && cai.DTS <= MyProc.ChangeBarDate) ? "Original" : cai.ActionWhat != "Changed" ? cai.ActionWhat : cai.DTS <= maxDTS ? "Restored" : cai.DTS > MyProc.ChangeBarDate ? cai.ActionWhat : "Original";
|
||||
if (actionWhat == "Deleted" || actionWhat == "Restored")
|
||||
h.Add(actionWhat + "\r\n" + cai.ActionWhen.ToString());
|
||||
else
|
||||
@@ -689,7 +689,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
auditList.Add(firstCAI);
|
||||
}
|
||||
else if (lastCAI.ActionWhat == "Deleted" && firstCAI.DTS < MyProc.DTS)
|
||||
else if (lastCAI.ActionWhat == "Deleted" && firstCAI.DTS < MyProc.ChangeBarDate)
|
||||
{
|
||||
auditList.Add(lastCAI);
|
||||
}
|
||||
@@ -736,7 +736,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
annotationList.Add(firstAAI);
|
||||
}
|
||||
else if (lastAAI.ActionWhat == "Deleted" && firstAAI.DTS < MyProc.DTS)
|
||||
else if (lastAAI.ActionWhat == "Deleted" && firstAAI.DTS < MyProc.ChangeBarDate)
|
||||
{
|
||||
annotationList.Add(lastAAI);
|
||||
}
|
||||
@@ -845,7 +845,7 @@ namespace Volian.Print.Library
|
||||
//what
|
||||
h = new Phrase();
|
||||
h.Font = f3;
|
||||
h.Add(cai.ActionWhen > MyProc.DTS ? cai.ActionWhat : "Original");
|
||||
h.Add(cai.ActionWhen > MyProc.ChangeBarDate ? cai.ActionWhat : "Original");
|
||||
c = new PdfPCell(h);
|
||||
c.Colspan = 1;
|
||||
c.HorizontalAlignment = Element.ALIGN_CENTER;
|
||||
@@ -1009,7 +1009,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
if (firstCAI.ActionWhat == "Added" && lastCAI.ActionWhat != "Deleted")
|
||||
{
|
||||
if (firstCAI.DTS > MyProc.DTS)
|
||||
if (firstCAI.DTS > MyProc.ChangeBarDate)
|
||||
lastCAI.ActionWhat = firstCAI.ActionWhat;
|
||||
//this step was originally commented out, then jcb un commented it, but we saw a summary report that had 2 added rows
|
||||
//for the same step which is highly undesirable, so we commented it out again 1/17/2012
|
||||
@@ -1038,7 +1038,7 @@ namespace Volian.Print.Library
|
||||
firstCAI = null;
|
||||
lastCAI = null;
|
||||
}
|
||||
else if (firstCAI.ActionWhat == "Added" && lastCAI.ActionWhat == "Changed" && firstCAI.DTS > MyProc.DTS)
|
||||
else if (firstCAI.ActionWhat == "Added" && lastCAI.ActionWhat == "Changed" && firstCAI.DTS > MyProc.ChangeBarDate)
|
||||
{
|
||||
lastCAI.ActionWhat = firstCAI.ActionWhat;
|
||||
auditList.Add(lastCAI);
|
||||
@@ -1075,7 +1075,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
if (firstCAI.ActionWhat == "Added" && lastCAI.ActionWhat != "Deleted")
|
||||
{
|
||||
if (firstCAI.DTS > MyProc.DTS)
|
||||
if (firstCAI.DTS > MyProc.ChangeBarDate)
|
||||
lastCAI.ActionWhat = firstCAI.ActionWhat;
|
||||
//auditList.Add(firstCAI);
|
||||
auditList.Add(lastCAI);
|
||||
@@ -1131,7 +1131,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
annotationList.Add(firstAAI);
|
||||
}
|
||||
else if (lastAAI.ActionWhat == "Deleted" && firstAAI.DTS < MyProc.DTS)
|
||||
else if (lastAAI.ActionWhat == "Deleted" && firstAAI.DTS < MyProc.ChangeBarDate)
|
||||
{
|
||||
annotationList.Add(lastAAI);
|
||||
}
|
||||
@@ -1172,7 +1172,7 @@ namespace Volian.Print.Library
|
||||
{
|
||||
annotationList.Add(firstAAI);
|
||||
}
|
||||
else if (lastAAI.ActionWhat == "Deleted" && firstAAI.DTS < MyProc.DTS)
|
||||
else if (lastAAI.ActionWhat == "Deleted" && firstAAI.DTS < MyProc.ChangeBarDate)
|
||||
{
|
||||
annotationList.Add(lastAAI);
|
||||
}
|
||||
@@ -1348,7 +1348,7 @@ namespace Volian.Print.Library
|
||||
h = new Phrase();
|
||||
h.Font = f3;
|
||||
// h.Add(cai.ActionWhen > MyProc.DTS ? cai.ActionWhat : "Original");
|
||||
string actionWhat = ((cai.ActionWhat == "Added" || cai.ActionWhat == "Changed") && cai.DTS <= MyProc.DTS) ? "Original" : cai.ActionWhat; //(cai.ActionWhat == "Added" && cai.DTS <= MyProc.DTS) ? "Original" : cai.ActionWhat != "Changed" ? cai.ActionWhat : cai.DTS <= maxDTS ? "Restored" : cai.DTS > MyProc.DTS ? cai.ActionWhat : "Original";
|
||||
string actionWhat = ((cai.ActionWhat == "Added" || cai.ActionWhat == "Changed") && cai.DTS <= MyProc.ChangeBarDate) ? "Original" : cai.ActionWhat; //(cai.ActionWhat == "Added" && cai.DTS <= MyProc.DTS) ? "Original" : cai.ActionWhat != "Changed" ? cai.ActionWhat : cai.DTS <= maxDTS ? "Restored" : cai.DTS > MyProc.DTS ? cai.ActionWhat : "Original";
|
||||
if (actionWhat == "Deleted" || actionWhat == "Restored")
|
||||
h.Add(actionWhat + "\r\n" + cai.ActionWhen.ToString());
|
||||
else
|
||||
|
Reference in New Issue
Block a user