Fixed Security Logic to work for automatic printing
This commit is contained in:
parent
d46f6ec495
commit
067f004170
@ -494,6 +494,8 @@ namespace VEPROMS
|
|||||||
private void CreatePDFs()
|
private void CreatePDFs()
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
if (MySessionInfo != null)
|
||||||
|
{
|
||||||
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
|
foreach (ProcedureInfo myProc in _DocVersionInfo.Procedures)
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
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)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
CreateDebugFiles();
|
CreateDebugFiles();
|
||||||
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user