Browse Source

优化提示

master
zhangqi7131 10 months ago
parent
commit
a82212c679
  1. 17
      STS/Form2.Designer.cs
  2. 14
      STS/Form2.cs

17
STS/Form2.Designer.cs

@ -53,6 +53,7 @@
this.jobType_cbb = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.startTime_dtp = new System.Windows.Forms.DateTimePicker();
this.label13 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// barcode_tb
@ -65,7 +66,6 @@
this.barcode_tb.Text = "T*****";
this.barcode_tb.GotFocus += new System.EventHandler(this.barcode_tb_GotFocus);
this.barcode_tb.LostFocus += new System.EventHandler(this.barcode_tb_LostFocus);
//
// STI_tb
//
@ -94,9 +94,9 @@
this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(124, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(37, 15);
this.label1.Size = new System.Drawing.Size(53, 15);
this.label1.TabIndex = 1;
this.label1.Text = "条码";
this.label1.Text = "条码 *";
//
// label2
//
@ -279,11 +279,21 @@
this.startTime_dtp.Size = new System.Drawing.Size(234, 25);
this.startTime_dtp.TabIndex = 4;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(589, 414);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(158, 15);
this.label13.TabIndex = 5;
this.label13.Text = "注:* 标注的为必填项";
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.label13);
this.Controls.Add(this.startTime_dtp);
this.Controls.Add(this.button1);
this.Controls.Add(this.jobType_cbb);
@ -346,5 +356,6 @@
private System.Windows.Forms.ComboBox jobType_cbb;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.DateTimePicker startTime_dtp;
private System.Windows.Forms.Label label13;
}
}

14
STS/Form2.cs

@ -21,14 +21,20 @@ namespace STS
}
private void Form2_Load(object sender, EventArgs e)
{
//设置默认值
conn2 = new SqlConnection();
conn2.ConnectionString = "Server=localhost;Database=TaskManagementDB;Trusted_Connection=True;";
defaultValue_Set();
}
//设置默认值
private void defaultValue_Set()
{
taskType_tb.Text = "调度任务";
jobType_cbb.SelectedIndex = 0;
RTI_tb.Text = "-1";
taskStatus_tb.Text = "开始执行";
conn2 = new SqlConnection();
conn2.ConnectionString = "Server=localhost;Database=TaskManagementDB;Trusted_Connection=True;";
startLocation_tb.Text = "-";
endLocation_tb.Text = "-";
}
//判断字符串后5位是否为数字
private bool isDigit(string str)

Loading…
Cancel
Save