C2024-016-Write-Info-to-Results-Window-Delete-Annotations

This commit is contained in:
Paul Larsen 2024-07-29 11:12:11 -04:00
parent ff940005f9
commit d00d69b7af
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,7 @@ namespace VEPROMS
string docvList = "";
int AnnotationTyp;
string AnnotationName = "";
string totalDeleteCnt = "";
List<ProcedureInfo> pil2 = new List<ProcedureInfo>();
List<DocVersionInfo> dvil2 = new List<DocVersionInfo>();
private frmBatchRefresh mainForm = null;
@ -109,6 +110,7 @@ namespace VEPROMS
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
AnnotationName = System.Convert.ToString(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Value);
frm3.AppendText("Deleting Annotations: Annotation Type: " + '"' + AnnotationName + '"');
frm3.AppendText(Environment.NewLine + "P = Procedure, F = Folder" + Environment.NewLine);
int deletecountProc = 0;
int deletecountDocv = 0;
foreach (var p in pil2)
@ -142,6 +144,8 @@ namespace VEPROMS
lblCountNumber.Text = "0";
}
}
frm3.AppendText(Environment.NewLine + Environment.NewLine + "Total Annotations Deleted: " + totalDeleteCnt + Environment.NewLine + Environment.NewLine);
}
// Retrieve number of annotations that will be deleted.
@ -163,6 +167,7 @@ namespace VEPROMS
deletecountDocv = Annotation.getAnnotationCountDocv(AnnotationTyp, getAnnotationDocvItems(dvil2));
}
lblCountNumber.Text = (deletecountProc + deletecountDocv).ToString();
totalDeleteCnt = (deletecountProc + deletecountDocv).ToString();
btnClean.Enabled = true;
}

View File

@ -1729,7 +1729,7 @@ namespace VEPROMS
else
{
// Write progress status
txtProcess.AppendText("Deleting Annotations...");
txtProcess.AppendText("Deleting Annotations..." + Environment.NewLine);
// Create a list of procedures the user selected
List<ProcedureInfo> pil = new List<ProcedureInfo>();