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

@@ -41,6 +41,9 @@ namespace VEPROMS
this.ppDTPicker = new System.Windows.Forms.DateTimePicker();
this.ppRTxtName = new System.Windows.Forms.RichTextBox();
this.ppRTxtHeading = new System.Windows.Forms.RichTextBox();
this.tbSqlTimeout = new System.Windows.Forms.TextBox();
this.lblSqlTimeout = new System.Windows.Forms.Label();
this.lblSqlTimeoutDefault = new System.Windows.Forms.Label();
this.ppBtnDefaultGrphFileExt = new DevComponents.DotNetBar.ButtonX();
this.ppCmbxGrphFileExt = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.imageCodecInfoBindingSource = new System.Windows.Forms.BindingSource(this.components);
@@ -346,6 +349,38 @@ namespace VEPROMS
this.ppRTxtHeading.Text = "";
this.ppRTxtHeading.Visible = false;
//
// tbSqlTimeout
//
this.tbSqlTimeout.Location = new System.Drawing.Point(400, 90);
this.tbSqlTimeout.Margin = new System.Windows.Forms.Padding(2);
this.tbSqlTimeout.Multiline = false;
this.tbSqlTimeout.Name = "tbSqlTimeout";
this.tbSqlTimeout.Size = new System.Drawing.Size(71, 19);
this.tbSqlTimeout.TabIndex = 10;
this.tbSqlTimeout.Text = "";
//
// lblSqlTimeout
//
this.lblSqlTimeoutDefault.AutoSize = true;
this.lblSqlTimeoutDefault.BackColor = System.Drawing.Color.Transparent;
this.lblSqlTimeoutDefault.Location = new System.Drawing.Point(300, 120);
this.lblSqlTimeoutDefault.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblSqlTimeoutDefault.Name = "lblSqlTimeout";
this.lblSqlTimeoutDefault.Size = new System.Drawing.Size(300, 13);
this.lblSqlTimeoutDefault.TabIndex = 19;
this.lblSqlTimeoutDefault.Text = "If not specified 30 sec will be used";
//
// lblSqlTimeout
//
this.lblSqlTimeout.AutoSize = true;
this.lblSqlTimeout.BackColor = System.Drawing.Color.Transparent;
this.lblSqlTimeout.Location = new System.Drawing.Point(300, 90);
this.lblSqlTimeout.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblSqlTimeout.Name = "lblSqlTimeout";
this.lblSqlTimeout.Size = new System.Drawing.Size(100, 13);
this.lblSqlTimeout.TabIndex = 19;
this.lblSqlTimeout.Text = "SQL Timeout (sec)";
//
// ppBtnDefaultGrphFileExt
//
this.ppBtnDefaultGrphFileExt.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
@@ -1948,6 +1983,9 @@ namespace VEPROMS
this.tcpGeneral.Controls.Add(this.label3);
this.tcpGeneral.Controls.Add(this.ppRTxtHeading);
this.tcpGeneral.Controls.Add(this.ppRTxtName);
this.tcpGeneral.Controls.Add(this.tbSqlTimeout);
this.tcpGeneral.Controls.Add(this.lblSqlTimeout);
this.tcpGeneral.Controls.Add(this.lblSqlTimeoutDefault);
this.tcpGeneral.Controls.Add(this.label4);
this.tcpGeneral.Controls.Add(this.lblHeading);
this.tcpGeneral.Controls.Add(this.label2);
@@ -2535,6 +2573,9 @@ namespace VEPROMS
private System.Windows.Forms.TextBox ppTxtBxUserID;
private System.Windows.Forms.DateTimePicker ppDTPicker;
private System.Windows.Forms.RichTextBox ppRTxtHeading;
private System.Windows.Forms.TextBox tbSqlTimeout;
private System.Windows.Forms.Label lblSqlTimeout;
private System.Windows.Forms.Label lblSqlTimeoutDefault;
private System.Windows.Forms.RichTextBox ppRTxtName;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label12;