Fixed Security Logic to work for automatic printing

This commit is contained in:
Rich 2013-12-06 20:38:22 +00:00
parent d46f6ec495
commit 067f004170

View File

@ -494,6 +494,8 @@ namespace VEPROMS
private void CreatePDFs()
{
StringBuilder sb = new StringBuilder();
if (MySessionInfo != null)
{
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
{
string message = string.Empty;
@ -507,7 +509,7 @@ namespace VEPROMS
if (MessageBox.Show(sb.ToString() + Environment.NewLine + Environment.NewLine + "Do you want to continue to print all procedures?", "Procedures Already Checked Out", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
return;
}
}
CreateDebugFiles();
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.