Added a SQL Timeout text box to the Folder Property form.

Set the Database Default Timeout to twenty times SQL Timeout Property for the top folder.
Set the Database SQL Timeout to SQL Timeout Property for the top Folder.
This commit is contained in:
Rich
2017-03-01 15:39:24 +00:00
parent 1eac3a41ca
commit e77a17d645
3 changed files with 62 additions and 0 deletions

View File

@@ -1099,6 +1099,15 @@ namespace VEPROMS
VETreeNode jj_vetn = (VETreeNode)tv.Nodes[0]; // the VEPROMS tree node
return ((FolderConfig)jj_vetn.VEObject.MyConfig).Title; // get the panel heading
}
private int getTimeout()
{
VETreeNode jj_vetn = (VETreeNode)tv.Nodes[0]; // the VEPROMS tree node
string s = ((FolderConfig)jj_vetn.VEObject.MyConfig).Timeout; // get the panel heading
int result = 30;
if (!int.TryParse(s, out result))
result = 30;
return result;
}
private Timer _RefreshTimer;
@@ -1421,6 +1430,7 @@ namespace VEPROMS
tc.SyncEnhancedDocuments = Properties.Settings.Default.SyncEnhancedDocuments;
// Assign the Procedure Panel's title (heading)
epProcedures.TitleText = getProcedurePanelHeading();// get the panel heading
Database.DefaultTimeout = 20 * getTimeout();
// if the procedure panel is expanded, make sure we enable the splitter so the user can resize the panel
// Bug fix: B2013-89
expandableSplitter1.Enabled = epProcedures.Expanded;
@@ -2429,7 +2439,10 @@ namespace VEPROMS
frmFolderProperties frmfld = new frmFolderProperties(args.FolderConfig);
dr = frmfld.ShowDialog();
if (dr == DialogResult.OK)
{
epProcedures.TitleText = getProcedurePanelHeading();// get the panel heading
Database.DefaultTimeout = 20 * getTimeout();
}
MySessionInfo.CheckInItem(ownerID);
}
else if (args.DocVersionConfig != null)